Meta-learning via Language Model In-context Tuning
Not on the map. Why?
Abstract (arXiv)
The goal of meta-learning is to learn to adapt to a new task with only a few labeled examples. To tackle this problem in NLP, we propose textitin-context tuning, which recasts adaptation and prediction as a simple sequence prediction problem: to form the input sequence, we concatenate the task instruction, the labeled examples, and the target input to predict; to meta-train the model to learn from in-context examples, we fine-tune a pre-trained language model (LM) to predict the target label from the input sequences on a collection of tasks. We benchmark our method on two collections of text classification tasks: LAMA and BinaryClfs. Compared to first-order MAML which adapts the model with gradient descent, our method better leverages the inductive bias of LMs to perform pattern matching, and outperforms MAML by an absolute 6% AUC ROC score on BinaryClfs, with increasing advantage w.r.t. model size. Compared to non-fine-tuned in-context learning (i.e. prompting a raw LM), in-context tuning directly learns to learn from in-context examples. On BinaryClfs, in-context tuning improves the average AUC-ROC score by an absolute 10%, and reduces the variance with respect to example ordering by 6x and example choices by 2x.
Key facts. Cited by 164 papers in the map (data through 14 Oct 2026). Builds on 48 of its 64 references that are in the map. First posted on arXiv 15 Oct 2021.
Builds on
48 of 64 references.
References · 48
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2019Language Models as Knowledge Bases?cited by 1,936
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
36 more
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
- 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,247
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2018On First-Order Meta-Learning Algorithmscited by 1,018
- 2019How Can We Know What Language Models Know?cited by 959
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 938
- 2021Robust fine-tuning of zero-shot modelscited by 797
- 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 699
- 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 669
- 2019Meta-Learning with Implicit Gradientscited by 525
- 2020UnifiedQA: Crossing Format Boundaries With a Single QA Systemcited by 476
- 2020Towards a Human-like Open-Domain Chatbotcited by 470
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 377
- 2018Efficient Attention: Attention with Linear Complexitiescited by 368
- 2019Multi-Task Deep Neural Networks for Natural Language Understandingcited by 350
- 2021True Few-Shot Learning with Language Modelscited by 344
- 2018How to train your MAMLcited by 309
- 2019Massively Multilingual Neural Machine Translationcited by 246
- 2021Muppet: Massive Multi-task Representations with Pre-Finetuningcited by 192
- 2021CrossFit: A Few-shot Learning Challenge for Cross-task Generalization in NLPcited by 142
- 2021Adapting Language Models for Zero-shot Learning by Meta-tuning on Dataset and Prompt Collectionscited by 128
- 2021KaggleDBQA: Realistic Evaluation of Text-to-SQL Parserscited by 106
- 2018Meta-Learning for Low-Resource Neural Machine Translationcited by 105
- 2019E-BERT: Efficient-Yet-Effective Entity Embeddings for BERTcited by 96
- 2016Low Data Drug Discovery with One-shot Learningcited by 91
- 2019Induction Networks for Few-Shot Text Classificationcited by 64
- 2018Diverse Few-Shot Text Classification with Multiple Metricscited by 61
- 2019Learning to Few-Shot Learn Across Diverse Natural Language Classification Taskscited by 57
- 2019Meta-Learning with Dynamic-Memory-Based Prototypical Network for Few-Shot Event Detectioncited by 54
- 2019Investigating Meta-Learning Algorithms for Low-Resource Natural Language Understanding Taskscited by 48
- 2021Incremental Few-shot Text Classification with Multi-round New Classes: Formulation, Dataset and Systemcited by 30
- 2019From Zero-Shot Learning to Cold-Start Recommendationcited by 29
- 2020Learning to Learn to Disambiguate: Meta-Learning for Few-Shot Word Sense Disambiguationcited by 13
- 2020Fine-Grained Analysis of Cross-Linguistic Syntactic Divergencescited by 9
Built on by
Citing papers per year: 2021: 1; 2022: 28; 2023: 45; 2024: 43; 2025: 33; 2026: 14.
164 papers.
Sort:
By area:
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
- 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 735
- 2022A Survey on In-context Learningcited by 721
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2021MetaICL: Learning to Learn In Contextcited by 454
- 2023PaLI-X: On Scaling up a Multilingual Vision and Language Modelcited by 255
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 243
- 2023Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMscited by 178
- 2024A Survey on Recent Advances in LLM-Based Multi-turn Dialogue Systemscited by 170
- 2024Large Language Model-Brained GUI Agents: A Surveycited by 162
38 more
- 2022Instruction Induction: From Few Examples to Natural Language Task Descriptionscited by 152
- 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 139
- 2022Learning by Distilling Contextcited by 138
- 2023Dolphins: Multimodal Language Model for Drivingcited by 124
- 2024Benchmarking Large Language Models on Answering and Explaining Challenging Medical Questionscited by 109
- 2022Successive Prompting for Decomposing Complex Questionscited by 94
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 86
- 2022On the Effect of Pretraining Corpora on In-context Learning by a Large-scale Language Modelcited by 81
- 2023In-context Pretraining: Language Modeling Beyond Document Boundariescited by 79
- 2023Boosting Language Models Reasoning with Chain-of-Knowledge Promptingcited by 77
- 2022On the Relation between Sensitivity and Accuracy in In-context Learningcited by 72
- 2022Complementary Explanations for Effective In-Context Learningcited by 71
- 2023Large Language Models Can be Lazy Learners: Analyze Shortcuts in In-Context Learningcited by 69
- 2024Instructional Fingerprinting of Large Language Modelscited by 68
- 2022ProGen: Progressive Zero-shot Dataset Generation via In-context Feedbackcited by 67
- 2023Dynamic Planning with a LLMcited by 61
- 2022UnifiedQA-v2: Stronger Generalization via Broader Cross-Format Trainingcited by 57
- 2024Survey on Knowledge Distillation for Large Language Models: Methods, Evaluation, and Applicationcited by 56
- 2023FuzzLLM: A Novel and Universal Fuzzing Framework for Proactively Discovering Jailbreak Vulnerabilities in Large Language Modelscited by 51
- 2023kNN Prompting: Beyond-Context Learning with Calibration-Free Nearest Neighbor Inferencecited by 47
- 2022HyperTuning: Toward Adapting Large Language Models without Back-propagationcited by 46
- 2023Exploring Effective Factors for Improving Visual In-Context Learningcited by 43
- 2023Pre-Training to Learn in Contextcited by 42
- 2023Forward-Backward Reasoning in Large Language Models for Mathematical Verificationcited by 40
- 2024Do Large Language Models Have Compositional Ability? An Investigation into Limitations and Scalabilitycited by 40
- 2022In-context Learning Distillation: Transferring Few-shot Learning Ability of Pre-trained Language Modelscited by 37
- 2023Which Examples to Annotate for In-Context Learning? Towards Effective and Efficient Selectioncited by 37
- 2024LazyDiT: Lazy Learning for the Acceleration of Diffusion Transformerscited by 37
- 2024In-Context Fine-Tuning for Time-Series Foundation Modelscited by 35
- 2024In-Context Editing: Learning Knowledge from Self-Induced Distributionscited by 34
- 2024In-Context Learning of a Linear Transformer Block: Benefits of the MLP Component and One-Step GD Initializationcited by 33
- 2022Weakly Supervised Data Augmentation Through Prompting for Dialogue Understandingcited by 32
- 2023Give Me the Facts! A Survey on Factual Knowledge Probing in Pre-trained Language Modelscited by 32
- 2023Let's Synthesize Step by Step: Iterative Dataset Synthesis with Large Language Models by Extrapolating Errors from Small Modelscited by 30
- 2025What Is The Best 3D Scene Representation for Robotics? From Geometric to Foundation Modelscited by 29
- 2022Task Ambiguity in Humans and Language Modelscited by 28
- 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformerscited by 28
- 2023IDEAL: Influence-Driven Selective Annotations Empower In-Context Learners in Large Language Modelscited by 27
50 most cited of 164 All 164 (JSON)
- 2026LoRA-generating hypernetworks for efficient on-device LLM generative personalization21 Sep 2026
- 2026Few-Shot Demonstrations Elicit the Use of In-Context World Representations in LLMs21 Sep 2026
- 2026Meta-Learning Preferences for Multilingual LLM Alignment14 Jul 2026
- 2026Reinforcement Learning Elicits Contextual Learning of Unseen Language Translation4 Jun 2026
- 2026Why Do Time Series Models Need Long Context Windows?1 Jun 2026
- 2026GAMBIT: A Three-Mode Benchmark for Adversarial Robustness in Multi-Agent LLM Collectives9 May 2026
- 2026Learn-To-Learn on Arbitrary Textual Conditioning: A Hypernetwork-Driven Meta-Gated LLM3 May 2026
- 2026Fact4ac at the Financial Misinformation Detection Challenge Task: Reference-Free Financial Misinformation Detection via Fine-Tuning and Few-Shot Prompting of Large Language Models16 Apr 2026
- 2026Binomial Gradient-Based Meta-Learning for Enhanced Meta-Gradient Estimation14 Apr 2026
- 2026In-context Pre-trained Time-Series Foundation Models adapt to Unseen Tasks23 Feb 2026
- 2026Meta-Sel: Efficient Demonstration Selection for In-Context Learning via Supervised Meta-Learning12 Feb 2026
- 2026Large Language Models Can Take False First Steps at Inference-time Planning3 Feb 2026
38 more
- 2026MicLog: Towards Accurate and Efficient LLM-based Log Parsing via Progressive Meta In-Context Learning11 Jan 2026
- 2026KASER: Knowledge-Aligned Student Error Simulator for Open-Ended Coding Tasks10 Jan 2026
- 2025Fine-Tuned In-Context Learners for Efficient Adaptation22 Dec 2025
- 2025What Is The Best 3D Scene Representation for Robotics? From Geometric to Foundation Models3 Dec 2025
- 2025Can Language Models Compose Skills In-Context?27 Oct 2025
- 2025Agentic Meta-Orchestrator for Multi-task Copilots26 Oct 2025
- 2025Supervised In-Context Fine-Tuning for Generative Sequence Labeling31 Aug 2025
- 2025Explaining Black-box Language Models with Knowledge Probing Systems: A Post-hoc Explanation Perspective23 Aug 2025
- 2025Meta-Learning at Scale for Large Language Models via Low-Rank Amortized Bayesian Meta-Learning19 Aug 2025
- 2025In-Context Examples Matter: Improving Emotion Recognition in Conversation with Instruction Tuning16 Aug 2025
- 2025ICM-Fusion: In-Context Meta-Optimized LoRA Fusion for Multi-Task Adaptation6 Aug 2025
- 2025Latent Knowledge Scalpel: Precise and Massive Knowledge Editing for Large Language Models1 Aug 2025
- 2025Function Induction and Task Generalization: An Interpretability Study with Off-by-One Addition14 Jul 2025
- 2025Meta-Learning Transformers to Improve In-Context Generalization7 Jul 2025
- 2025Context Tuning for In-Context Optimization6 Jul 2025
- 2025Thinking About Thinking: SAGE-nano's Inverse Reasoning for Self-Aware Language Models30 Jun 2025
- 2025Can Gradient Descent Simulate Prompting?26 Jun 2025
- 2025Meta-Adaptive Prompt Distillation for Few-Shot Visual Question Answering7 Jun 2025
- 2025From Compression to Expression: A Layerwise Analysis of In-Context Learning22 May 2025
- 2025Teaching Small Language Models to Learn Logic through Meta-Learning20 May 2025
- 2025GraphPrompter: Multi-stage Adaptive Prompt Optimization for Graph In-Context Learning4 May 2025
- 2025InstructRAG: Leveraging Retrieval-Augmented Generation on Instruction Graphs for LLM-Based Task Planning17 Apr 2025
- 2025Adaptive Elicitation of Latent Information Using Natural Language5 Apr 2025
- 2025Generative Reliability-Based Design Optimization Using In-Context Learning Capabilities of Large Language Models28 Mar 2025
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Models22 Mar 2025
- 2025Understanding the Generalization of In-Context Learning in Transformers: An Empirical Study19 Mar 2025
- 2025Identity Lock: Locking API Fine-tuned LLMs With Identity-based Wake Words10 Mar 2025
- 2025Sample-aware Adaptive Structured Pruning for Large Language Models8 Mar 2025
- 2025AI-Enabled Conversational Journaling for Advancing Parkinson's Disease Symptom Tracking5 Mar 2025
- 2025Better Benchmarking LLMs for Zero-Shot Dependency Parsing28 Feb 2025
- 2025FSPO: Few-Shot Optimization of Synthetic Preferences Personalizes to Real Users26 Feb 2025
- 2025On the Robustness of Transformers against Context Hijacking for Linear Classification21 Feb 2025
- 2025Rapid Word Learning Through Meta In-Context Learning20 Feb 2025
- 2025Towards Large-Scale In-Context Reinforcement Learning by Meta-Training in Randomized Worlds5 Feb 2025
- 2025OptiSeq: Ordering Examples On-The-Fly for In-Context Learning25 Jan 2025
- 2024LazyDiT: Lazy Learning for the Acceleration of Diffusion Transformers17 Dec 2024
- 2024Large Language Model-Brained GUI Agents: A Survey27 Nov 2024
- 2024MolReFlect: Towards In-Context Fine-grained Alignments between Molecules and Texts22 Nov 2024
50 newest of 164 All 164 (JSON)
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2023Boosting Language Models Reasoning with Chain-of-Knowledge Promptingcited by 77
- 2023Forward-Backward Reasoning in Large Language Models for Mathematical Verificationcited by 40
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Modelscited by 12
- 2024Do Large Language Models Understand Logic or Just Mimick Context?cited by 10
- 2024An Empirical Study of Data Ability Boundary in LLMs' Math Reasoningcited by 7
- 2024Recall, Retrieve and Reason: Towards Better In-Context Relation Extractioncited by 6
- 2025Teaching Small Language Models to Learn Logic through Meta-Learningcited by 1
- 2025Thinking About Thinking: SAGE-nano's Inverse Reasoning for Self-Aware Language Modelscited by 1
- 2025Explaining Black-box Language Models with Knowledge Probing Systems: A Post-hoc Explanation Perspectivecited by 1
- 2025Explaining Black-box Language Models with Knowledge Probing Systems: A Post-hoc Explanation Perspective23 Aug 2025
- 2025Thinking About Thinking: SAGE-nano's Inverse Reasoning for Self-Aware Language Models30 Jun 2025
- 2025Teaching Small Language Models to Learn Logic through Meta-Learning20 May 2025
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Models22 Mar 2025
- 2024Recall, Retrieve and Reason: Towards Better In-Context Relation Extraction27 Apr 2024
- 2024An Empirical Study of Data Ability Boundary in LLMs' Math Reasoning23 Feb 2024
- 2024Do Large Language Models Understand Logic or Just Mimick Context?19 Feb 2024
- 2023Forward-Backward Reasoning in Large Language Models for Mathematical Verification15 Aug 2023
- 2023Boosting Language Models Reasoning with Chain-of-Knowledge Prompting10 Jun 2023
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?25 Feb 2022
- 2024Large Language Model-Brained GUI Agents: A Surveycited by 162
- 2025OptiSeq: Ordering Examples On-The-Fly for In-Context Learningcited by 6
- 2026GAMBIT: A Three-Mode Benchmark for Adversarial Robustness in Multi-Agent LLM Collectivescited by 1
- 2025Agentic Meta-Orchestrator for Multi-task Copilotscited by 0
- 2026GAMBIT: A Three-Mode Benchmark for Adversarial Robustness in Multi-Agent LLM Collectives9 May 2026
- 2025Agentic Meta-Orchestrator for Multi-task Copilots26 Oct 2025
- 2025OptiSeq: Ordering Examples On-The-Fly for In-Context Learning25 Jan 2025
- 2024Large Language Model-Brained GUI Agents: A Survey27 Nov 2024
- 2023Dolphins: Multimodal Language Model for Drivingcited by 124
- 2024Can MLLMs Perform Text-to-Image In-Context Learning?cited by 13
- 2025Meta-Adaptive Prompt Distillation for Few-Shot Visual Question Answeringcited by 0
- 2025InstructRAG: Leveraging Retrieval-Augmented Generation on Instruction Graphs for LLM-Based Task Planning17 Apr 2025
- 2024RARe: Retrieval Augmented Retrieval with In-Context Examples26 Oct 2024
- 2024Contextual Compression in Retrieval-Augmented Generation for Large Language Models: A Survey20 Sep 2024
- 2024Do Large Language Models Need a Content Delivery Network?cited by 16
- 2024Do Large Language Models Need a Content Delivery Network?16 Sep 2024
- 2024Enhancing In-context Learning via Linear Probe Calibrationcited by 16
- 2024Enhancing In-context Learning via Linear Probe Calibration22 Jan 2024
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
- 2022A Survey on In-context Learningcited by 721
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2021MetaICL: Learning to Learn In Contextcited by 454
- 2023PaLI-X: On Scaling up a Multilingual Vision and Language Modelcited by 255
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 243
- 2023Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMscited by 178
- 2024A Survey on Recent Advances in LLM-Based Multi-turn Dialogue Systemscited by 170
- 2022Instruction Induction: From Few Examples to Natural Language Task Descriptionscited by 152
- 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 139
- 2022Learning by Distilling Contextcited by 138
12 most cited of 131 All 131 (JSON)
- 2026LoRA-generating hypernetworks for efficient on-device LLM generative personalization21 Sep 2026
- 2026Few-Shot Demonstrations Elicit the Use of In-Context World Representations in LLMs21 Sep 2026
- 2026Why Do Time Series Models Need Long Context Windows?1 Jun 2026
- 2026Learn-To-Learn on Arbitrary Textual Conditioning: A Hypernetwork-Driven Meta-Gated LLM3 May 2026
- 2026Fact4ac at the Financial Misinformation Detection Challenge Task: Reference-Free Financial Misinformation Detection via Fine-Tuning and Few-Shot Prompting of Large Language Models16 Apr 2026
- 2026Binomial Gradient-Based Meta-Learning for Enhanced Meta-Gradient Estimation14 Apr 2026
- 2026In-context Pre-trained Time-Series Foundation Models adapt to Unseen Tasks23 Feb 2026
- 2026Meta-Sel: Efficient Demonstration Selection for In-Context Learning via Supervised Meta-Learning12 Feb 2026
- 2026Large Language Models Can Take False First Steps at Inference-time Planning3 Feb 2026
- 2026MicLog: Towards Accurate and Efficient LLM-based Log Parsing via Progressive Meta In-Context Learning11 Jan 2026
- 2026KASER: Knowledge-Aligned Student Error Simulator for Open-Ended Coding Tasks10 Jan 2026
- 2025Fine-Tuned In-Context Learners for Efficient Adaptation22 Dec 2025
12 newest of 131 All 131 (JSON)