Back to list

AI Tech机器之心

Tsinghua Proposes Jev-LDE: Editing ICL Demonstrations Just Once Can Sharply Boost 1-shot Average Accuracy

机器之心1 min read
Read original
Tsinghua Proposes Jev-LDE: Editing ICL Demonstrations Just Once Can Sharply Boost 1-shot Average Accuracy

AI Summary

Tsinghua University researchers propose Local Demonstration Editing (LDE) and a small editing model, Jev-LDE, which performs a single Keep, Delete, or Replace edit on a retrieved demonstration set before the target LLM answers. Across 3 classification datasets and 4 target LLMs, average one-shot accuracy rose from 81.2% to 88.1%, outperforming Semantic TopK initialization in 46 of 48 configurations.

AI Insights

Jev-LDE shows that in-context learning gains can come from a single, well-targeted edit to retrieved demonstrations rather than costly exhaustive subset search, which reduces inference overhead for deployed LLM systems. The approach uses a small 1.7B editor trained with outcome rewards from a frozen target model, suggesting a practical pattern where lightweight models optimize context for larger ones. Companies building RAG and few-shot pipelines should consider post-retrieval refinement as a cost-efficient lever for accuracy.

Analysis written by AI from the original article. Check it against the source.

Translated text

Large language models performing in-context learning (ICL) typically retrieve several demonstrations from an example pool and place them in the prompt with the current query. However, the retrieved Top-K set is not always suitable for the target model: too many examples increase context and inference cost, while irrelevant or redundant ones can hurt the model's judgment. Searching the full combinatorial space of k-example subsets grows quickly, and some model-aware methods require repeatedly querying the target LLM. Researchers at the Department of Automation, Tsinghua University, propose Local Demonstration Editing (LDE) and train a small editing model, Jev-LDE. It does not answer the question itself; instead, before the target LLM runs inference, it makes one edit to the already-retrieved demonstration set, restricted to Keep, Delete, or Replace. In experiments, Jev-LDE outperformed the Semantic TopK initialization in 46 of 48 classification configurations and achieved the best or tied-best result in 44. Across 3 classification datasets and 4 target LLMs, average one-shot accuracy rose from 81.2% to 88.1%. The method is placed after the retriever and performs a single membership edit on the initial demonstration set using replacement candidates. Training uses GRPO-based reinforcement learning, with the reward given by whether the frozen target LLM answers correctly after the edit.

Related News

3