Goal Encoding in LLMs
TL;DR - The paper identifies sparse attention heads that encode an LLM’s next coding sub-goal and causally influence its actions. These representations transfer across programming languages, suggesting goals can guide flexible execution rather than fixed token sequences.
- The identified heads decode future actions into natural-language descriptions.
- Transplanting a goal encoding into another environment triggers the same operation through different tokens.
- Goal representations persist throughout execution.
- The proposed NRGS account says models repeatedly infer remaining goals from the task specification and visible progress.