Many real graphs mix several kinds of nodes and edges. An academic graph has authors, papers and venues linked by "writes," "cites" and "published in." Graph neural networks (models that update each node by averaging messages from its neighbours) do badly on such graphs in two familiar ways. They blur nodes together as layers are stacked, which is called over-smoothing. They also fail when linked nodes tend to differ rather than resemble each other, the case called heterophily. A popular remedy for directed graphs writes each edge as a complex number: its magnitude is the edge weight and its angle, or phase, is the direction. The obvious next step at this intersection is to give every relation type in a heterogeneous graph its own learned phase, in effect a heterogeneous MagNet, Dune or directed sheaf network. This note argues that this step is provably empty on most standard heterogeneous benchmarks.
The argument is short. On a closed loop in the graph, per-relation phases cancel whenever the schema is a tree. The schema here is the small graph whose nodes are node types and whose edges are relation types. When the schema is a tree, the phases can be removed by a relabelling of each node's complex coordinate. The same holds for sheaf models whose orthogonal "restriction maps" (the matrices that translate a node's features before they are compared with a neighbour's) depend only on node and edge type. DBLP and IMDB have tree schemas. ACM, which has paper-cites-paper, does not. We propose to prove this result and to test its sharp predictions. We then build the minimal model that escapes it: complex diffusion whose edge phases depend on node features and are constrained by the schema. We ask whether that model's continuous phases buy anything that plain signed messages do not, both for resisting over-smoothing at depth and for handling heterophily along meta-paths (fixed chains of relations such as Author–Paper–Author).
Core Claim
Consider a heterogeneous graph with complex node states $x_v$. Each edge $(u,v)$ of relation type $r$ carries a phase $\theta_{uv}$, with $\theta_{vu} = -\theta_{uv}$. Define the magnetic-style energy that the diffusion lowers:
$$E(x) = \sum_{(u,v)} w_{uv}\,\bigl|x_u - e^{i\theta_{uv}} x_v\bigr|^2 .$$
Here $w_{uv}$ is a nonnegative edge weight. Mixing different feature spaces across node types is handled by type-specific linear maps applied before diffusion. The operator behind $E$ is Hermitian, meaning it equals its own conjugate transpose, so its eigenvalues are real, as in MagNet. The holonomy of a closed walk $C$ is the phase accumulated around it:
$$\Phi(C) = \sum_{(u,v)\in C} \theta_{uv} \pmod{2\pi}.$$
A standard fact about connection Laplacians is that, on a connected graph, $E$ has a nonzero state of zero energy exactly when every cycle has $\Phi(C)=0$. Only then can deep diffusion collapse to a "flat" state. When some holonomy is nonzero, the graph is frustrated: the smallest eigenvalue is strictly positive and there is no collapsed fixed point.
Now suppose the phases depend only on relation type, $\theta_{uv}=\phi_r$. Then $\Phi(C)=\sum_r \phi_r\,(n_r^+(C)-n_r^-(C))$, where $n_r^{\pm}(C)$ count forward and backward traversals of relation $r$. Project any closed walk onto a schema with no cycles and no self-relations, and it becomes a closed walk on a tree, which crosses every tree edge equally often in each direction. So all holonomies vanish and the phases are pure gauge, removable by relabelling each node's phase. The same cancellation holds for type-only orthogonal restriction maps: a closed walk on a tree reduces to the empty word, so the product of transports is the identity. This covers orthogonal HetSheaf-ET-style models.
The first contribution is this schema-gauge lemma and its consequences. The operator itself is standard; what is new is working out when relation-level phase or rotation can matter. The second contribution is a model that escapes the lemma. Its phases are $\theta_{uv} = \phi_r + g_r(h_u, h_v)$, where $g_r$ is a small antisymmetric network of the two endpoints' current features $h_u, h_v$. The feature term can produce nonzero holonomy on the Author–Paper–Author loops that relation phases cannot touch.
Where This Sits Relative to Prior Work
Three lines of work supply the ingredients.
The first is complex and directed operators on homogeneous graphs. MagNet introduces the magnetic Laplacian with a hand-tuned charge. Sheaves Reloaded: A Direction Awakening generalizes it to complex sheaf stalks with learned maps. Dune builds norm-preserving unitary convolutions that train past 100 layers. All three assume a single node and edge type. Directed Sheaf Neural Networks (DSNN) is our closest method-level relative: our model is roughly a one-dimensional complex DSNN with type-specific input maps. The difference lies in the schema-level analysis and the heterogeneous setting, not in the operator.
The second is heterogeneous models that resist collapse. HALO unrolls descent steps on a relation-aware energy with compatibility matrices $H_r$. Heterogeneous Sheaf Neural Networks learns restriction maps from type identifiers alone. H2SGNN applies low-pass filters to homophilic meta-paths and high-pass filters to heterophilic ones, but the meta-paths are handcrafted. Our lemma constrains the second of these directly: type-only orthogonal sheaves are gauge-trivial on tree schemas. We expect HetSheaf's gains on such data to come from its non-orthogonal maps or its input projections rather than from nontrivial transport, and we will test that.
The third is homophily-aware message passing. GGCN shows that heterophily and over-smoothing share a cause and uses feature-based signed messages. Neural Sheaf Diffusion shows that nontrivial transport lets diffusion separate classes instead of collapsing them. Signed messages are phases restricted to $\{0,\pi\}$, so GGCN is the natural special case our continuous phases must beat.
Two evaluation papers constrain the design. Platonov et al. find that on clean benchmarks, simple ego-neighbour separation beats most heterophily-specific models. Lv et al. find that Simple-HGN matches or beats elaborate heterogeneous architectures once tuning is fair. Any gain we report must survive both lessons.
Research Program
The theory work proves the schema-gauge lemma for U(1) phases and for orthogonal type-level sheaves. It also characterizes the non-tree case. There, the space of achievable holonomies from relation phases is spanned by the schema's independent cycles, including any self-relations such as "cites." This gives an exact count of how many independent directional degrees of freedom a relation-phase model actually has on each dataset. We then connect frustration to depth. When the feature-conditioned phases give nonzero holonomy, the smallest eigenvalue of the operator is bounded away from zero. That bound should translate into a floor on the Dirichlet energy of deep representations, the total squared phase-adjusted difference across edges, and so into resistance to forward over-smoothing.
We will also check the backward side described in Backward Oversmoothing. That paper shows over-smoothing also shrinks gradients during training, so we will monitor gradient norms per layer.
The model work implements the energy above as explicit diffusion steps with a residual term that ties states to the input, in the spirit of HALO's unrolling. The phases are $\phi_r + g_r(h_u,h_v)$, and $g_r$ is antisymmetric by construction, $g_r(a,b) = s_r(a,b) - s_r(b,a)$. Complex arithmetic roughly quadruples multiply cost. We keep it tractable with one complex channel per real feature pair and by reporting memory, since DSNN documents a 5–35% peak-memory overhead.
The diagnostic work computes, for every benchmark, the schema's cycle structure. It also estimates the homophily of each two-hop symmetric meta-path from training labels. This lets us state, before training, which datasets should reward relation phases and which should reward only feature phases.
Baselines
The naive reference point is Simple-HGN from Lv et al., a GAT with learned edge-type embeddings, residual connections and embedding normalization. Its explicit reverse-edge types already encode direction. It is the "do nothing new" baseline because direction and relation type are both already visible to its attention. The file reports it at 94.01±0.24 Macro-F1 on DBLP node classification, and HALO's paper reports it at 67.36% accuracy on IMDB.
The strongest existing method on the heterophilic heterogeneous case is HALO. HALO reports 76.20% node-classification accuracy on IMDB, which is the bar to beat there. On ACM we found no reported result on Lacuna for any of the listed methods; there we will rerun all baselines ourselves.
H2SGNN and HetSheaf are the other two strong heterogeneous competitors. H2SGNN has meta-path filters, and the file reports gains over prior models of 1.2% on IMDB and 0.9% on AMiner. HetSheaf has type-level sheaves. For both we found no absolute numbers on Lacuna, so they will be rerun.
GGCN-style signed feature messages, grafted onto Simple-HGN, are the closest real-valued competitor to our key ingredient. Dune, run on the heterogeneous graph flattened to a homogeneous directed graph with relation type folded into a scalar edge weight, is the strongest deep, direction-aware competitor.
Three ablations isolate the proposal. The first uses relation phases only ($g_r=0$), which the lemma predicts is equivalent to no phases on DBLP and IMDB. The second uses feature phases restricted to $\{0,\pi\}$, which is signed messages inside the same diffusion. The third uses feature phases with the relation term removed.
For fairness, every method uses the HGB splits and five seeds. Each gets the same hyperparameter-search budget, a fixed number of trials drawn by the same random-search procedure, a matched parameter ceiling, and the same GPU-hour cap. We report Macro-F1 and Micro-F1 as HGB prescribes, plus accuracy where comparing with HALO's reported figure. Beating a baseline means a mean improvement larger than the combined seed standard deviation, at depth 2–4 for accuracy and at every depth up to 64 for robustness to depth.
Why not just…?
Why not just use Simple-HGN with reverse-edge types, since direction is already encoded? This is the most serious threat, and on DBLP and IMDB our own lemma says relation-level direction carries no extra information beyond what typed reverse edges give. We therefore do not expect phases to beat Simple-HGN at shallow depth there, and we will say so. Any claimed advantage must come from two places. One is feature phases on symmetric meta-paths. The other is depth behaviour, where the frustration bound predicts a residual-free model stays stable while Simple-HGN's heuristic residuals are not norm-preserving. If Simple-HGN matches us at every depth, the model contribution is null, and what remains is the lemma and the diagnostic.
Why not just use HetSheaf with 2-dimensional orthogonal maps, which are rotations, per edge type? Such a model is mathematically the relation-phase model, and it inherits the same gauge triviality on tree schemas. The experiment that settles this compares HetSheaf's orthogonal and general-linear variants on DBLP and IMDB against a version with transports set to identity. Our prediction is that the orthogonal variant equals the identity version up to seed noise. If it does not, the lemma's assumptions are violated somewhere in HetSheaf's parameterization, and we will find where.
Why not just add GGCN-style signed messages or ego-neighbour separation? A sign is a phase restricted to $0$ or $\pi$, and Platonov et al. show ego-neighbour separation is hard to beat. The sign-restricted ablation measures exactly what continuous phase adds. Signed weights can produce frustration too, but only with holonomy $\pi$, so continuous phase should matter mainly when classes are more than two-way interleaved along a meta-path. If the signed ablation matches the full model, we will conclude that complex values are unnecessary for heterogeneous heterophily and recommend the real-valued version.
Why not just use Dune on a flattened graph? Flattening discards type-specific feature spaces, and Dune compresses edge attributes into one complex scalar. On the other hand, it is the method with proven depth stability: it reports 80.45% accuracy on Questions and 72.16% on OGBN-Arxiv. The depth sweep on ACM, where the schema has a real directed loop, will show whether our schema-aware phases add anything beyond Dune's unitary propagation.
Proposed Experiments
The decisive first check tests the lemma before any claim about the model. On DBLP and IMDB, we train the relation-phase-only model and a phase-free copy with identical seeds. The prediction is that their predictions agree up to the unitary relabelling and their metrics are indistinguishable. On ACM, the prediction is that relation phases change results, because "cites" introduces frustrated cycles. A difference on DBLP, or no difference and no learned nonzero cites-cycle holonomy on ACM, would falsify the analysis.
The second check is a synthetic heterogeneous directed stochastic block model that we construct. It extends the directed stochastic block model used by MagNet and DSNN, in which communities are defined by cyclic flow. Here we add typed nodes and independently control three factors: whether the schema has a cycle, how strongly paper-paper edges flow cyclically between classes, and the homophily of the Author–Paper–Author meta-path. The predicted outcome pattern is specific. Relation phases should help only when a schema cycle and cyclic flow are both present. Feature phases should help when the symmetric meta-path is heterophilic. Continuous phases should beat signed ones when classes interleave three or more ways.
The third check is the real-data comparison on HGB DBLP, IMDB, ACM and Freebase, the last only after computing its schema cycle rank. It is run against the baselines above at depths 2, 4, 8, 16, 32 and 64. We track the oversmoothing measure recommended by Are we measuring oversmoothing in graph neural networks correctly?, the phase-adjusted Dirichlet energy and per-layer gradient norms. The claim that frustration prevents collapse is supported only if the energy floor tracks the measured smallest eigenvalue, and if the deep-layer accuracy gap to Simple-HGN, HetSheaf and HALO widens with depth rather than appearing only at a single tuned depth.
References
- MagNet: A Neural Network for Directed Graphs
- Sheaves Reloaded: A Direction Awakening
- Unitary Convolutions for Message-passing and Positional Encodings on Directed Graphs
- Descent Steps of a Relation-Aware Energy Produce Heterogeneous Graph Neural Networks
- Heterogeneous Sheaf Neural Networks
- Addressing Heterogeneity and Heterophily in Graphs: A Heterogeneous Heterophilic Spectral Graph Neural Network
- Two Sides of the Same Coin: Heterophily and Oversmoothing in Graph Convolutional Neural Networks
- Neural Sheaf Diffusion: A Topological Perspective on Heterophily and Oversmoothing in GNNs
- A critical look at the evaluation of GNNs under heterophily: are we really making progress?
- Are we really making much progress?: Revisiting, benchmarking and refining heterogeneous graph neural networks
- Backward Oversmoothing: why is it hard to train deep Graph Neural Networks?
- Are we measuring oversmoothing in graph neural networks correctly?