Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Robust and Scalable Model Editing for Large Language Models (2403.17431v1)

Published 26 Mar 2024 in cs.CL and cs.LG

Abstract: LLMs can make predictions using parametric knowledge--knowledge encoded in the model weights--or contextual knowledge--knowledge presented in the context. In many scenarios, a desirable behavior is that LLMs give precedence to contextual knowledge when it conflicts with the parametric knowledge, and fall back to using their parametric knowledge when the context is irrelevant. This enables updating and correcting the model's knowledge by in-context editing instead of retraining. Previous works have shown that LLMs are inclined to ignore contextual knowledge and fail to reliably fall back to parametric knowledge when presented with irrelevant context. In this work, we discover that, with proper prompting methods, instruction-finetuned LLMs can be highly controllable by contextual knowledge and robust to irrelevant context. Utilizing this feature, we propose EREN (Edit models by REading Notes) to improve the scalability and robustness of LLM editing. To better evaluate the robustness of model editors, we collect a new dataset, that contains irrelevant questions that are more challenging than the ones in existing datasets. Empirical results show that our method outperforms current state-of-the-art methods by a large margin. Unlike existing techniques, it can integrate knowledge from multiple edits, and correctly respond to syntactically similar but semantically unrelated inputs (and vice versa). The source code can be found at https://github.com/thunlp/EREN.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (9)
  1. Yingfa Chen (11 papers)
  2. Zhengyan Zhang (46 papers)
  3. Xu Han (270 papers)
  4. Chaojun Xiao (39 papers)
  5. Zhiyuan Liu (433 papers)
  6. Chen Chen (752 papers)
  7. Kuai Li (4 papers)
  8. Tao Yang (520 papers)
  9. Maosong Sun (337 papers)
Citations (2)
Youtube Logo Streamline Icon: https://streamlinehq.com