TL;DR
Standard Graph Neural Networks (GNNs) often fail on "heterophilic" graphs where connected nodes have different labels. This paper introduces NFGNN, a model that learns unique, node-specific spectral filters instead of a single global one, allowing it to adapt to diverse local patterns and significantly outperform existing methods on non-homophilic data.
What Problem Does This Paper Address?
Most GNNs are built on the homophily assumption: the idea that "birds of a feather flock together" (e.g., a computer science paper is likely to cite another computer science paper). Under this assumption, GNNs act as "low-pass filters," smoothing out features across neighbors.
However, many real-world graphs are heterophilic (e.g., a protein interaction network where different types of amino acids are more likely to connect). In these cases, standard GNNs perform poorly because they try to average out information that should stay distinct. Furthermore, real graphs are often a "mixed bag"—some neighborhoods are homophilic while others are heterophilic. A single, global spectral filter (the "one-size-fits-all" approach used by most current models) can't handle this local variation.
Methods
The authors propose Node-oriented spectral Filtering for Graph Neural Networks (NFGNN). Its core innovation is moving from a global filter to a localized, adaptive one.
- Node-oriented Filtering: Instead of applying one filter to the whole graph, NFGNN estimates a specific filter for every single node. It uses a "generalized translation operator" from Graph Signal Processing to center these filters on their respective target nodes.
- Low-rank Reparameterization: Learning a unique filter for every node would normally explode the number of parameters. To solve this, the authors use a clever matrix factorization trick. They learn a set of "base filters" (shared globally) and a node-dependent weight matrix that determines how each node combines those bases. This weight matrix is generated directly from the node's own features.
- Decoupled Architecture: Following the lead of models like APPNP, NFGNN separates the feature transformation (the "learning" part) from the graph filtering (the "propagation" part). This makes the model more robust and easier to scale.
- Scalable Variant: They introduce a version of the algorithm that pre-computes the graph convolutions, allowing it to run on massive datasets with millions of nodes without hitting GPU memory limits.
Datasets
The researchers evaluated NFGNN on a massive battery of 14 real-world datasets:
- Homophilic Graphs: Cora, CiteSeer, PubMed, Co-purchase (Computers, Photo), and OGB (Arxiv, Products).
- Heterophilic Graphs: Chameleon, Squirrel (Wikipedia pages), Actor, Texas, Cornell (webpages), and large-scale social/citation networks like Penn94, Genius, and Pokec.
- Scale: Datasets ranged from tiny (183 nodes) to massive (the 100-million-node
ogbn-papers100M).
Key Insights and Ideas
- The 2-Hop Trap: The authors theoretically prove that in heterophilic graphs, looking at 2-hop neighbors (even-order hops) often makes the neighborhood less useful for classification. This explains why simply stacking more GNN layers often makes performance worse on non-homophilic data.
- Mixed Local Patterns: By analyzing histograms of "local homophily," the authors show that even "homophilic" graphs like Cora contain small pockets of heterophily. This justifies the need for node-specific filters even in "easy" graphs.
- Efficiency vs. Expressiveness: The low-rank reparameterization provides a "sweet spot." It allows the model to be sensitive to local structural changes while maintaining the computational efficiency of global spectral methods.
Key Results
- SOTA Performance: NFGNN achieved the best performance on nearly all heterophilic datasets. For example, on the
Squirreldataset, it outperformed the previous state-of-the-art (BernNet) by over 5% in accuracy. - Robustness: Unlike many models that specialize in either homophily or heterophily, NFGNN performed competitively across both types of graphs.
- Scalability: The scalable version of NFGNN successfully handled the
ogbn-papers100Mdataset, a feat many complex spectral GNNs cannot achieve due to the sheer size of the graph. - Visualization: Frequency response plots showed that NFGNN actually learns different filter shapes (low-pass, high-pass, or "comb-like") for different nodes within the same graph, proving the model is truly adapting to local context.
Limitations and Future Work
- Inductive Limitations: While the authors show NFGNN can work in an inductive setting (where new nodes arrive), the model still relies on the graph Laplacian. If the graph structure changes drastically, the filters might need retraining.
- Theoretical Stability: The paper briefly discusses the stability of spectral GNNs, but the authors suggest that more work is needed to understand how these adaptive filters transfer between different graphs sampled from the same underlying distribution (Graphons).
- Hyperparameter Sensitivity: While the low-rank $d$ helps, finding the optimal rank and polynomial order $K$ for a specific graph still requires some manual tuning.
Summary updated