Dynamic Retriever for In-Context Knowledge Editing via Policy Optimization
Not on the map. Why?
Abstract (arXiv)
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 .
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 28 of its 42 references that are in the map. First posted on arXiv 24 Oct 2025.
Builds on
28 of 42 references.
References · 28
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2022Mass-Editing Memory in a Transformercited by 976
- 2021Editing Factual Knowledge in Language Modelscited by 548
- 2022Memory-Based Model Editing at Scalecited by 443
- 2023MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questionscited by 292
- 2021Time-Aware Language Models as Temporal Knowledge Basescited by 290
16 more
- 2023Can We Edit Factual Knowledge by In-Context Learning?cited by 284
- 2022Prompting GPT-3 To Be Reliablecited by 258
- 2023Evaluating the Ripple Effects of Knowledge Editing in Language Modelscited by 238
- 2023Unified Demonstration Retriever for In-Context Learningcited by 141
- 2021Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Basescited by 107
- 2024Model Editing Harms General Abilities of Large Language Models: Regularization to the Rescuecited by 101
- 2023How Many Demonstrations Do You Need for In-context Learning?cited by 52
- 2024AKEW: Assessing Knowledge Editing in the Wildcited by 35
- 2024Knowledge Editing through Chain-of-Thoughtcited by 26
- 2024Propagation and Pitfalls: Reasoning-based Assessment of Knowledge Editing through Counterfactual Taskscited by 24
- 2024Exploring the Impact of Table-to-Text Methods on Augmenting LLM-based Question Answering with Domain Hybrid Datacited by 24
- 2023PokeMQA: Programmable knowledge editing for Multi-hop Question Answeringcited by 23
- 2024Time Sensitive Knowledge Editing through Efficient Finetuningcited by 14
- 2025More is not always better? Enhancing Many-Shot In-Context Learning with Differentiated and Reweighting Objectivescited by 12
- 2024Real-Time Personalization for LLM-based Recommendation with Customized In-Context Learningcited by 5
- 2024Dynamic Uncertainty Ranking: Enhancing Retrieval-Augmented In-Context Learning for Long-Tail Knowledge in LLMscited by 3
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026SYNAPSE: Empowering LLM Agents with Episodic-Semantic Memory via Spreading Activationcited by 11
- 2026DIP: Dynamic In-Context Planner For Diffusion Language Modelscited by 1
- 2026Towards Reliable, Generalizable, and Specific In-Context Knowledge Editing via Multi-Objective Reinforcement Learningcited by 1
- 2026Towards Reliable, Generalizable, and Specific In-Context Knowledge Editing via Multi-Objective Reinforcement Learning25 Aug 2026
- 2026DIP: Dynamic In-Context Planner For Diffusion Language Models6 Jan 2026
- 2026SYNAPSE: Empowering LLM Agents with Episodic-Semantic Memory via Spreading Activation6 Jan 2026