Abstract
Large language models (LLMs) embed extensive knowledge and utilize it to perform exceptionally well across various tasks. Nevertheless, outdated knowledge or factual errors within LLMs can lead to misleading or incorrect responses, causing significant issues in practical applications. To rectify the fatal flaw without the necessity for costly model retraining, various model editing approaches have been proposed to correct inaccurate information within LLMs in a cost-efficient way. To evaluate these model editing methods, previous work introduced a series of datasets. However, most of the previous datasets only contain fabricated data in a single format, which diverges from real-world model editing scenarios, raising doubts about their usability in practice. To facilitate the application of model editing in real-world scenarios, we propose the challenge of practicality. To resolve such challenges and effectively enhance the capabilities of LLMs, we present FAME, an authentic, comprehensive, and multi-task dataset, which is designed to enhance the practicality of model editing. We then propose SKEME, a model editing method that uses a novel caching mechanism to ensure synchronization with the real world. The experiments demonstrate that our method performs excellently across various tasks and scenarios, confirming its practicality.
Introduction
Large Language Models (LLMs) function as static snapshots of information available at the time of their training. As real-world facts evolve—such as changes in political leadership or corporate structures—these models inevitably begin to produce outdated or "hallucinated" responses. While model editing has emerged as a promising field to address these inaccuracies without the prohibitive cost of full retraining, current research faces three critical hurdles: the use of fabricated data (e.g., "The President is Tom Cruise"), a focus on single-task formats, and poor scalability that often results in "breaking" the model's general knowledge.
To address these issues, we introduce the FAME (FActual Multi-task model Editing) dataset and the SKEME (Structured Knowledge retrieved by Exact Matching and reranking Editing) framework. Together, they shift the focus of model editing toward real-world practicality and multi-task robustness.
The FAME Dataset
The FAME dataset is designed to bridge the gap between academic benchmarks and real-world utility. Unlike previous datasets like ZsRE or CounterFact, FAME is built on 128,000 authentic factual items sourced from Wikidata and DBpedia. It encompasses a wide variety of tasks, including:
- Single-hop tasks: Question Answering (QA), sentence completion, cloze tests, multiple-choice, and fact-checking.
- Multi-hop tasks: Complex reasoning chains (up to 5 hops) and multi-turn dialogues.
- Locality tests: Ensuring that edits do not inadvertently alter unrelated knowledge.
The SKEME Framework
SKEME departs from traditional weight-editing methods, which often suffer from weight divergence during iterative updates. Instead, SKEME treats the LLM as a reasoning engine supported by a structured, external knowledge layer.
The framework employs a three-step process:
- Entity Extraction: Identifying the core subject of a query (e.g., "America").
- Fast-Slow Caching: A dual-layer cache system inspired by computer architecture. A "Fast Table" stores recently updated local facts, while a "Slow Table" interfaces with broader Knowledge Graphs, ensuring the model always accesses the most current information.
- Knowledge Rank and Utilization: Relevant triples are retrieved using a retrieval model (Contriever), ranked by relevance, and provided to the LLM via In-Context Learning (ICL).
Experimental Results
We evaluated SKEME against several state-of-the-art editing methods, including MEMIT, MeLLo, and IKE, across multiple LLM architectures. To provide a balanced assessment, we introduced the SURE (Statistical and Unbiased Real-world Evaluation) metric, which accounts for both editing accuracy and the "drawdown" effect on unrelated knowledge.
As shown in the results, SKEME consistently achieves superior performance. On the Llama2 model, SKEME reached an Exact Match (EM) score of 90.54% with zero side effects (0.00 Drawdown). Furthermore, SKEME demonstrates remarkable efficiency, requiring only 0.49 seconds per edit on GPT-J, significantly faster than the 13.8 seconds required by weight-modifying methods like MEMIT. This efficiency and stability make it uniquely suited for large-scale, real-world applications where models must be updated thousands of times without performance degradation.
Conclusion
By introducing the FAME dataset and the SKEME framework, this work establishes a more practical and robust foundation for model editing. SKEME’s retrieval-based approach avoids the "iterative update trap" where model weights collapse after repeated edits, while FAME provides a rigorous, multi-task testing ground that reflects real-world complexity. Future work will focus on expanding FAME to multilingual contexts and further optimizing the prompting of retrieved facts for completion-based tasks.
Summary updated