Smooth Is Not the Same as Low-Pass: Size-Stable Relation Filters for Growing Heterogeneous Graphs

Graph neural networks (GNNs) are models that update each node by combining information from its neighbors. They are often trained on a small or early version of a graph and then deployed on a much larger, later version. Two findings seem to point in opposite directions here. Theory on size generalization says a GNN transfers from small to large graphs when its filter is smooth, meaning its response changes slowly across the graph's frequency spectrum. Work on heterophily, meaning graphs where linked nodes tend to differ, says the model needs high-pass filters that sharpen differences between neighbors rather than averaging them away. Many readers conclude that a model cannot both handle heterophily and survive growth in graph size. We think this conclusion confuses two separate properties. A filter can be high-pass and still smooth: a response that rises linearly with frequency is one example. Our hypothesis is that size fragility comes from how sharply a filter's response bends across the spectrum, not from which direction it points.

The distinction matters most on real heterogeneous graphs, which have several node and edge types, and which grow and change over time. On these graphs each relation type can be homophilic or heterophilic, and that property can drift from year to year. We propose relation-wise filters that are cheap to adapt. Each edge type gets a filter whose smoothness is capped by an explicit budget, and whose direction (smoothing or sharpening) can be re-estimated on each new, larger snapshot from unlabeled statistics. We then test whether this transfers from early, small snapshots to late, large ones better than static heterophily-aware models, size regularizers, or periodic retraining.

Core Claim

We make two claims, and both can be falsified. The first is diagnostic. Across filter families, the drop in accuracy when moving from small to large graphs tracks the filter's spectral Lipschitz constant, which is the largest slope of its frequency response $h(\lambda)$ over normalized-Laplacian eigenvalues $\lambda \in [0,2]$. The drop does not track whether the filter is low-pass or high-pass. The second claim is methodological. On a growing heterogeneous graph, the right per-relation filter can be written as

$$h_r(\lambda) = \alpha_r + \beta_r\, \phi(\lambda), \qquad |h_r'(\lambda)| \le L_{\max},$$

where $r$ indexes the relation type and $\phi$ is a fixed low-order basis. The smoothness budget $L_{\max}$ is shared by all relations and fixed during training. The orientation pair $(\alpha_r, \beta_r)$ sets how much the filter smooths versus sharpens. It is predicted from a label-free estimate of relation $r$'s current homophily, and it is re-estimated on each deployment snapshot. Smoothness is the part that must transfer across sizes. Orientation is the part allowed to drift over time.

The closest work is Adaptive Heterogeneous Graph Neural Networks: Bridging Heterophily and Heterogeneity (AHGNN). AHGNN learns hop coefficients per meta-path (a typed walk such as Movie–Director–Movie) that move between low-pass and high-pass behavior. However, it is static, it fixes its coefficients after training, it states that dynamic graphs are an open challenge, and it never tests size shift. We keep its per-relation idea and add two things: a smoothness budget justified by size-generalization theory, and a way to re-set orientation at test time without labels.

Research Program

Theory. The first strand revisits the theory. A Manifold Perspective on the Statistical Generalization of Graph Neural Networks models graphs as samples from a continuous manifold. It proves that the generalization gap shrinks as $O(N^{-1/d})$, where $N$ is the node count and $d$ the manifold dimension, with a constant governed by the filter's spectral continuity $C_L$. Generalization Analysis of Message Passing Neural Networks on Large Random Graphs gives an analogous result for graphons, which are limit objects describing how edge probabilities behave as random graphs grow, under mean aggregation. These results motivate our work, and they also constrain it.

Neither result requires low-pass filters. They require bounded spectral slope. The claimed tension between heterophily and size generalization comes from the research synthesis we worked from, not from these papers. Our job is to check whether it is real. We will extend the graphon argument to a heterogeneous stochastic block model with one graphon per relation. The goal is a bound in which each relation's contribution depends on $L_{\max}$ and on that relation's density, and not on the sign of $\beta_r$.

One known limit carries over. The theory covers mean aggregation, so our filters use normalized, mean-style propagation throughout. The same work lists sum and max aggregation as uncharacterized, so we avoid them.

Architecture. The second strand builds the model: AHGNN-style decoupled precomputation of per-relation propagated features, with filters constrained to the Lipschitz budget. We enforce the budget by projection after each update, which keeps the constraint exact rather than approximate.

The orientation predictor is a small network. It maps a relation's label-free statistics to $(\alpha_r, \beta_r)$. The statistics are neighbor-feature similarity measured against a random-pair baseline, agreement among the model's confident pseudo-labels across edges, and relation density. The predictor is fit on training snapshots, where true homophily is known.

The Heterophilic Graph Learning Handbook warns that edge-homophily metrics correlate poorly with GNN accuracy. We take that warning seriously in two ways. The predictor is trained to output filter settings that do well on the downstream task, not to reproduce a homophily number. We also report estimation error directly on held-out labeled snapshots.

Test beds. The third strand builds the settings where the two shifts are separated. We use a synthetic heterogeneous block-model generator in which graph size and per-relation homophily can drift independently. We also use temporally grown versions of heterogeneous node-classification graphs: DBLP, ACM, Aminer, and Ogbn-mag, ordered by publication year where timestamps are available. Here the training data are early, small snapshots, and the test data are late snapshots several times larger.

Baselines

Naive reference. A tuned multilayer perceptron (MLP) that ignores graph structure, together with tuned relational GCN-style models, trained on the early snapshot and frozen. The Handbook shows MLPs beat standard GNNs under malignant heterophily. It also shows that careful tuning closes most apparent gaps with complex models. For that reason every method, including ours, gets the same hyperparameter search budget, the same data splits, and the same GPU-hour cap.

Strongest static heterophily-aware heterogeneous model. This is AHGNN. The file reports that it gains 4.32% Micro-F1 over the best baseline on Actor and scales to Ogbn-mag. The file gives no reported absolute Ogbn-mag accuracy for AHGNN, and no reported result on any temporally grown split. We run it frozen after early-snapshot training, and also with its coefficients re-tuned on late labels as an upper-bound reference.

Relation-view heterophily model. This is RASH. It splits relations into homophilic and heterophilic views using differentiable sampling. The file reports that it improves Micro-F1 by nearly 5% over HAN, HGT, and LatGRL on IMDB. It is run under the same protocol as AHGNN.

Size regularizer. This is SizeShiftReg. It aligns the distributions of node embeddings between each graph and its coarsened versions. It reports gains of 21–30% on TUDataset splits with test graphs up to 9× larger than training graphs. We apply it to AHGNN, coarsening within each relation so that edge types are preserved.

Cycle-aware size method. Size-insensitive Attention reports up to 8% F1 gains on biological graphs 2–10× larger than training graphs. We include it only on the synthetic homogeneous controls, because it is defined for homogeneous graphs.

Link-prediction reference. Secondary link-prediction runs on TGB 2.0 use EdgeBank and RecB as references. On tkgl-wikidata, EdgeBank reaches MRR (mean reciprocal rank) 0.535 and is the only method that scales. On tkgl-icews, RecB reaches validation MRR 0.211.

Ablations. Two ablations isolate the key ingredients. The first removes the Lipschitz budget but keeps orientation re-estimation. The second keeps the budget but freezes orientation.

What counts as winning. Beating a baseline means higher Micro-F1 and Macro-F1 on the largest late snapshot. It also means a smaller early-to-late gap than frozen AHGNN, SizeShiftReg+AHGNN, and RASH, with non-overlapping confidence intervals over five seeds.

Why not just…?

Why not just retrain on each new snapshot? If fresh labels arrive at every step, periodic fine-tuning is a real threat, and we report it as an upper bound rather than a competitor. Our setting assumes that labels on the new, larger snapshot are scarce or absent. We will also run a few-label variant with 20 labels per class, matching AHGNN's few-shot protocol. That run shows where the label budget at which fine-tuning overtakes label-free re-estimation lies. If the crossover is at a handful of labels, we will say so.

Why not just apply SizeShiftReg to a heterophily model? SizeShiftReg assumes labels do not depend on graph size. That assumption fails when a relation's homophily drifts as the graph grows. The regularizer then forces early and late embeddings to match exactly where they should differ. The synthetic experiment that drifts size and homophily independently tests this directly. We predict SizeShiftReg helps when only size changes and hurts when homophily also drifts.

Why not just cap the polynomial degree? This is the most serious threat. A per-relation filter of degree one or two is already smooth, so simply capping the degree may deliver most of the benefit of the budget. We therefore include "low degree, no explicit budget" as an ablation. If it matches the budgeted filter, we adopt it as the architecture. The contribution then narrows to two things: the diagnostic showing that smoothness, not direction, predicts size fragility, and label-free orientation updating. The rest of the program does not depend on the explicit budget.

Why not just use an MLP or EdgeBank? Both are included. The Handbook's benign-heterophily results and RASH's random-feature experiments suggest structure carries signal that MLPs cannot use. TGB 2.0 reports that recency heuristics fail on rarely repeated events. Neither finding has been tested under growth, so we report both baselines on every split.

Proposed Experiments and Decisive Checks

Check 1: does smoothness or direction predict size fragility? We follow the manifold paper's subsampling setup on Roman-Empire and Amazon-ratings, subsampling each graph at increasing $N$. We train filter families that vary independently in direction (low-pass, high-pass, band-pass) and in measured spectral slope. These include piecewise polynomials in the style of A Piece-wise Polynomial Filtering Approach for Graph Neural Networks and diversification channels from Complete the Missing Half. We then regress the size-generalization gap on slope and on direction. If direction explains substantial variance after controlling for slope, the core claim fails and the project reverts to studying why.

Check 2: separating size shift from homophily drift. On the heterogeneous block-model generator, we train on graphs of size $N_0$ and test at $2N_0$, $5N_0$, and $10N_0$. We run this in a grid that crosses per-relation homophily drift (none, partial, full inversion) with size growth. We expect a clear division of labor. The budget should fix degradation caused by growth alone. Orientation re-estimation should fix degradation caused by drift. Neither alone should handle both. We also report the theoretical bound's predicted gap next to the observed gap, following the numerical-bound style of the graphon paper.

Check 3: real growing graphs. On year-ordered DBLP, ACM, Aminer, and Ogbn-mag, we train on the earliest snapshot and evaluate on the latest. Metrics are Micro-F1 and Macro-F1, the early-to-late gap, and the error of the label-free orientation estimate against true per-relation homophily. We also track per-relation homophily across years to test the Handbook's conjecture that heterophily drifts over time.

Check 4: secondary link prediction. On thgl-software and thgl-github, we attach a link decoder and report filtered MRR against EdgeBank and RecB. This check matters less than the others. Its purpose is to find out whether size-stable relation filters help as TGB 2.0's graphs grow, or whether recency heuristics remain unbeaten there.