From Few to Many: Self-Improving Many-Shot Reasoners Through Iterative Optimization and Generation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wan, Xingchen, Zhou, Han, Sun, Ruoxi, Nakhost, Hootan, Jiang, Ke, Arık, Sercan Ö.
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866909471947620352
author Wan, Xingchen
Zhou, Han
Sun, Ruoxi
Nakhost, Hootan
Jiang, Ke
Arık, Sercan Ö.
author_facet Wan, Xingchen
Zhou, Han
Sun, Ruoxi
Nakhost, Hootan
Jiang, Ke
Arık, Sercan Ö.
contents Recent advances in long-context large language models (LLMs) have led to the emerging paradigm of many-shot in-context learning (ICL), where it is observed that scaling many more demonstrating examples beyond the conventional few-shot setup in the context can lead to performance benefits. However, despite its promise, it is unclear what aspects dominate the benefits and whether simply scaling to more examples is the most effective way of improving many-shot ICL. In this work, we first provide an analysis of the factors driving many-shot ICL, and we find that 1) many-shot performance can still be attributed to often a few disproportionately influential examples and 2) identifying such influential examples ("optimize") and using them as demonstrations to regenerate new examples ("generate") can lead to further improvements. Inspired by the findings, we propose BRIDGE, an algorithm that alternates between the optimize step with Bayesian optimization to discover the influential sets of examples and the generate step to reuse this set to expand the reasoning paths of the examples back to the many-shot regime automatically. On Gemini, Claude, and Mistral LLMs of different sizes, we show that BRIDGE to significant improvements across a diverse set of tasks, including symbolic reasoning, numerical reasoning, and code generation.
format Preprint
id arxiv_https___arxiv_org_abs_2502_00330
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle From Few to Many: Self-Improving Many-Shot Reasoners Through Iterative Optimization and Generation
Wan, Xingchen
Zhou, Han
Sun, Ruoxi
Nakhost, Hootan
Jiang, Ke
Arık, Sercan Ö.
Machine Learning
Artificial Intelligence
Recent advances in long-context large language models (LLMs) have led to the emerging paradigm of many-shot in-context learning (ICL), where it is observed that scaling many more demonstrating examples beyond the conventional few-shot setup in the context can lead to performance benefits. However, despite its promise, it is unclear what aspects dominate the benefits and whether simply scaling to more examples is the most effective way of improving many-shot ICL. In this work, we first provide an analysis of the factors driving many-shot ICL, and we find that 1) many-shot performance can still be attributed to often a few disproportionately influential examples and 2) identifying such influential examples ("optimize") and using them as demonstrations to regenerate new examples ("generate") can lead to further improvements. Inspired by the findings, we propose BRIDGE, an algorithm that alternates between the optimize step with Bayesian optimization to discover the influential sets of examples and the generate step to reuse this set to expand the reasoning paths of the examples back to the many-shot regime automatically. On Gemini, Claude, and Mistral LLMs of different sizes, we show that BRIDGE to significant improvements across a diverse set of tasks, including symbolic reasoning, numerical reasoning, and code generation.
title From Few to Many: Self-Improving Many-Shot Reasoners Through Iterative Optimization and Generation
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2502.00330