Saved in:
Bibliographic Details
Main Authors: Wang, Dingzriui, Zhang, Xuanliang, Xu, Keyan, Zhu, Qingfu, Che, Wanxiang, Deng, Yang
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2506.23146
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911052471468032
author Wang, Dingzriui
Zhang, Xuanliang
Xu, Keyan
Zhu, Qingfu
Che, Wanxiang
Deng, Yang
author_facet Wang, Dingzriui
Zhang, Xuanliang
Xu, Keyan
Zhu, Qingfu
Che, Wanxiang
Deng, Yang
contents In-context learning (ICL) has emerged as an effective approach to enhance the performance of large language models (LLMs). However, its effectiveness varies significantly across models and tasks, posing challenges for practitioners to determine when ICL reliably improves performance. Current evaluation approaches, reliant on performance change after applying ICL, suffer from low reliability, poor attribution, and impracticality in data-insufficient scenarios. We propose the Learning-to-Context Slope (LCS), a novel metric that quantifies ICL effectiveness by modeling the slope between learning gain (loss decrease from demonstrations) and contextual relevance (demonstration-input relevance). LCS addresses key limitations of performance-based metrics: (1) it captures continuous loss changes even when outputs are incorrect, improving reliability; (2) its formulation attributes ICL failures to weak contextual alignment (inability to adapt inputs to demonstrations) or strong output calibration (self-verification of correctness); and (3) it minimizes reliance on labeled data via synthetic evaluation. Extensive experiments demonstrate that LCS strongly correlates with performance improvements in labeled settings and reliably reflects true effectiveness in biased or data-scarce scenarios. Further analysis reveals actionable thresholds for LCS and identifies model capabilities critical to ICL success.
format Preprint
id arxiv_https___arxiv_org_abs_2506_23146
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusions
Wang, Dingzriui
Zhang, Xuanliang
Xu, Keyan
Zhu, Qingfu
Che, Wanxiang
Deng, Yang
Computation and Language
In-context learning (ICL) has emerged as an effective approach to enhance the performance of large language models (LLMs). However, its effectiveness varies significantly across models and tasks, posing challenges for practitioners to determine when ICL reliably improves performance. Current evaluation approaches, reliant on performance change after applying ICL, suffer from low reliability, poor attribution, and impracticality in data-insufficient scenarios. We propose the Learning-to-Context Slope (LCS), a novel metric that quantifies ICL effectiveness by modeling the slope between learning gain (loss decrease from demonstrations) and contextual relevance (demonstration-input relevance). LCS addresses key limitations of performance-based metrics: (1) it captures continuous loss changes even when outputs are incorrect, improving reliability; (2) its formulation attributes ICL failures to weak contextual alignment (inability to adapt inputs to demonstrations) or strong output calibration (self-verification of correctness); and (3) it minimizes reliance on labeled data via synthetic evaluation. Extensive experiments demonstrate that LCS strongly correlates with performance improvements in labeled settings and reliably reflects true effectiveness in biased or data-scarce scenarios. Further analysis reveals actionable thresholds for LCS and identifies model capabilities critical to ICL success.
title Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusions
topic Computation and Language
url https://arxiv.org/abs/2506.23146