Drifting Filters on Fixed Bases: Spectral Learning for Evolving Multi-Relational Graphs

Many real networks have several kinds of edges (a paper cites a paper, an author writes a paper, a user reviews a product), and they change over time. A long line of work shows that the best way to mix information from neighbors depends on the edge type. Along some relations, connected nodes tend to share labels. This is "homophily," and simple averaging helps. Along others, connected nodes tend to differ. This is "heterophily," and averaging erases the useful signal. Spectral graph filters handle this well on static graphs. They are polynomials in the graph's adjacency matrix, $\sum_k \theta_k P^k X$, and their coefficients $\theta_k$ decide whether the filter smooths, sharpens, or picks out a middle band. Static models have exploited this per relation. Nobody has asked whether the right filter for a relation drifts as the graph evolves. A related question is open too: whether one can follow that drift without recomputing every propagated feature after each edge arrives.

This note proposes to split the problem in two. The expensive, graph-dependent part is the stack of propagated features $T_k(P_r)X$ for each relation $r$ and order $k$. We keep it exact under edge updates with an incremental recurrence that touches only nodes near the changed edges. The cheap, label-dependent part is a small set of filter coefficients per relation and order. We let these coefficients drift over time. The claim is testable: in evolving multi-relational graphs, the optimal frequency response of individual relations changes measurably, and a model that tracks this change on incrementally maintained bases beats both frozen spectral models and time-aware models that only average neighbors, at a fraction of the cost of retraining.

Core Claim and Positioning

Three static works motivate the proposal by showing that heterophily depends on the relation.

  • H2SGNN learns a separate polynomial filter for each meta-path subgraph. A meta-path is a typed walk such as Paper–Author–Paper. H2SGNN combines these filters through a global hybrid filter.
  • AHGNN learns hop coefficients along meta-paths. It reports that Movie–Director–Movie behaves homophilically while Movie–Actor–Movie does not. Its authors name dynamic graphs as open work.
  • HeroFilter shows on homogeneous graphs that the best frequency response is not a monotone function of the heterophily level. A fixed low-pass/high-pass switch is therefore not enough, which is why we learn a full polynomial rather than one sign.

All three fix the graph and the filter once. We keep their per-relation spectral view and make the coefficients a function of time.

Two lines of work address change over time, and both lack this mechanism.

  • SE-HTGNN evolves relation-level attention with a recurrent unit over heterogeneous temporal graphs. Its aggregation within each relation is GCN-style averaging, which is a fixed low-pass filter. Its temporal weights can rescale a relation but cannot turn it from smoothing into sharpening.
  • SPEDGNN brings spectral transforms to dynamic bipartite graphs through power-method SVD and framelets. It has neither multiple relations nor a heterophily mechanism.

Two works constrain the design. PSHGCN builds meta-path-free filters from noncommutative polynomials over relation matrices. It reports 57.52% test accuracy on ogbn-mag. Its number of terms grows as $|\mathcal{R}|^K$, and its pre-propagated terms become invalid once edges change. We therefore drop full cross-relation products by default. We use per-relation polynomials plus one mixed operator in the spirit of H2SGNN, and we add cross-relation products for selected relation pairs only as an ablation. The pre-propagation literature supplies the efficiency argument and points to the remaining bottleneck. Revisiting Pre-Propagation GNNs shows that well-conditioned bases such as Jacobi or Krylov close much of the accuracy gap between decoupled models and full message passing. It reports +2.18% average accuracy on heterophilic benchmarks. Like LD2 (Liao et al.), however, it assumes the propagated features are computed once.

Research Program

Step 1: measure drift before building anything. We slice each temporal heterogeneous dataset into windows. In each window we fit a fresh per-relation Chebyshev filter with the feature transform frozen, and we record the fitted response curve $g_{r,t}(\lambda)$ along with label homophily per relation. Drift is the distance between response curves across windows, compared with the spread across bootstrap refits within a single window. The proposal stands on this diagnostic. If response curves are stable within noise on real data, the time-varying part is unnecessary and the contribution shrinks to the incremental bases.

Step 2: keep the bases exact incrementally. Let $P_r$ be the symmetrically normalized adjacency of relation $r$, whose spectrum lies in $[-1,1]$, so Chebyshev polynomials apply without rescaling. After an update batch $P_r' = P_r + \Delta_r$, define $D_k = T_k(P_r')X - T_k(P_r)X$. Subtracting the two Chebyshev recurrences gives

$$D_k = 2P_r' D_{k-1} + 2\Delta_r\, T_{k-1}(P_r)X - D_{k-2},\qquad D_0 = 0,\; D_1 = \Delta_r X.$$

The term $\Delta_r$ is nonzero only in the rows and columns of nodes whose degree changed. $D_k$ is therefore supported within $k$ hops of the updated endpoints, and the update cost scales with the edges in that neighborhood rather than with $|\mathcal{E}|$. The same derivation holds for Jacobi bases, whose recurrence is also three-term. When the affected neighborhood of a hub exceeds a threshold, we fall back to full recomputation for that relation, and we report how often this happens. We check exactness against full recomputation at every step. Floating-point drift over long streams is measured, and periodic refreshes are added if it becomes material.

Step 3: let the filters drift. The representation is

$$H_t = \mathrm{MLP}\Big(\textstyle\sum_{r}\sum_{k=0}^{K} \theta_{r,k}(t)\, T_k(P_r(t))\,X_t W_r\Big).$$

Here $W_r$ is a slowly trained per-relation projection, and $\theta_{r,k}(t)$ are a few dozen coefficients per relation. We study two ways to update the coefficients.

  • Online re-fitting: the coefficients are re-fit on a sliding window of recent labels, with a penalty $\|\theta(t)-\theta(t-1)\|^2$. Because the bases are fixed features, this is close to a regularized linear problem.
  • Predicted coefficients: a small recurrent unit predicts $\theta(t)$ from per-relation summary statistics, following SE-HTGNN's temporal recurrence over relation weights.

The order $K$ is treated as a variable to study, not tuned away. $K=1$ with a free sign is essentially "average plus high-pass." This makes the main ablation, below, an internal comparison within one model family.

Baselines

Do-nothing references. On TGB-style forecasting tasks, the naive reference is persistence or moving average. TGB reports that Moving Average reaches NDCG@10 of 0.559 on tgbn-reddit against TGN's 0.315. On every node task we also run a feature-only MLP that ignores edges, which is the standard warning case under heterophily. These run on identical splits. A method that does not beat them is not using the graph.

Strongest temporal competitor. This is SE-HTGNN, run with its released configuration where possible and given the same hyperparameter search budget, data, and feature inputs as our model. We disable its LLM-derived relation priors in the main comparison and report them separately, so that the comparison isolates the filter rather than external knowledge. The file reports SE-HTGNN's improvement on COVID-19 only in relative terms (+7.27% MAE) and gives no absolute MAE. No reported absolute result was found on Lacuna for SE-HTGNN on COVID-19 or AMiner, so we reproduce it. Beating it means lower error, averaged over at least five seeds with non-overlapping confidence intervals, on the datasets where Step 1 detects drift. It also means no loss where drift is absent.

Strongest static spectral competitors. These are H2SGNN and PSHGCN. We run each in two regimes: frozen after training on the first window, and fully retrained at every window. Full retraining is the accuracy ceiling for a static method. Our target is to match it within one standard deviation at a fraction of its wall-clock cost, and to beat the frozen variant clearly.

Ablations that isolate the proposal's ingredients. Each ablation removes one piece of our model:

Ablation What it isolates
Coefficients frozen at $\theta(0)$ The value of letting filters drift
Order $K=1$ with a free sign, i.e. "SE-HTGNN plus a high-pass channel" The value of higher-order spectral shape
One shared $\theta$ across relations The value of per-relation filters
Full recomputation in place of incremental bases, accuracy fixed The cost saving, in seconds per update batch

Why not just…?

Why not just add a high-pass channel to SE-HTGNN? This is the most serious threat. A recurrent unit that weights "neighbor mean" and "self minus neighbor mean" per relation is already a time-varying first-order filter, and it may capture most of the gain. We do not argue around it; it is the $K=1$ ablation. HeroFilter's non-monotonic response curves give a reason to expect that higher orders matter. If on our data $K=1$ matches $K\ge 3$ within noise, we will report that the drifting-filter claim reduces to a drifting sign. The remaining contribution would then be the incremental-basis machinery and the drift diagnostic.

Why not just retrain a static spectral model on each snapshot? It is a valid accuracy upper bound, and we include it. Its costs are repeated full propagation, $O(K|\mathcal{E}|)$ per relation per snapshot, plus full retraining. It also cannot react between retrains. The experiment that decides this sweeps the retraining interval. If frequent retraining is affordable on these graph sizes and matches our accuracy, the method's value is efficiency alone, and we will frame it that way.

Why not just use persistence heuristics or an MLP? TGB shows that persistence can beat deep temporal models, especially when many test edges were never seen before. Under heterophily, MLPs can beat low-pass GNNs. We report both everywhere. We also stratify results by TGB's surprise index, the share of test edges never seen in training, and by relation homophily. This shows where graph filtering helps and where it does not.

Decisive Experiments

Datasets. We use three dynamic heterogeneous settings available from the file:

  • the COVID-19 county forecasting graph and AMiner as used by SE-HTGNN;
  • ogbn-mag sliced by publication year;
  • a semi-synthetic drift benchmark built on DBLP, ACM, and IMDB, where the static spectral literature reports results.

In the semi-synthetic benchmark, edges of one chosen relation are rewired over time so that its label compatibility moves from homophilic to heterophilic at a controlled rate. Every other relation stays fixed. This gives ground truth for drift, which real data cannot. The prediction is that frozen filters lose accuracy in proportion to the rewiring rate, that SE-HTGNN can only down-weight the drifting relation, and that our model recovers by flipping that relation's response. YelpChi and Amazon fraud graphs, where DSGAD reports 93.67% average AUC with static spectral wavelets, serve as a static sanity check that per-relation filtering is competitive before drift is introduced.

Metrics. We report accuracy or Micro-F1 for node classification, MAE for COVID-19, and NDCG@10 or MRR for TGB-style tasks. For cost we report update latency per edge batch and peak memory.

Decisive checks, in order.

  1. Step 1 must show response drift beyond bootstrap noise on at least one real dataset; otherwise the time-varying claim is dropped.
  2. Incremental bases must match full recomputation to numerical tolerance, with speedups reported against the size of the affected neighborhood.
  3. On drifting data, our model must beat frozen H2SGNN and PSHGCN, and SE-HTGNN, while matching per-window retraining.
  4. The $K$ ablation must show that order above one matters. If it does not, we report the narrower result honestly.