mlsanityData to 7 Oct 2026

Dynamic Retriever for In-Context Knowledge Editing via Policy Optimization

arXiv 2510.21059 ↗First posted 24 Oct 2025cs.CLcited by 3

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

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2024The Llama 3 Herd of Modelscited by 14,192
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  5. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  6. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  7. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  8. 2022Mass-Editing Memory in a Transformercited by 976
  9. 2021Editing Factual Knowledge in Language Modelscited by 548
  10. 2022Memory-Based Model Editing at Scalecited by 443
  11. 2023MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questionscited by 292
  12. 2021Time-Aware Language Models as Temporal Knowledge Basescited by 290
16 more
  1. 2023Can We Edit Factual Knowledge by In-Context Learning?cited by 284
  2. 2022Prompting GPT-3 To Be Reliablecited by 258
  3. 2023Evaluating the Ripple Effects of Knowledge Editing in Language Modelscited by 238
  4. 2023Unified Demonstration Retriever for In-Context Learningcited by 141
  5. 2021Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Basescited by 107
  6. 2024Model Editing Harms General Abilities of Large Language Models: Regularization to the Rescuecited by 101
  7. 2023How Many Demonstrations Do You Need for In-context Learning?cited by 52
  8. 2024AKEW: Assessing Knowledge Editing in the Wildcited by 35
  9. 2024Knowledge Editing through Chain-of-Thoughtcited by 26
  10. 2024Propagation and Pitfalls: Reasoning-based Assessment of Knowledge Editing through Counterfactual Taskscited by 24
  11. 2024Exploring the Impact of Table-to-Text Methods on Augmenting LLM-based Question Answering with Domain Hybrid Datacited by 24
  12. 2023PokeMQA: Programmable knowledge editing for Multi-hop Question Answeringcited by 23
  13. 2024Time Sensitive Knowledge Editing through Efficient Finetuningcited by 14
  14. 2025More is not always better? Enhancing Many-Shot In-Context Learning with Differentiated and Reweighting Objectivescited by 12
  15. 2024Real-Time Personalization for LLM-based Recommendation with Customized In-Context Learningcited by 5
  16. 2024Dynamic Uncertainty Ranking: Enhancing Retrieval-Augmented In-Context Learning for Long-Tail Knowledge in LLMscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.