Dynamic Retriever for In-Context Knowledge Editing via Policy Optimization
Mahmud Wasif Nafee, Maiqi Jiang, Haipeng Chen, Yanfu Zhang

TL;DR
This paper introduces DR-IKE, a dynamic, reinforcement learning-based framework for in-context knowledge editing that adaptively selects demonstrations to improve editing success and efficiency in large language models.
Contribution
It proposes a novel retriever trained with REINFORCE to dynamically select demonstrations, addressing static selection limitations and enabling adaptive, weight-free knowledge editing.
Findings
Up to 17.1% improvement in edit success
41.6% reduction in latency
Maintains accuracy on unrelated queries
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsMultimodal Machine Learning Applications · Topic Modeling · Advanced Graph Neural Networks
