mlsanityData to 14 Oct 2026

Late Attention Layers Alone Can Copy Entity Tokens, but Not Without Attending to Their Context

arXiv 2609.35663 ↗First posted 28 Sep 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) reliably perform entity copying, in which a model copies tokens referring to an entity, termed entity tokens, from the prompt into its output to answer a question. Although entity copying is straightforward for most LLMs, existing research does not provide a systematic account of which layers specialize in this fundamental task or how other tokens in the same sequence, termed context tokens, influence the model's ability to copy the entity tokens. To address these questions, we conduct experiments on Qwen3-8B using two novel methods: genie-in-a-bottle, which controls exactly which layers can participate in an entity-copying task, and attention lobotomy, which cuts off specific tokens' attention to entity tokens without affecting the remaining attention distribution. We find that two distinct groups of layers in the second half of the model are both necessary and sufficient for entity copying. Moreover, in addition to the decoding position's attention to entity tokens, context tokens' attention to entity tokens also proves necessary for copying the exact tokens, even though context tokens do not store entity information themselves unless they satisfy particular semantic properties. Our findings establish the critical role of late layers in entity copying under the guidance of context tokens, calling for future work on how models propagate and consume entity information.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 22 of its 25 references that are in the map. First posted on arXiv 28 Sep 2026.

Builds on

22 of 25 references.

References · 22

  1. 2017Attention Is All You Needcited by 60,361
  2. 2025Qwen3 Technical Reportcited by 8,820
  3. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  4. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  5. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  6. 2022In-context Learning and Induction Headscited by 964
  7. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
  8. 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 359
  9. 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 235
  10. 2024Do I Know This Entity? Knowledge Awareness and Hallucinations in Language Modelscited by 115
  11. 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 108
  12. 2023How do Language Models Bind Entities in Context?cited by 108
10 more
  1. 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 86
  2. 2024LLM Circuit Analyses Are Consistent Across Training and Scalecited by 63
  3. 2026When Models Manipulate Manifolds: The Geometry of a Counting Taskcited by 46
  4. 2024Separating Tongue from Thought: Activation Patching Reveals Language-Agnostic Concept Representations in Transformerscited by 44
  5. 2023Quantifying Context Mixing in Transformerscited by 43
  6. 2025Mixing Mechanisms: How Language Models Retrieve Bound Entities In-Contextcited by 26
  7. 2025The Dual-Route Model of Inductioncited by 24
  8. 2024Inferring Functionality of Attention Heads from their Parameterscited by 17
  9. 2026Thinking to Recall: How Reasoning Unlocks Parametric Knowledge in LLMscited by 16
  10. 2025On the Representations of Entities in Auto-regressive Large Language Modelscited by 1

Built on by

Not cited yet.