Dynamic Retriever for In-Context Knowledge Editing via Policy Optimization
摘要
Large language models (LLMs) excel at factual recall yet still propagate stale or incorrect knowledge. In-context knowledge editing offers a gradient-free remedy suitable for black-box APIs, but current editors rely on static demonstration sets chosen by surface-level similarity, leading to two persistent obstacles: (i) a quantity-quality trade-off, and (ii) lack of adaptivity to task difficulty. We address these issues by dynamically selecting supporting demonstrations according to their utility for the edit. We propose Dynamic Retriever for In-Context Knowledge Editing (DR-IKE), a lightweight framework that (1) trains a BERT retriever with REINFORCE to rank demonstrations by editing reward, and (2) employs a learnable threshold to prune low-value examples, shortening the prompt when the edit is easy and expanding it when the task is hard. DR-IKE performs editing without modifying model weights, relying solely on forward passes for compatibility with black-box LLMs. On the COUNTERFACT benchmark, it improves edit success by up to 17.1%, reduces latency by 41.6%, and preserves accuracy on unrelated queries, demonstrating scalable and adaptive knowledge editing. The code is available at https://github.com/mwnafee/DR-IKE .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
- Locating and Editing Factual Associations in GPT 引用了 Language Models are Few-Shot Learners
- Prompting GPT-3 To Be Reliable 引用了 Language Models are Few-Shot Learners
- Retrieval meets Long Context Large Language Models 引用了 Language Models are Few-Shot Learners
- Many-Shot In-Context Learning 引用了 Language Models are Few-Shot Learners
它引用的 Paper19
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 次引用
- Many-Shot In-Context LearningRishabh Agarwal, Avi Singh, Lei Zhang, Bernd Bohnet 等NeurIPS 2024 · 271 次引用
- Retrieval meets Long Context Large Language ModelsPeng Xu, Wei Ping, Xianchao Wu, Lawrence McAfee 等ICLR 2024 · 131 次引用
- Prompting GPT-3 To Be ReliableChenglei Si, Zhe Gan, Zhengyuan Yang, Shuohang Wang 等ICLR 2023 · 68 次引用
相关 Paper
- Confidence-Aware Ranker Ensembles for Robust In-Context Knowledge EditingTejal Nair, Mahmud Wasif Nafee, Maiqi Jiang, Ashley Gao 等ACL Findings 2026
- Can We Edit Factual Knowledge by In-Context Learning?Ce Zheng, Lei Li, Qingxiu Dong, Yuxuan Fan 等EMNLP 2023 · 40 次引用
- DistillMIKE: Editing Distillation of Massive In-Context Knowledge Editing in Large Language ModelsShanbao Qiao, Xuebing Liu, Seung-Hoon NaACL Findings 2024 · 1 次引用
- The Model Agreed, But Didn't Learn: Diagnosing Surface Compliance in Large Language ModelsXiaojie Gu, Ziying Huang, Weicong Hong, Jian Xie 等ACL Findings 2026
- Avoiding Knowledge Edit Skipping in Multi-hop Question Answering with Guided DecompositionYi Liu, Xiangrong Zhu, Xiangyu Liu, Wei Wei 等EMNLP Findings 2025
