Forest-Based Graph Learning for Semi-Supervised Node Classification

Jin Li, Shenghao Gao, Kaichen Zhang, Xinlong Chen, Ying Sun, Hui XiongICLR 2026

TL;DR

Forest-Based Graph Learning (FGL) breaks the "Graph Learning Dilemma" by routing information through a "forest" of spanning trees rather than the full graph. This approach enables every node to communicate with every other node in linear time, achieving state-of-the-art accuracy on node classification tasks while being significantly faster and more memory-efficient than Graph Transformers.

The Graph Learning Dilemma

Graph Neural Networks (GNNs) typically suffer from a restricted "receptive field." Most standard models only aggregate information from a node's immediate neighbors (1-3 hops). To capture the long-range dependencies essential for complex tasks or sparse labels, researchers usually take one of two paths, both of which have significant drawbacks:

  1. Deep Local Models: Stacking dozens of layers to expand the receptive field. This often leads to "over-smoothing"—where all node features become indistinguishable—and incurs high computational costs.
  2. Shallow Global Models (Graph Transformers): Using global attention so every node can directly interact with every other node. This creates a "quadratic bottleneck" ($O(n^2)$ complexity), making it impossible to scale to large graphs without heavy approximations.

The authors identify a fundamental trade-off between cost-effectiveness and global receptive fields. They ask: Is there a structure that provides global coverage without the massive overhead?

Methodology: Forest-Based Graph Learning

To solve this, the authors propose Forest-Based Graph Learning (FGL), a novel paradigm that treats message passing as transportation over a set of spanning trees.

Overview of the Forest-Based Graph Learning (FGL) framework.

The FGL framework consists of several key components:

  • Spanning Trees as Highways: A spanning tree is the minimal subgraph that connects every node in a graph. Because there is exactly one path between any two nodes in a tree, information can travel across the entire network efficiently without redundant, noisy loops.
  • The Tree Sampler: Instead of picking trees at random, FGL uses a Homophily Estimator. It learns which edges are likely to connect nodes of the same class and biases the tree sampling (using a weighted Wilson’s algorithm) toward these "high-quality" edges.
  • Linear-Time Tree Aggregator: This is the mathematical core of the paper. The authors developed a two-step recursion (bottom-up to the root, then top-down to the leaves) that allows for "all-to-all" node interactions in $O(n)$ time rather than $O(n^2)$.
The linear-time tree aggregator mechanism.
  • Tree Fuser: Since a single tree might miss some important local connections, FGL samples a "forest" (multiple trees). The representations learned from these individual trees are averaged and combined with local graph information to produce the final robust classification.

Key Insights

  • The "Simplest" Global Structure: The core insight is realizing that a spanning tree is the minimal structure required for global connectivity. Focusing on trees eliminates redundant edges that contribute to noise and computational bloat.
  • Homophily-Guided Sampling: The paper theoretically proves that as the estimate of "edge homophily" (how similar connected nodes are) improves, the sampled trees become significantly more effective for classification.
  • Alleviating Over-smoothing: Spectral analysis shows that spanning trees naturally have a larger "diameter" and lower "maximum degree" than the original graph. This structure inherently resists over-smoothing, allowing the model to preserve distinct node features even with global communication.
  • Efficiency via Recursion: By reinterpreting global attention as a recursive message-passing problem on a tree, FGL achieves the expressive power of a Graph Transformer with the speed of a simple Graph Convolutional Network (GCN).

Datasets and Results

The model was rigorously evaluated on nine diverse real-world benchmarks, including homophilous graphs (Cora, Citeseer, Pubmed, OGBN-ArXiv), heterophilous graphs (Actor, Cornell, Texas, Wisconsin, Flickr), and large-scale datasets (AMiner-CS).

  • State-of-the-Art Performance: FGL achieved the highest average rank across all nine datasets, outperforming 26 different baseline models, including specialized Deep GNNs and modern Graph Transformers.
  • Massive Speedup: FGL is remarkably efficient. It demonstrated a 2x to 5x speedup over efficient Transformer variants like SGFormer and DIFFormer. On the OGBN-ArXiv dataset, FGL runs in ~0.25 seconds per epoch, whereas some state-of-the-art models take dozens of seconds.
  • Robustness to Noise: In stress tests where Gaussian noise was added to node features, FGL maintained much higher accuracy than baselines. This suggests the tree-based structure effectively filters out noisy, non-essential connections.

Limitations and Future Work

While highly effective, the spanning tree approach necessarily discards many edges. In extremely dense graphs where local edge patterns are critical, a small forest might lose some nuance, though FGL mitigates this with a local submodule. Additionally, the method relies on the graph being connected (or augmented to be connected) to sample spanning trees.

Future directions include extending the "forest" concept to Directed Acyclic Graphs (DAGs) to eliminate the need for certain recursive steps, and exploring more sophisticated "tree fusers" beyond simple averaging.

Summary updated

BibTeX
@inproceedings{li2026forest,
  author = {Jin Li and Shenghao Gao and Kaichen Zhang and Xinlong Chen and Ying Sun and Hui Xiong},
  title = {{Forest-Based Graph Learning for Semi-Supervised Node Classification}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=5asbtzIVpS},
}
Figure