Guessing Which Relations to Trust: Label-Free Heterophily Estimation for Transfer Across Heterogeneous Graphs

Most graph neural networks work by averaging each node's features with its neighbors' features. That helps when linked nodes tend to be alike, a property called homophily: papers cite papers on the same topic. It hurts when linked nodes tend to differ, called heterophily: an actor connects movies of every genre. In graphs with several node and edge types, such as movie–actor–director graphs, this property differs from one relation to the next. A model trained on one such graph learns, from its labels, which relations to smooth over and which to contrast against. A model shipped to a new graph from a different domain, with a new schema and only a handful of labels, has no way to relearn that choice.

We propose to learn this choice once, across many source graphs, as a function of statistics that can be computed on any new graph without labels. For each relation in an unseen target graph, a small predictor reads a label-free description of that relation. The description records how similar the endpoints' features are along the relation, how cluster-based pseudo-labels agree across it, and how those patterns change after two hops. From this description the predictor outputs mixing weights over a small set of signal channels: the node's own features, neighbor averaging, neighbor contrast, and two-hop averaging. If this works, the part of a graph model that transfers across domains is not the text name of a relation but how the relation should be filtered. That filtering can then be set on a new graph before any fine-tuning.

Core Claim

In few-label transfer to heterogeneous graphs from other domains, per-relation filtering weights predicted from label-free relation statistics will beat three alternatives: weights learned from the few target labels, weights predicted from relation text alone, and a single shared filter. The gap should be largest when the target's relations have a very different homophily profile from the pretraining pool. A second, diagnostic claim is that the node-level negative transfer reported for multi-domain graph foundation models ("foundation model" meaning one model pretrained on many graphs and reused on new ones) is substantially explained by homophily mismatch between source and target. We make this testable by correlating transfer gain with adjusted-homophily distance across source–target pairs.

Where This Sits

Three lines of work each hold one piece of the problem. First, single-graph models handle heterogeneity and heterophily together. AHGNN shows that heterophily depends on the path: in IMDB, "Movie–Director–Movie" is homophilic while "Movie–Actor–Movie" is not. It learns per-hop, per-meta-path coefficients from labels. H2SGNN fits separate polynomial spectral filters to each meta-path subgraph plus a global hybrid filter. These papers motivate our design, since they show that the right filter differs per relation. They also supply the channel structure we reuse. However, both learn the filter from target labels, need hand-picked meta-paths, and never leave the training graph. We move the filter choice into a predictor that runs before target training, and we generate candidate paths automatically.

Second, HGDA brings homophily into cross-graph domain adaptation. It splits signals into low-pass, high-pass and raw channels, aligns their distributions between source and target with a KL loss, and proves that target error grows with homophily shift. HGDA is our closest theoretical ally. Its setting, though, is one homogeneous source adapted to one homogeneous target with compatible features. It aligns channel distributions and does not predict relation-specific filters for a new schema.

Third, cross-domain foundation models solve feature mismatch but assume smoothing. REEF is the most relevant. It embeds text descriptions of relations and uses hypernetworks, meaning networks that generate another network's weights, to produce relation-specific message-passing weights across domains. Its aggregation still averages neighbors, and it leaves multi-typed nodes to future work. OFA, UniGraph, GFT and ALL-IN unify inputs through text embeddings, tokenized computation trees, or covariance operators. All four propagate with averaging-style operators. The TSGFM benchmark supplies the puzzle we test: co-training across domains helps graph-level tasks but causes negative transfer at node level, and no one has checked whether homophily mismatch drives it.

One paper constrains the design. Platonov et al. show that on leak-free heterophily benchmarks, plain GNNs that keep a node's own vector separate from its neighbors' take 13 of the top 15 spots, and many specialized models lose to a graph-free ResNet. We therefore do not claim that elaborate spectral filters are needed. Our channels are deliberately simple and always include a separate self channel. The contribution is predicting how channels are weighted per relation, without labels, on a graph the model has never seen.

Research Program

Input unification. Every node's features are mapped to a shared space. Graphs with raw text use a frozen sentence encoder. Graphs without text use the SVD-plus-projector alignment of REEF. A standard benchmark's features may turn out to be only precomputed bag-of-words. In that case we use the SVD route and report it separately rather than pretend it is text.

Channels. For each relation $r$ with normalized adjacency $\hat{A}_r$, we precompute the averaging signal $\hat{A}_r X$, the contrast signal $(I-\hat{A}_r)X$, and the two-hop signal $\hat{A}_r\hat{A}_{r'}X$. The two-hop signal is computed for every type-compatible pair $(r, r')$, which replaces hand-picked meta-paths with all length-two compositions. Precomputation follows the decoupled scheme that let AHGNN scale to ogbn-mag. A target node's representation is

$$h_u = W_0 x_u + \sum_{c \in \mathcal{C}} \alpha_c(d_c)\, W_{\tau(c)} [F_c X]_u ,$$

Here $x_u$ is the node's own aligned feature vector. $\mathcal{C}$ is the set of relation channels. $F_c$ is the channel's propagation operator. $\tau(c)$ is its kind (averaging, contrast, or two-hop), and weights are shared per kind, so a new schema adds no new parameters. $d_c$ is the channel's label-free descriptor. $\alpha_c$ is the weight output by the predictor $g$.

The descriptor. The descriptor $d_c$ has four parts. The first is the mean cosine similarity of endpoint features along the channel, minus the same quantity for random node pairs of the same types. The second is the adjusted homophily of k-means pseudo-labels along the channel, for several values of k. Adjusted homophily, the class-corrected metric of Platonov et al., is used because raw edge homophily is misleading under class imbalance. The third is how much these two quantities change between one and two hops. The fourth is degree statistics. The pseudo-label idea borrows from FUEL, which uses feature clusters to decide how much to convolve without labels. We extend it from one global mixing weight on a homogeneous graph to one weight per relation, learned across graphs.

Pretraining. On a pool of labeled source graphs, $g$ and the shared weights $W$ are trained jointly with each graph's node classification loss. We add an auxiliary loss that regresses $\alpha_c$ toward each channel's true label-based adjusted homophily. On a new target, $g$ sets all channel weights from descriptors alone. Then a linear head, and optionally the $W$, are fit on the few target labels while the $\alpha$ stay fixed or are lightly refined.

Baselines

The naive reference points are two. One is a graph-free MLP on the aligned features. The other is the same backbone with all $\alpha_c$ fixed to 1, meaning uniform averaging over relations. The MLP matters because Platonov et al. and FUEL both find that ignoring neighbors is often near-optimal on heterophilic graphs. If our model cannot beat the MLP on targets whose relations are known to carry signal, the idea fails.

The strongest heterophily-aware competitor is the ego-separated GNN of Platonov et al., extended to relations as in RGCN. It has separate weights for the self vector and for each relation's aggregated neighbors, and it is trained on the target's few labels after the same pretraining. That paper reports rankings rather than numbers in our file, so there is no reported absolute result found on Lacuna for ego-separated GAT on roman-empire.

The strongest cross-domain competitor is REEF. REEF reports 79.70% average accuracy across its pretraining datasets against 76.83% for RGCN, and a gain of over 24% in 1-shot accuracy on the unseen Computers domain relative to the best baselines. We also report GFT, which reports 26.49% 1-shot accuracy on 40-way ogbn-arxiv against 21.34% for its nearest competitor, and OFA, which reports 46.19% zero-shot 5-way accuracy on ogbn-arxiv. On heterogeneous single-graph accuracy we compare against AHGNN and H2SGNN. These are trained with full target labels and are given our automatically generated paths rather than expert meta-paths; for them no absolute ACM/DBLP numbers are found on Lacuna. For the homogeneous adaptation pairs, we compare against HGDA, which reports an average 1.10% improvement on airport, citation and social transfers but no absolute numbers in our file.

For fairness, all methods see the same source pool, the same aligned features, the same target label budget, and the same number of hyperparameter trials, tuned on a held-out source graph and never on the target. We re-run REEF, GFT and OFA ourselves on the shared pool rather than copying numbers, and quote the reported figures only as sanity checks that our re-runs are in range.

Two ablations isolate the key ingredient. The first replaces the descriptor with the relation's text embedding, a REEF-style predictor; this tests whether text alone already encodes filtering behavior. The second learns $\alpha$ directly from target labels, AHGNN-style; this tests whether prediction beats few-shot fitting. Beating the baselines means a statistically significant gain in macro-F1 over both ablations and the ego-separated GNN at 1 and 5 labels per class, averaged over held-out heterogeneous targets. We expect the gain to shrink as labels grow. If it does not shrink, something other than our mechanism is responsible.

Why not just…?

Why not just separate each node's own vector from each relation's neighbor average and let the head learn the weights? This is the most serious threat, and with many target labels we expect it to match us, because its linear head can learn relation weights directly. The case for prediction rests on the few-label regime. With one or five labels per class, a head choosing among a dozen relation channels is badly underdetermined, and AHGNN had to tune even hop counts per dataset with full labels. Our label-budget sweep settles this directly. If the curves cross at a single label per class, we will report that the predictor adds nothing.

Why not just set per-relation weights on the target without labels, as FUEL does? FUEL picks mixing weights on a homogeneous graph to maximize cluster separability, and a per-relation version is a real alternative that needs no source graphs at all. We run it as a baseline. The risk it carries is that cluster separability rewards whatever the feature clusters are, which may not match the task labels. Our predictor learns across sources which descriptor patterns actually coincide with label homophily. The auxiliary check, the rank correlation between predicted weights and true adjusted homophily on held-out graphs, tells us which method tracks labels better.

Why not just rely on relation text, as REEF does? Relation names like "acts-in" carry no guaranteed information about homophily, which depends on the dataset's label set. The same relation can be homophilic for genre labels and heterophilic for rating labels. The text-only ablation measures this. The label-swap experiment below makes it sharp: text cannot change when the labels change, but true homophily does.

Why not just drop the graph and use an MLP on text embeddings? On strongly heterophilic graphs this is often the right answer, and our model can learn it by driving all $\alpha$ toward zero. We report the MLP everywhere. We count success only on targets where some relation has high label informativeness, where MixHop-style two-hop structure should carry signal that an MLP cannot see.

Proposed Experiments

Data. The pretraining pool combines homogeneous text graphs (Cora, Pubmed, ogbn-arxiv, Products, Computers) and knowledge graphs (FB15K237) with heterogeneous graphs (ACM, DBLP, IMDB, AMiner, ogbn-mag). The heterophily benchmarks (roman-empire, amazon-ratings, tolokers, questions, minesweeper, Actor) serve as homogeneous controls where the only relation varies in homophily. We use leave-one-graph-out evaluation over the heterogeneous graphs, so each target's schema is unseen. Graphs from the same source as a target (for example the HGDA ACM variants) are removed from its pool. Metrics are accuracy and macro-F1 at 1, 5 and 20 labels per class, plus the rank correlation between predicted $\alpha$ and true adjusted homophily per channel.

Decisive check one: controlled rewiring. In ACM and IMDB we rewire one relation while preserving degrees, so that its label homophily sweeps from strongly homophilic to strongly heterophilic, and leave the relation's text unchanged. The predicted weight on that relation's averaging channel should fall, and its contrast weight should rise, monotonically with the sweep. The text-only ablation, by construction, cannot respond.

Decisive check two: label swap. We use targets that support two label sets over the same graph, such as IMDB with genre labels versus a second attribute-derived label if one is available. Only the pseudo-label parts of the descriptor can shift here, and only if the feature clusters themselves shift. This experiment is therefore designed to expose a limitation: a label-free descriptor cannot know which task will be asked. Whatever happens, we report it honestly.

Decisive check three: explaining negative transfer. Following the co-training protocol of TSGFM, we measure node-level transfer gain for every source–target pair under the uniform-averaging backbone. We regress that gain on the source–target distance in per-relation adjusted-homophily profiles, controlling for feature-space distance. The diagnostic claim holds if homophily distance explains substantial variance beyond feature distance, and if our predicted-filter model flattens this dependence. If homophily distance explains nothing, negative transfer has another cause, and the core claim loses its motivation even if the few-shot gains survive.