We build models of the world around us to guide perception and learning in the face of uncertainty. New evidence reveals a neurocomputational mechanism that links predictive processes across cognitive domains.