Rectifying Demonstration Shortcut in In-Context Learning

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Jang, Joonwon, Jang, Sanghwan, Kweon, Wonbin, Jeon, Minjin, Yu, Hwanjo
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916204207144960
author Jang, Joonwon
Jang, Sanghwan
Kweon, Wonbin
Jeon, Minjin
Yu, Hwanjo
author_facet Jang, Joonwon
Jang, Sanghwan
Kweon, Wonbin
Jeon, Minjin
Yu, Hwanjo
contents Large language models (LLMs) are able to solve various tasks with only a few demonstrations utilizing their in-context learning (ICL) abilities. However, LLMs often rely on their pre-trained semantic priors of demonstrations rather than on the input-label relationships to proceed with ICL prediction. In this work, we term this phenomenon as the 'Demonstration Shortcut'. While previous works have primarily focused on improving ICL prediction results for predefined tasks, we aim to rectify the Demonstration Shortcut, thereby enabling the LLM to effectively learn new input-label relationships from demonstrations. To achieve this, we introduce In-Context Calibration, a demonstration-aware calibration method. We evaluate the effectiveness of the proposed method in two settings: (1) the Original ICL Task using the standard label space and (2) the Task Learning setting, where the label space is replaced with semantically unrelated tokens. In both settings, In-Context Calibration demonstrates substantial improvements, with results generalized across three LLM families (OPT, GPT, and Llama2) under various configurations.
format Preprint
id arxiv_https___arxiv_org_abs_2403_09488
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Rectifying Demonstration Shortcut in In-Context Learning
Jang, Joonwon
Jang, Sanghwan
Kweon, Wonbin
Jeon, Minjin
Yu, Hwanjo
Computation and Language
Artificial Intelligence
Large language models (LLMs) are able to solve various tasks with only a few demonstrations utilizing their in-context learning (ICL) abilities. However, LLMs often rely on their pre-trained semantic priors of demonstrations rather than on the input-label relationships to proceed with ICL prediction. In this work, we term this phenomenon as the 'Demonstration Shortcut'. While previous works have primarily focused on improving ICL prediction results for predefined tasks, we aim to rectify the Demonstration Shortcut, thereby enabling the LLM to effectively learn new input-label relationships from demonstrations. To achieve this, we introduce In-Context Calibration, a demonstration-aware calibration method. We evaluate the effectiveness of the proposed method in two settings: (1) the Original ICL Task using the standard label space and (2) the Task Learning setting, where the label space is replaced with semantically unrelated tokens. In both settings, In-Context Calibration demonstrates substantial improvements, with results generalized across three LLM families (OPT, GPT, and Llama2) under various configurations.
title Rectifying Demonstration Shortcut in In-Context Learning
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2403.09488