Graph neural networks for event streams, such as users editing pages, wallets moving tokens, or people replying to posts, update each node by repeatedly mixing in information from its recent partners. When a node is very active, this mixing can make its stored summary look like everyone else's. In the static setting this failure is called over-smoothing. Recent work shows that it is best seen as a collapse in the effective dimensionality of node representations, not as a loss of "energy". Separately, the Temporal Graph Benchmark reports an uncomfortable result. On node-affinity prediction for Reddit, a moving-average heuristic reaches NDCG@10 of 0.559, while the Temporal Graph Network reaches only 0.315 (Temporal Graph Benchmark). This proposal asks whether part of that gap is representation collapse. If it is, we propose to fix it with a cheap optimal-transport signal that is computed only where the temporal model already looks.
The mechanism is a local edge curvature, computed by optimal transport, that measures how much two neighbors' recent neighborhoods already overlap in representation space. It is used to damp messages that would only repeat what a node already knows. The central observation is about cost. Temporal models such as TGN never aggregate over a full neighborhood. They sample the $k$ most recent interactions, typically ten to twenty. Transport curvature, usually dismissed as too expensive for streams, therefore reduces to many tiny $k \times k$ Sinkhorn problems. Sinkhorn is an iterative matrix-scaling routine that solves a smoothed transport problem on GPUs and is differentiable. These problems batch alongside the attention the model already computes.
Core Claim
We make two claims, and the second depends on the first. The first is diagnostic. In memory-based temporal graph networks, the effective rank of node memories and embeddings decays over stream time, and faster for high-activity nodes. This decay tracks windowed prediction quality, in the same way Are we measuring oversmoothing in graph neural networks correctly? found for static graph networks, where effective rank correlated with accuracy at 0.91 on average and Dirichlet energy often did not. Nobody has run this measurement on dynamic models.
The second claim is interventional. Gating temporal messages by a feature-aware Ollivier–Ricci curvature slows this collapse and improves prediction on high-activity, low-surprise streams. Low surprise means few test interactions are new, which is exactly where heuristics currently win. The gate should also beat a topology-only curvature of the kind TRicci uses.
We define the curvature concretely. For a node $i$ at time $t$, let $m_i$ be the uniform distribution over its $k$ sampled recent neighbors. Place each neighbor at its current memory vector $s(t)$. Then the curvature of the temporal edge $(i,j)$ is
$$\kappa_t(i,j) = 1 - \frac{W_\varepsilon(m_i, m_j)}{\lVert s_i(t) - s_j(t) \rVert + \delta},$$
where $W_\varepsilon$ is the entropically smoothed transport cost between the two neighbor sets, using Euclidean ground cost on memories. The constant $\delta$ is small and prevents division by zero. A strongly positive $\kappa_t$ means $j$'s neighborhood would deliver nearly the same information $i$ already aggregates. This is the "echo chamber" edge that Revisiting Over-smoothing and Over-squashing Using Ollivier-Ricci Curvature links to over-smoothing. The gate multiplies $j$'s attention weight by $g = \mathrm{sigmoid}(-\beta(\kappa_t - \theta))$, where $\beta$ and $\theta$ are learned scalars.
This construction departs from prior work in three ways. It is computed online, per event batch, rather than once as preprocessing, as BORF does. The ground cost lives in the evolving representation space rather than in hop distance, which a combinatorial curvature cannot express. And it re-weights messages rather than deleting edges from the stream.
Relation to Prior Work
Two papers supply the method and motivate its geometry. The first is Nguyen et al., who prove that high positive Ollivier–Ricci curvature accelerates homogenization. Their BORF rewiring raises GCN accuracy on Cornell from 41.5% to 50.8% and Peptides-func from 46.1 to 50.2 mAP, but only as a static rewiring step computed on topology. The second is Fused Gromov-Wasserstein Distance for Structured Objects, which justifies mixing feature and structural costs in transport. We use only the first-order feature term, locally, and leave full Gromov–Wasserstein alignment aside.
Two dynamic-graph papers use curvature but leave our question open. Ollivier-Ricci Curvature Based Spatio-Temporal Graph Neural Networks for Traffic Flow Forecasting precomputes curvature once on a fixed road network, so topology never changes. Edge Sparsification via Temporal Forman-Ricci Curvature (TRicci) handles real edge streams with a degree-and-triangle curvature plus a temporal penalty. It keeps 97.7% of full-graph ROC-AUC while pruning 80% of edges, but its goal is speed, not representation quality. Both constrain our design. TRicci shows that a cheap topological curvature is already strong, so our proposal must show what feature awareness adds, and we build that test into the ablations.
The backbone is TGN, whose memory module is where we expect collapse. Its own ablation shows memory adds about 4% precision. Memory is therefore valuable, and our aim is to keep it from homogenizing rather than to remove it.
Architectural remedies for static over-smoothing are the natural competitors for the intervention. Anti-Symmetric DGN makes propagation non-dissipative and stays stable to 30+ layers, but it was evaluated only on static graphs. AdaSpec and Complete the Missing Half add learnable self-loops or high-pass channels. None of these targets redundancy that accumulates over time in a recurrent memory.
Research Program
The work proceeds in three stages. Each stage gates the next.
Stage one is measurement. We train TGN, TGAT-style attention, and a non-memory model (GraphMixer-style) on TGB datasets. We log numerical rank and effective rank of memory and embedding matrices in sliding windows of stream time. We stratify these by node degree over the window and by the surprise index of each evaluation window. The deliverable is a per-window correlation between effective rank and the windowed metric, MRR or NDCG@10, together with the same correlation for Dirichlet energy. This stage is useful even if the rest fails, because it tests whether the static measurement critique carries over to temporal models.
Stage two is the curvature gate. We implement batched log-domain Sinkhorn, which avoids the small-$\varepsilon$ underflow noted in the transport literature, over the neighbor sets TGN already samples. We need one extra hop of sampling for the neighbors' own neighbor sets. Cost per event batch of size $B$ is about $B k^3 L$, where $L$ is the number of Sinkhorn iterations. The $k^3$ comes from $k$ neighbor pairs, each a $k \times k$ scaling. For $k=10$ and $L=20$, this is small next to the attention and GRU updates. We will report wall-clock overhead explicitly, because TGB already shows neural models running one to two orders of magnitude slower than heuristics.
Stage three is analysis. We check whether the gate's effect concentrates on high-activity nodes and positive-curvature edges. We check whether rank preservation is task-relevant, by probing whether preserved dimensions predict future interactions rather than noise, which addresses the "rank is necessary, not sufficient" objection. Finally, we check whether the method helps or hurts under high surprise, where memorization matters least.
Baselines
The do-nothing reference is vanilla TGN with the TGB default neighbor sampling and tuning. The non-learning references are the TGB heuristics: Moving Average and persistence for node affinity, and EdgeBank for link prediction. The strongest reported numbers in the file are Moving Average at NDCG@10 0.559 on tgbn-reddit, versus 0.315 for TGN, and NAT at MRR 0.749 on tgbl-wiki, both from Temporal Graph Benchmark. For tgbl-review, TGB reports GraphMixer and TGAT as best, but the file gives no numeric values, so we will rerun both. On the heuristic-dominated node-affinity tasks, success means closing a meaningful fraction of the gap to Moving Average on tgbn-reddit rather than necessarily surpassing it. On tgbl-wiki, success means matching or beating NAT's 0.749.
The strongest curvature competitor is a TRicci-style gate. We use the temporal Forman–Ricci score from Edge Sparsification via Temporal Forman-Ricci Curvature in place of $\kappa_t$ inside the identical gate. We also run TRicci's original pruning at its 20% retention budget. The second architectural competitor is TGN with an anti-symmetric memory update in the spirit of Anti-Symmetric DGN. The third is TGN plus an explicit effective-rank regularizer on each batch's memories.
All methods share the TGB splits, negative sampling protocol, neighbor budget $k$, embedding size, and the same hyperparameter search budget in GPU-hours. We use at least five seeds, and results are compared with confidence intervals.
Two ablations isolate the key ingredient. The first replaces the memory-space ground cost with shortest-path hop distance, which gives topology-only Ollivier–Ricci curvature. The second replaces the curvature with plain cosine similarity between $s_i$ and the mean of $j$'s neighbor memories. That is a transport-free redundancy score. We count the method as having beaten its competitors only if the full gate beats both ablations and the Forman gate on the high-activity strata.
Why not just…?
Why not just use Forman–Ricci curvature, as TRicci does? This is the most serious threat. TRicci is closed-form, already works on streams, and preserves 97.7% of ROC-AUC under heavy pruning. Our argument is that Forman curvature sees only degrees and triangles. Two neighbors can be structurally distinct yet carry identical memories, or structurally overlapping yet informative. Only a feature-space cost can detect the redundancy that drives representation collapse. That argument is a hypothesis. The Forman-gate baseline and the hop-distance ablation settle it directly. If topology-only curvature matches the feature-aware gate, we will report that transport adds nothing here and recommend the Forman version.
Why not just let attention learn to down-weight redundant neighbors? Temporal attention already conditions on neighbor memories, so in principle it could learn redundancy suppression. But attention scores each neighbor independently against the query. It never compares a neighbor's whole neighborhood to the node's own, and that set-to-set comparison is what transport computes. The cosine-redundancy ablation is the fair test of whether this set-level comparison matters. Vanilla TGN, which has attention and still underperforms Moving Average on tgbn-reddit, is weak evidence that attention alone does not solve it.
Why not just add an effective-rank regularizer? It is simpler, and it targets the metric directly. The weakness is that rank is necessary but not sufficient: random noise maximizes rank. A regularizer can therefore inflate dimensionality without preserving predictive signal. We include it as a baseline and apply the task-relevance probe to both methods. If the regularizer matches the gate on both accuracy and probe quality, it wins on simplicity, and we will say so.
Why not just use the heuristics? On low-surprise node-affinity streams they are currently better and far faster, and no amount of curvature may change that. They cannot generalize to unseen interactions, however, and neural models such as NAT beat them on tgbl-wiki. Our claim is restricted to whether collapse explains part of the neural deficit. The surprise-stratified analysis will show where each approach should be used.
Proposed Experiments and Decisive Checks
The main suite covers tgbl-wiki, tgbl-review, and tgbl-coin for link prediction (MRR), and tgbn-trade, tgbn-genre, and tgbn-reddit for node affinity (NDCG@10). We add tgbl-comment and tgbn-token for throughput measurements, reporting events per second and overhead relative to TGN. As a static sanity check, we run the gate inside a GCN on Cornell and Peptides-func against BORF's reported 50.8% and 50.2 mAP. This checks that local, feature-aware curvature is not simply weaker than the global version.
Three checks decide the program. First, if stage one finds that effective rank neither decays over stream time nor correlates with windowed performance (correlation well below the static 0.91 and not stronger for high-activity nodes), the over-smoothing hypothesis for temporal models is false. We then stop and publish the negative diagnostic. Second, if the feature-aware gate does not beat the Forman gate and the hop-distance ablation on high-activity strata, optimal transport is not earning its cost. Third, if the gate's gains appear without any change in effective rank, the mechanism is something other than collapse prevention, and we will report it as such.
References
- Temporal Graph Benchmark for Machine Learning on Temporal Graphs
- Are we measuring oversmoothing in graph neural networks correctly?
- Revisiting Over-smoothing and Over-squashing Using Ollivier-Ricci Curvature
- Fused Gromov-Wasserstein Distance for Structured Objects
- Ollivier-Ricci Curvature Based Spatio-Temporal Graph Neural Networks for Traffic Flow Forecasting
- Edge Sparsification via Temporal Forman-Ricci Curvature for Dynamic Graph Learning
- Temporal Graph Networks for Deep Learning on Dynamic Graphs
- Anti-Symmetric DGN: a stable architecture for Deep Graph Networks
- AdaSpec: Adaptive Spectrum for Enhanced Node Distinguishability
- Complete the Missing Half: Augmenting Aggregation Filtering with Diversification for Graph Convolutional Networks