Label-Space Compatibility for Deep Multi-Relational GNNs

Graph neural networks (models that update each node by averaging information from its neighbors) work well when linked nodes tend to share a label, which is the "homophily" assumption. They also fail in two familiar ways. When links usually join different labels (heterophily, as when fraudsters link to honest accounts), averaging blurs away the signal. When many averaging layers are stacked, every node drifts toward the same vector, which is called over-smoothing. Multi-relational graphs, where each edge carries a type such as cites, writes, or born_in, make both problems harder, because one relation can be homophilic while another is strongly heterophilic. The method that currently handles both on typed graphs, HALO (Descent Steps of a Relation-Aware Energy Produce Heterogeneous Graph Neural Networks), gives every relation its own full $D\times D$ "compatibility" matrix. That is the relational parameter explosion in its plainest form: cost grows as $R\cdot D^2$ for $R$ relations and hidden width $D$, and rare relations get millions of parameters fitted to a handful of edges.

We argue that most of that capacity is wasted. What a relation has to encode for classification is which classes it tends to connect, and that is a $C\times C$ object for $C$ classes, not a $D\times D$ one. We propose to place each relation's compatibility operator in a shared, label-aligned subspace of dimension about $C$, to leave it as the identity everywhere else, and to estimate its small $C\times C$ core mostly from (pseudo-)label statistics on that relation's edges. Rare relations are shrunk toward a pooled estimate. Placed inside an energy-descent architecture with an anchor to the input features, this should give deep (32–64 layer) propagation that handles per-relation heterophily. Its relation-specific cost would be $R\cdot C^2$ numbers, most of them estimated rather than learned, and it would need no hand-designed meta-paths.

Core Claim

The claim is that relational heterophily is low-dimensional and lives in label space. A compatibility operator of the form identity plus a rank-$C$ correction, with the correction set by each relation's class-to-class link statistics, should match full per-relation matrices on accuracy and depth robustness. It should also clearly beat them on relations with few edges. Scalar per-relation weights, signed or unsigned, should fail whenever a relation's heterophily is not a uniform "push apart," for example when class A links to B, B to C, and C to A.

Concretely, node states $Y$ minimize

$$ E(Y)=\sum_{r}\sum_{(i,j)\in\mathcal{E}_r}\| y_i H_r - y_j\|^2+\lambda\sum_i\|y_i - f(x_i)\|^2,\qquad H_r = I + U(M_r - I_C)U^\top . $$

Here $y_i\in\mathbb{R}^D$ is node $i$'s state and $f(x_i)$ is a learned encoding of its input features. $\lambda$ sets the strength of the anchor that keeps states from collapsing. $U\in\mathbb{R}^{D\times C}$ is one shared matrix whose columns are tied to the class directions of the output classifier. $M_r\in\mathbb{R}^{C\times C}$ is relation $r$'s compatibility core. The layers are unrolled gradient steps on $E$, as in HALO. Because of the feature-anchor term, the fixed point stays away from the all-equal state, which is the same mechanism Ensemble Multi-Relational Graph Neural Networks and Residual connections provably mitigate oversmoothing in graph neural networks use against over-smoothing.

The core $M_r$ is set as

$$ M_r=(1-s_r)\,\hat\Pi_r + s_r\,\bar\Pi + \Delta_r,\qquad s_r=\frac{\kappa}{\kappa+n_r}. $$

$\hat\Pi_r$ is the row-normalized matrix of class-to-class transition frequencies on relation $r$'s edges. It is computed from training labels where available and from the model's current soft predictions elsewhere, and re-estimated each epoch. $\bar\Pi$ is the same matrix pooled over all relations. $n_r$ is the number of edges of relation $r$ that carry label information. $\kappa$ is a single shrinkage constant. $\Delta_r$ is an optional small learned correction, used only in an ablation.

Directions orthogonal to the label subspace are smoothed as ordinary homophilic diffusion. This is a modeling bet: label-irrelevant feature directions can safely be averaged. We test the bet rather than assume it.

Relation to Prior Work

Two lines of work motivate the gap. Parameter-efficient relational models compress relations to scalars or vectors. RE-GNN (Relation Embedding based Graph Neural Networks for Handling Heterogeneous Graph) uses one scalar per relation to build a weighted homogeneous graph. EMR-GNN uses one scalar per relation inside a feature-anchored diffusion that stays stable to 64 layers. CompGCN (Composition-based Multi-Relational Graph Convolutional Networks) composes node and relation vectors with parameter-free operations. All three encode every relation as some form of "pull neighbors together." EMR-GNN's regularizer, in particular, explicitly penalizes $(h_u-h_v)^2$. Heterophily-aware models on single-relation graphs take the opposite approach. GGCN (Two Sides of the Same Coin: Heterophily and Oversmoothing in Graph Convolutional Neural Networks) uses signed messages and degree corrections. Neural Sheaf Diffusion (Neural Sheaf Diffusion: A Topological Perspective on Heterophily and Oversmoothing in GNNs) learns edge maps on vector "stalks." Both recover depth robustness under heterophily but have no notion of edge type.

Three papers supply the method or constrain it. HALO supplies the compatibility energy and the unrolled-descent design; we keep both and change only the parameterization of $H_r$. The sheaf result that separating $C$ classes needs stalk dimension on the order of $C$ is the theoretical reason to expect a rank-$C$ correction to be enough, and our subspace dimension follows from it. HetSheaf (Heterogeneous Sheaf Neural Networks) already predicts edge maps from edge-type information alone and cuts IMDB parameters to 1.6M from R-GCN's 72.1M. It is the nearest relative. It still learns full stalk maps with neural networks and builds block sheaf Laplacians, while we tie the maps to label space and estimate them from statistics.

The meta-path methods H2SGNN (Addressing Heterogeneity and Heterophily in Graphs: A Heterogeneous Heterophilic Spectral Graph Neural Network) and AHGNN (Adaptive Heterogeneous Graph Neural Networks: Bridging Heterophily and Heterogeneity) fit low-pass or high-pass filters per hand-chosen meta-path, which is a chain of relation types such as author–paper–author. We operate on raw relations and let compositions arise through depth. Finally, Are we measuring oversmoothing in graph neural networks correctly? constrains our evaluation. Dirichlet energy can fall while classes remain separable, so we measure depth effects with per-layer linear-probe accuracy rather than energy alone.

Research Program

We will build the model above. The shared matrix $U$ is tied to the readout weights. Each $M_r$ is re-estimated once per epoch from labels plus soft predictions, an expectation-maximization-style alternation, and gradients do not pass through the estimate. Unrolled descent runs for 2 to 64 steps.

Relations whose endpoints are unlabeled node types, such as paper–author, are the hard case. For these, $\hat\Pi_r$ is computed between the projections $U^\top y$ of both endpoints. This makes "class" for authors a soft, learned notion, and we will report whether the alternation stays stable there.

The analysis has three parts. First, a non-asymptotic result: with the anchor term, the fixed point of the unrolled descent depends on the spectrum of the compatibility-weighted operator, and per-relation cores that are permutation-like keep class means apart at any depth, whereas scalar weights cannot. Second, an empirical study of whether GGCN's observation that low-relative-degree nodes fail first carries over when degree is split by relation. This addresses the open tension the research file notes between GGCN's degree-based account and HALO's compatibility-based account. Third, a parameter and memory accounting at growing $R$.

Baselines

The naive reference points are an MLP on node features alone and a two-layer R-GCN. GGCN showed that on strongly heterophilic graphs plain GCNs often fall below the MLP, so the MLP is the floor that any graph method must clear.

The strongest accuracy competitor is HALO, which is the same energy with full $D\times D$ matrices per relation. On IMDB, HALO reports 76.20% accuracy against Simple-HGN's 67.36%, per Descent Steps of a Relation-Aware Energy Produce Heterogeneous Graph Neural Networks. It is the most direct competitor because our method only re-parameterizes it. We run it with our code, data splits, unroll depths, and the same hyperparameter search budget. Matching it on IMDB within noise while using a small fraction of its relation parameters, and exceeding it on rare relations, counts as beating it.

On the H2GB suite, the strongest reported system is H2G-former, with 28.47% accuracy on oag-cs against HGT's 22.51% and an average rank of 1.1, per When Heterophily Meets Heterogeneity: New Graph Benchmarks and Effective Methods. We use that benchmark's released splits and protocol. Reaching comparable accuracy at much lower memory counts as a win. Beating it is not required.

EMR-GNN represents scalar relations combined with deep anchoring. It reports 87.6% on DBLP with 10% labels against RGCN's 53.8%. On this homophilic dataset we expect only to match it. HetSheaf and CompGCN complete the set of efficient relational models; CompGCN reports 85.3% on MUTAG.

Ablations isolate the key ingredient. In each, every component is held fixed except the form of $H_r$: identity (pure homophilic diffusion), a signed scalar per relation, a basis-decomposed $D\times D$ matrix with matched parameter count, a learned $M_r$ with no statistical estimate, and estimated $M_r$ with and without shrinkage.

Why not just…?

Why not just basis-decompose HALO's matrices, as R-GCN and CompGCN do? This is the most serious threat. It also removes the $R\cdot D^2$ cost by sharing capacity, and if it matches us everywhere, our claim reduces to "any compression works." The difference we predict is on rare relations. A basis mixture for a relation seen in only a few edges is fitted by gradient descent from almost no signal, while our core is a shrunken frequency estimate. The matched-parameter ablation, scored separately on relations bucketed by edge count, settles it. We will report the result even if basis decomposition ties.

Why not just allow EMR-GNN's or RE-GNN's per-relation scalar to be negative? A signed scalar can say "push these nodes apart" but not "class A links to class B." On binary tasks such as fraud detection in IEEE-CIS-G, those two statements are close, and a signed scalar may be enough; that would be an honest negative for our method on those datasets. It should fail on cyclic multi-class compatibility, which the synthetic experiment builds in directly and which the sheaf stalk-dimension argument predicts scalars cannot separate.

Why not just use an MLP, or a graph transformer like H2G-former? GGCN's evidence shows that MLPs are strong on heterophilic graphs with rich features. The research file also reports that topology-based message passing reaches 71.3% on Pubmed with all features missing, a setting where an MLP has nothing to use, per Reducing Over-smoothing in Graph Neural Networks Using Relational Embeddings. We therefore include feature-masked variants of each benchmark. Transformers avoid deep averaging but carry type-specific feed-forward blocks and attention whose memory grows with schema size. We report accuracy against peak GPU memory, not accuracy alone.

Proposed Experiments

The decisive experiment is synthetic. We generate multi-relational graphs with controlled per-relation compatibility matrices, mixing homophilic, bipartite, and cyclic three-class patterns. Relation frequencies follow a long-tail distribution, and the number of relations is swept from 10 to 1000. We plot accuracy and per-layer probe accuracy against depth and against $R$. The core prediction is falsifiable. Estimated label-space cores should track HALO's accuracy at small $R$. They should overtake it and the basis-decomposed variant on the tail as $R$ grows. Scalar and signed-scalar variants should collapse on cyclic relations at every depth. If HALO does not degrade on tail relations, the long-tail argument fails.

On real data we use IMDB, ACM, and DBLP from the heterogeneous-graph literature, and AIFB, AM, BGS, and MUTAG for knowledge-graph entity classification. We also use the H2GB datasets (ogbn-mag, oag-cs, RCDD, IEEE-CIS-G, H-Pokec, PDNS) under its heterophily index. Metrics are accuracy or Micro-F1 as each benchmark defines them, relation-specific parameter count, peak memory, and accuracy at 2, 8, 32, and 64 layers.

Two further checks probe the method itself. First, the estimated $\hat\Pi_r$ should correlate with the per-relation heterophily H2GB measures; if it does not, the label-space mechanism is not doing what we claim. Second, we compare variants that do and do not smooth the directions outside the label subspace. This tests the assumption that label-irrelevant directions are safe to average. If the assumption is wrong, the rank of $U$ must grow beyond $C$ and the parameter advantage shrinks accordingly.