Primacy-Recency Effect
The phenomenon in which large language models are more sensitive to the beginning and end of a prompt, arising from the characteristics of the attention mechanism. Exploiting this effect by placing core instructions at the start and end of a prompt can improve the model's adherence to those instructions.
Timeline (last 90 days)
The primacy-recency effect has become less pronounced in 2026 as model capabilities improved, and it works better on early models.
The primacy-recency effect means models are more sensitive to the beginning and end of a prompt, so core instructions should be placed at the start and end, but as model capabilities improve this effect is no longer as pronounced as in earlier days.
Large models exhibit a primacy-recency effect, meaning they are more sensitive to content at the beginning and end of a prompt, but this effect has noticeably weakened on flagship models.
The primacy-recency effect stems from the Transformer architecture assigning higher attention weights to the beginning and end positions of a sequence, and from the fact that key information in training corpora often appears at the start and end of paragraphs.
All Facts (4)
The primacy-recency effect has become less pronounced in 2026 as model capabilities improved, and it works better on early models.
50%UnverifiedThe primacy-recency effect means models are more sensitive to the beginning and end of a prompt, so core instructions should be placed at the start and end, but as model capabilities improve this effect is no longer as pronounced as in earlier days.
50%UnverifiedLarge models exhibit a primacy-recency effect, meaning they are more sensitive to content at the beginning and end of a prompt, but this effect has noticeably weakened on flagship models.
50%UnverifiedThe primacy-recency effect stems from the Transformer architecture assigning higher attention weights to the beginning and end positions of a sequence, and from the fact that key information in training corpora often appears at the start and end of paragraphs.
50%