Hippocampal-like Sequential Editing for Continual Knowledge Updates in Large Language Models

Quntian Fang, Zhen Huang, Zhiliang Tian, Minghao Hu, Dongsheng Li, Yiping Yao, Xinyue Fang, Menglong Lu, Guotong GengNeurIPS 2025

Introduction

Large Language Models (LLMs) are essentially snapshots of the internet at a specific point in time. To keep them relevant without the prohibitive cost of full retraining, researchers rely on model editing—tweaking specific parameters to update facts (e.g., changing the name of a current Prime Minister).

However, performing many edits in a row (sequential editing) often breaks the model. Current methods suffer from parameter drift: each new edit pushes the model's weights further away from their original state. Eventually, this leads to model collapse, where the LLM loses its general abilities (like grammar or logic) and suffers from catastrophic forgetting, where an edit at step 1,000 accidentally overwrites a crucial fact learned at step 10.

To solve this, researchers have developed HSE (Hippocampal-like Sequential Editing), a bio-inspired framework that allows LLMs to undergo thousands of sequential knowledge updates without collapsing. By mimicking the brain's trisynaptic circuit, HSE balances active forgetting of outdated facts with a lightweight parametric replay system.

The HSE Framework: Bio-Inspired Methods

The HSE framework draws a direct parallel between the biological mechanisms of the hippocampus and the mathematical optimization of neural networks. It consists of three core components designed to manage the delicate balance between acquiring new knowledge and retaining the old.

HSE Framework and Biological Inspiration
  1. Memory-directed Active Forgetting (Machine Unlearning): Inspired by Long-Term Depression (LTD) in the brain, HSE doesn't just write new data over the old. It uses an "unlikelihood loss" to actively erase specific outdated or conflicting knowledge before injecting the new fact. This "clears the slate" and reduces internal interference, proving that forgetting is just as important as learning.
  2. Memory Stability Preservation (Fisher Information Matrix): Inspired by pattern separation in the Dentate Gyrus, HSE uses the Fisher Information Matrix (FIM) to identify which parameters are most important for existing knowledge. It then penalizes updates to those "critical" weights, ensuring that new knowledge from different domains doesn't collide.
  3. Progressive Memory Consolidation (Parameter Replay): Inspired by Sharp-Wave Ripples (SWRs)—the process where the brain replays memories during rest—HSE uses a closed-form mathematical solution to maintain a "long-term editing memory." Instead of storing and re-training on all past edit data, it accumulates a covariance matrix that acts as a parametric "summary" of everything the model has been edited to know so far. This prevents the uncontrollable surge in weight changes (Frobenius norm) that typically causes model collapse.

Datasets and Evaluation

The framework was rigorously evaluated across several benchmarks to test both editing efficacy and the preservation of general capabilities:

  • CounterFact & ZsRE: Datasets used to test if a model can truly "overwrite" its internal knowledge and generalize to new questions.
  • HalluEdit & SafeEdit: Benchmarks for mitigating domain-specific hallucinations and reducing societal bias/toxic outputs.
  • GLUE: Used to measure the "general capability" of the model, ensuring the LLM hasn't turned into a specialized but "dumb" lookup table.

Key Results and Insights

HSE significantly outperforms existing methods in maintaining both new knowledge and general reasoning capabilities.

Performance Comparison Radar Charts
  • Superior Performance: Across models like Llama3-8B, Mistral-7B, and GPT-J, HSE outperformed the best baselines by an average of 20.6% in generalization and 21.9% in specificity.
  • Zero Collapse: While popular methods like MEMIT and MEND saw their general capabilities (GLUE scores) drop to near zero after 1,000 edits, HSE maintained—and in some cases slightly improved—the model's original performance.
  • High Efficiency: Because HSE uses a closed-form solution for its replay mechanism, it is significantly faster than "full-batch" editing methods as the number of edits grows, scaling linearly ($O(n)$) rather than quadratically ($O(n^2)$).

Limitations and Future Work

While highly effective, the study primarily focused on models up to 8B parameters; testing on 70B+ parameter models is a necessary next step to confirm scale invariance. Additionally, the current work focuses on "fact-triplet" updates (Subject-Relation-Object). Expanding this to handle complex, reasoning-intensive updates or long-form generation editing remains an open challenge. Finally, researchers plan to further investigate the interpretability of these updates to better understand the internal logic of the edited layers.

Summary updated

BibTeX
@inproceedings{fang2025hippocampal,
  author = {Quntian Fang and Zhen Huang and Zhiliang Tian and Minghao Hu and Dongsheng Li and Yiping Yao and Xinyue Fang and Menglong Lu and Guotong Geng},
  title = {{Hippocampal-like Sequential Editing for Continual Knowledge Updates in Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=tqriGodQ79},
}
Figure