Dasgupta, I., Schulz, E., Tenenbaum, J. B. & Gershman, S. J. A theory of learning to infer. Psychological Review 127, 412 - 441 (2020).