StruEdit: Structured Outputs Enable the Fast and Accurate Knowledge Editing for Large Language Models
Baolong Bi, Shenghua Liu, Yiwei Wang, Lingrui Mei, Hongcheng Gao, Junfeng Fang, Xueqi Cheng
TL;DR
This work tackles the challenge of keeping large language models’ knowledge current by criticizing the Locate-Then-Edit paradigm and introducing StruEdit, a structural editing approach that operates on structured reasoning triplets rather than natural-language outputs. By removing potentially affected information and refilling through knowledge structures, StruEdit enables one-shot, multi-hop edits without updating model parameters, achieving higher editing accuracy and lower latency. Experimental results on MQuAKE across open- and closed-source models show StruEdit consistently outperforms state-of-the-art ME and ICE methods, with strong robustness as hop count and edited instances increase. The method’s use of entity matching and relation selection within external knowledge structures offers practical benefits for robust, scalable knowledge editing in real-world QA settings.
Abstract
As the modern tool of choice for question answering, large language models (LLMs) are expected to deliver answers with up-to-date knowledge. To achieve such ideal question-answering systems, locating and then editing outdated knowledge in the natural language outputs is a general target of popular knowledge editing methods. However, this target is challenging, as both identifying which tokens to edit in the reasoning steps and ensuring the coherence of the revised reasoning chain are difficult tasks. We argue that these challenges stem from the unstructured nature of natural language outputs. To address the above challenges, we propose $\textbf{Stru}$ctural $\textbf{Edit}$ing ($\textbf{StruEdit}$), an improved baseline for knowledge editing. We first prompt LLMs to produce structured outputs consisting of reasoning triplets. Then, StruEdit removes any potentially outdated knowledge and efficiently refills the structured outputs with up-to-date information in a single step. Experimental results show that StruEdit consistently delivers the highest accuracy with lowest latency compared with other knowledge editing methods.
