Abstract
Standard Graph Neural Networks (GNNs) are often limited by "backtracking," a phenomenon where messages oscillate between adjacent nodes, creating redundant noise that obscures long-range information. This paper introduces the Non-BAcktracking Graph Neural Network (NBA-GNN), a framework designed to explicitly forbid these redundant updates. By maintaining edge-wise hidden features and restricting message flow, NBA-GNN effectively alleviates the "over-squashing" problem and significantly improves performance on sparse graphs and long-range tasks.
Introduction: The Backtracking Problem
Most GNNs utilize a message-passing mechanism where nodes aggregate information from their immediate neighbors to update internal representations. While intuitive, this process contains a fundamental flaw: backtracking. When node $A$ sends a message to node $B$, node $B$ subsequently sends a message back to $A$ that includes the information it just received. As GNN layers increase, these "echoing" message flows grow exponentially.
This redundancy leads to two primary issues. First, over-squashing occurs when critical information from distant nodes is drowned out by local, redundant messages. Second, traditional GNNs often struggle with sparse graphs, where the standard adjacency matrix fails to reveal underlying community structures unless node degrees are sufficiently high.
NBA-GNN: A Non-Backtracking Framework
To solve these issues, the authors propose the Non-BAcktracking Graph Neural Network (NBA-GNN). Unlike standard models that update node features, NBA-GNN maintains and updates edge-wise hidden features ($h_{j \to i}$).
The core innovation is the update rule: to calculate the message from node $j$ to node $i$, the model aggregates messages from all of $j$'s neighbors except for node $i$. This constraint ensures that a message never immediately returns to its source. For "dead end" nodes (degree 1), the authors implement a "begrudgingly backtracking" logic, allowing a message to backtrack only when no other path exists, preventing information from being trapped.
Theoretical Foundations and Faster Exploration
The NBA-GNN framework is grounded in the theory of non-backtracking random walks. Such walks explore graphs significantly faster than simple random walks, allowing the GNN to "see" global structure more efficiently.
Furthermore, the authors highlight the "spectral redemption" of the non-backtracking matrix. In sparse regimes where the standard adjacency matrix is dominated by noise from high-degree hubs, the non-backtracking matrix maintains a clean eigenvalue spectrum. This allows NBA-GNN to identify communities even when the average node degree is constant, a task where traditional GNNs typically fail.
Empirical Performance and Results
NBA-GNN was evaluated against rigorous benchmarks, including the Long-Range Graph Benchmark (LRGB) and various node classification tasks. Key results include:
- LRGB Breakthroughs: On the PascalVOC-SP dataset, integrating the NBA framework into a standard GCN led to a +100% relative improvement in F1 score.
- State-of-the-Art (SOTA): NBA-GNN variants achieved SOTA or highly competitive results on LRGB, often outperforming complex Transformer-based models.
- Heterophilic Datasets: On datasets like Texas and Wisconsin, where local neighborhoods are often misleading, NBA-GNN showed gains of up to +15% accuracy.
- Efficiency: Despite storing $2|E|$ messages, NBA-GNN proved more computationally efficient and required less preprocessing than other redundancy-free methods like PathNN.
Conclusion and Future Directions
NBA-GNN offers a robust solution to over-squashing by fundamentally changing the flow of information within the graph. While it requires more memory than node-based GNNs to store edge-wise features, its efficiency in capturing long-range dependencies makes it a powerful tool for sparse and complex graphs. Future work includes extending the "begrudgingly backtracking" logic to directed graphs and further optimizing memory overhead for extremely large-scale networks.
Summary updated