arXiv AI

Context Tuning for In-Context Optimization

arXiv:2507. 04221v3 Announce Type: replace-cross Abstract: We introduce Context Tuning, a simple and effective method to significantly enhance few-shot adaptation of large language models (LLMs) without weight updates.

arXiv Machine Learning
5d ago

Mixtures of In-Context Learners

Mixtures of In-Context Learners (MoICL) treats subsets of demonstrations as experts and learns a weighting function to merge their output distributions, addressing the quadratic complexity and memory exhaustion of traditional in-context learning. Experiments show MoICL improves performance on 5 of 7 classification datasets, reduces inference time for comparable performance, and is more robust to out‑of‑domain, imbalanced, or noisy demonstrations. The method offers a more expressive way to learn from demonstrations without exhausting the context window or memory.

By Giwon Hong, Emile van Krieken, Edoardo Ponti, Esmeralda S. Whitammer, Pasquale Minervini
arXiv AI
Jul 14

Extending LLM Context via Associative Recurrent Memory

arXiv:2607. 11614v1 Announce Type: cross Abstract: Extending the context length of large language models (LLMs) is critical for many real-world applications, yet standard transformers remain constrained by quadratic compute and linear memory scaling.

By Gleb Kuzmin, Ivan Rodkin, Aydar Bulatov, Yuri Kuratov, Lyudmila Rvanova, Mikhail Katkov, Ilia Sochenkov, Misha Tsodyks, Timothy Baldwin, Mikhail Burtsev, Artem Shelmanov
arXiv AI
Jun 30

Scaling Textual Gradients via Sampling-Based Momentum

arXiv:2506. 00400v4 Announce Type: replace-cross Abstract: LLM-based prompt optimization, which uses LLM-provided ``textual gradients'' (feedback) to refine prompts, has emerged as an effective method for automatic prompt engineering.

By Zixin Ding, Junyuan Hong, Zhan Shi, Jiachen T. Wang, Zinan Lin, Li Yin, Meng Liu, Zhangyang Wang, Yuxin Chen
arXiv Computation and Language
4d ago

The ROI of Small Examples: Optimizing In-Context Learning Under Token Budgets

The paper investigates how to best allocate a fixed token budget for in‑context learning (ICL) prompts in question answering tasks. By categorizing demonstration examples into length‑based bins and constructing prompts from examples within the same bin, the authors find that shorter demonstrations generally yield better performance across two QA benchmarks and an NLI task. The study emphasizes that demonstration granularity is a key factor in prompt design, especially under token constraints.

By Anxo Perez, Jorge Gab\'in, Javier Parapar
arXiv Machine Learning
Oct 19

Out of Support, Not Out of Reach: In-Context Learning with Unsupported Instructions and Composed Tasks

The paper investigates when in‑context learning (ICL) can succeed even if the instruction or target task is not covered by a model’s pretraining data. It introduces a theoretical framework that distinguishes two types of distribution shift—unsupported instructions and unsupported target tasks—and shows how demonstrations can mitigate these shifts. The authors further extend the analysis to long‑horizon tasks that can be decomposed into pretraining‑supported subtasks, providing error bounds that explain how ICL can handle tasks beyond the model’s original support.

By Xuhan Tong, Yuchen Zeng, Jiawei Zhang