Reproduce “In-Context Editing: Learning Knowledge from Self-Induced Distributions” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Siyuan Qi, Bangcheng Yang, Kailin Jiang, Xiaobo Wang, Jiaqi Li, Yifan Zhong, Yaodong Yang, Zilong Zheng

Consistent In-Context Editing (ICE) introduces a method for updating Large Language Models (LLMs) by guiding them to learn from self-induced contextual distributions rather than fixed targets. This approach achieves near-perfect edit accuracy, significantly improves generalization and locality, and maintains linguistic quality, notably enabling robust continual knowledge updates without catastrophic forgetting.

Key insights

  • Using a dynamic, self-induced contextual distribution as an optimization target, derived from the model's own in-context learning, effectively mitigates overfitting and preserves linguistic quality better than static one-hot targets.
  • Enforcing a 'consistency condition' (where the updated model's output for a query is the same whether or not the context is provided) is critical for robustly internalizing new knowledge and preventing model degradation.
  • The proposed combined loss successfully balances the need for accurate knowledge incorporation with maintaining overall model integrity, including locality, portability, and fluency, which is crucial for continual learning scenarios.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.