OptiMAG: Structure-Semantic Alignment via Unbalanced Optimal Transport

Yilong Zuo, Xunkai Li, Zhihan Zhang, Qiangqiang Dai, Ronghua Li, Guoren WangarXiv 2026

TL;DR

OptiMAG introduces a plug-and-play regularization framework based on Unbalanced Optimal Transport to resolve "structural-semantic conflicts" in Multimodal Attributed Graphs (MAGs). By aligning implicit modality semantics with explicit graph topology while adaptively filtering out cross-modal noise, it consistently boosts performance across both graph-centric and multimodal generation tasks.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) typically operate under the assumption of homophily—the idea that connected nodes share similar characteristics. In Multimodal Attributed Graphs (MAGs), where nodes contain multiple data types like text and images (e.g., product recommendation networks or social media threads), this assumption frequently falls apart.

The authors identify a pervasive issue called structural-semantic conflict: two connected nodes might be highly similar in one modality but completely different in another. For instance, an e-commerce graph might connect a Dickies T-shirt and a Dickies military cap because they share a brand name (textual similarity), even though they look entirely different (visual dissimilarity).

Cross-modal inconsistency in real MAG edges.

When standard GNNs perform uniform message passing over these edges, they inadvertently aggregate conflicting features, injecting modality-specific noise and degrading the quality of the learned node representations.

Methods

To bridge the gap between implicit semantic structures and explicit graph topology, the authors propose OptiMAG, an Unbalanced Optimal Transport-based regularizer. The framework operates in three main stages:

  1. Geometric Space Construction: Modality features are mapped using cosine distance to capture semantic affinity. Concurrently, the discrete graph structure is smoothed using Personalized PageRank (PPR) diffusion and log-transformed to create a continuous graph cost matrix comparable to the semantic spaces.
  2. Unbalanced Fused Alignment: OptiMAG aligns these spaces using the Unbalanced Fused Gromov-Wasserstein (UFGW) distance. This formulation combines a linear term (an anchor prior ensuring a node matches itself across domains) with a quadratic term (Gromov-Wasserstein distance to preserve relative pairwise geometry).
  3. Mass Relaxation via KL Divergence: Instead of forcing a rigid one-to-one transport plan, OptiMAG introduces a Kullback-Leibler (KL) divergence penalty. This acts as a soft-thresholding mechanism: well-aligned nodes flow mass freely to preserve beneficial complementary information, while severely conflicting nodes are adaptively "cut off," preventing noisy edges from contributing to encoder gradients.
Figure 2. Overview of OptiMAG’s Unbalanced Fused Gromov-Wasserstein (UFGW) alignment. Left: For each batch, we build a modality cost matrix CM (cosine distances) and a graph cost matrix CG (PPR-based diffusion distances), along with a prior alignment matrix M. Center: Sinkhorn iterations yield a transport plan π that exhibits three behaviors—(i) Anchor: high-consistency nodes retain large mass; (ii) Local Smoothing: mildly misaligned nodes spread mass to neighbors; (iii) Noise Rejection: severely conflicting nodes receive negligible mass via KL penalty. Right: The regularization loss LReg is combined with the task loss LTask to update the encoder.

To make this computationally viable for large graphs, OptiMAG utilizes subgraph sampling and entropic Sinkhorn iterations, reducing the standard cubic complexity $O(N^3)$ of Gromov-Wasserstein computations to a manageable linear overhead.

Datasets

The framework was evaluated using six datasets from the standardized OpenMAG benchmark:

  • Graph-centric tasks (Node classification, Link prediction, Clustering): Amazon co-purchase networks (Grocery, Movies, Toys) and a social-thread network (Reddit-S).
  • Multimodal-centric generation tasks (Graph-to-Text, Graph-to-Image): Flickr30k and SemArt.

Key Insights and Ideas

  • Complementarity vs. Conflict: Heterophily isn't always bad. Connected nodes that are visually distinct but semantically related (like "book" and "bookshelf") can enrich representations. OptiMAG's key innovation is using Unbalanced Optimal Transport to gracefully allow local smoothing for complementary features while strictly rejecting outright structural noise.
  • Gradient Isolation: During backpropagation, the optimal transport plan ($\pi^*$) is detached. This ensures that gradients only flow through the cost matrix into the encoder, forcing the encoder to adapt its embeddings to the graph structure without polluting updates with noisy node pairings.
  • Pretrained Model Adaptation: Large pretrained graph encoders (like UniGraph2) often struggle to adapt to specific graph topologies out of the box. OptiMAG acts as an effective guide, steering these large models toward finer-grained graph adaptation.

Key Results

OptiMAG was integrated as a drop-in regularizer across three diverse backbones: MMGCN, MGAT, and UniGraph2.

  • Graph Tasks: It delivered consistent improvements across the board, notably boosting UniGraph2's node classification accuracy on Reddit-S by 4.6% and improving clustering performance across datasets by an average of ~3% NMI.
  • Generation Tasks: On Graph-to-Text captioning (Flickr30k), it achieved a +4.6 CIDEr score improvement when paired with MMGCN, showing that cleaner graph context directly translates to more accurate text generation.
  • Scalability: While full-graph optimal transport runs into Out-Of-Memory (OOM) errors beyond 10,000 nodes, OptiMAG's subgraph-sampled approach maintains linear scalability, adding only a 15–20% computational overhead.

Limitations and Future Work

The current implementation of OptiMAG is strictly tailored to dual-modality settings involving text and images. The authors note that future work will focus on extending the framework to handle additional modalities—such as audio and 3D point clouds—as well as adapting the regularizer for dynamic, time-varying graphs.

Summary updated

BibTeX
@misc{zuo2026optimag,
  author = {Yilong Zuo and Xunkai Li and Zhihan Zhang and Qiangqiang Dai and Ronghua Li and Guoren Wang},
  title = {{OptiMAG: Structure-Semantic Alignment via Unbalanced Optimal Transport}},
  year = {2026},
  eprint = {2601.22856},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.22856},
}
Figure