Exploring the Relationship between In-Context Learning and Instruction Tuning
Not on the map. Why?
Abstract (arXiv)
In-Context Learning (ICL) and Instruction Tuning (IT) are two primary paradigms of adopting Large Language Models (LLMs) to downstream applications. However, they are significantly different. In ICL, a set of demonstrations are provided at inference time but the LLM's parameters are not updated. In IT, a set of demonstrations are used to tune LLM's parameters in training time but no demonstrations are used at inference time. Although a growing body of literature has explored ICL and IT, studies on these topics have largely been conducted in isolation, leading to a disconnect between these two paradigms. In this work, we explore the relationship between ICL and IT by examining how the hidden states of LLMs change in these two paradigms. Through carefully designed experiments conducted with LLaMA-2 (7B and 13B), we find that ICL is implicit IT. In other words, ICL changes an LLM's hidden states as if the demonstrations were used to instructionally tune the model. Furthermore, the convergence between ICL and IT is largely contingent upon several factors related to the provided demonstrations. Overall, this work offers a unique perspective to explore the connection between ICL and IT and sheds light on understanding the behaviors of LLM.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 22 of its 35 references that are in the map. First posted on arXiv 17 Nov 2023.
Builds on
22 of 35 references.
References · 22
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
10 more
- 2023LIMA: Less Is More for Alignmentcited by 1,080
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 734
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2023The False Promise of Imitating Proprietary LLMscited by 254
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
- 2021Revisiting Model Stitching to Compare Neural Representationscited by 203
- 2023Do Models Really Learn to Follow Instructions? An Empirical Study of Instruction Tuningcited by 48
Built on by
Citing papers per year: 2023: 2; 2024: 7; 2025: 2; 2026: 3.
14 papers.
Sort:
By area:
- 2023The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learningcited by 251
- 2024Is In-Context Learning Sufficient for Instruction Following in LLMs?cited by 19
- 2024Understanding Layer Significance in LLM Alignmentcited by 19
- 2023Large Language Models are Miscalibrated In-Context Learnerscited by 12
- 2024Focused Large Language Models are Stable Many-Shot Learnerscited by 8
- 2025Bridging the LLM Accessibility Divide? Performance, Fairness, and Cost of Closed versus Open LLMs for Automated Essay Scoringcited by 7
- 2024Language Models Don't Learn the Physical Manifestation of Languagecited by 4
- 2024Instruction Tuning Vs. In-Context Learning: Revisiting Large Language Models in Few-Shot Computational Social Sciencecited by 4
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecturecited by 3
- 2024Learning Metadata-Agnostic Representations for Text-to-SQL In-Context Example Selectioncited by 2
- 2025Supervised In-Context Fine-Tuning for Generative Sequence Labelingcited by 1
- 2026RELISH: LLM REgression with a Latent Iterative State Headcited by 1
- 2026Generalization Is Stability, Not Accuracy: Multi-Axis Evaluation of LLMs1 Oct 2026
- 2026Contrast Matters: Understanding Robustness of In-Context Fine-Tuning to Target-Context Relatedness2 Apr 2026
- 2026RELISH: LLM REgression with a Latent Iterative State Head1 Apr 2026
- 2025Supervised In-Context Fine-Tuning for Generative Sequence Labeling31 Aug 2025
- 2025Bridging the LLM Accessibility Divide? Performance, Fairness, and Cost of Closed versus Open LLMs for Automated Essay Scoring14 Mar 2025
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecture19 Dec 2024
- 2024Understanding Layer Significance in LLM Alignment23 Oct 2024
- 2024Learning Metadata-Agnostic Representations for Text-to-SQL In-Context Example Selection17 Oct 2024
- 2024Instruction Tuning Vs. In-Context Learning: Revisiting Large Language Models in Few-Shot Computational Social Science23 Sep 2024
- 2024Focused Large Language Models are Stable Many-Shot Learners26 Aug 2024
- 2024Is In-Context Learning Sufficient for Instruction Following in LLMs?30 May 2024
- 2024Language Models Don't Learn the Physical Manifestation of Language17 Feb 2024
2 more
- 2024Understanding Layer Significance in LLM Alignmentcited by 19
- 2024Understanding Layer Significance in LLM Alignment23 Oct 2024
- 2024Is In-Context Learning Sufficient for Instruction Following in LLMs?cited by 19
- 2023Large Language Models are Miscalibrated In-Context Learnerscited by 12
- 2024Focused Large Language Models are Stable Many-Shot Learnerscited by 8
- 2025Bridging the LLM Accessibility Divide? Performance, Fairness, and Cost of Closed versus Open LLMs for Automated Essay Scoringcited by 7
- 2024Language Models Don't Learn the Physical Manifestation of Languagecited by 4
- 2024Instruction Tuning Vs. In-Context Learning: Revisiting Large Language Models in Few-Shot Computational Social Sciencecited by 4
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecturecited by 3
- 2024Learning Metadata-Agnostic Representations for Text-to-SQL In-Context Example Selectioncited by 2
- 2025Supervised In-Context Fine-Tuning for Generative Sequence Labelingcited by 1
- 2026RELISH: LLM REgression with a Latent Iterative State Headcited by 1
- 2026Contrast Matters: Understanding Robustness of In-Context Fine-Tuning to Target-Context Relatednesscited by 0
- 2026Generalization Is Stability, Not Accuracy: Multi-Axis Evaluation of LLMscited by 0
- 2026Generalization Is Stability, Not Accuracy: Multi-Axis Evaluation of LLMs1 Oct 2026
- 2026Contrast Matters: Understanding Robustness of In-Context Fine-Tuning to Target-Context Relatedness2 Apr 2026
- 2026RELISH: LLM REgression with a Latent Iterative State Head1 Apr 2026
- 2025Supervised In-Context Fine-Tuning for Generative Sequence Labeling31 Aug 2025
- 2025Bridging the LLM Accessibility Divide? Performance, Fairness, and Cost of Closed versus Open LLMs for Automated Essay Scoring14 Mar 2025
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecture19 Dec 2024
- 2024Learning Metadata-Agnostic Representations for Text-to-SQL In-Context Example Selection17 Oct 2024
- 2024Instruction Tuning Vs. In-Context Learning: Revisiting Large Language Models in Few-Shot Computational Social Science23 Sep 2024
- 2024Focused Large Language Models are Stable Many-Shot Learners26 Aug 2024
- 2024Is In-Context Learning Sufficient for Instruction Following in LLMs?30 May 2024
- 2024Language Models Don't Learn the Physical Manifestation of Language17 Feb 2024
- 2023Large Language Models are Miscalibrated In-Context Learners21 Dec 2023