Matching Relation-Wise Smoothness to Relation-Wise Homophily in Heterogeneous Graphs

Graph neural networks update each node by averaging in information from its neighbors. That helps when linked nodes tend to share a label (homophily) and hurts when they do not (heterophily). Averaging repeated over many layers also causes over-smoothing: every node's representation drifts toward the same vector. Real graphs are often heterogeneous, meaning they contain several node types and several edge types. In such graphs these two problems do not affect the whole graph uniformly. A single movie graph can have a homophilic "shares a director" relation and a heterophilic "shares an actor" relation. The right amount of smoothing is therefore a property of each relation, not of the graph.

We propose to make that amount measurable and to enforce it. The key observation is that the average squared distance between a node and its neighbor, measured over the edges of one relation, is exactly $2(1-h_r)$ when computed on one-hot labels, where $h_r$ is that relation's edge homophily. So the training labels already specify how "rough" a good representation should be along each relation. We train a heterogeneous network in which each node keeps a separate path for its own features, called the ego channel. Each relation contributes a signed neighbor message. A regularizer holds each relation's embedding roughness inside a band around its label roughness. The two sentences to take away are these. Over-smoothing and heterophily failures in heterogeneous graphs are both mismatches between how smooth the embeddings are along a relation and how smooth the labels are along that relation. Measuring and constraining that mismatch per relation, with the ego signal protected, should fix both failures.

Core Claim

For relation $r$ with edge set $E_r$ and final-layer embeddings $h_u$, define the relational energy

$$ \mathcal{E}_r(H) = \frac{1}{|E_r|}\sum_{(u,v)\in E_r}\left\lVert \frac{h_u}{\lVert h_u\rVert} - \frac{h_v}{\lVert h_v\rVert}\right\rVert^2 , $$

which becomes $\mathcal{E}_r(Y)=2(1-h_r)$ when the one-hot label vectors $Y$ replace $H$. The target band for $\mathcal{E}_r(H)$ is estimated from training labels. For relations whose two endpoints are not both labeled types, such as paper–author, we compute the band on the automatically enumerated two-step schema walk that returns to the labeled type (paper–author–paper). Unlike hand-picked meta-paths, every such walk is used and none is chosen by a person.

The claim has three parts, and each can be tested:

  1. Accuracy collapse in deep or poorly tuned heterogeneous GNNs is concentrated in a few relations whose $\mathcal{E}_r(H)$ departs from $\mathcal{E}_r(Y)$. The departure is downward (over-smoothing) on heterophilic relations, and sometimes upward (over-separation) on homophilic ones.
  2. A two-sided hinge penalty that keeps each $\mathcal{E}_r(H)$ inside $[(1-\epsilon)\mathcal{E}_r(Y),(1+\epsilon)\mathcal{E}_r(Y)]$ improves accuracy over the same architecture without the penalty.
  3. The penalty improves accuracy only when paired with a separate ego channel. Without one, the network can meet a high energy target on heterophilic relations only by injecting noise into low-degree nodes.

How This Differs From Existing Work

Energy constraints: roles and gaps. Two lines of work use Dirichlet energy, a sum of squared differences across edges that shrinks as the graph over-smooths.

Both papers supply the method, energy as a controllable quantity, and both constrain the design: neither alone is enough. We replace a single band, or pure minimization, with per-relation two-sided targets derived from labels. That is the step that makes the energy view compatible with heterophily.

Heterophily in heterogeneous graphs: motivation and closest competitors. Three papers establish that heterophily in heterogeneous graphs varies by relation.

All three learn how much to smooth implicitly, through a supervised loss. None states a target for how smooth each relation should be, and none checks whether the learned model reaches it. Our contribution is that explicit target and the check.

Ego-neighbor separation: supplies the mechanism. Several papers show that keeping a node's own features apart from its neighbors' is central to surviving heterophily:

SlotGAT separates node types into slots. Its own analysis shows each slot converging to its type's mean as depth grows, which is the collapse our band is designed to prevent on heterophilic relations. The combination "SlotGAT plus H2GCN-style ego concatenation" is the obvious idea at this intersection. We do not claim it. Relational GCNs with a separate self-loop weight already do something close. We use the ego channel as a known ingredient and put the new part in the energy target.

Signed messages and degree effects: supplies a component and a warning. Two Sides of the Same Coin (GGCN) shows that heterophily and over-smoothing share causes: a node's own homophily and its relative degree. It fixes them with signed, degree-corrected edges on homogeneous graphs. We reuse the signed messages per relation. We also take its finding that low-degree heterophilic nodes are fragile as the reason for claim 3.

Measurement: a constraint on our claims. Are we measuring oversmoothing in graph neural networks correctly? questions the usual over-smoothing measures. This is why we tie energy to label roughness rather than treating "more energy" as better. We will also report accuracy alongside the energy measure throughout, never energy alone.

Research Program

Architecture. The model is deliberately minimal:

  • Type-specific linear projections map every node type into a shared width, as in relational GCNs.
  • Each layer computes $h_v' = \sigma\big(W_{\text{ego}} h_v + \sum_r \alpha_r(v)\, W_r\, \bar m_{r,v}\big)$.
  • $\bar m_{r,v}$ is the degree-normalized mean of neighbor messages under relation $r$.
  • $\alpha_r(v)\in[-1,1]$ is a signed gate. It is computed from the cosine disparity between $h_v$ and $\bar m_{r,v}$ and from $\log$ degree, following GGCN's two correction signals, but separately for each relation.
  • Residual connections to the input follow EGNN.

Loss. Training uses the task loss plus $\lambda\sum_r \max(0, |\mathcal{E}_r(H)-\mathcal{E}_r(Y)| - \epsilon\,\mathcal{E}_r(Y))$, computed on mini-batch edges.

Estimating targets. $\mathcal{E}_r(Y)$ is computed from training labels only. We report bootstrap intervals, because targets for sparse relations will be noisy. The main analysis sets $\epsilon$ from the width of the bootstrap interval rather than tuning it.

Diagnostic study. Before any method comparison, we trace $\mathcal{E}_r(H)$ layer by layer, for every relation, in existing models trained at depths 2 through 32:

  • R-GCN with self-loop weights
  • SlotGAT
  • H²G-former

Claim 1 predicts that per-relation energy gaps predict accuracy loss better than the global EGNN energy does.

Baselines

Do-nothing references. The naive reference is a type-specific MLP: per-type projections, no message passing, same width and depth budget. Hou et al.'s negative-disturbance analysis and the GGCN results show that MLPs are hard to beat under heterophily. Any method that fails to beat this MLP on the H²GB datasets has not shown that graph structure is being used. We also report R-GCN with a separate self-loop weight. It is the simplest existing model that already separates ego from neighbors in heterogeneous graphs, so it defines the bar for whether the energy band adds anything.

Strongest existing method: H²G-former (When Heterophily Meets Heterogeneity). It is the only method in the file designed and benchmarked for heterophilic heterogeneous graphs, with a reported average rank of 1.1. It reports:

  • 28.47% accuracy on oag-cs, against 22.51% for the best prior baseline;
  • F1 of 31.55 on IEEE-CIS-G.

We will run it from the benchmark's released splits and protocol. It gets the same hyperparameter search budget as our model: an equal number of trials, the same GPU class, and the same early-stopping rule. Beating it means exceeding its mean over five seeds by more than one pooled standard deviation on a majority of H²GB datasets. On the classic benchmarks we also compare against SlotGAT, which reports IMDB Micro-F1 of 68.54%, and against AHGNN and RASH. For AHGNN and RASH, no exact reported numbers on ACM, DBLP or IMDB were found on Lacuna, so we will rerun both under our protocol. For AHGNN we will use its published meta-paths.

Ablations that isolate the key ingredient. We run four ablations, each with identical architecture and budget:

  1. Remove the energy band, which leaves a heterogeneous, ego-separated GGCN.
  2. Replace the per-relation band with one global EGNN-style band.
  3. Set the per-relation targets to shuffled values, which tests whether the label-derived target matters or any regularization helps.
  4. Keep the band but remove the ego channel, which tests claim 3.

Why not just…?

Why not just use a type-specific MLP, perhaps with a label trick? On feature-rich heterophilic data this is a genuine threat, as the GGCN paper found MLPs hard to beat. If the MLP matches us on H²GB, graph structure carries little extra signal there, and our method's value is limited to datasets where the diagnostic shows homophilic relations. We will report per dataset which relations fall below $h_r=0.5$ so readers can see where structure should help.

Why not just use a shallow R-GCN with self-loop weights and tune it well? This is the most serious alternative. It already has the ego channel. At two layers it may never over-smooth. If it matches our model at its best depth, then depth robustness is not a practical need on these datasets, and the energy band's contribution reduces to a diagnostic. The experiment settles this with a best-depth comparison: best depth for each model, chosen on validation. We also report whether the per-relation energy gap explains R-GCN's errors even at two layers, which would make the diagnostic useful by itself.

Why not just apply FB-GNN's low/high-pass filterbank per relation? A per-relation filterbank with learnable scalars (Complete the Missing Half) lets the model choose smoothness per relation without any target. It is essentially ablation 1 with scalar gates, and we run it as such. If it reaches the band on its own, meaning its learned $\mathcal{E}_r(H)$ tracks $\mathcal{E}_r(Y)$ without supervision, the regularizer is unnecessary. We would then report that supervised training already discovers relation-level smoothness.

Proposed Experiments

Datasets. We use H²GB, the classic heterogeneous node-classification sets, ogbn-mag for scale, and homogeneous controls:

  • H²GB datasets: oag-cs, IEEE-CIS-G, PDNS, and the rest of the suite.
  • Classic heterogeneous sets: ACM, DBLP, IMDB and FB-American, the last of which AHGNN identifies as heterophilic.
  • ogbn-mag.
  • Homogeneous controls: Cora and Chameleon. On a single-relation graph our method reduces to label-banded EGNN with signed edges, so these controls check that the band does not hurt where smoothing is helpful. EGNN reports GCN on Cora collapsing from 82.5% to 21.9% beyond 16 layers.

Metrics. We report accuracy or Micro- and Macro-F1 following each benchmark, and F1 for the fraud sets. We also report, per relation, the final gap $|\mathcal{E}_r(H)-\mathcal{E}_r(Y)|$.

Decisive checks. There are four, one per claim plus a stress test:

  • Claim 1. Across models and depths, the per-relation energy gap should correlate with test error more strongly than global Dirichlet energy does, measured by rank correlation over trained checkpoints.
  • Claim 2. The full model should beat the shuffled-target ablation and the global-band ablation at matched depth. If shuffled targets do as well, the claim is false.
  • Claim 3. Removing the ego channel under the band should hurt most on nodes in the lowest degree quartile of heterophilic relations. We will report accuracy by degree bucket.
  • Stress test. A controlled experiment that rewires one relation of ACM toward heterophily at fixed degree, in the style of syn-cora. As that relation's $h_r$ drops, our model should track the moving target while R-GCN and SlotGAT degrade. This isolates relation-level heterophily from dataset idiosyncrasies.