NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

$\mu$KE: Matryoshka Unstructured Knowledge Editing of Large Language Models

Zian Su, Ziyang Huang, Kaiyuan Zhang, Xiangyu ZhangCOLM 2025

TL;DR

This paper introduces $\mu$KE (Matryoshka Unstructured Knowledge Editing), a novel method for updating knowledge in large language models (LLMs) without full retraining. $\mu$KE addresses a key limitation in existing unstructured editing techniques by preserving the causal dependencies between edited knowledge and subsequent text generation, leading to improved edit accuracy and robustness.

What Problem Does This Paper Address?

Large Language Models (LLMs) are trained on static datasets, which can lead to outdated or incorrect information, resulting in hallucinations and safety concerns. While model editing offers a more efficient way to update LLMs than retraining, current methods for unstructured knowledge editing (editing free-form text rather than structured facts) struggle with a critical issue: they often disrupt the natural causal flow of information. Specifically, window-based autoregressive editing methods, which process long text edits in segments, tend to overlook how an edit in an early segment might influence later segments. This can lead to suboptimal edits and a degradation of the model's ability to generate coherent text. The authors aim to solve this by developing a method that maintains these crucial dependencies.

Methods

The core innovation of $\mu$KE lies in its Matryoshka-style memory update objective. Instead of treating each text window independently (as in previous window-based methods), $\mu$KE's objective encourages the edited "working memory" (internal model states) to contribute to the generation of all subsequent target text segments, not just the immediate one. This is achieved through a weighted sum of losses across different "target figures" (combinations of consecutive windows), mimicking the nested structure of a Matryoshka doll.

Key components of $\mu$KE include:

  • Matryoshka Objective: This objective ensures that an update to an early memory state influences all subsequent target text segments, preserving causal dependencies.
  • Adaptive Loss Coefficients: To handle varying edit difficulties across different text segments, $\mu$KE uses adaptive coefficients that are informed by the "affinity" (gradient similarity) between target figures. This helps to balance the importance of different segments during optimization.
  • Locate-and-Edit Framework: $\mu$KE builds upon the existing locate-and-edit paradigm, which first identifies the specific model components (layers) storing the knowledge to be edited and then modifies them.

Datasets

The authors evaluated $\mu$KE on several existing benchmarks:

  • UnKEBench: A benchmark for unstructured knowledge editing.
  • AKEW benchmark: Consisting of two subsets: AKEW-CounterFact and AKEW-MQuAKE.
  • EditEverything: A benchmark covering diverse domains and problem structures.
  • SelfCheckGPT: Used to benchmark hallucination reduction efficacy.

They also used MMLU and IFEval for evaluating the preservation of general capabilities (locality). No new benchmarks were introduced.

Key Insights and Ideas

  • Causal Dependency is Crucial for Unstructured Editing: The paper theoretically and empirically demonstrates that ignoring the causal relationship between edits in different parts of a long text leads to poorer performance.
  • Matryoshka Structure Mimics Information Flow: The Matryoshka-style objective effectively models how an edit should propagate through sequential text generation, ensuring consistency.
  • Adaptive Coefficients Enhance Robustness: Dynamically adjusting loss contributions based on segment affinity is key to handling the varying difficulty of editing different parts of a long text.
  • Window Size is Less Critical Than Dependency: $\mu$KE shows relative insensitivity to window size, suggesting that preserving dependency is more important than fine-tuning window parameters.

Key Results

  • $\mu$KE improves edit efficacy by up to 12.33% over state-of-the-art methods like AnyEdit on various benchmarks.
  • $\mu$KE demonstrates robustness across diverse formatted edits and LLMs.
  • When combined with UnKE (denoted as $\mu$KE), performance reaches near-perfect scores (e.g., 99.996%* BLEU on UnKEBench), indicating near-complete editing success.
  • $\mu$KE significantly reduces hallucinations, showing better performance than AnyEdit on the SelfCheckGPT benchmark.
  • The method generally preserves the model's general capabilities (locality) on MMLU and IFEval benchmarks.

Limitations and Future Work

  • Optimization Coupling: The locate-and-edit paradigm is tightly coupled with its optimization process. While $\mu$KE uses adaptive loss, further exploration into more effective and generalizable optimization strategies is needed.
  • Benchmark Limitations: Existing benchmarks lack explicit annotations for fine-grained knowledge units within longer targets, limiting insight into editing complex, interdependent knowledge. Future work could involve designing more comprehensive benchmarks.
  • Dynamic Window Sizing: The paper suggests that dynamically selecting window sizes based on input data characteristics could lead to further improvements, which is left as a future direction.
  • Computational Overhead: $\mu$KE introduces a slight increase in computation time (around 4.2% with cache, 33.8% without), which is noted as a trade-off for improved performance. Efficiency is not the primary focus of this work.

Summary updated

BibTeX
@inproceedings{su2025mu,
  author = {Zian Su and Ziyang Huang and Kaiyuan Zhang and Xiangyu Zhang},
  title = {{$\textbackslash\{\}mu$KE: Matryoshka Unstructured Knowledge Editing of Large Language Models}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=MiR3ObcF3C},
}
Figure