mlsanityData to 7 Oct 2026

Probing the Decision Boundaries of In-context Learning in Large Language Models

arXiv 2406.11233 ↗First posted 17 Jun 2024cs.LG cs.AI cs.CLcited by 17

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2020Scaling Laws for Neural Language Modelscited by 6,411
  5. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
  6. 2023Mistral 7Bcited by 3,065
  7. 2022Emergent Abilities of Large Language Modelscited by 2,483
  8. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  9. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
  10. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  11. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
  12. 2022Transformers learn in-context by gradient descentcited by 714
23 more
  1. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  2. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  3. 2021MetaICL: Learning to Learn In Contextcited by 450
  4. 2023Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruningcited by 408
  5. 2023Larger language models do in-context learning differentlycited by 386
  6. 2021Transformers Can Do Bayesian Inferencecited by 338
  7. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  8. 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
  9. 2013Good Debt or Bad Debt: Detecting Semantic Orientations in Economic Textscited by 310
  10. 2018SentEval: An Evaluation Toolkit for Universal Sentence Representationscited by 294
  11. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
  12. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
  13. 2022Can language models learn from explanations in context?cited by 248
  14. 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
  15. 2024Many-Shot In-Context Learningcited by 203
  16. 2022Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modelingcited by 126
  17. 2023The Learnability of In-Context Learningcited by 126
  18. 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
  19. 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 93
  20. 2024Premise Order Matters in Reasoning with Large Language Modelscited by 71
  21. 2023Group Preference Optimization: Few-Shot Alignment of Large Language Modelscited by 61
  22. 2023In-Context Learning with Many Demonstration Examplescited by 39
  23. 2023ExPT: Synthetic Pretraining for Few-Shot Experimental Designcited by 22

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 8; 2026: 5.

17 papers.

Sort:

By area:

  1. 2024The Surprising Effectiveness of Test-Time Training for Few-Shot Learningcited by 88
  2. 2024Vector-ICL: In-context Learning with Continuous Vector Representationscited by 13
  3. 2024Report Cards: Qualitative Evaluation of Language Models Using Natural Language Summariescited by 6
  4. 2024Tell Me What You Don't Know: Enhancing Refusal Capabilities of Role-Playing Agents via Representation Space Analysis and Editingcited by 3
  5. 2025Probing Neural Combinatorial Optimization Modelscited by 3
  6. 2025A2LC: Active and Automated Label Correction for Semantic Segmentationcited by 2
  7. 2025Bounds of Chain-of-Thought Robustness: Reasoning Steps, Embed Norms, and Beyondcited by 2
  8. 2025Softmax ≥ Linear: Transformers may learn to classify in-context by kernel gradient descentcited by 2
  9. 2025MiST: Understanding the Role of Mid-Stage Scientific Training in Developing Chemical Reasoning Modelscited by 2
  10. 2025Multi-Layer Attention is the Amplifier of Demonstration Effectivenesscited by 1
  11. 2026Diffusion Large Language Models for Black-Box Optimizationcited by 1
  12. 2026In-context Pre-trained Time-Series Foundation Models adapt to Unseen Taskscited by 1
5 more
  1. 2026Large Language Models for Sequential Decision-Making: Improving In-Context Learning via Supervised Fine-Tuningcited by 1
  2. 2025Optimal Dynamic Regret by Transformers for Non-Stationary Reinforcement Learningcited by 0
  3. 2025Test-Time Warmup for Multimodal Large Language Modelscited by 0
  4. 2026Latent Knowledge as a Predictor of Fact Acquisition in Fine-Tuned Large Language Modelscited by 0
  5. 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learningcited by 0