Guardado en:
Detalles Bibliográficos
Autores principales: Akula, Arjun R., Hashimoto, Kazuma, Srinivasan, Krishna, Chaudhary, Aditi, Raman, Karthik, Bendersky, Michael
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:https://arxiv.org/abs/2506.12346
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913893812535296
author Akula, Arjun R.
Hashimoto, Kazuma
Srinivasan, Krishna
Chaudhary, Aditi
Raman, Karthik
Bendersky, Michael
author_facet Akula, Arjun R.
Hashimoto, Kazuma
Srinivasan, Krishna
Chaudhary, Aditi
Raman, Karthik
Bendersky, Michael
contents 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 them within the context and incorporating zero-shot predictions as error signals. Our results show that Refract ICL significantly improves the performance of extremely long-context models such as Gemini 1.5 Pro, particularly on tasks with a smaller number of output classes.
format Preprint
id arxiv_https___arxiv_org_abs_2506_12346
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Refract ICL: Rethinking Example Selection in the Era of Million-Token Models
Akula, Arjun R.
Hashimoto, Kazuma
Srinivasan, Krishna
Chaudhary, Aditi
Raman, Karthik
Bendersky, Michael
Computation and Language
Artificial Intelligence
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 them within the context and incorporating zero-shot predictions as error signals. Our results show that Refract ICL significantly improves the performance of extremely long-context models such as Gemini 1.5 Pro, particularly on tasks with a smaller number of output classes.
title Refract ICL: Rethinking Example Selection in the Era of Million-Token Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2506.12346