MIRROR: Aligning Semantic Relations from Language to Image via Gromov--Wasserstein

TL;DR

MIRROR employs Gromov–Wasserstein regularization to transfer semantic relation geometry from language to vision, boosting multimodal relational reasoning.

cs.CV 🔴 Advanced 2026-06-28 37 views
Hong-Han Wang Yuntao Wang Hu Ding
multimodal learning geometric regularization Gromov–Wasserstein relation reasoning cross-modal alignment

Key Findings

Methodology

This approach introduces the Semi-Inverse Gromov–Wasserstein (SI-GW) problem, optimizing the visual distance matrix to match language-derived relational geometry. It extracts geometric cues from multi-layer, multi-head attention maps within Transformer architectures, applying layer, head, and token selection strategies to ensure stability. The process involves:• Constructing intra-modal distance matrices from self-attention• Using cross-attention as a soft alignment• Solving the inverse geometric problem for the visual space• Deriving a closed-form solution for efficiency• Incorporating regularization loss during training to enhance relation consistency.

Key Results

  • On GQA, BLINK, and other datasets, MIRROR improves overall accuracy by over 0.7%, with notable gains of 1.5% in spatial and fine-grained relation tasks. Performance on VQAv2 and RealWorldQA remains stable, confirming the method’s robustness. Ablation studies show each component contributes approximately 0.2-0.3% improvement, validating the effectiveness of geometric regularization.
  • Large models (7B/13B) with MIRROR demonstrate significantly better structural consistency in relation reasoning, especially in multi-object, multi-relation scenarios. The approach reduces geometric bias and improves generalization across tasks.
  • Compared to baseline models without SI-GW, the proposed framework achieves higher stability and efficiency in long-sequence, multi-modal relation modeling, confirming its practical value.

Significance

This work addresses a core challenge in multimodal AI—aligning semantic relations across language and vision. By transferring geometric structures, it enhances models’ understanding of spatial and relational context, crucial for scene comprehension, question answering, and reasoning. The framework bridges a fundamental gap, enabling models to not only recognize concepts but also understand their interrelations, thus pushing the boundary of multimodal reasoning capabilities and opening new avenues for complex scene understanding and autonomous systems.

Technical Contribution

The paper introduces the semi-inverse GW formulation, providing a unique closed-form solution that maps language relational geometry onto visual representations efficiently. It innovates by integrating geometric regularization directly into Transformer training without extra parameters or inference overhead. The design of layer, head, and token filtering strategies ensures stable and noise-resistant feature extraction, making the approach scalable to long sequences and large models. These contributions significantly advance the theoretical and practical aspects of geometric alignment in multimodal learning.

Novelty

This is the first work to formulate a semi-inverse Gromov–Wasserstein problem for cross-modal relation transfer, focusing on the inverse geometric alignment rather than traditional direct matching. It departs from existing token-level alignment methods by emphasizing the preservation of relational geometry, offering a new paradigm for multimodal relation reasoning. The combination of closed-form solutions, multi-level filtering, and efficient computation distinguishes it from prior approaches that rely solely on heuristic or approximate methods.

Limitations

  • The approach heavily depends on the quality of attention matrices; noisy or unstable attention distributions can impair geometric transfer, especially in complex or ambiguous scenes.
  • In scenarios with severe modality mismatch or highly dynamic relations, the geometric regularization may not fully capture the underlying structure, limiting its effectiveness.
  • While computationally efficient compared to naive methods, the approach still incurs additional overhead during training, which may be challenging for extremely large models or real-time applications.

Future Work

Future research could explore adaptive, self-supervised mechanisms to improve geometric stability under noisy conditions. Integrating external knowledge graphs or dynamic relation modeling could further enhance relational understanding. Extending the framework to unsupervised or weakly supervised settings and optimizing for real-time inference are promising directions.

AI Executive Summary

Multimodal large language models (MLLMs) such as GPT-4V and LLaVA have demonstrated impressive capabilities in visual understanding, scene reasoning, and multi-turn interactions. However, a persistent challenge remains: these models often struggle with relational reasoning, especially when transferring semantic relationships from language to vision. Traditional projection-based alignment methods focus on ensuring each visual token carries the correct semantic label, but they overlook the underlying relational geometry—how concepts relate spatially or logically across modalities.

This gap limits the models’ ability to understand complex spatial configurations and fine-grained object relationships, which are crucial for tasks like scene graph reasoning and detailed question answering. To address this, the authors propose MIRROR, a geometric regularization framework that leverages the rich relational priors encoded in language representations. Central to MIRROR is the Semi-Inverse Gromov–Wasserstein (SI-GW) problem, which formulates the transfer of relational structure as an inverse geometric alignment task. By solving this problem, the model derives an ideal visual relational structure that preserves the geometry encoded in language, effectively aligning the relational spaces.

The method extracts geometric cues from the attention maps of Transformer layers, employing layer, head, and token filtering strategies to ensure stability and noise reduction. The closed-form solution of the SI-GW problem allows efficient computation, making it scalable to long token sequences. During training, the regularization loss guides the model to produce visual representations that are structurally consistent with language-derived relations, without adding extra parameters or inference costs.

Experimental results on datasets like GQA and BLINK demonstrate that MIRROR consistently improves relational reasoning accuracy by over 0.7%, especially in spatial and fine-grained categories, while maintaining overall task performance. This work advances the theoretical understanding of geometric relation transfer and provides a practical framework for enhancing multimodal reasoning, with broad implications for scene understanding, autonomous systems, and AI interpretability. Despite some limitations related to attention quality and scene complexity, MIRROR opens new avenues for integrating structured relational knowledge into visual models, promising more robust and explainable multimodal AI in the future.

Deep Analysis

Background

近年来,多模态大规模语言模型(MLLMs)如GPT-4V、LLaVA等,结合视觉编码器和大模型架构,已在视觉理解和场景推理方面取得突破。早期工作主要通过投影适配器实现模态对齐,但多依赖单一的语义匹配,忽略了概念间的关系几何结构。研究发现,跨模态表示逐渐趋向共享几何空间,文本中的关系模式能为视觉关系提供指导,推动关系推理的发展。尽管如此,现有模型在空间关系和细粒度类别识别方面仍存在不足,亟需引入几何关系正则化机制,提升关系一致性。

Core Problem

当前多模态模型在关系推理中表现有限,主要源于缺乏对概念间关系几何结构的建模。投影对齐确保单个概念的语义匹配,但未能迁移关系空间的几何结构,导致空间关系和类别识别偏差。解决这一问题需要引入几何正则化,确保模态间关系结构的一致性,从而提升模型的空间理解和推理能力。这一挑战在长序列、多关系场景中尤为突出,限制了模型的推理深度。

Innovation

本文提出基于Gromov–Wasserstein距离的逆几何优化框架,创新性地定义Semi-Inverse GW(SI-GW)问题,专注于迁移语言中的关系几何结构到视觉空间。设计多层、多头筛选策略,筛除噪声,确保几何信息纯净。该方法无需增加参数或推理成本,结合Transformer注意力机制,有效增强关系结构的表达能力。其核心在于利用逆几何优化解决关系空间的迁移难题,突破了传统点对点匹配的局限,为多模态关系推理提供了新思路。

Methodology

  • �� 从Transformer的多层多头注意力中提取文本和视觉自注意力矩阵,构建距离矩阵• 利用交叉注意力矩阵作为模态间的软对应关系• 设定逆几何优化问题,求解目标视觉距离矩阵,使其符合语言中的关系结构• 设计层、头、Token筛选策略,过滤噪声和无关信息• 通过闭式解公式,快速计算目标距离矩阵,确保稳定性• 在训练中加入几何正则化损失,指导模型学习关系结构一致的视觉表示。

Experiments

在GQA、BLINK、VQAv2和RealWorldQA等数据集上,采用7B和13B模型规模,设置正则化系数λ=0.002,筛选低熵注意力头,应用Token过滤。通过对比基线模型,验证引入MIRROR后关系推理的准确率提升。进行消融实验,分析层、头、Token筛选策略的贡献。结果显示,MIRROR显著改善关系结构的几何一致性,提升空间关系和细粒度类别识别性能,同时保持整体任务表现。

Results

在GQA数据集上,模型整体准确率提升0.7%以上,空间关系和类别识别提升尤为明显,达1.5%。在VQAv2和RealWorldQA中,性能保持稳定,验证了几何正则化的有效性。消融研究表明,层、头、Token筛选各自贡献0.2-0.3%的性能提升。整体结果表明,几何正则化有效增强多模态关系推理的结构一致性和鲁棒性。

Applications

该技术适用于智能问答、场景理解、机器人导航等领域,提升模型对复杂关系的理解能力。未来结合知识图谱和动态关系建模,有望实现更高层次的场景推理和自主决策,推动自动驾驶、智能制造等行业的智能化升级。

Limitations & Outlook

模型对注意力矩阵的依赖较大,噪声和偏差可能影响几何迁移效果。在极端复杂或多模态信息严重不匹配的场景中,关系推理仍存在不足。计算成本虽降低,但在超大模型或实时应用中仍需优化。未来应结合自监督和知识增强策略,提升鲁棒性和泛化能力。

Plain Language Accessible to non-experts

想象你在玩拼图游戏,你有很多碎片,每个碎片代表一张图片或一句话。以前的模型就像只记住每个碎片的样子,但不知道它们怎么拼在一起。现在,科学家教会模型理解碎片之间的关系,比如哪个碎片应该放在一起,哪个在前哪个在后。就像拼图时,不仅知道每块碎片的颜色,还知道它们的形状和怎么拼。这样,模型拼出完整图片的能力就更强啦!它学会了关系,就像懂得拼图的窍门,拼得更快、更漂亮。

ELI14 Explained like you're 14

想象你在玩一个超级复杂的拼图游戏,你有很多碎片,每个代表一张图片或者一句话。以前的模型只记住每个碎片的样子,但不知道它们怎么拼在一起。现在,科学家们让模型不仅记住碎片,还学会了它们之间的关系,比如哪个碎片应该放在一起,哪个在前哪个在后。就像你拼拼图时,不仅知道每块碎片的颜色,还知道它们的形状和怎么拼。这样,拼出完整的图片就变得更容易啦!模型变得更聪明,不仅知道每个碎片,还懂得它们之间的关系,拼图就变得更快、更漂亮了。

Glossary

Gromov–Wasserstein距离 (Gromov–Wasserstein Distance)

一种衡量两个空间结构相似性的几何距离,保持空间内部关系的同时进行匹配。技术上通过最小化两个距离矩阵的差异实现。

用于比较语言和视觉空间中的关系结构,迁移几何关系。

逆几何优化 (Inverse Geometric Optimization)

在已知关系结构和对应关系的基础上,反向推导出目标空间的几何结构。技术上是求解目标空间距离矩阵的闭式解。

核心创新,用于将语言中的关系几何迁移到视觉空间。

多层多头注意力 (Multi-layer Multi-head Attention)

Transformer架构中的关键机制,通过多个注意力头捕获不同层次和角度的关系信息。

提取文本和视觉的几何特征,支持几何正则化。

关系几何结构 (Relational Geometric Structure)

描述概念间空间关系的几何配置,包括距离、角度等。

模型迁移和增强关系推理的核心目标。

Open Questions Unanswered questions from this research

  • 1 如何在极端复杂或动态场景中保持几何关系的稳定性仍未解决,模型对噪声敏感,未来需结合自监督和知识图谱增强关系建模能力。

Applications

Immediate Applications

场景理解与问答

提升机器人和智能助手在复杂场景中的关系推理能力,增强空间布局和对象关系的理解,应用于智能家居、自动驾驶等领域。

多模态信息检索

改善多模态内容的关系匹配,支持更准确的图像-文本检索和内容过滤,适用于内容审核和多媒体搜索。

Long-term Vision

智能场景推理与决策

结合关系几何迁移,实现更高层次的场景理解和推理,推动自动化决策、智能规划的发展,未来可应用于无人驾驶、智能制造等。

Abstract

Multimodal Large Language Models (MLLMs) inherit rich relational priors from their language backbones, yet often fail when asked to apply these relationships in visual contexts. We trace this failure to a structural blind spot: projection-based alignment trains each visual token to carry the right semantics, but never asks whether the relationships between concepts survive the crossing from language to vision. To address this, we propose MIRROR (Mapping Inter-concept Relations from language to visual Representation via Optimal-transport-based Regularization), a geometric regularization framework that transfers relational priors from language to vision by exploiting the rich relational structure encoded in language representations. Specifically, we derive a surrogate loss from the proposed Semi-Inverse Gromov-Wasserstein (SI-GW) problem, an inverse geometric problem that aligns visual representations with language-derived relational priors. We show that this formulation admits a unique closed-form solution that prescribes the ideal visual relational structure implied by language geometry and cross-modal coupling. The structure of the formulation also enables efficient computation, making it applicable to long token sequences. Applying SI-GW inside decoder-only Transformers requires careful design. We introduce targeted strategies at the layer, head, and token levels to ensure stable extraction without additional parameters or inference cost. MIRROR improves relational consistency while preserving performance on general vision-language tasks.

cs.CV