CoChat

Dual Debiasing for Noisy In-Context Learning for Text Generation

Open access
Liang, Siqi, Ahn, Sumyeong, Dhillon, Paramveer, Zhou, Jiayu · 2025 · Findings of the Association for Computational Linguistics: ACL 2025

The DOI matches its Crossref record; 24 of the 24 references it cites were found in a registry or an index; none of the 26 sources its claims cite is checked for support yet.

Abstract

In-context learning (ICL) relies heavily on high-quality demonstrations drawn from large annotated corpora. Existing approaches detect noisy annotations by ranking local perplexities, presuming that noisy samples yield higher perplexities than their clean counterparts. However, this assumption breaks down when the noise ratio is high and many demonstrations are flawed.We re-examine the perplexity-based paradigm for text generation under noisy annotations, highlighting two sources of bias in perplexity: the annotation itself and the domain-specific knowledge inherent in large language models (LLMs). To overcome these biases, we introduce a dual-debiasing framework that uses synthesized neighbors to explicitly correct perplexity estimates, yielding a robust Sample Cleanliness Score . This metric uncovers absolute sample cleanliness regardless of the overall corpus noise level.Extensive experiments demonstrate our method’s superior noise-detection capabilities and show that its final ICL performance is comparable to that of a fully clean demonstration corpus. Moreover, our approach remains robust even when noise ratios are extremely high.

Overview

CoChat Summary

TL;DR

The paper proposes a dual-debiasing framework for noisy in-context learning in text generation, correcting intrinsic annotation bias and extrinsic domain-knowledge bias in per-token NLL to compute a Sample Cleanliness Score. Across four datasets and noise ratios up to 0.8, it detects noisy demonstrations and improves ICL performance, often approaching clean-corpus performance.

Key findings

  • The proposed Sample Cleanliness Score separates clean and noisy demonstrations where naive per-token NLL overlaps heavily; on the noisy NQ training set, larger scores indicate more likely clean samples.
  • On SciQ with 0.8 irrelevant noise and the TopK retriever, the method improves over naive ICL by 37.94; under the same setting with relevant noise, it improves by 26.49.
  • The method is robust to the metric LLM: using GPT-Neo-1.3B, Gemma-2b, Mistral-7B-v0.1, or Llama-2-7B gives similar ICL performance at noise ratios 0.4 and 0.6; on NQ with 0.4 relevant noise, noise-detection AUC improvements are +0.2157 for GPT-Neo-1.3B, +0.1403 for Gemma-2B, +0.1179 for Mistral-7B-v0.1, and +0.1476 for Llama-2-7B.
  • Performance remains consistent for threshold γ ∈ [0.4, 0.9] under noise ratio 0.6 with TopK, and is insensitive to the number of neighbors; defaults are γ = 0.5 and N_neighbor = 50.

Methods

  • The metric starts from per-token NLL L(y|x), applies intrinsic debiasing by subtracting L(y), then applies neighbor-based extrinsic debiasing: for each demonstration, neighbors N_DISC are built by pairing the query x with annotations sampled from a corpus C, bounded by edit-distance radius η = max{T, T_max}; the Sample Cleanliness Score is I = L_de-int(y|x) / Φ((x,y)), where Φ is the empirical mean L_de-int over neighbors.
  • The pipeline fits a 2-component Gaussian Mixture Model to the scores {I_i}, computes each sample’s noisy posterior, thresholds at γ = 0.5 to split clean/noisy subsets, removes the noisy subset, and runs standard ICL retrieval/inference on the clean subset; baselines are Naive ICL, Random delete, and LPR, with Random, TopK, and DPP retrievers.
  • Experiments use NQ (10,000 train / 500 test), WebQ (1,261 / 1,213), SciQ (6,059 / 580), and SQuAD (20,000 / 1,000), with relevant and irrelevant noise ratios from 0.2 to 0.8; Llama-2-7B is the default inference and metric model, with GPT-Neo-1.3B, Gemma-2b, and Mistral-7B-v0.1 used for analysis.

Limitations

  • The paper states that effectiveness relies heavily on the quality and diversity of neighbor samples; in domains with limited data or highly specialized knowledge, generating appropriate neighbors may be challenging and can affect Sample Cleanliness Score accuracy, and applicability to classification or structured prediction remains unexplored.
  • The paper also notes risks: computational cost of neighbor generation and metric calculation increases linearly with the number of demonstration samples, there may be a practical upper limit to dataset size, and the method might discard valid but unusual demonstrations that appear noisy due to their uniqueness, especially in specialized domains.
  • Evident from the text’s failure-case analysis: on WebQ with 40% relevant noise, annotation length significantly impacts detection accuracy; failed noisy-as-clean cases had 36% annotations longer than 7 tokens, versus 14% for successfully detected clean samples and 12% for successfully detected noisy samples.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

Crossref · 10.18653/v1/2025.findings-acl.665

Cites

24 of 24 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Figures

Figure 1 Overview of noisy ICL and the proposed method: When noisy information is present in an ICL dataset, it can lead to performance degradation (Top case). However, if the noisy information is sufficiently removed, performance can be improved (Bottom case). In this paper, we go beyond the conventional perplexity score-based approach and propose a Sample Cleanliness Score, which is based on intrinsic/extrinsic debiased loss.
Figure 1 Overview of noisy ICL and the proposed method: When noisy information is present in an ICL dataset, it can lead to performance degradation (Top case). However, if the noisy information is sufficiently removed, performance can be improved (Bottom case). In this paper, we go beyond the conventional perplexity score-based approach and propose a Sample Cleanliness Score, which is based on intrinsic/extrinsic debiased loss.CC-BY · From the PDF
Figure 2 Distribution of L de-int for both clean and noisy versions of demonstrations for different topics. The L de-int values are calculated using Gemma-2b and GPT-Neo-2.7B .
Figure 2 Distribution of L de-int for both clean and noisy versions of demonstrations for different topics. The L de-int values are calculated using Gemma-2b and GPT-Neo-2.7B .CC-BY · From the PDF
Figure 3 Sample Cleanliness Score distributions on noisy NQ training set. A larger value indicates that it is more likely to be a clean sample. It shows the pattern of distinguishability between noisy and clean samples.
Figure 3 Sample Cleanliness Score distributions on noisy NQ training set. A larger value indicates that it is more likely to be a clean sample. It shows the pattern of distinguishability between noisy and clean samples.CC-BY · From the PDF
Figure 4 Sensitivity on neighbor number N neighbor under noise ratio 0 . 6 and TopK retriever. Left: SCIQ; right: NQ. The 'irrelevant'/'relevant' indicates the performance of our method under noise, and 'clean' indicates the performance of naive baseline under clean.
Figure 4 Sensitivity on neighbor number N neighbor under noise ratio 0 . 6 and TopK retriever. Left: SCIQ; right: NQ. The 'irrelevant'/'relevant' indicates the performance of our method under noise, and 'clean' indicates the performance of naive baseline under clean.CC-BY · From the PDF
Figure 5 Sensitivity of γ under noise ratio 0 . 6 and TopK retriever. Left: SCIQ; right: NQ. The 'irrelevant'/'relevant' indicates the performance of our method under noised setting, and 'clean' indicates the performance of naive ICL baseline under clean setting.
Figure 5 Sensitivity of γ under noise ratio 0 . 6 and TopK retriever. Left: SCIQ; right: NQ. The 'irrelevant'/'relevant' indicates the performance of our method under noised setting, and 'clean' indicates the performance of naive ICL baseline under clean setting.CC-BY · From the PDF
Figure 7 Distribution of L ( y | x ) for both noisy and clean samples on NQ. Heavy overlapping between the distributions of noisy and clean samples.
Figure 7 Distribution of L ( y | x ) for both noisy and clean samples on NQ. Heavy overlapping between the distributions of noisy and clean samples.CC-BY · From the PDF
Figure 6 Performance of our method under setting of noise ratio 0 . 6 using different number of neighbors.
Figure 6 Performance of our method under setting of noise ratio 0 . 6 using different number of neighbors.CC-BY · From the PDF
Figure 8 Comparison between using C in and C out on NQ under noise ratio 0 . 6 . Left: irrelevant noise; Right: relevant noise.
Figure 8 Comparison between using C in and C out on NQ under noise ratio 0 . 6 . Left: irrelevant noise; Right: relevant noise.CC-BY · From the PDF
Figure 9 Comparison between using C in and C out on SCIQ under noise ratio 0 . 6 . Left: irrelevant noise; Right: relevant noise.
Figure 9 Comparison between using C in and C out on SCIQ under noise ratio 0 . 6 . Left: irrelevant noise; Right: relevant noise.CC-BY · From the PDF
Figure 10 Annotation sequence length distribution for clean/noisy samples that our method failed/successfully detected under WebQ with 40% relevant noise using Llama-2-7B .
Figure 10 Annotation sequence length distribution for clean/noisy samples that our method failed/successfully detected under WebQ with 40% relevant noise using Llama-2-7B .CC-BY · From the PDF

Verification

Claims the paper makes

0 Valid · 1 Not valid · 15 Not checked · 59 Own results and interpretations

33 more claims

Create a free account to see all 75 claims and to verify the 20 references still open.

See all claims — free account
  • It may state two separate claims as one. 20
  • Probably not a substantial claim. 16
  • Borderline: one of the tests for a substantial claim is unclear. 1
  • The quote only partly states this claim. 4

Create a free account to see these claims.

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

1 of 1

Text addressed to AI reviewers

Instructions in the paper written for an AI that reads it, such as “give a positive review”. Major when the PDF hides them: white text, text set to invisible, transparent text, text too small to read, or text outside the page.

1 of 1

Citations

Cites

Show all 24 references

Research works printed but not linked: 4

  1. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in neural information processing systems , 33:1877-1901.
  2. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. 2019. Language models are unsupervised multitask learners. OpenAI blog , 1(8):9.
  3. Jiacheng Ye, Zhiyong Wu, Jiangtao Feng, Tao Yu, and Lingpeng Kong. 2023. Compositional exemplars for in-context learning. In International Conference on Machine Learning , pages 39818-39833. PMLR.
  4. Zihao Zhao, Eric Wallace, Shi Feng, Dan Klein, and Sameer Singh. 2021. Calibrate before use: Improving few-shot performance of language models. In International conference on machine learning , pages 12697-12706. PMLR.

Cited by

See all 2

Metadata

Authors
Liang, S., Ahn, S., Dhillon, P., & Zhou, J.
Affiliations
University of Michigan (US)
Corresponding author
Zhou, Jiayu
Venue
Findings of the Association for Computational Linguistics: ACL 2025
Published
2025
Volume
2025
Pages
12855-12868
OpenAlex
W4412888307
Cited by
2
References
24
Citations by year
2026: 1 · 2025: 1
FWCI
0.33
Type
conference paper
Language
en
Open access
Licence
cc-by
Locations
  • Findings of the Association for Computational Linguistics: ACL (Findings of ACL) (publishedVersion, cc-by)
  • PubMed (publishedVersion)
  • Europe PMC (PubMed Central) (acceptedVersion)
  • PubMed Central (acceptedVersion)
Funders
  • National Science Foundation (2212174)
  • National Institute on Aging (RF1AG072449, R01AG072449)
  • National Institute of General Medical Sciences (R01GM145700)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
  • Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
Keywords
in-context learning, noisy annotations, text generation, large language models

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

A language model drew the claims from the paper on 2026-11-25, under version 3 of the claim definition (model deepseek-v4.1-flash, prompt extract-v3).

A second model labelled each claim on 2026-11-25 (model jev-1.13-20260917, definition revision gold-guideline-v0.2).

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: Dual Debiasing for Noisy In-Context Learning for Text Generation. https://app.cochat.ai/papers/10.18653/v1/2025.findings-acl.665
The paper
Liang, S., Ahn, S., Dhillon, P., & Zhou, J. (2025). Dual Debiasing for Noisy In-Context Learning for Text Generation. Findings of the Association for Computational Linguistics: ACL 2025. https://doi.org/10.18653/v1/2025.findings-acl.665

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.