Graph Memory Learning: Imitating Lifelong Remembering and Forgetting of Brain Networks

Jiaxing Miao, Liang Hu, Qi Zhang, Longbing Cao

This paper introduces Graph Memory Learning (GML), a new paradigm for training graph neural networks (GNNs) on dynamic, real-world data. By mimicking the human brain’s ability to selectively remember new information and forget the obsolete, the authors propose a framework called BGML that handles continuous data influx and withdrawal more efficiently and accurately than traditional retraining methods.

TL;DR

BGML is a brain-inspired framework that enables graph models to selectively remember and forget information in a continuous data stream. By decoupling node features from rigid global structures and using a hierarchical, modular architecture, it achieves state-of-the-art performance on dynamic graph tasks without the need for expensive retraining.

What Problem Does This Paper Address?

In the real world, graphs (like social networks or recommendation systems) are never static. New users join, old ones leave, and relationships constantly evolve. Traditional GNNs struggle with this "dynamic flow."

Existing solutions are often lopsided: Graph Lifelong Learning (GLL) focuses on accumulating new knowledge while preventing "catastrophic forgetting" of the old, whereas Graph Unlearning (GUL) focuses on efficiently removing specific data (often for privacy reasons). Neither effectively handles a continuous, simultaneous stream of both. Retraining a model from scratch every time the graph changes is computationally ruinous. The authors identify a core conflict: how can a model accurately perceive structural changes while maintaining its expressive power?

The flow of data in GML and its brain-inspired foundations.

Methods

The authors propose Brain-inspired Graph Memory Learning (BGML), which draws on the modular and hierarchical structure of the cerebral cortex. Key components include:

  • Multi-granular Graph Partition (MGP): Instead of treating the graph as one giant blob, BGML divides it into hierarchical "shards" (from coarse to fine granularity), mimicking brain regions specialized for different tasks.
  • Feature Graph Grain Learning (FGGL): This is a critical innovation. It converts individual nodes into "feature graphs" (graph grains). This effectively decouples node learning from the global graph structure, making it much easier to add or remove specific "grains" of knowledge without disrupting the whole system.
  • Multi-granular Hierarchical Progressive Learning (MGHPL): The model learns from shards progressively. A "progress-aware" module evaluates sub-models; if a coarse-grained model struggles, the system activates a more fine-grained sub-model to support it.
  • Information Self-assessment Ownership (ISAO): When new data arrives, this mechanism allows the new nodes to "autonomously" select the most appropriate shard and neighbors based on feature similarity, ensuring the new information integrates reliably.
The overall BGML framework, showing the t0 (initialization) and ti (dynamic update) phases.

Datasets

The authors evaluated BGML on nine diverse node classification datasets:

  • Citation Networks: Cora, CiteSeer, PubMed, and Ogbn-arXiv.
  • Co-author Networks: Coauthor-CS and Coauthor-Physics.
  • Real-world Dynamic Networks: Reddit, Flickr, and Yelp.

They designed five specific task types to test different aspects of memory: regular learning, memory (simultaneous add/remove), unlearning (remove only), data-incremental (add only), and class-incremental.

Key Insights and Ideas

  • The Power of Decoupling: By using FGGL to turn nodes into independent "grains," the model breaks the "shackles" of a rigid global adjacency matrix. This makes "forgetting" a specific node as simple as removing its grain and retraining only the affected local sub-model.
  • Selective Plasticity: Inspired by synaptic remodeling, BGML doesn't update everything at once. Incremental requests (IR) and forgetting requests (FR) only trigger responses in relevant "brain regions" (shards), preserving past experiences in inactive regions.
  • Hierarchy Alleviates Conflict: The hierarchical approach (MGHPL) allows the model to delineate boundaries between what should be kept and what should be discarded more clearly than a flat architecture.

Key Results

BGML consistently outperformed a wide array of baselines (including GCN, GAT, and specialized GLL/GUL methods like FGNs and GraphEraser) across all nine datasets and five task types.

  • Accuracy: In "Memory" tasks (handling both additions and deletions), BGML showed significant F1-score improvements (e.g., reaching 88.46% on PubMed compared to 86.42% for the next best baseline).
  • Stability: As shown in Figure 4, BGML maintains a much more stable performance trend over time in dynamic environments, while other models suffer from significant fluctuations as data is added and removed.
  • Efficiency: BGML is highly efficient at "unlearning." While slightly slower than GraphEraser (due to the extra step of grain transformation), it is vastly faster than retraining and provides much higher accuracy.

Limitations and Future Work

The authors acknowledge a few areas for growth:

  • Edge-level Dynamics: This study focused primarily on node-level changes (adding/removing users). Future work will explore how GML handles the evolution of edges (relationships) specifically.
  • Inter-model Communication: The authors suggest exploring "interareal communication" between sub-models to see if experiences from one shard can help process similar structures in another.
  • Information Overwriting: Instead of sequential processing, they propose investigating if new incoming data (IR) can be used to "overwrite" or modify the information slated for forgetting (FR) more uniformly.

Summary updated

BibTeX
@article{miao2025graph,
  author = {Jiaxing Miao and Liang Hu and Qi Zhang and Longbing Cao},
  title = {{Graph Memory Learning: Imitating Lifelong Remembering and Forgetting of Brain Networks}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2025},
  doi = {10.1109/tpami.2025.3599898},
}
Figure