Probing the Decision Boundaries of In-context Learning in Large Language Models
Not on the map. Why?
Abstract (arXiv)
In-context learning is a key paradigm in large language models (LLMs) that enables them to generalize to new tasks and domains by simply prompting these models with a few exemplars without explicit parameter updates. Many attempts have been made to understand in-context learning in LLMs as a function of model scale, pretraining data, and other factors. In this work, we propose a new mechanism to probe and understand in-context learning from the lens of decision boundaries for in-context binary classification. Decision boundaries are straightforward to visualize and provide important information about the qualitative behavior of the inductive biases of standard classifiers. To our surprise, we find that the decision boundaries learned by current LLMs in simple binary classification tasks are often irregular and non-smooth, regardless of linear separability in the underlying task. This paper investigates the factors influencing these decision boundaries and explores methods to enhance their generalizability. We assess various approaches, including training-free and fine-tuning methods for LLMs, the impact of model architecture, and the effectiveness of active prompting techniques for smoothing decision boundaries in a data-efficient manner. Our findings provide a deeper understanding of in-context learning dynamics and offer practical improvements for enhancing robustness and generalizability of in-context learning.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 35 of its 43 references that are in the map. First posted on arXiv 17 Jun 2024.
Builds on
35 of 43 references.
References · 35
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
- 2023Mistral 7Bcited by 3,065
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
- 2022Transformers learn in-context by gradient descentcited by 714
23 more
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2021MetaICL: Learning to Learn In Contextcited by 450
- 2023Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruningcited by 408
- 2023Larger language models do in-context learning differentlycited by 386
- 2021Transformers Can Do Bayesian Inferencecited by 338
- 2023Trained Transformers Learn Linear Models In-Contextcited by 331
- 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
- 2013Good Debt or Bad Debt: Detecting Semantic Orientations in Economic Textscited by 310
- 2018SentEval: An Evaluation Toolkit for Universal Sentence Representationscited by 294
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
- 2022Can language models learn from explanations in context?cited by 248
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
- 2024Many-Shot In-Context Learningcited by 203
- 2022Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modelingcited by 126
- 2023The Learnability of In-Context Learningcited by 126
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
- 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 93
- 2024Premise Order Matters in Reasoning with Large Language Modelscited by 71
- 2023Group Preference Optimization: Few-Shot Alignment of Large Language Modelscited by 61
- 2023In-Context Learning with Many Demonstration Examplescited by 39
- 2023ExPT: Synthetic Pretraining for Few-Shot Experimental Designcited by 22
Built on by
Citing papers per year: 2024: 4; 2025: 8; 2026: 5.
17 papers.
Sort:
By area:
- 2024The Surprising Effectiveness of Test-Time Training for Few-Shot Learningcited by 88
- 2024Vector-ICL: In-context Learning with Continuous Vector Representationscited by 13
- 2024Report Cards: Qualitative Evaluation of Language Models Using Natural Language Summariescited by 6
- 2024Tell Me What You Don't Know: Enhancing Refusal Capabilities of Role-Playing Agents via Representation Space Analysis and Editingcited by 3
- 2025Probing Neural Combinatorial Optimization Modelscited by 3
- 2025A2LC: Active and Automated Label Correction for Semantic Segmentationcited by 2
- 2025Bounds of Chain-of-Thought Robustness: Reasoning Steps, Embed Norms, and Beyondcited by 2
- 2025Softmax ≥ Linear: Transformers may learn to classify in-context by kernel gradient descentcited by 2
- 2025MiST: Understanding the Role of Mid-Stage Scientific Training in Developing Chemical Reasoning Modelscited by 2
- 2025Multi-Layer Attention is the Amplifier of Demonstration Effectivenesscited by 1
- 2026Diffusion Large Language Models for Black-Box Optimizationcited by 1
- 2026In-context Pre-trained Time-Series Foundation Models adapt to Unseen Taskscited by 1
5 more
- 2026Large Language Models for Sequential Decision-Making: Improving In-Context Learning via Supervised Fine-Tuningcited by 1
- 2025Optimal Dynamic Regret by Transformers for Non-Stationary Reinforcement Learningcited by 0
- 2025Test-Time Warmup for Multimodal Large Language Modelscited by 0
- 2026Latent Knowledge as a Predictor of Fact Acquisition in Fine-Tuned Large Language Modelscited by 0
- 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learningcited by 0
- 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learning29 Sep 2026
- 2026Large Language Models for Sequential Decision-Making: Improving In-Context Learning via Supervised Fine-Tuning9 May 2026
- 2026In-context Pre-trained Time-Series Foundation Models adapt to Unseen Tasks23 Feb 2026
- 2026Latent Knowledge as a Predictor of Fact Acquisition in Fine-Tuned Large Language Models26 Jan 2026
- 2026Diffusion Large Language Models for Black-Box Optimization20 Jan 2026
- 2025MiST: Understanding the Role of Mid-Stage Scientific Training in Developing Chemical Reasoning Models24 Dec 2025
- 2025Probing Neural Combinatorial Optimization Models25 Oct 2025
- 2025Softmax ≥ Linear: Transformers may learn to classify in-context by kernel gradient descent12 Oct 2025
- 2025Bounds of Chain-of-Thought Robustness: Reasoning Steps, Embed Norms, and Beyond25 Sep 2025
- 2025Test-Time Warmup for Multimodal Large Language Models12 Sep 2025
- 2025Optimal Dynamic Regret by Transformers for Non-Stationary Reinforcement Learning22 Aug 2025
- 2025Multi-Layer Attention is the Amplifier of Demonstration Effectiveness1 Aug 2025
5 more
- 2025A2LC: Active and Automated Label Correction for Semantic Segmentation13 Jun 2025
- 2024The Surprising Effectiveness of Test-Time Training for Few-Shot Learning11 Nov 2024
- 2024Vector-ICL: In-context Learning with Continuous Vector Representations8 Oct 2024
- 2024Tell Me What You Don't Know: Enhancing Refusal Capabilities of Role-Playing Agents via Representation Space Analysis and Editing25 Sep 2024
- 2024Report Cards: Qualitative Evaluation of Language Models Using Natural Language Summaries1 Sep 2024
- 2025Test-Time Warmup for Multimodal Large Language Modelscited by 0
- 2025Test-Time Warmup for Multimodal Large Language Models12 Sep 2025
- 2024The Surprising Effectiveness of Test-Time Training for Few-Shot Learningcited by 88
- 2024Vector-ICL: In-context Learning with Continuous Vector Representationscited by 13
- 2024Report Cards: Qualitative Evaluation of Language Models Using Natural Language Summariescited by 6
- 2024Tell Me What You Don't Know: Enhancing Refusal Capabilities of Role-Playing Agents via Representation Space Analysis and Editingcited by 3
- 2025Probing Neural Combinatorial Optimization Modelscited by 3
- 2025A2LC: Active and Automated Label Correction for Semantic Segmentationcited by 2
- 2025Softmax ≥ Linear: Transformers may learn to classify in-context by kernel gradient descentcited by 2
- 2025Multi-Layer Attention is the Amplifier of Demonstration Effectivenesscited by 1
- 2026Diffusion Large Language Models for Black-Box Optimizationcited by 1
- 2026In-context Pre-trained Time-Series Foundation Models adapt to Unseen Taskscited by 1
- 2026Large Language Models for Sequential Decision-Making: Improving In-Context Learning via Supervised Fine-Tuningcited by 1
- 2025Optimal Dynamic Regret by Transformers for Non-Stationary Reinforcement Learningcited by 0
12 most cited of 14 All 14 (JSON)
- 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learning29 Sep 2026
- 2026Large Language Models for Sequential Decision-Making: Improving In-Context Learning via Supervised Fine-Tuning9 May 2026
- 2026In-context Pre-trained Time-Series Foundation Models adapt to Unseen Tasks23 Feb 2026
- 2026Latent Knowledge as a Predictor of Fact Acquisition in Fine-Tuned Large Language Models26 Jan 2026
- 2026Diffusion Large Language Models for Black-Box Optimization20 Jan 2026
- 2025Probing Neural Combinatorial Optimization Models25 Oct 2025
- 2025Softmax ≥ Linear: Transformers may learn to classify in-context by kernel gradient descent12 Oct 2025
- 2025Optimal Dynamic Regret by Transformers for Non-Stationary Reinforcement Learning22 Aug 2025
- 2025Multi-Layer Attention is the Amplifier of Demonstration Effectiveness1 Aug 2025
- 2025A2LC: Active and Automated Label Correction for Semantic Segmentation13 Jun 2025
- 2024The Surprising Effectiveness of Test-Time Training for Few-Shot Learning11 Nov 2024
- 2024Vector-ICL: In-context Learning with Continuous Vector Representations8 Oct 2024
12 newest of 14 All 14 (JSON)