Self-Tuning Graph Filters via State-Dependent Operator Composition

Amir Ghazizadeh Ahsaei, Mahyar Alinejad, George K. Atia, Rickard Ewetz, Hao ZhengNeurIPS 2026

TL;DR

Most Graph Neural Networks (GNNs) treat every node and every graph with a one-size-fits-all rule for sharing information—usually averaging neighbors together. CASTOR replaces this rigid rule with a lightweight, self-tuning filter that lets every individual node decide at every step whether to blend in with its neighbors, stand out from them, or stay put, while using physics-inspired "momentum" to speed up or brake signal travel across the network. As a result, a single architecture achieves top-tier performance across wildly different types of graphs without needing custom redesigns.

What Problem Does This Paper Address?

Imagine trying to figure out someone’s profession based on their social network. In a university citation network, connected papers usually share a topic—this "birds of a feather" property is called homophily, and averaging a node with its neighbors (smoothing) works wonders. In a dating network or fraud ring, however, connected nodes are often opposites—a property called heterophily. Here, averaging neighbors washes out the exact differences you need to see, leading to an indistinguishable mush known as over-smoothing.

Because standard GNNs bake a single, fixed mathematical filter into every layer, practitioners usually have to inspect a new graph first and hand-pick a specialized architecture tailored to its homophily level. The authors show why even sophisticated fixed filters fail along two distinct axes:

  1. Nodes in the same graph have different needs: Some nodes are best predicted by their own raw features, others by immediate neighbors, and others by multi-hop neighborhoods—and that ideal recipe changes from step to step.
  2. Graphs mix information at different speeds: Passing a signal across some graphs barely changes it after ten steps, while on dense graphs it scrambles almost immediately.
Signal mixing rates vary dramatically across different heterophilic graphs, requiring either acceleration or damping.

Methods

Instead of committing to a static filter, CASTOR treats a node's evolving representation like a particle moving through space, guided by two state-dependent mechanisms at each propagation step $k$:

One step of the CASTOR block, combining per-node primitive routing with a momentum update.
  • Per-Node Routing Kernel: At every step, a tiny shared neural network (the Router) looks at two things for each node: how much it currently disagrees with its neighbors (the local residual) and what it looked like at the very beginning (its unmixed initial state). It then outputs three probability weights to mix three primitive operations:
  • Smoothing (Low-pass): Average with neighbors.
  • Residual (High-pass): Contrast against neighbors by amplifying disagreements.
  • Identity (Pass-through): Leave the representation unchanged.
  • Sign-Flexible Momentum: Rather than standard first-order message passing (where step $k$ only depends on step $k-1$), CASTOR adds a learnable scalar multiple $\beta_k$ of the node's recent "velocity" (the change between the last two steps). If $\beta_k > 0$, it accelerates stalled signals deeper into slow-mixing graphs (like Polyak's heavy-ball momentum in optimization). If $\beta_k < 0$, it damps (pushes back against) the motion to prevent overshooting on fast-mixing graphs. Setting $\beta_k = 0$ recovers standard propagation.

Datasets

No new datasets are introduced, as the goal is to test universality across the existing landscape. CASTOR is evaluated on 14 standard transductive node-classification benchmarks spanning the full homophily-to-heterophily spectrum:

  • Homophilic graphs: Cora, CiteSeer, PubMed.
  • Small heterophilic graphs: Texas, Wisconsin, Actor, Squirrel, Chameleon, Cornell (plus de-duplicated versions of Squirrel and Chameleon).
  • Mid-scale heterophilic benchmarks (Platonov et al.): Roman-empire, Amazon-ratings, Minesweeper, Tolokers, and Questions (ranging from 10,000 to ~49,000 nodes).
  • Large-scale scalability checks: ogbn-arxiv and ogbn-products (2.45 million nodes).

Key Insights and Ideas

  • Remembering where you started is crucial: If two nodes look very similar to their neighbors at step 5, one might be a converged hub that should stop updating, while the other sits on a tricky boundary and needs sharper contrast. Re-reading the initial state at every step gives the Router the context to tell them apart.
  • Opposite momentum signs solve the same exploration problem: On slow-mixing Cornell, CASTOR learns positive momentum ($\bar{\beta} = +0.76$); on fast-mixing Squirrel, it learns negative momentum ($\bar{\beta} = -0.52$). Remarkably, both allow signals to travel over $2.3\times$ farther across 10 hops instead of stalling out—one by pushing forward, the other by resisting local collapse.
  • White-box interpretability for free: Because the routing weights and momentum scalars are computed directly in the forward pass, you can inspect a trained model without post-hoc tools and watch individual nodes switch strategies hop by hop.
Figure 4: Effect of the momentum and of finer routing. The left and middle panels show how far a random signal moves over ten propagation steps on Cornell and Squirrel, with the learned momentum (solid) and without it (dashed). The right panel shows the accuracy gain on the Platonov benchmarks (PubMed and Actor in gray) when the Router makes more than one routing decision per node. Each decision then covers a group of channels, and 64 decisions give one per channel.

Key Results

  • Unmatched consistency: Across all 14 main benchmarks and 14 competitive baselines, a single CASTOR architecture is the only model to rank in the top three on every single dataset, achieving an average rank of 2.07—more than 3.5 ranks ahead of the runner-up, GAMMA (5.79), and MixHop (6.21).
  • Strong wins across regimes: CASTOR takes 1st place on PubMed (89.85%), Wisconsin (86.67%), Cornell (81.67%), and Minesweeper (91.70% ROC-AUC).
  • Finer routing unlocks major gains: When operating on wider hidden states rather than class logits, letting the Router make decisions per channel instead of once per node boosts Roman-empire accuracy by +9.8 points to 88.2% (beating every baseline in the paper) while adding at most 6% to training step time.
  • Lightweight overhead: On ogbn-arxiv, 15-step inference takes just $1.34\times$ the time of a standard GCN, and evaluating the Router on a 1% sample of nodes sacrifices less than 0.5% accuracy.

Limitations and Future Work

  • Scope of graphs and theory: The core evaluation focuses on static, undirected, transductive node classification, and the theoretical guarantees omit an optional edge-curvature gate used on several datasets. (Though initial appendix tests on directed Chameleon and Squirrel show CASTOR drops only ~4 points compared to 15–19 points for baselines).
  • Linear scaling with depth: Full-batch training memory and latency grow linearly with the number of steps $K$, which could bottleneck very deep filters without subgraph sampling.
  • Future directions: Extending state-dependent operator routing to graph-level prediction tasks, sparse propagation, dynamic/signed networks, and richer per-channel routing schemes.

Summary updated

Abstract

Most graph neural networks propagate information through a fixed-coefficient polynomial filter applied uniformly across every node and every layer. However, the appropriate filter varies along two distinct axes that such a parameterization cannot accommodate. Within a single graph, different nodes benefit from different mixtures of low-pass smoothing, high-pass contrast, and pass-through behavior. Across graphs, signal propagation dynamics themselves differ, with some graphs benefiting from long-range propagation across many hops while others require damping to prevent over-smoothing. The appropriate filter is therefore not a single fixed object at all, but a state-dependent composition whose behavior changes according to a node's current representation and its propagation history. We propose CASTOR, a self-tuning graph filter that realizes this composition through state-dependent decisions made at every step of propagation. A router reads each node's current state together with its initial state, and emits per-node mixing weights over three primitives, namely low-pass smoothing, high-pass contrast, and identity. A learnable per-hop coefficient then determines how much of the most recent change in the propagation is carried forward, accelerating the iteration when positive and damping it when negative. Setting the coefficient to zero recovers standard first-order propagation. Across fourteen standard node-classification benchmarks spanning the full homophily spectrum, a single CASTOR architecture ranks top-three on every dataset and achieves an average rank of 2.07, more than 3.5 ranks ahead of the next-best of fourteen baselines. Code is available at https://github.com/amir-ghz/CASTOR.
BibTeX
@inproceedings{ahsaei2026self,
  author = {Amir Ghazizadeh Ahsaei and Mahyar Alinejad and George K. Atia and Rickard Ewetz and Hao Zheng},
  title = {{Self-Tuning Graph Filters via State-Dependent Operator Composition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=LfgU9MTrxj},
}
Figure