Relation-wise Spectral Transfer for Heterogeneous Graphs

A graph neural network, a model that updates each node by averaging information from its neighbors, is often trained on one graph and then deployed on another. The second graph might be a different research field, a later year, or a different market. On graphs with many node and edge types (papers, authors, venues; movies, actors, directors), the shift between the two graphs is rarely uniform. One relation can keep its character while another flips. In one field, papers linked through a shared author may usually share a label; in another field, they may usually differ. The model's averaging over that relation was right for the first graph and is wrong for the second. On the new graph it blurs the affected node type's representations into a few directions. This is a relation-local form of over-smoothing, the known failure where repeated averaging makes node representations indistinguishable.

We propose to detect and correct that failure without any labels on the new graph. The model gives each relation its own learnable frequency filter, a per-relation dial between "average with neighbors" (low-pass) and "emphasize differences from neighbors" (high-pass). On the unlabeled target graph, each relation's dial may move away from its source setting only when doing so stops the representations of some node type from collapsing in rank. Rank is measured with effective rank, which recent work shows tracks accuracy far better than the usual smoothness measures. In two sentences: heterogeneous graphs shift relation by relation, so filters should adapt relation by relation. Per-type effective rank on the unlabeled target tells us which relations need to move.

Core Claim

Existing graph domain adaptation methods already treat shifts in neighbor similarity as the thing to fix. Homophily Enhanced Graph Domain Adaptation (HGDA) splits the signal into low-pass, high-pass and raw-attribute channels and aligns them across domains with KL divergence. Disentangled Graph Spectral Domain Adaptation (DGSDA) separates attribute alignment from topology and aligns the coefficients of Bernstein-polynomial spectral filters instead of using pseudo-labels. Both methods motivate this work. Both are also formulated only for graphs with a single node and edge type, and both assume one filter serves the whole graph.

Adaptive Heterogeneous Graph Neural Networks (AHGNN) supplies the key empirical premise. It shows that heterophily in heterogeneous graphs depends on the path: Movie-Director-Movie can be homophilic while Movie-Actor-Movie is not. It learns hop-wise low/high-pass coefficients per meta-path, but only inside a single graph.

Our claim joins these two lines. Under cross-graph shift in a heterogeneous graph, the change in filtering needs is concentrated on a few relations. A source-trained model fails on the target mainly because those relations keep their source filters and collapse the rank of the node types they feed. We predict three things:

  1. The per-type effective rank of target representations, which needs no labels, will fall specifically for the types fed by the shifted relations.
  2. A rank-guarded, per-relation filter offset will recover most of the lost target accuracy.
  3. It will do so better than aligning one shared filter, and better than running homogeneous adaptation independently on each meta-path graph.

The rank measure comes from Are we measuring oversmoothing in graph neural networks correctly?. That paper proves over-smoothing is a collapse in feature dimensionality. It shows that Dirichlet energy stays high in trained networks even after accuracy crashes, while effective rank reaches an average Pearson correlation of 0.91 with accuracy. For a feature matrix $X$ with singular values $\sigma_i$, effective rank is

$$\mathrm{Erank}(X)=\exp\Big(-\sum_i p_i\ln p_i\Big),\qquad p_i=\frac{\sigma_i(X)}{\sum_j\sigma_j(X)}.$$

That paper only diagnoses homogeneous GCN and GAT models. It also warns that high rank does not imply accuracy, since random noise is full rank. We use rank as a training signal, but only as a one-sided guard, which is how we handle that warning.

Research Program

Backbone. We decouple propagation from feature transformation, as AHGNN does, so the method scales to graphs the size of ogbn-mag. Each relation or meta-path $r$ gets its own Bernstein-polynomial filter with coefficients $\theta_r$, following DGSDA's choice of a flexible frequency response. Type-specific input and output projections keep the distinct feature spaces separate. This design follows the type-specific feed-forward layers of When Heterophily Meets Heterogeneity (H2G-former). Relation-wise filtering itself is borrowed. What is new is how the filters are adapted.

Adaptation objective. Target filters are written $\theta_r^T=\theta_r^S+\delta_r$, where $\theta_r^S$ is the source filter and $\delta_r$ is a per-relation offset. We train on labeled source nodes and unlabeled target nodes by minimizing

$$\mathcal{L}=\mathcal{L}_{\mathrm{cls}}^{S}+\lambda_a\,\mathrm{MMD}(X^S,X^T)+\lambda_\delta\sum_r\|\delta_r\|_1+\lambda_\rho\sum_{\tau}\max\!\Big(0,\ \log\mathrm{Erank}(Z^S_\tau)-\log\mathrm{Erank}(Z^T_\tau)\Big).$$

The terms are as follows:

  • $\mathcal{L}_{\mathrm{cls}}^{S}$ is the source classification loss.
  • The MMD term aligns raw attributes, as in DGSDA.
  • The $\ell_1$ penalty keeps most relations at their source filter.
  • $Z^S_\tau$ and $Z^T_\tau$ are the penultimate representations of node type $\tau$ on source and target, computed on matched mini-batches.

The rank term is a hinge. It never rewards the target for exceeding the source's rank, only for not falling below it. This is our answer to the noise-is-full-rank objection: the target cannot win by inflating dimensionality beyond what the source classifier found useful. The $\ell_1$ penalty and the hinge together push the offset onto the few relations whose shift causes collapse. The method uses no pseudo-labels, which DGSDA and Joint Domain Adaptive Graph Convolutional Network both report cause error accumulation under shift.

Analysis before method. The first deliverable is a diagnostic study with no adaptation at all. We train source-only heterogeneous models and ask whether per-type target Erank predicts per-type target accuracy across depths and relation shifts. This tests whether the 0.91 correlation carries over to typed, multi-relational representations under domain shift. If per-type Erank does not track target accuracy, the rank guard has no basis. We would then stop, and report the negative result about rank-based diagnosis under heterogeneity.

Scope. The method assumes a shared schema, meaning the same node and relation types in source and target, with shifted statistics. Transfer across different schemas is a harder problem that we leave out on purpose. This keeps the per-relation offsets well defined. It also keeps the claim testable.

Proposed Experiments

Settings. We use three settings, ordered from most to least controlled.

  1. Synthetic, known shift. We take IMDB from the Heterogeneous Graph Benchmark as source. We build target versions by rewiring only Movie-Actor edges to reach a chosen label heterophily, with Movie-Director edges left intact. The shifted relation and its severity are then known exactly.
  2. Real temporal shift. In ogbn-mag, the source is papers before a cutoff year and the target is papers after it. The schema and label space are the same.
  3. Real cross-field shift. We use the H2GB OAG subgraphs (oag-cs, oag-eng, oag-chem), which share a schema. Their native label sets may not coincide across fields. Where they do not, we define a shared task such as publication-year buckets, in the spirit of H2GB's mag-year, and report that this task is constructed.

We also run the method on the homogeneous transfer benchmarks used by DGSDA and HGDA: the citation pairs ACMv9, DBLPv7 and Citationv1, and Blog1 to Blog2. There the method reduces to a single relation. The goal is to confirm it is not worse than DGSDA where heterogeneity plays no role.

Metrics. We report target accuracy and Micro-F1 over at least five seeds. We also report per-type target Erank and the learned $\|\delta_r\|$ per relation. The synthetic setting adds a recovery score: whether the largest offset lands on the rewired relation.

Baselines

Naive reference points.

  • No adaptation. Train the same relation-wise backbone on source, freeze it, and apply it to target. This measures how much shift there is to recover.
  • Feature-only MLP. The same type-specific projections with no propagation. It tells us whether structure transfers at all once relations shift.

Source-only heterogeneous models. We train HALO, AHGNN and H2G-former on source and evaluate on target. They represent the strongest in-domain heterogeneous models.

  • HALO derives layers from a relation-aware energy with compatibility matrices and reports 76.20% accuracy on IMDB against 67.36% for Simple-HGN.
  • H2G-former reports 28.47% accuracy on oag-cs against 22.51% for HGT.

These in-domain numbers bound what the target could reach with labels. No reported result found on Lacuna for any of these models under cross-graph transfer. Their transfer numbers will be produced here.

Strongest competitor: per-meta-path DGSDA. The strongest existing adaptation method is DGSDA applied to each meta-path's homogeneous projection, with the resulting embeddings concatenated. HGDA is run the same way.

  • DGSDA reports gains of up to 6.33% on citation transfer and over 17% on BlogCatalog relative to the next best baseline.
  • HGDA reports a 1.10% average gain and up to 8.49% on MAG with 20 labels.

Both figures are relative gains; no absolute accuracies are available in the file. This baseline is the real threat. It already gives each relation its own aligned filter, so it isolates exactly what we add: coupling the relations through shared per-type rank, and letting offsets move only where collapse occurs.

We also include a pseudo-labeling baseline: iterative self-training of AHGNN on confident target nodes.

Fair-comparison protocol. Every method uses the same source/target splits, feature preprocessing, filter order and embedding size. Every method gets the same hyperparameter search budget, counted in trials. Model selection uses source validation plus a small held-out labeled target set that is identical across methods and reported as an oracle-selection caveat.

What counts as beating the competitor. We claim success if the method beats per-meta-path DGSDA by more than seed variance on at least two of the three heterogeneous settings, and matches it within variance on the homogeneous benchmarks.

Ablations isolating the key ingredient.

  • Remove the rank hinge.
  • Replace per-type Erank with a single global Erank over all types.
  • Replace Erank with Dirichlet energy, which the rank paper predicts will fail.
  • Force $\delta_r$ to be shared across relations, which makes the model a heterogeneous DGSDA.

Why not just…?

Why not just run DGSDA or HGDA separately on each meta-path graph? This is the most plausible competitor, and we treat it as the main baseline, not a strawman. Its weakness is that each meta-path is adapted in isolation. Nothing tells it which path's shift is actually hurting a node type, so every path's filter drifts to match its own marginal statistics. That can over-correct relations that did not change. The synthetic IMDB experiment settles the question: if per-meta-path DGSDA moves the Movie-Director filter as much as the Movie-Actor filter and loses accuracy for it, relation coupling matters. If it recovers the shift just as well, our contribution shrinks to the diagnostic study, and we will say so.

Why not just use an MLP on node features? Under strong heterophily, FUEL (Feature-Centric Unsupervised Node Representation Learning Without Homophily Assumption) finds that its learned aggregation weights fall close to zero on Actor and Cornell. Yet its ablations show that removing structure entirely hurts on general benchmarks, and AHGNN shows some meta-paths remain homophilic. Heterogeneous graphs under shift are exactly the case where some relations stay useful and others do not. The MLP baseline is included to measure how much structural signal survives.

Why not just add residual connections or stay shallow? Residuals keep the representation from vanishing, but they cannot turn a low-pass relation into a high-pass one. Complete the Missing Half reports that adding an explicit high-pass channel improves GCN by roughly 10% on Texas and Cornell even with residual-style designs. The rank paper also observes collapse at moderate depth despite normalization and residuals. Our backbone is already decoupled and shallow in its trainable part. The question is which frequency each relation should pass on the target, which depth alone does not answer.

Why not just pseudo-label the target? DGSDA reports that adding pseudo-labels can lower transfer accuracy because early labels are wrong and errors compound. JDA-GCN likewise needs clustering and Gram-matrix alignment to avoid negative transfer. We include pseudo-labeling as a baseline. We expect it to do worst on the synthetic shifts, where the source classifier is confidently wrong on the rewired relation.

Decisive Checks

Three results would decide the proposal.

First, the diagnostic. On synthetic IMDB and ogbn-mag, per-type target Erank of source-only models should correlate with per-type target accuracy. It should drop mainly for the type fed by the shifted relation. A weak correlation ends the method line.

Second, localization. On synthetic IMDB, the largest learned offset should fall on Movie-Actor, the rewired relation, and move it toward high-pass, with offsets growing as rewiring becomes more severe. If offsets spread evenly, the claim that shift is relation-local is wrong.

Third, the head-to-head. The full method should beat per-meta-path DGSDA on the real temporal and cross-field transfers, and the Dirichlet-energy ablation should not. Together these would show that relation-local, rank-guarded adaptation is what makes the difference.