{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T17:56:05Z","timestamp":1790963765849,"version":"4.1.0"},"reference-count":75,"publisher":"MIT Press","license":[{"start":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T00:00:00Z","timestamp":1790899200000},"content-version":"vor","delay-in-days":274,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["direct.mit.edu"],"crossmark-restriction":true},"short-container-title":[],"published-print":{"date-parts":[[2026,9,28]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>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.<\/jats:p>","DOI":"10.1162\/tacl.a.809","type":"journal-article","created":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T17:52:11Z","timestamp":1790963531000},"page":"2399-2424","update-policy":"https:\/\/doi.org\/10.1162\/mitpressjournals.corrections.policy","source":"Crossref","is-referenced-by-count":0,"title":["Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusions"],"prefix":"10.1162","volume":"14","author":[{"given":"Dingzirui","family":"Wang","sequence":"first","affiliation":[{"name":"Harbin Institute of Technology, dzrwang@ir.hit.edu.cn"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Xuanliang","family":"Zhang","sequence":"additional","affiliation":[{"name":"Harbin Institute of Technology, xuanliangzhang@ir.hit.edu.cn"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Keyan","family":"Xu","sequence":"additional","affiliation":[{"name":"Harbin Institute of Technology, kyxu@ir.hit.edu.cn"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Qingfu","family":"Zhu","sequence":"additional","affiliation":[{"name":"Harbin Institute of Technology, qfzhu@ir.hit.edu.cn"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Wanxiang","family":"Che","sequence":"additional","affiliation":[{"name":"Harbin Institute of Technology, car@ir.hit.edu.cn"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yang","family":"Deng","sequence":"additional","affiliation":[{"name":"Singapore Management University, ydeng@smu.edu.sg"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"281","published-online":{"date-parts":[[2026,9,28]]},"reference":[{"key":"2026100213520762000_bib1","doi-asserted-by":"crossref","DOI":"10.52202\/079017-2447","article-title":"Many-shot in-context learning","volume-title":"ICML 2024 Workshop on In-Context Learning","author":"Agarwal","year":"2024"},{"key":"2026100213520762000_bib2","doi-asserted-by":"crossref","first-page":"381","DOI":"10.18653\/v1\/2025.acl-short.30","article-title":"A little human data goes a long way","volume-title":"Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)","author":"Ashok","year":"2025"},{"key":"2026100213520762000_bib3","volume-title":"Program synthesis with large language models","author":"Austin","year":"2021"},{"key":"2026100213520762000_bib4","first-page":"1137","article-title":"A neural probabilistic language model","volume":"3","author":"Bengio","year":"2003","journal-title":"J. Mach. Learn. Res."},{"key":"2026100213520762000_bib5","first-page":"1877","article-title":"Language models are few-shot learners","volume-title":"Advances in Neural Information Processing Systems","author":"Brown","year":"2020"},{"key":"2026100213520762000_bib6","doi-asserted-by":"crossref","first-page":"14174","DOI":"10.18653\/v1\/2023.findings-emnlp.944","article-title":"Selective demonstrations for cross-domain text-to-SQL","volume-title":"Findings of the Association for Computational Linguistics: EMNLP 2023","author":"Chang","year":"2023"},{"key":"2026100213520762000_bib7","volume-title":"Evaluating large language models trained on code","author":"Chen","year":"2021"},{"key":"2026100213520762000_bib8","doi-asserted-by":"crossref","first-page":"15651","DOI":"10.18653\/v1\/2023.emnlp-main.968","article-title":"Self-ICL: Zero-shot in-context learning with self-generated demonstrations","volume-title":"Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing","author":"Chen","year":"2023"},{"key":"2026100213520762000_bib9","article-title":"Program of thoughts prompting: Disentangling computation from reasoning for numerical reasoning tasks","volume-title":"Transactions on Machine Learning Research","author":"Chen","year":"2023"},{"key":"2026100213520762000_bib10","doi-asserted-by":"crossref","DOI":"10.18653\/v1\/2021.emnlp-main.300","article-title":"Finqa: A dataset of numerical reasoning over financial data","volume-title":"Proceedings of EMNLP 2021","author":"Chen","year":"2021"},{"key":"2026100213520762000_bib11","volume-title":"Training verifiers to solve math word problems","author":"Cobbe","year":"2021"},{"key":"2026100213520762000_bib12","volume-title":"Transformer-xl: Attentive language models beyond a fixed-length context","author":"Dai","year":"2019"},{"key":"2026100213520762000_bib13","volume-title":"Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning","author":"DeepSeek-AI","year":"2025"},{"key":"2026100213520762000_bib14","doi-asserted-by":"crossref","first-page":"1107","DOI":"10.18653\/v1\/2024.emnlp-main.64","article-title":"A survey on in-context learning","volume-title":"Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing","author":"Dong","year":"2024"},{"key":"2026100213520762000_bib15","doi-asserted-by":"crossref","DOI":"10.52202\/079017-2050","article-title":"The evolution of statistical induction heads: In-context learning markov chains","volume-title":"The Thirty-eighth Annual Conference on Neural Information Processing Systems","author":"Edelman","year":"2024"},{"key":"2026100213520762000_bib16","doi-asserted-by":"crossref","DOI":"10.52202\/079017-2050","article-title":"The evolution of statistical induction heads: In-context learning markov chains","volume-title":"The Thirty-eighth Annual Conference on Neural Information Processing Systems","author":"Edelman","year":"2024"},{"key":"2026100213520762000_bib17","volume-title":"The llama 3 herd of models","author":"Grattafiori","year":"2024"},{"key":"2026100213520762000_bib18","volume-title":"Efficacy of machinegenerated instructions","author":"Gulati","year":"2023"},{"key":"2026100213520762000_bib19","doi-asserted-by":"crossref","first-page":"14892","DOI":"10.18653\/v1\/2024.findings-acl.884","article-title":"What makes a good order of examples in in-context learning","volume-title":"Findings of the Association for Computational Linguistics: ACL 2024","author":"Guo","year":"2024"},{"key":"2026100213520762000_bib20","doi-asserted-by":"crossref","first-page":"12660","DOI":"10.18653\/v1\/2023.acl-long.708","article-title":"Understanding in-context learning via supportive pretraining data","volume-title":"Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)","author":"Han","year":"2023"},{"key":"2026100213520762000_bib21","volume-title":"Structured prompting: Scaling in-context learning to 1,000 examples","author":"Hao","year":"2022"},{"key":"2026100213520762000_bib22","doi-asserted-by":"crossref","first-page":"3829","DOI":"10.18653\/v1\/2024.findings-naacl.243","article-title":"Self-demos: Eliciting out-of-demonstration generalizability in large language models","volume-title":"Findings of the Association for Computational Linguistics: NAACL 2024","author":"He","year":"2024"},{"key":"2026100213520762000_bib23","article-title":"Measuring mathematical problem solving with the MATH dataset","volume-title":"Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2)","author":"Hendrycks","year":"2021"},{"key":"2026100213520762000_bib24","volume-title":"Explainable sentiment analysis with deepseek-r1: Performance, efficiency, and few-shot learning","author":"Huang","year":"2025"},{"key":"2026100213520762000_bib25","article-title":"Can generative AI solve your incontext learning problem? a martingale perspective","volume-title":"The Thirteenth International Conference on Learning Representations","author":"Jesson","year":"2025"},{"key":"2026100213520762000_bib26","doi-asserted-by":"crossref","first-page":"8894","DOI":"10.18653\/v1\/2025.findings-acl.465","article-title":"Sampling-based pseudo-likelihood for membership inference attacks","volume-title":"Findings of the Association for Computational Linguistics: ACL 2025","author":"Kaneko","year":"2025"},{"key":"2026100213520762000_bib27","article-title":"Self-generated in-context learning: Leveraging autoregressive language models as a demonstration generator","volume-title":"arXiv preprint arXiv:2206.08082","author":"Kim","year":"2022"},{"key":"2026100213520762000_bib28","article-title":"In-context learning learns label relationships but is not conventional learning","volume-title":"The Twelfth International Conference on Learning Representations","author":"Kossen","year":"2024"},{"key":"2026100213520762000_bib29","doi-asserted-by":"crossref","DOI":"10.1145\/3600006.3613165","article-title":"Efficient memory management for large language model serving with pagedattention","volume-title":"Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles","author":"Kwon","year":"2023"},{"key":"2026100213520762000_bib30","doi-asserted-by":"crossref","first-page":"537","DOI":"10.18653\/v1\/2022.findings-emnlp.38","article-title":"Can language models learn from explanations in context?","volume-title":"Findings of the Association for Computational Linguistics: EMNLP 2022","author":"Lampinen","year":"2022"},{"key":"2026100213520762000_bib31","doi-asserted-by":"crossref","first-page":"4569","DOI":"10.18653\/v1\/2023.emnlp-main.278","article-title":"Can large language models capture dissenting human voices?","volume-title":"Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing","author":"Lee","year":"2023"},{"key":"2026100213520762000_bib32","doi-asserted-by":"crossref","first-page":"1401","DOI":"10.18653\/v1\/2023.acl-long.78","article-title":"Diverse demonstrations improve in-context compositional generalization","volume-title":"Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)","author":"Levy","year":"2023"},{"key":"2026100213520762000_bib33","volume-title":"Llms can easily learn to reason from demonstrations structure, not content, is what matters!","author":"Li","year":"2025"},{"key":"2026100213520762000_bib34","doi-asserted-by":"crossref","first-page":"296","DOI":"10.18653\/v1\/2024.naacl-long.17","article-title":"Self-prompting large language models for zero-shot open-domain QA","volume-title":"Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)","author":"Li","year":"2024"},{"key":"2026100213520762000_bib35","doi-asserted-by":"crossref","first-page":"4644","DOI":"10.18653\/v1\/2023.acl-long.256","article-title":"Unified demonstration retriever for in-context learning","volume-title":"Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)","author":"Li","year":"2023"},{"key":"2026100213520762000_bib36","doi-asserted-by":"crossref","first-page":"8086","DOI":"10.18653\/v1\/2022.acl-long.556","article-title":"Fantastically ordered prompts and where to find them: Overcoming few-shot prompt order sensitivity","volume-title":"Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)","author":"Lu","year":"2022"},{"key":"2026100213520762000_bib37","volume-title":"Dr.icl: Demonstration-retrieved in-context learning","author":"Luo","year":"2023"},{"key":"2026100213520762000_bib38","article-title":"In-context learning with retrieved demonstrations for language models: A survey","volume-title":"Transactions on Machine Learning Research","author":"Luo","year":"2024"},{"key":"2026100213520762000_bib39","doi-asserted-by":"crossref","first-page":"11048","DOI":"10.18653\/v1\/2022.emnlp-main.759","article-title":"Rethinking the role of demonstrations: What makes in-context learning work?","volume-title":"Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing","author":"Min","year":"2022"},{"key":"2026100213520762000_bib40","article-title":"Differential learning kinetics govern the transition from memorization to generalization during in-context learning","volume-title":"The Thirteenth International Conference on Learning Representations","author":"Nguyen","year":"2025"},{"key":"2026100213520762000_bib41","volume-title":"In-context example selection with influences","author":"Nguyen","year":"2023"},{"key":"2026100213520762000_bib42","doi-asserted-by":"crossref","first-page":"188","DOI":"10.18653\/v1\/D19-1018","article-title":"Justifying recommendations using distantly-labeled reviews and fine-grained aspects","volume-title":"Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)","author":"Ni","year":"2019"},{"key":"2026100213520762000_bib43","volume-title":"Introducing gpt-5","author":"OpenAI","year":"2025"},{"key":"2026100213520762000_bib44","article-title":"Competition dynamics shape algorithmic phases of in-context learning","volume-title":"The Thirteenth International Conference on Learning Representations","author":"Park","year":"2025"},{"key":"2026100213520762000_bib45","article-title":"Rapid selection and ordering of in-context demonstrations via prompt embedding clustering","volume-title":"The Thirteenth International Conference on Learning Representations","author":"Pham","year":"2025"},{"key":"2026100213520762000_bib46","doi-asserted-by":"crossref","first-page":"7441","DOI":"10.18653\/v1\/2024.findings-emnlp.438","article-title":"In-context learning with iterative demonstration selection","volume-title":"Findings of the Association for Computational Linguistics: EMNLP 2024","author":"Qin","year":"2024"},{"key":"2026100213520762000_bib47","doi-asserted-by":"crossref","DOI":"10.52202\/075280-0626","article-title":"Pretraining task diversity and the emergence of non-bayesian in-context learning for regression","volume-title":"Thirty-seventh Conference on Neural Information Processing Systems","author":"Raventos","year":"2023"},{"issue":"4","key":"2026100213520762000_bib48","first-page":"333","article-title":"The probabilistic relevance framework: Bm25 and beyond","volume":"3","author":"Robertson","year":"2009","journal-title":"Found. Trends Inf. Retr."},{"key":"2026100213520762000_bib49","first-page":"2655","article-title":"Learning to retrieve prompts for in-context learning","volume-title":"Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies","author":"Rubin","year":"2022"},{"key":"2026100213520762000_bib50","article-title":"Ordered neurons: Integrating tree structures into recurrent neural networks","volume-title":"International Conference on Learning Representations","author":"Shen","year":"2019"},{"key":"2026100213520762000_bib51","doi-asserted-by":"crossref","first-page":"14232","DOI":"10.18653\/v1\/2024.findings-acl.846","article-title":"Demonstration augmentation for zero-shot in-context learning","volume-title":"Findings of the Association for Computational Linguistics: ACL 2024","author":"Su","year":"2024"},{"key":"2026100213520762000_bib52","first-page":"3104","article-title":"Sequence to sequence learning with neural networks","volume-title":"Proceedings of the 28th International Conference on Neural Information Processing Systems - Volume 2","author":"Sutskever","year":"2014"},{"key":"2026100213520762000_bib53","doi-asserted-by":"crossref","first-page":"930","DOI":"10.18653\/v1\/2024.emnlp-main.54","article-title":"Large language models for data annotation and synthesis: A survey","volume-title":"Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing","author":"Tan","year":"2024"},{"key":"2026100213520762000_bib54","first-page":"4891","article-title":"Active learning principles for in-context learning with large language models","volume-title":"Findings of the Association for Computational Linguistics: EMNLP 2023","author":"Vu","year":"2023"},{"key":"2026100213520762000_bib55","article-title":"From few to many: Self-improving many-shot reasoners through iterative optimization and generation","volume-title":"The Thirteenth International Conference on Learning Representations","author":"Wan","year":"2025"},{"key":"2026100213520762000_bib56","doi-asserted-by":"crossref","first-page":"1193","DOI":"10.18653\/v1\/2024.findings-emnlp.65","article-title":"Improving demonstration diversity by human-free fusing for text-to-SQL","volume-title":"Findings of the Association for Computational Linguistics: EMNLP 2024","author":"Wang","year":"2024"},{"key":"2026100213520762000_bib57","volume-title":"In-context transfer learning: Demonstration synthesis by transferring similar tasks","author":"Wang","year":"2025"},{"key":"2026100213520762000_bib58","volume-title":"V-synthesis: Task-agnostic synthesis of consistent and diverse in-context demonstrations from scratch via v-entropy","author":"Wang","year":"2025"},{"key":"2026100213520762000_bib59","article-title":"Loss landscape geometry reveals stagewise development of transformers","volume-title":"High-dimensional Learning Dynamics 2024: The Emergence of Structure and Reasoning","author":"Wang","year":"2024"},{"key":"2026100213520762000_bib60","volume-title":"Generalized Inverses: Theory and Computations, volume 53 of Developments in Mathematics","author":"Wang","year":"2018"},{"key":"2026100213520762000_bib61","doi-asserted-by":"crossref","DOI":"10.18653\/v1\/2023.emnlp-main.609","article-title":"Label words are anchors: An information flow perspective for understanding in-context learning","volume-title":"The 2023 Conference on Empirical Methods in Natural Language Processing","author":"Wang","year":"2023"},{"key":"2026100213520762000_bib62","first-page":"1752","article-title":"Learning to retrieve in-context examples for large language models","volume-title":"Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers)","author":"Wang","year":"2024"},{"key":"2026100213520762000_bib63","doi-asserted-by":"crossref","DOI":"10.52202\/075280-0687","article-title":"Large language models are latent variable models: Explaining and finding good demonstrations for in-context learning","volume-title":"Thirty-seventh Conference on Neural Information Processing Systems","author":"Wang","year":"2023"},{"key":"2026100213520762000_bib64","doi-asserted-by":"crossref","DOI":"10.52202\/079017-3018","article-title":"MMLU-pro: A more robust and challenging multi-task language understanding benchmark","volume-title":"The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benchmarks Track","author":"Wang","year":"2024"},{"key":"2026100213520762000_bib65","first-page":"38","article-title":"Transformers: State-of-the-art natural language processing","volume-title":"Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations","author":"Wolf","year":"2020"},{"key":"2026100213520762000_bib66","doi-asserted-by":"crossref","first-page":"6467","DOI":"10.18653\/v1\/2024.findings-acl.386","article-title":"Addressing order sensitivity of in-context demonstration examples in causal language models","volume-title":"Findings of the Association for Computational Linguistics: ACL 2024","author":"Xiang","year":"2024"},{"key":"2026100213520762000_bib67","doi-asserted-by":"crossref","first-page":"2578","DOI":"10.18653\/v1\/D19-1260","article-title":"Quick and (not so) dirty: Unsupervised selection of justification sentences for multi-hop question answering","volume-title":"Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)","author":"Yadav","year":"2019"},{"key":"2026100213520762000_bib68","doi-asserted-by":"crossref","DOI":"10.52202\/079017-2727","article-title":"In-context learning with representations: Contextual generalization of trained transformers","volume-title":"ICML 2024 Workshop on Theoretical Foundations of Foundation Models","author":"Yang","year":"2024"},{"key":"2026100213520762000_bib69","doi-asserted-by":"crossref","first-page":"5443","DOI":"10.18653\/v1\/2023.emnlp-main.331","article-title":"Representative demonstration selection for in-context learning with two-stage determinantal point process","volume-title":"Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing","author":"Yang","year":"2023"},{"key":"2026100213520762000_bib70","doi-asserted-by":"crossref","DOI":"10.52202\/068431-1126","article-title":"STar: Bootstrapping reasoning with reasoning","volume-title":"Advances in Neural Information Processing Systems","author":"Zelikman","year":"2022"},{"key":"2026100213520762000_bib71","first-page":"1684","article-title":"What and how does in-context learning learn? bayesian model averaging, parameterization, and generalization","volume-title":"Proceedings of The 28th International Conference on Artificial Intelligence and Statistics, volume 258 of Proceedings of Machine Learning Research","author":"Zhang","year":"2025"},{"key":"2026100213520762000_bib72","article-title":"Is in-context learning sufficient for instruction following in LLMs?","volume-title":"The Thirteenth International Conference on Learning Representations","author":"Zhao","year":"2025"},{"key":"2026100213520762000_bib73","article-title":"SELF-EXPLAIN: Teaching large language models to reason complex questions by themselves","volume-title":"R0-FoMo:Robustness of Few-shot and Zero-shot Learning in Large Foundation Models","author":"ZHAO","year":"2023"},{"key":"2026100213520762000_bib74","volume-title":"The curse of cot: On the limitations of chain-of-thought in in-context learning","author":"Zheng","year":"2025"},{"key":"2026100213520762000_bib75","doi-asserted-by":"crossref","first-page":"14365","DOI":"10.18653\/v1\/2024.emnlp-main.795","article-title":"The mystery of in-context learning: A comprehensive survey on interpretation and analysis","volume-title":"Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing","author":"Zhou","year":"2024"}],"container-title":["Transactions of the Association for Computational Linguistics"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/direct.mit.edu\/tacl\/article-pdf\/doi\/10.1162\/TACL.a.809\/2630491\/tacl.a.809.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/direct.mit.edu\/tacl\/article-pdf\/doi\/10.1162\/TACL.a.809\/2630491\/tacl.a.809.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T17:52:28Z","timestamp":1790963548000},"score":1,"resource":{"primary":{"URL":"https:\/\/direct.mit.edu\/tacl\/article\/doi\/10.1162\/TACL.a.809\/139203\/Learning-to-Context-Slope-Evaluating-In-Context"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026]]},"references-count":75,"URL":"https:\/\/doi.org\/10.1162\/tacl.a.809","relation":{},"ISSN":["2307-387X"],"issn-type":[{"value":"2307-387X","type":"electronic"}],"subject":[],"published-other":{"date-parts":[[2026]]},"published":{"date-parts":[[2026]]}}}