Nature Communications, Published online: 21 June 2026; doi:10.1038/s41467-026-74747-w People’s reward learning is shaped by context, but the cognitive origins of this bias remain poorly understood. Here, the authors provide evidence that attention may underlie these distortions by shaping how rewards are encoded during reinforcement learning.