Schema-Relative Curvature for Over-Smoothing in Heterogeneous Graphs

Graph neural networks pass messages between neighboring nodes, and when many such layers are stacked, node representations blur into near-identical vectors. This failure is called over-smoothing. A line of work on homogeneous graphs uses discrete Ricci curvature to locate where this happens. Discrete Ricci curvature is an edge-level score that is positive when two endpoints share many short loops (dense, redundant neighborhoods that act as echo chambers) and negative when the edge is a bridge with no alternative routes. That work then edits edges guided by these scores. On heterogeneous graphs, where nodes have types such as author, paper, or venue and edges have relation types, the same scores mislead. A paper–venue edge cannot sit on a triangle, because the schema forbids venue–venue and paper–paper-via-venue triangles. Triangle-based curvature therefore labels almost every typed edge a "bottleneck" for reasons that have nothing to do with information flow.

We propose to measure curvature relative to what the schema allows. For each edge we compare the number of short cycles it actually lies on with the number expected under a random graph that has the same types, relations, and per-type degrees. Edges with far more cycles than the schema forces are candidate over-smoothing hotspots. Edges with far fewer are true bottlenecks. The expected count has a closed form computable in linear time, and the observed count can be estimated by sampling, so the score scales to graphs with millions of nodes where optimal-transport curvature does not. We test whether this score predicts which node types lose representational diversity with depth, and whether pruning or adding edges by this score slows that collapse better than type-blind curvature, random edits, or architectural fixes.

Core Claim

The claim is that on heterogeneous graphs, curvature is only informative once it is normalized by the schema's own cycle structure. A schema-relative curvature, computed in $O(m)$ plus a sampling term, should identify the edges responsible for type-specific over-smoothing, and those edges are invisible to existing combinatorial curvatures.

The score for an edge $(u,v)$ of relation $r$ is

$$\kappa^{S}(u,v) = \log\frac{Q(u,v)+1}{\hat Q_r(u,v)+1}.$$

Here $Q(u,v)$ is the observed number of schema-valid triangles and quadrangles (closed walks of length three or four) through the edge. $\hat Q_r(u,v)$ is the expected count under a typed configuration model, meaning a random graph that preserves each node's degree within each relation. For a bipartite relation the expected quadrangle count reduces to approximately $\big(\sum_{y\in N(u)} d_y\big)\big(\sum_{x\in N(v)} d_x\big)/m_{r'}$. In this expression $d$ is degree, $N(\cdot)$ is a neighborhood, and $m_{r'}$ is the edge count of the closing relation. This follows from the standard configuration-model edge probability $d_x d_y/m$. Precomputing neighbor-degree sums makes $\hat Q$ cost $O(1)$ per edge. $Q(u,v)$ is estimated by sampling $k$ neighbors of $u$ and taking MinHash overlaps with $N(v)$. This caps the cost on hub nodes that degrade even the $O(m\,d_{max})$ methods.

Prior Work and the Gap

Three papers supply the homogeneous theory and methods we build on.

Understanding over-squashing and bottlenecks on graphs via curvature introduces Balanced Forman curvature, bounds message-passing sensitivity by it, and rewires with SDRF. Its own stated limitation is that it handles only simple undirected graphs. Revisiting Over-smoothing and Over-squashing Using Ollivier-Ricci Curvature shows that high positive curvature drives over-smoothing and that negative curvature drives over-squashing. Its batch rewiring method, BORF, adds edges at bottlenecks and deletes them in dense clusters. Because it relies on optimal transport, it costs $O(|E|d_{max}^3)$. Mitigating Over-smoothing and Over-squashing using Augmentations of Forman-Ricci Curvature replaces transport with cycle counting. Its triangle version, AFR-3, runs in $O(m\,d_{max})$. Its quadrangle version, AFR-4, runs in $O(m\,d_{max}^2)$. It chooses thresholds automatically with a Gaussian mixture.

We reuse the add/delete logic of these methods. Where they differ from us is the null model they implicitly use. On bipartite relations AFR-3 degenerates to degree-only curvature, which is uniformly negative. AFR-4 recovers some signal but pays the quadratic hub cost and still never asks whether a cycle count is surprising given the schema.

Heterogeneous graph work motivates the problem but does not use geometry. Homophily-oriented Heterogeneous Graph Rewiring rewires along meta-paths using learned attribute and label similarity, with a Frank–Wolfe multi-objective solver. Descent Steps of a Relation-Aware Energy Produce Heterogeneous Graph Neural Networks (HALO) derives layers from a relation-aware energy whose descent steps resist collapse. TAGDN aligns node-type feature distributions with closed-form Gaussian optimal transport and then diffuses in one step. It is an important constraint on our claim, because it shows that over-smoothing in heterogeneous graphs can be reduced without touching topology. Our proposal has to beat or complement that, not ignore it.

Measurement also constrains the design. Are we measuring oversmoothing in graph neural networks correctly? shows that Dirichlet energy can stay flat while accuracy collapses. It finds that effective rank, the entropy of the normalized singular values of the feature matrix, tracks accuracy, with an average Pearson correlation of 0.91. We therefore never use Dirichlet energy as evidence. Instead we compute effective rank separately for each node type's embedding matrix. This type-decomposed version has not been formulated before.

Research Program

The work has three parts.

The first is the estimator. We will implement $\kappa^{S}$ for arbitrary schemas. Valid cycle patterns are enumerated once from the schema graph. Sampling and MinHash estimate $Q$ with tunable error, and we will report the error against exact counts on graphs small enough to count exhaustively.

The second is the diagnostic study. On standard heterogeneous benchmarks we train a fixed architecture at increasing depth and record per-type effective rank at every layer. We then test whether the mass of high-$\kappa^{S}$ edges incident to each node type predicts that type's rank decay. We run the same test with AFR-3, AFR-4, and Balanced Forman curvature computed on the type-blind graph.

The third is intervention. We extend BORF-style batch rewiring with two changes. First, deletions target edges with the highest $\kappa^{S}$. Second, additions at strongly negative $\kappa^{S}$ edges are restricted to relation types the schema permits, so that no author–venue edge is invented where the schema has none. Thresholds are chosen by the same Gaussian-mixture heuristic as AFRC, applied separately per relation.

Baselines

The naive reference point is the unmodified graph trained with Simple-HGN, a GAT with edge-type embeddings, residual connections, and output normalization. That benchmark paper shows Simple-HGN beats most specialized heterogeneous models, reporting 94.01±0.24 Macro-F1 on DBLP. Every rewiring variant feeds into this same backbone, with the same splits from the Heterogeneous Graph Benchmark (HGB), the same depth grid, and the same hyperparameter budget. A rewiring method beats this reference only if it improves accuracy at the backbone's best depth, or keeps per-type effective rank and accuracy higher at depth 16–32, with non-overlapping seed intervals.

The strongest existing method on relation-dependent data is HALO. It reports 76.20% accuracy on IMDB against 67.36% for Simple-HGN (Descent Steps of a Relation-Aware Energy...). We will rerun HALO with its released configuration and the same tuning budget as our own runs. We will then test whether our rewired graph, used as HALO's input, adds on top of it. A gain on top of HALO counts as success. Matching HALO with a cheaper Simple-HGN backbone would be a weaker but still useful result.

TAGDN is the strongest topology-free competitor and is run under the same protocol. On TAGDN the file reports only relative gains and speedups, and no absolute HGB accuracy; there is no reported result found on Lacuna for TAGDN on DBLP or IMDB in absolute terms.

The type-blind curvature baselines are AFR-3, AFR-4, and BORF applied to the graph with types ignored. They use identical edit budgets and the same Gaussian-mixture threshold rule. BORF is expected to be infeasible at scale: the AFRC paper reports that BORF timed out after 1 hour on Tolokers while AFR-3 took about 7 seconds. We report BORF only where it finishes.

Two ablations isolate the key ingredient. The first uses raw schema-valid cycle counts $Q$ without the null-model normalization. The second applies the same number of deletions and additions chosen at random within each relation. HDHGR is included as the non-geometric rewiring baseline on the heterophilic heterogeneous datasets where it was evaluated.

Why not just…?

Why not just use Simple-HGN or HALO and skip rewiring entirely? Residual connections and energy-derived skip steps slow collapse globally. They say nothing about where in the graph it originates, and HALO requires full-graph computation, which limits it at scale. This is a real threat on HGB, where depth-2 models may already be near ceiling. We settle it by reporting gains on top of both backbones. We also run a depth sweep: if rewiring helps only at depths nobody uses, we will say so and position the contribution as a diagnostic rather than an accuracy method.

Why not just run AFR-4 or BORF on the type-blind graph, or on meta-path projections? AFR-4 does count the quadrangles that bipartite relations permit. It may recover much of the signal, and this is the alternative most likely to match us. The null-model ablation decides it. If raw AFR-4 predicts per-type rank decay and guides edits as well as $\kappa^{S}$, the schema normalization is unnecessary and we will report that. Meta-path projections such as paper–venue–paper turn every venue into a clique. That makes the projected graphs dense and pushes $d_{max}$ into the regime where even linear-in-degree curvature is costly. We will measure that blow-up directly on DBLP and AMiner.

Why not just align types with Gaussian transport, as TAGDN does? TAGDN shows topology-free alignment works. It assumes each type's features are unimodal Gaussian, and it acts globally, so it cannot repair a specific bridge. Our test is whether topology edits and alignment are complementary. We run TAGDN on the original graph and on the $\kappa^{S}$-rewired graph. If there is no gain, curvature adds nothing beyond feature alignment on these benchmarks.

Why not just delete random edges or high-degree edges? Random or degree-based dropping also slows smoothing. The random-within-relation ablation at a matched budget is exactly this control, and $\kappa^{S}$ must beat it to justify itself.

Proposed Experiments and Decisive Checks

We begin with a planted test. We generate typed stochastic block graphs with bipartite relations and planted inter-community bridges, plus planted dense echo-chamber blocks. We then measure how well each curvature recovers the planted edges, as area under the ROC curve. The decisive prediction is that AFR-3 is near chance on bipartite relations, while $\kappa^{S}$ recovers both bridges and echo chambers.

On HGB node classification (DBLP, IMDB, ACM, Freebase) and on the knowledge-graph entity classification sets (AIFB, MUTAG, BGS, AM), we run the depth sweep from 2 to 32 layers. We report Macro-F1, Micro-F1, and per-type effective rank. The decisive check is the rank correlation between each type's high-$\kappa^{S}$ edge mass and its rank decay slope, compared against the same correlation for type-blind curvatures.

The intervention experiments then compare all baselines at matched edit budgets over ten seeds. Scalability is tested on AMiner (about 5 million nodes). We report wall-clock time and memory for $\kappa^{S}$, AFR-3, and AFR-4, and the estimator error of sampled $Q$ against exact counts on subgraphs.

The proposal fails cleanly if either of two things happens: the unnormalized-count ablation matches $\kappa^{S}$ on both diagnosis and intervention, or $\kappa^{S}$ rewiring adds nothing on top of HALO or TAGDN at any practical depth.