Metraipolis › archive › dc_90ee5724f1d7

You Only Edit Once: Incentivizing In-Context Capability of LLMs via Local Demonstration Refinement — arXiv:2609.33609

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.33609
License (as archived)
CC0-1.0
Archived
2026-10-07T22:37:37.765Z
SHA-256 of the archived text
b38efcba5c64cecf79a3b6f6a2c6d8b997a4288265a4fcee775116a488cce98d
Stable URL of this page
https://metraipolis.com/documento/dc_90ee5724f1d7

How to cite

You Only Edit Once: Incentivizing In-Context Capability of LLMs via Local Demonstration Refinement — arXiv:2609.33609 — arXiv (en), https://arxiv.org/abs/2609.33609 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_90ee5724f1d7 (Metraipolis archive dc_90ee5724f1d7, sha256 b38efcba5c64cecf79a3b6f6a2c6d8b997a4288265a4fcee775116a488cce98d)
BibTeX
@misc{dc90ee5724f1d7,
  title = {You Only Edit Once: Incentivizing In-Context Capability of LLMs via Local Demonstration Refinement — arXiv:2609.33609},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.33609},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_90ee5724f1d7; sha256 b38efcba5c64cecf79a3b6f6a2c6d8b997a4288265a4fcee775116a488cce98d},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.33609. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In-context learning (ICL) is crucial for boosting the inference performance of large language models (LLMs). However, the effectiveness of ICL in LLMs is greatly influenced by the choice of demonstration sets. Exhaustive searches over these sets are combinatorial, and existing selectors often rely on relevance or likelihood proxies to implicitly assess ICL quality. Making repeated queries to the target LLM with these strategies can incur substantial costs. This work simplifies selection by framing it as a constrained local search problem and presents local demonstration editing (LDE). Starting with an initially retrieved set of demonstrations, LDE employs a single structured edit to explore its surrounding neighborhood while balancing performance gains with search costs. Technically, LDE is reduced to a policy search problem, for which we train a small LLM, referred to as Jev-LDE. This model as the System-1 modifies the retrieved demonstration set by performing actions such as \texttt{Keep}, \texttt{Delete}, or \texttt{Replace} elements, all within a framework of reinforcement learning with verifiable rewards. At test time, Jev-LDE executes a single edit of the retrieved demonstration set, followed by one inference from the target LLM, avoiding the need for iterative context scoring or subset searches. Across standard classification benchmarks, various target LLMs with Jev-LDE as the plug-and-play module consistently improve ICL performance, and Jev-LDE shows transferability to held-out benchmarks and models without retraining. These findings indicate that the LDE approach offers an efficient and adaptable method for harnessing the ICL capabilities of target LLMs.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-29 in cs.LG).
Categorie arXiv: Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2609.33609 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-07T22:14:28.000Z dalla pagina https://arxiv.org/catchup/cs.LG/2026-09-29?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).