Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusions

Dingzirui Wang, Xuanliang Zhang, Keyan Xu, Qingfu Zhu, Wanxiang Che, Yang Deng


Abstract
The effectiveness of in-context learning (ICL) varies significantly across models and tasks, posing challenges for practitioners to determine when ICL reliably improves performance. Current evaluation approaches, reliant on performance changes 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: (i) it captures loss changes even when outputs are incorrect; (ii) its formulation attributes ICL failures to weak contextual alignment or strong output calibration; (iii) it minimizes reliance on labeled data via synthetic evaluation. Experiments show that LCS can better reflect ICL effectiveness when performance change fails, demonstrating its effectiveness.
Anthology ID:
2026.tacl-1.112
Volume:
Transactions of the Association for Computational Linguistics, Volume 14
Month:
Year:
2026
Address:
Cambridge, MA
Venue:
TACL
SIG:
Publisher:
MIT Press
Note:
Pages:
2399–2424
Language:
URL:
https://aclanthology.org/2026.tacl-1.112/
DOI:
10.1162/tacl.a.809
Bibkey:
Cite (ACL):
Dingzirui Wang, Xuanliang Zhang, Keyan Xu, Qingfu Zhu, Wanxiang Che, and Yang Deng. 2026. Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusions. Transactions of the Association for Computational Linguistics, 14:2399–2424.
Cite (Informal):
Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusions (Wang et al., TACL 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.tacl-1.112.pdf