Dynamic Graph Prompting via Topology-Routed Mixed-Curvature Experts

Quanxin Wang, Xuanting Xie, Bingheng Li, Xingtong Yu, Shuo Wang, Ruiyi Fang, Zhao KangarXiv 2026

TL;DR

Existing dynamic graph prompting methods force evolving networks into a single, fixed embedding space (usually Euclidean), leading to "geometry under-adaptation." CurvPrompt addresses this by introducing a bank of curvature-diverse Riemannian experts (hyperbolic, Euclidean, and spherical) and dynamically routing node-time instances based on their local topology. This approach significantly improves performance on few-shot downstream tasks, achieving up to a 13.9% gain in link prediction.

What Problem Does This Paper Address?

Dynamic graphs—where nodes and edges continuously appear and disappear—are typically modeled using Dynamic Graph Neural Networks (DGNNs). To adapt these large, pre-trained models to data-scarce downstream tasks without full retraining, researchers use graph prompt learning, which freezes the backbone and tunes only lightweight "prompts."

However, current methods suffer from geometry under-adaptation. They assume the underlying embedding space should remain fixed. In reality, a network's local structure changes over time: a dense community might dissolve into a tree-like hierarchy, or vice versa. Different structures are best represented in different geometric spaces: tree-like structures fit hyperbolic space, dense cliques fit spherical space, and flat grids fit Euclidean space.

As shown in the paper's empirical analysis on the MOOC dataset, local clustering and edge curvature drift significantly over time. Forcing these shifting structures into a single flat space creates a severe mismatch.

Figure 1: Topology-induced geometry drift on MOOC (1-day windows, 30 days). (a) Mean local clustering falls while degree variance rises. (b) Edge Ollivier–Ricci curvature (ORC) distributions over time from day 0 (back/inner) to day 30 (front/outer) (black: daily mean ¯κ(t)). (c) Curvature strata (τ=0.05): near-zero edges shrink while negative-curvature edges expand.

Methods

The authors propose CurvPrompt, a topology-routed geometry prompting framework that allows the representation space to adapt dynamically alongside the graph.

Figure 1: Topology-induced geometry drift on MOOC (1-day windows, 30 days). (a) Mean local clustering falls while degree variance rises. (b) Edge Ollivier–Ricci curvature (ORC) distributions over time from day 0 (back/inner) to day 30 (front/outer) (black: daily mean ¯κ(t)). (c) Curvature strata (τ=0.05): near-zero edges shrink while negative-curvature edges expand.

Key components include:

  1. Curvature-Diverse Expert Bank: Instead of a standard Euclidean mixture, CurvPrompt maintains a set of Riemannian experts operating across different constant curvatures (hyperbolic $\kappa < 0$, Euclidean $\kappa = 0$, and spherical $\kappa > 0$) using a unified $\kappa$-stereographic model.
  2. Expert-Specific Prompts: Each expert is injected with its own learnable prompt in the tangent space, allowing individual geometries to specialize without altering the frozen backbone.
  3. Topology-Aware Temporal Gating: A gating network extracts multi-resolution local structures by pooling recent neighbors at multiple scales. It uses this topological context to decide which experts are best suited for a given node at a specific timestamp.
  4. Soft-to-Hard Routing Strategy: To handle extreme label scarcity downstream, CurvPrompt uses soft Top-K routing during pre-training to map continuous topology-to-geometry associations. During downstream few-shot adaptation, it switches to hard Top-K routing with uniform weights, ensuring stability and preventing overfitting.

Datasets

The framework was evaluated on four standard continuous-time temporal interaction network benchmarks:

  • Wikipedia (Wiki) & Reddit: Bipartite interaction networks with binary labels, tracked over a 30-day span.
  • MOOC: An online education dataset tracking student-resource interactions over 30 days.
  • Genre: A larger-scale user-genre interaction network from the Temporal Graph Benchmark (TGB) featuring multi-class labels spanning 1,500 days.

Key Insights and Ideas

  • Geometry Must Follow Topology: The core "aha moment" is that graph curvature is not static. Gating mechanisms shouldn't just route based on feature similarity; they must explicitly encode multi-scale local topology to track curvature drift.
  • The Power of Mixed Curvatures: Real-world neighborhoods are rarely purely hierarchical or purely flat; they are mixtures. Aggregating experts in a shared ambient coordinate space creates a personalized, mixed-curvature view for every single node-time instance.
  • Routing Mass Shifts Over Time: Causal inference tracking on the Reddit dataset revealed that the gating network actively shifts its preferences over the timeline, moving mass from high-curvature spherical experts to milder ones as the network matures.
Figure 3: Reddit expert gate usage over 31 days. Each stacked region is the daily mean gate weight of one curvature expert. Routing mass shifts from κ=1.0 toward κ=0.2, while hyper- bolic experts remain minority.

Key Results

CurvPrompt was tested against state-of-the-art DGNNs and dynamic prompting baselines (like DyGPrompt and TIGPrompt) across node classification (NC) and both transductive and inductive link prediction (LP).

  • Link Prediction Dominance: CurvPrompt achieved the best AUC-ROC across all 8 link prediction settings. The most dramatic improvement was on the MOOC dataset, outperforming the strongest baseline by +13.9% in transductive link prediction.
  • Few-Shot Generalization: On the highly challenging Genre dataset under inductive settings (where many conventional baselines degrade to near-random guess levels), CurvPrompt sustained strong generalization performance.
  • Node Classification: CurvPrompt achieved top results on Reddit (75.60% AUC) and MOOC (79.15% AUC), proving highly competitive even on tasks structurally distinct from its pre-training objective.

Limitations and Future Work

While highly effective, CurvPrompt's performance on node classification can be dataset-dependent. For instance, on the Genre dataset, performance gains were muted because the local topology remains relatively stable over time, offering fewer opportunities for geometry-adaptive routing to shine.

Additionally, the framework relies on auxiliary regularizers (embedding distortion and load-balancing losses) to prevent expert under-utilization. The authors note that performance is sensitive to the relative scaling of these weights, meaning deployment requires careful hyperparameter tuning. Future work could explore automating these geometric regularization trade-offs.

Summary updated

BibTeX
@misc{wang2026dynamic,
  author = {Quanxin Wang and Xuanting Xie and Bingheng Li and Xingtong Yu and Shuo Wang and Ruiyi Fang and Zhao Kang},
  title = {{Dynamic Graph Prompting via Topology-Routed Mixed-Curvature Experts}},
  year = {2026},
  eprint = {2608.06031},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.06031},
}
Figure