paper-with-me

홈 › Papers

Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?

2022-02-25 · Sewon Min, Xinxi Lyu, Ari Holtzman, Mikel Artetxe, Mike Lewis, Hannaneh Hajishirzi, Luke Zettlemoyer

Large language models (LMs) are able to in-context learn -- perform a new task via inference alone by conditioning on a few input-label pairs (demonstrations) and making predictions for new inputs. However, there has been little understanding of how the model learns and which aspects of the demonstrations contribute to end task performance. In this paper, we show that ground truth demonstrations are in fact not required -- randomly replacing labels in the demonstrations barely hurts performance on a range of classification and multi-choce tasks, consistently over 12 different models including GPT-3. Instead, we find that other aspects of the demonstrations are the key drivers of end task performance, including the fact that they provide a few examples of (1) the label space, (2) the distribution of the input text, and (3) the overall format of the sequence. Together, our analysis provides a new way of understanding how and why in-context learning works, while opening up new questions about how much can be learned from large language models through inference alone.

📄 PDF Abstract BibTeX arXiv:2202.12837

Code (2)

alrope123/rethinking-demonstrations 공식 구현 pytorch
tml-epfl/icl-alignment

Tasks

In-Context Learning

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
15 Ways to Contact How can i speak to someone at Delta Airlines 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Adam 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Multi-Head Attention 설명 없음

Similar Papers 제목 키워드 기반

When Correct Demonstrations Hurt: Rethinking the Role of Exemplars in In-Context Learning

2026-05-25 · Chenghao Qiu, Chunli Peng, Yufeng Yang, Kuan-Hao Huang 외 arxiv

In-context learning (ICL) is often motivated by the intuition that demonstrations help because they provide correct input-output examples. However, we reveal a counterintuitive phenomenon: correctness does not guarantee …

Logical Reasoning

What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learning

2023-05-16 · Jane Pan, Tianyu Gao, Howard Chen, Danqi Chen

Large language models (LLMs) exploit in-context learning (ICL) to solve tasks with only a few demonstrations, but its mechanisms are not yet well-understood. Some works suggest that LLMs only recall already learned conce…

In-Context Learning

Rethinking Label Consistency of In-Context Learning: An Implicit Transductive Label Propagation Perspective

2025-12-13 · Haoyang Chen, Richong Zhang, Junfan Chen arxiv

Large language models (LLMs) perform in-context learning (ICL) with minimal supervised examples, which benefits various natural language processing (NLP) tasks. One of the critical research focus is the selection of prom…

Rethinking and Recomputing the Value of ML Models

2022-09-30 · Burcu Sayin, Fabio Casati, Andrea Passerini, Jie Yang 외

In this paper, we argue that the way we have been training and evaluating ML models has largely forgotten the fact that they are applied in an organization or societal context as they provide value to people. We show tha…

What Do Safety-Aligned LLMs Learn From Mixed Compliance Demonstrations?

2026-06-18 · Sihui Dai, Mann Patel arxiv

Prior work has shown that in-context demonstrations can jailbreak language models, but it remains unclear how models interpret different types of compliance demonstrations. We study this by mixing benign compliance demon…