Enhancing Input-Label Mapping in In-Context Learning with Contrastive Decoding

Large language models (LLMs) excel at a range of tasks through in-context learning (ICL), where only a few task examples guide their predictions.However, prior research highlights that LLMs often overlook input-label mapping information in ICL, relying more on their pre-trained knowledge.To address this issue, we introduce In-Context Contrastive Decoding (ICCD), a novel method that emphasizes input-label mapping by contrasting the output distributions between positive and negative incontext examples.Experiments on 7 natural language understanding (NLU) tasks show that our ICCD method brings consistent and significant improvement (up to +1.8 improvement on average) upon 6 different scales of LLMs without requiring additional training.Our approach is versatile, enhancing performance with various demonstration selection methods, demonstrating its broad applicability and effectiveness.The code and scripts are released at https: //github.com/Romainpkq/CD_ICL.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-short.77
Primary Topic
Text and Document Classification Technologies
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Enhancing Input-Label Mapping in In-Context Learning with Contrastive Decoding

Yancheng Yuan, Dacheng Tao, Keqin Peng, Meng Fang et al.
Text and Document Classification Technologies
article

Enhancing Input-Label Mapping in In-Context Learning with Contrastive Decoding

Yancheng Yuan, Dacheng Tao, Keqin Peng, Meng Fang, Liang Ding, Yuanxin Ouyang
article en

Abstract

Large language models (LLMs) excel at a range of tasks through in-context learning (ICL), where only a few task examples guide their predictions.However, prior research highlights that LLMs often overlook input-label mapping information in ICL, relying more on their pre-trained knowledge.To address this issue, we introduce In-Context Contrastive Decoding (ICCD), a novel method that emphasizes input-label mapping by contrasting the output distributions between positive and negative incontext examples.Experiments on 7 natural language understanding (NLU) tasks show that our ICCD method brings consistent and significant improvement (up to +1.8 improvement on average) upon 6 different scales of LLMs without requiring additional training.Our approach is versatile, enhancing performance with various demonstration selection methods, demonstrating its broad applicability and effectiveness.The code and scripts are released at https: //github.com/Romainpkq/CD_ICL.

National Research Foundation, National Research Foundation Singapore, National Natural Science Foundation of China
Openalex Percentile: Top 90%
Text and Document Classification Technologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Enhancing Input-Label Mapping in In-Context Learning with Contrastive Decoding — Yancheng Yuan, Dacheng Tao, et al. · (2025) | TGRS Research Map | TGRS