DisRFM: Polar Riemannian Flow Matching for Structure-Preserving Graph Domain Adaptation

Yingxu Wang, Xinwang Liu, Mengzhu Wang, Siyang Gao, Nan Yin

TL;DR

DisRFM introduces a geometry-aware framework for Graph Domain Adaptation (GDA) that preserves critical structural information during cross-domain transfer. By embedding graph representations in a constant-curvature manifold and utilizing geodesic polar coordinates, it decouples topology-sensitive scale from scale-normalized semantics. Combined with Riemannian flow matching, DisRFM replaces unstable adversarial training with smooth, trajectory-based transport, achieving state-of-the-art performance across diverse domain shifts.

What Problem Does This Paper Address?

Graph Domain Adaptation (GDA) aims to transfer a graph classifier trained on a labeled source domain to an unlabeled target domain. Unlike standard image or text data, graph distribution shifts are uniquely challenging because they simultaneously alter both semantic labels and underlying graph topologies (such as graph size, density, and community patterns).

Existing GDA methods typically rely on Euclidean adversarial alignment to make source and target embeddings indistinguishable to a discriminator. The authors identify two major flaws in this standard paradigm:

  1. Structural Degeneration: Euclidean coordinates conflate structural scale and semantic direction. Forcing global domain indistinguishability inadvertently erases topology-sensitive variations that are vital for target domain predictions.
  2. Optimization Instability: The minimax optimization game inherent to adversarial training produces highly oscillatory gradients and unstable training trajectories under large structural shifts.
Figure 1: Motivation of DisRFM. (a) Euclidean adversarial GDA erodes topology information, evidenced by lower post-alignment structure-probe scores. (b) Minimax alignment yields unstable training with gradient-norm oscillations. (c) DisRFM imposes a Riemannian polar bias: radial shells act as compact topology-related proxies, angular sectors preserve semantic consistency, and flow matching transports source embeddings toward targets along class-conditioned geodesics.

Methods

To overcome these limitations, the authors propose DisRFM (Polar Riemannian Flow Matching), which shifts the problem from Euclidean alignment to class-aware transport over constant-curvature manifolds.

  • Polar Endpoint Regularization: DisRFM maps graph representations to a non-Euclidean manifold and expresses them in geodesic polar coordinates. Here, the radial coordinate ($r$) serves as a proxy for structural complexity, while the angular coordinate ($u$) captures scale-normalized class semantics.
  • Radial Structural Calibration aligns the target radial profile to the source using a univariate Wasserstein distance, preserving topological diversity.
  • Angular Semantic Alignment uses confidence-filtered pseudo-labels to align class prototypes along scale-normalized directions, maintaining clear decision margins.
  • Topology-Conditioned Polar Flow Matching: Instead of an adversarial minimax game, DisRFM models domain adaptation as a continuous, geometry-aware transformation. It couples class-compatible source and target samples using a normalized polar transport cost and trains the network via velocity regression along geodesic paths. This ensures smooth transport across domains while respecting the underlying manifold geometry.

Datasets

The framework was evaluated on two distinct types of domain shifts across several standard benchmarks:

  • Structure-based domain shifts (where datasets are partitioned into subsets based on node and edge densities): PROTEINS, NCI1, Mutagenicity, and ogbg-molhiv.
  • Feature-based domain shifts: DD, PROTEINS, BZR, BZR_MD, COX2, and COX2_MD.

Key Insights and Ideas

  • Manifold Geometry as an Inductive Bias: Isotropic Euclidean spaces struggle to separate structural properties from semantic cues. Constant-curvature manifolds (particularly hyperbolic spaces) offer an ideal inductive bias for hierarchy-rich and non-Euclidean graph structures.
  • Operational Coordinate Bias: Rather than assuming a strict, globally identifiable factorization of structure and semantics, DisRFM uses polar coordinates as an operational bias. The radius naturally correlates with graph complexity (node/edge counts), while the angle carries class-discriminative features.
  • Regression over Minimax Games: Replacing the discriminator with a metric-corrected vector field regression (flow matching) fundamentally stabilizes training, removing the gradient oscillations typical of adversarial GDA methods.

Key Results

DisRFM was compared against a wide array of baselines, including standard GNNs, manifold-based GNNs, and specialized GDA frameworks.

  • State-of-the-Art Accuracy: DisRFM consistently outperformed all baselines. Notably, the hyperbolic variant ($\text{DisRFM-H}^n$) achieved the best performance in 8 out of 12 evaluation scenarios, highlighting its strength under severe structural shifts.
  • Strong Optimization Stability: As illustrated in the paper's training trajectories, DisRFM avoids the wild gradient norm oscillations seen in adversarial methods like DEAL and SGDA, leading to steady and reliable convergence.
Table 1: Graph classification results (in %) under node and edge density domain shifts on the Mutagenicity dataset, and feature domain shifts on DD, PROTEINS, BZR, BZR_MD, COX2, and COX2_MD. For convenience, PROTEINS, DD, COX2, COX2_MD, BZR, and BZR_MD are abbre- viated as P, D, C, CM, B, and BM, respectively. Bold results indicate the best performance.

Limitations and Future Work

  • Fixed Curvature: The manifold curvature ($c$) is currently treated as a fixed hyperparameter (optimized at $c = -1.0$ for hyperbolic space). The authors note that exploring adaptive curvature learning during training is a promising next step.
  • Task Scope: The current framework is tailored for graph-level classification. Extending this polar Riemannian flow matching approach to heterogeneous graphs or graph generative tasks remains an open area for future research.

Summary updated

BibTeX
@inproceedings{wang2026disrfm,
  author = {Yingxu Wang and Xinwang Liu and Mengzhu Wang and Siyang Gao and Nan Yin},
  title = {{DisRFM: Polar Riemannian Flow Matching for Structure-Preserving Graph Domain Adaptation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=mhAWnLhyoC},
}
Figure