IncAgg: Efficient Memory-Enhanced Graph Learning via Incremental Aggregation

Xingyue Shi, Zhichao Hou, Jiahao Zhang, Suhang Wang, Tong Zhao, Neil Shah, Xiaorui LiuNeurIPS 2026

TL;DR

Training Graph Neural Networks (GNNs) on massive graphs usually forces a painful choice between losing critical neighbor information via mini-batch sampling or suffering severe data-transfer bottlenecks from fetching historical node memories. IncAgg breaks this trade-off by pre-aggregating historical context outside the main training loop and propagating only the fresh changes (residuals) within the current batch. The result? Up to 18.6× faster training with zero architectural changes and no loss in accuracy.

What Problem Does This Paper Address?

Imagine trying to understand a person by interviewing their friends, their friends' friends, and so on. On massive networks, this "neighbor explosion" makes full-graph GNN training impossible. The standard workaround is mini-batch sampling—grabbing a small slice of nodes to train on. Unfortunately, slicing the graph severs connections to out-of-batch neighbors, introducing blind spots and training instability.

To fix this, memory-enhanced GNNs (like GNNAutoScale, or GAS) cache historical node representations (embeddings) in CPU RAM. During each training step, they pull the memories of missing neighbors onto the GPU to reconstruct a "pseudo" full neighborhood. While this saves accuracy, the authors' profiling reveals a massive hidden tax: data movement and redundant aggregation. Every single mini-batch iteration has to fetch thousands of out-of-batch memories across the CPU–GPU highway and aggregate over huge neighborhoods, turning memory-enhanced training into a sluggish bottleneck.

Methods

Instead of rebuilding full neighborhoods from scratch inside every training iteration, IncAgg (Incremental Aggregation) relies on a simple mathematical insight: if your aggregation is linear, aggregating updated values is the exact same thing as taking a pre-computed baseline and adding the aggregated difference (residual).

Figure 1: Overview. (a) Mini-batch training on partitioned subgraphs leads to missing out-of-batch neighbors. (b) Memory-enhanced methods like GAS [7] and GraphFM [17] address this by pulling historical embeddings of out-of-batch nodes and aggregating over full neighborhoods, incurring heavy data movement. (c) IncAgg avoids out-of-batch access by propagating the embedding delta within the batch and fusing periodically updated global memory to restore full-neighborhood context.

IncAgg splits training into two decoupled phases without altering the underlying GNN architecture:

  1. Periodic Memory Refresh (Outer Loop): Once in a while (e.g., once per epoch, piggybacking on the standard validation pass), IncAgg takes a snapshot of all node embeddings ($\mathbf{M}_L$) and computes a global memory baseline ($\mathbf{M}_G$) via full-neighborhood propagation. Both live cheaply in CPU RAM.
  2. Incremental In-Batch Aggregation (Inner Loop): During mini-batch training on the GPU, IncAgg ignores out-of-batch neighbors completely. Instead, it:
  3. Computes the residual: how much the current batch's embeddings have changed since the last snapshot ($\Delta\mathbf{H}_{\mathcal{B}} = \mathbf{H}_{\mathcal{B}} - \mathbf{M}_{L,\mathcal{B}}$).
  4. Propagates that residual strictly within the current batch.
  5. Fuses the result by adding it back to the cached global baseline ($\mathbf{M}_{G,\mathcal{B}}$) before passing it to the neural network's nonlinear layers.

Datasets

The authors evaluate IncAgg on four standard, large-scale node classification benchmarks spanning diverse sizes and densities (no new datasets are introduced):

  • ogbn-arxiv (169k nodes, 1.16M edges; sparse citation network)
  • ogbn-products (2.4M nodes, 61.9M edges; product co-purchasing)
  • Amazon-products (1.6M nodes, 264.3M edges; very dense graph, averaging 165.2 edges per node)
  • Reddit (233k nodes, 23.2M edges; dense community graph)

Key Insights and Ideas

  • Algebraic equivalence without the I/O tax: Because out-of-batch nodes aren't being updated in the current step, their residual relative to the snapshot is literally zero. That means propagating residuals only inside the batch and adding the global baseline is mathematically identical to full pseudo-neighborhood aggregation for a fixed snapshot—eliminating out-of-batch memory pulls entirely.
  • No more expensive graph partitioning: Previous memory-based methods rely heavily on algorithms like METIS to neatly cluster graphs and minimize severed edges, which is slow and memory-hungry. Because IncAgg preserves global context in $\mathbf{M}_G$ and actually runs faster when more edges are cut (fewer in-batch edges to compute!), cheap uniform random partitioning works remarkably well.
  • Staleness isn't as scary as we thought: Recent GNN literature has obsessed over keeping historical embeddings ultra-fresh, adding complex momentum or gradient trackers. IncAgg shows that refreshing global memory just once per epoch provides a stable enough baseline to match state-of-the-art accuracy at a fraction of the compute cost.

Key Results

Tested across four representative GNN backbones (GCN, APPNP, GCNII, and GraphSAGE), IncAgg delivers substantial speedups while matching or slightly beating the accuracy of its primary baseline, GAS:

  • Massive Speedups: IncAgg achieves geometric-mean epoch speedups of 13.8× on ogbn-products, 10.1× on Amazon, 7.6× on Reddit, and 2.5× on ogbn-arxiv—peaking at an 18.6× speedup with APPNP on ogbn-products.
  • Lower GPU Memory: By never pulling out-of-batch neighbors onto the device, IncAgg reduces reserved GPU memory by 18% to 53% on ogbn-arxiv depending on batch size.
Figure 2: Efficiency–accuracy trade-off on Reddit dataset. “Base” denotes GAS.
  • Extreme Small-Batch Resilience: Under harsh conditions on Reddit (random partitioning with tiny 5% batches, where 94.1% of edges are severed), GAS degrades to 93.6% accuracy and takes 6,667 ms per epoch. IncAgg hits 94.5% accuracy in just 727 ms (a 9.17× speedup).

Limitations and Future Work

IncAgg's exact residual math relies on propagation being a fixed-coefficient linear map—meaning edge weights depend only on graph structure, not on dynamically changing node features. Consequently, attention-based GNNs like GAT (where attention weights change every iteration) and non-additive aggregators like max/min pooling fall outside this exact formulation. Furthermore, this study focuses strictly on transductive node classification; extending incremental aggregation to attention mechanisms, non-additive pooling, and other tasks like link prediction or graph classification remains open for future work.

Summary updated

Abstract

Scaling Graph Neural Network (GNN) training to large graphs commonly relies on mini-batch sampling, but incomplete neighborhoods can degrade approximation quality and training stability. Memory-enhanced methods mitigate this issue by reusing historical node embeddings to approximate full-neighborhood aggregation; however, they reconstruct pseudo full-neighborhood messages inside every training iteration, repeatedly fetching out-of-batch memories and aggregating over large neighborhoods. In this work, we identify this under-examined inner-loop bottleneck and propose IncAgg, an efficient memory-enhanced GNN training framework based on incremental aggregation. IncAgg periodically pre-aggregates historical embeddings into a global memory baseline, and during mini-batch training propagates only the current in-batch residual before fusing it with the stored global context. This design preserves historical full-neighborhood information at a configurable refresh frequency while avoiding per-iteration out-of-batch memory fetching and aggregation, without modifying the underlying GNN architecture. We provide theoretical analyses showing that IncAgg reduces gradient-carrying aggregation and memory-access costs while retaining the residual-based stability principle of memory-enhanced estimators. Extensive experiments on four large-scale benchmarks and four representative GNN backbones show that IncAgg matches or improves the accuracy of strong memory-enhanced baselines while achieving substantial training acceleration, with up to $18.6\times$ speedup in individual settings and up to $13.8\times$ geometric-mean speedup on large graphs.
BibTeX
@inproceedings{shi2026incagg,
  author = {Xingyue Shi and Zhichao Hou and Jiahao Zhang and Suhang Wang and Tong Zhao and Neil Shah and Xiaorui Liu},
  title = {{IncAgg: Efficient Memory-Enhanced Graph Learning via Incremental Aggregation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=hX0lLa5bcj},
}
Figure