Goal Encoding in LLMs
Not on the map. Why?
Abstract (arXiv)
We investigate whether and how LLMs encode goals: internal neural representations that precede and guide action, and that are flexible enough to be realized through many different execution paths. We construct a coding setting with multiple sub-tasks that allows us to evaluate goal-seeking behavior and the selection of sub-goals. In this setting, we localize an encoding of the next sub-goal in the outputs of a sparse set of attention heads. The same heads can be used to decode the LM's future actions in natural language (e.g., "I'm checking if a word is a palindrome"). We verify that this encoding is causal for next action and is plastic: transplanting it into a different environment, e.g., another programming language, triggers the same operation realized with a different sequence of tokens. The LM also sustains the encoding throughout the action's execution, which is puzzling because a transformer LM without recurrence cannot carry a state forward for more tokens than it has layers left. We propose that it does not need to. Under a non-recurrent goal-seeking (NRGS) account, the LM frequently re-reads the goal from the task specification, compares it with the progress visible in the growing context, and pursues what remains. We test the predictions of this account with targeted causal interventions.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 16 of its 76 references that are in the map. Submitted 12 Nov 2026.
Builds on
16 of 76 references.
References · 16
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,289
- 2022In-context Learning and Induction Headscited by 1,085
- 2023Measuring Faithfulness in Chain-of-Thought Reasoningcited by 786
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 713
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 564
- 2025Reasoning Models Don't Always Say What They Thinkcited by 503
- 2025Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMscited by 211
- 2023The Hydra Effect: Emergent Self-repair in Language Model Computationscited by 188
- 2025Model Organisms for Emergent Misalignmentcited by 112
- 2025Convergent Linear Representations of Emergent Misalignmentcited by 81
- 2025Activation Oracles: Training and Evaluating LLMs as General-Purpose Activation Explainerscited by 70
- 2025Language Models use Lookbacks to Track Beliefscited by 48
4 more
- 2025Training Language Models to Explain Their Own Computationscited by 41
- 2025LLMs Process Lists With General Filter Headscited by 9
- 2026What's the plan? Metrics for implicit planning in LLMs and their application to rhyme generation and question answeringcited by 7
- 2025nnterp: A Standardized Interface for Mechanistic Interpretability of Transformerscited by 3
Built on by
Not cited yet.