Do different prompting methods yield a common task representation in language models?
Not on the map. Why?
Abstract (arXiv)
Demonstrations and instructions are two primary approaches for prompting language models to perform in-context learning (ICL) tasks. Do identical tasks elicited in different ways result in similar representations of the task? An improved understanding of task representation mechanisms would offer interpretability insights and may aid in steering models. We study this through textitfunction vectors (FVs), recently proposed as a mechanism to extract few-shot ICL task representations. We generalize FVs to alternative task presentations, focusing on short textual instruction prompts, and successfully extract instruction function vectors that promote zero-shot task accuracy. We find evidence that demonstration- and instruction-based function vectors leverage different model components, and offer several controls to dissociate their contributions to task performance. Our results suggest that different task promptings forms do not induce a common task representation through FVs but elicit different, partly overlapping mechanisms. Our findings offer principled support to the practice of combining instructions and task demonstrations, imply challenges in universally monitoring task inference across presentation forms, and encourage further examinations of LLM task inference mechanisms.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 45 of its 59 references that are in the map. First posted on arXiv 17 May 2025.
Builds on
45 of 59 references.
References · 45
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
33 more
- 2022Editing Models with Task Arithmeticcited by 1,120
- 2022In-context Learning and Induction Headscited by 964
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 817
- 2022Transformers learn in-context by gradient descentcited by 732
- 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 699
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2017Word Translation Without Parallel Datacited by 487
- 20242 OLMo 2 Furiouscited by 340
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2023In-Context Learning Creates Task Vectorscited by 312
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
- 2023Function Vectors in Large Language Modelscited by 308
- 2023Linearity of Relation Decoding in Transformer Language Modelscited by 200
- 2024Improving Instruction-Following in Language Models through Activation Steeringcited by 160
- 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 152
- 2024In-Context Language Learning: Architectures and Algorithmscited by 89
- 2025Which Attention Heads Matter for In-Context Learning?cited by 61
- 2023From Language Modeling to Instruction Following: Understanding the Behavior Shift in LLMs after Instruction Tuningcited by 56
- 2024Competition Dynamics Shape Algorithmic Phases of In-Context Learningcited by 54
- 2024Multimodal Task Vectors Enable Many-Shot Multimodal In-Context Learningcited by 50
- 2025Shared Global and Local Geometry of Language Model Embeddingscited by 36
- 2024The broader spectrum of in-context learningcited by 35
- 2024Parallel Structures in Pre-training Data Yield In-Context Learningcited by 26
- 2024Finding Visual Task Vectorscited by 24
- 2024ReIFE: Re-evaluating Instruction-Following Evaluationcited by 22
- 2017Distinguishing Antonyms and Synonyms in a Pattern-based Neural Networkcited by 19
- 2024Vision-Language Models Create Cross-Modal Task Representationscited by 15
- 2025Learning Task Representations from In-Context Learningcited by 11
- 2024Emergence and Effectiveness of Task Vectors in In-Context Learning: An Encoder Decoder Perspectivecited by 9
- 2024HREF: Human Response-Guided Evaluation of Instruction Following in Language Modelscited by 9
- 2024Gradient-based inference of abstract task representations for generalization in neural networkscited by 4
Built on by
Citing papers per year: 2025: 3; 2026: 8.
11 papers.
- 2025Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughtscited by 24
- 2026Brittlebench: Quantifying LLM robustness via prompt sensitivitycited by 21
- 2025Just-in-time and distributed task representations in language modelscited by 9
- 2026Causality neq Invariance: Function and Concept Vectors in LLMscited by 8
- 2026Language Models Struggle to Use Representations Learned In-Contextcited by 6
- 2025Latent Concept Disentanglement in Transformer-based Language Modelscited by 3
- 2026Weight Patching: Toward Source-Level Mechanistic Localization in LLMscited by 2
- 2026Shared Lexical Task Representations Explain Behavioral Variability In LLMscited by 2
- 2026Fast & Faithful Function Vectorscited by 0
- 2026LLMs Learn Better In-Context from Rules than from Examplescited by 0
- 2026LLMs program using Reusable and Composable Abstract Representationscited by 0
- 2026LLMs program using Reusable and Composable Abstract Representations13 Oct 2026
- 2026LLMs Learn Better In-Context from Rules than from Examples2 Sep 2026
- 2026Fast & Faithful Function Vectors3 Jun 2026
- 2026Shared Lexical Task Representations Explain Behavioral Variability In LLMs23 Apr 2026
- 2026Weight Patching: Toward Source-Level Mechanistic Localization in LLMs15 Apr 2026
- 2026Brittlebench: Quantifying LLM robustness via prompt sensitivity27 Feb 2026
- 2026Causality neq Invariance: Function and Concept Vectors in LLMs25 Feb 2026
- 2026Language Models Struggle to Use Representations Learned In-Context4 Feb 2026
- 2025Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughts8 Oct 2025
- 2025Just-in-time and distributed task representations in language models28 Aug 2025
- 2025Latent Concept Disentanglement in Transformer-based Language Models20 Jun 2025