Refract ICL: Rethinking Example Selection in the Era of Million-Token Models
Arjun R. Akula, Kazuma Hashimoto, Krishna Srinivasan, Aditi Chaudhary, Karthik Raman, Michael Bendersky

TL;DR
This paper examines the effectiveness of example selection strategies in long-context large language models and introduces Refract ICL, a novel method that enhances in-context learning by strategically repeating challenging examples and using error signals.
Contribution
Refract ICL is a new example selection algorithm that improves long-context LLM performance by focusing attention on difficult examples through repetition and error signals.
Findings
Refract ICL significantly boosts performance on long-context models.
Smart example selection remains crucial even with thousands of demonstrations.
Refract ICL is especially effective on tasks with fewer output classes.
Abstract
The emergence of long-context large language models (LLMs) has enabled the use of hundreds, or even thousands, of demonstrations for in-context learning (ICL) - a previously impractical regime. This paper investigates whether traditional ICL selection strategies, which balance the similarity of ICL examples to the test input (using a text retriever) with diversity within the ICL set, remain effective when utilizing a large number of demonstrations. Our experiments demonstrate that, while longer contexts can accommodate more examples, simply increasing the number of demonstrations does not guarantee improved performance. Smart ICL selection remains crucial, even with thousands of demonstrations. To further enhance ICL in this setting, we introduce Refract ICL, a novel ICL selection algorithm specifically designed to focus LLM attention on challenging examples by strategically repeating…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDiverse Scientific and Economic Studies · Numerical Methods and Algorithms · Credit Risk and Financial Regulations
