mlsanityData to 14 Oct 2026

Train Once, Reuse Everywhere: Generalizable Implicit In-Context Learning by Routing Attention

arXiv 2509.22854 ↗First posted 26 Sep 2025cs.CLcited by 8

Not on the map. Why?

Abstract (arXiv)

Implicit in-context learning (ICL) has newly emerged as a promising paradigm that simulates ICL behaviors in the representation space of large language models (LLMs), aiming to attain few-shot performance at zero-shot cost. However, existing approaches largely rely on injecting shift vectors into residual flows, which are typically constructed from labeled demonstrations or task-specific alignment. Such designs fall short of utilizing the structural mechanisms underlying ICL and suffer from limited generalizability. To address this, we propose In-Context Routing (ICR), a novel implicit ICL method that captures and utilizes generalizable ICL patterns at the attention logits level. It extracts reusable structural directions that emerge during ICL and employs a learnable input-conditioned router to modulate attention logits accordingly, enabling an efficient train-once-and-reuse framework. We evaluate ICR on 12 real-world datasets spanning diverse domains and multiple LLMs. The results show that ICR consistently outperforms existing implicit ICL methods that require task-specific retrieval or training, while demonstrating robust generalization to out-of-domain tasks where they struggle. These findings position ICR to push the boundary of the practical value of ICL. The code is available at https://github.com/Lijiaqian1/In-Context-Routing.git.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 32 of its 49 references that are in the map. First posted on arXiv 26 Sep 2025.

Builds on

32 of 49 references.

References · 32

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  3. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  4. 2022Emergent Abilities of Large Language Modelscited by 2,512
  5. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  6. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
  7. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,463
  8. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  9. 2022In-context Learning and Induction Headscited by 964
  10. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  11. 2022Transformers learn in-context by gradient descentcited by 732
  12. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
20 more
  1. 2021MetaICL: Learning to Learn In Contextcited by 454
  2. 2023In-Context Learning Creates Task Vectorscited by 312
  3. 2023Function Vectors in Large Language Modelscited by 308
  4. 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 245
  5. 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 161
  6. 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 152
  7. 2023The Learnability of In-Context Learningcited by 127
  8. 2023Language Models Implement Simple Word2Vec-style Vector Arithmeticcited by 98
  9. 2021CREAK: A Dataset for Commonsense Reasoning over Entity Knowledgecited by 88
  10. 2024Training Dynamics of Multi-Head Softmax Attention for In-Context Learning: Emergence, Convergence, and Optimalitycited by 74
  11. 2022On the Relation between Sensitivity and Accuracy in In-context Learningcited by 72
  12. 2025Which Attention Heads Matter for In-Context Learning?cited by 61
  13. 2023Pretraining Data Mixtures Enable Narrow Model Selection Capabilities in Transformer Modelscited by 45
  14. 2025M2IV: Towards Efficient and Fine-grained Multimodal In-Context Learning via Representation Engineeringcited by 35
  15. 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?cited by 23
  16. 2025Make LVLMs Focus: Context-Aware Attention Modulation for Better Multimodal In-Context Learningcited by 19
  17. 2023Is attention required for ICL? Exploring the Relationship Between Model Architecture and In-Context Learning Abilitycited by 17
  18. 2024Revisiting In-context Learning Inference Circuit in Large Language Modelscited by 17
  19. 2024Addressing Order Sensitivity of In-Context Demonstration Examples in Causal Language Modelscited by 12
  20. 2024Implicit In-context Learningcited by 11

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 6.

8 papers.