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

HERTA: A High-Efficiency and Rigorous Training Algorithm for Unfolded Graph Neural Networks

Yongyi Yang, Jiaming Yang, Wei Hu, Michal Derezinski

Abstract

As a variant of Graph Neural Networks (GNNs), Unfolded GNNs offer enhanced interpretability and flexibility over traditional designs. Nevertheless, they still suffer from scalability challenges when it comes to the training cost. Although many methods have been proposed to address the scalability issues, they mostly focus on per-iteration efficiency, without worst-case convergence guarantees. Moreover, those methods typically add components to or modify the original model, thus possibly breaking the interpretability of Unfolded GNNs. In this paper, we propose HERTA: a High-Efficiency and Rigorous Training Algorithm for Unfolded GNNs that accelerates the whole training process, achieving a nearly-linear time worst-case training guarantee. Crucially, HERTA converges to the optimum of the original model, thus preserving the interpretability of Unfolded GNNs. Additionally, as a byproduct of HERTA, we propose a new spectral sparsification method applicable to normalized and regularized graph Laplacians that ensures tighter bounds for our algorithm than existing spectral sparsifiers do. Experiments on real-world datasets verify the superiority of HERTA as well as its adaptability to various loss functions and optimizers.

Introduction

Graph Neural Networks (GNNs) are powerful but often function as "black boxes." Unfolded GNNs (like the TWIRLS model) offer a solution: they are rigorously derived from optimization problems, making their internal logic and training dynamics much easier to interpret. However, Unfolded GNNs face a massive "scalability tax." They suffer from two main bottlenecks: slow iterations, due to the interactive nature of graphs requiring global structure analysis, and slow convergence, especially when graphs are poorly connected or data is ill-conditioned.

Previous attempts to speed this up usually involve graph sampling, which often distorts the original model and ruins the very interpretability that makes Unfolded GNNs attractive. HERTA addresses these challenges by delivering nearly-linear time complexity and guaranteed fast convergence without modifying the underlying model.

Methodology: The HERTA Framework

Instead of changing the model to fit the hardware, HERTA uses advanced numerical linear algebra to solve the original model faster. Key components include:

  • A Specialized Preconditioner: HERTA constructs a matrix that "smooths out" the optimization landscape. This transforms a difficult, ill-conditioned problem into a well-conditioned one that converges in just a few steps.
  • Regularized Spectral Sparsification: The authors developed a new way to "thin out" the graph's edges while strictly preserving its most important mathematical properties (specifically for normalized and regularized Laplacians). This makes the math much lighter without losing accuracy.
  • RandNLA Techniques: The algorithm uses tools like the Subsampled Randomized Hadamard Transformation (SRHT) and SDD (Symmetric Diagonal Dominant) solvers to perform massive matrix multiplications and linear system solves in nearly-linear time.

Experimental Setup

The researchers evaluated HERTA on several standard real-world graph benchmarks, including classic citation networks like Cora, Citeseer, and Pubmed, as well as the larger-scale ogbn-arxiv dataset from the Open Graph Benchmark (OGB).

Key Results and Insights

HERTA demonstrates that interpretability does not have to come at the cost of speed. It converges to the exact same optimum as the original slow method, but significantly faster.

Lightning-Fast Convergence

In experiments, HERTA typically required fewer than 10 iterations to get extremely close to the minimum training loss, whereas standard optimizers like Adam or Gradient Descent required hundreds of epochs to reach the same point.

Convergence comparison of HERTA against standard optimizers across different settings.

Scalability and Consistency

HERTA achieved a nearly-linear time worst-case training guarantee, proving it can handle large, dense graphs that would crash or stall traditional unfolded training methods. The performance gains were consistent across different datasets and different hyperparameter settings (like varying the regularization term $\lambda$).

Long-term training loss comparison showing the sustained advantage of HERTA over 400 epochs.

Theoretical Contributions

  • The "Effective Laplacian Dimension" ($n_\lambda$): The paper introduces this concept to show that the complexity of training depends on the number of "large" eigenvalues in the graph, rather than just the total number of nodes.
  • Surprising Universality: Although HERTA was theoretically derived for Mean Squared Error (MSE) loss, it works remarkably well for Cross-Entropy (CE) loss too. The authors show that the "Hessians" for both loss functions are structurally very similar.

Discussion and Future Work

While HERTA represents a significant step forward, some limitations remain. The current theoretical framework assumes a linear node feature transformation ($XW$). Extending HERTA to handle deep non-linear networks or complex attention mechanisms is a key next step. Additionally, while HERTA works well for Cross-Entropy loss in practice, formalizing the worst-case convergence proofs for CE loss remains an open research direction. Finally, the runtime includes a $\lambda^2$ term, which could become a bottleneck in cases requiring extreme regularization.

Summary updated

BibTeX
@inproceedings{yang2024herta,
  author = {Yongyi Yang and Jiaming Yang and Wei Hu and Michal Derezinski},
  title = {{HERTA: A High-Efficiency and Rigorous Training Algorithm for Unfolded Graph Neural Networks}},
  booktitle = {M3L @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=A79w0PtNdc},
}
Figure