Embedding Empirical Distributions for Computing Optimal Transport Maps

TL;DR

Proposes HOTET, combining Transformer embeddings and hypernetworks for efficient multi-distribution OT mapping.

cs.LG 🔴 Advanced 2025-04-25 48 views
Mingchen Jiang Peng Xu Xichen Ye Xiaohui Chen Yun Yang Yifan Chen
Optimal Transport Deep Learning Transformer Hypernetwork Distribution Embedding

Key Findings

Methodology

HOTET integrates Transformer-based embedding of empirical distributions with hypernetworks parameterizing ICNN potentials. Key steps include: • Using Transformer to produce permutation-invariant, variable-length sample embeddings; • Hypernetworks F, G generate parameters for ICNNs based on these embeddings; • Dual optimization guides training, leveraging target distribution info to improve generalization. This setup enables scalable learning of multiple source-to-target OT maps with shared parameters.

Key Results

  • On Gaussian mixture datasets, HOTET achieved L2-UVP scores of 3.25% (forward) and 3.01% (inverse), outperforming baseline methods. It accurately predicted OT maps for unseen distributions, with cosine similarity exceeding 0.91, demonstrating strong generalization.
  • In high-dimensional Gaussian prediction tasks, HOTET surpassed MetaOT, with errors dropping below 3%, validating embedding effectiveness.
  • In image color transfer, HOTET enabled multi-image style mapping, with quick fine-tuning maintaining high quality, showing practical applicability.

Significance

This work addresses the scalability bottleneck of traditional OT methods in multi-distribution scenarios, enabling fast, accurate, and generalizable mappings. By embedding distributions via Transformer and parameterizing potentials with hypernetworks, it reduces computational costs and opens new avenues for transfer learning, domain adaptation, and image processing. The approach significantly advances deep OT applications, making them more practical for large-scale, real-world problems.

Technical Contribution

The main innovations include: 1) employing Transformer for permutation-invariant, variable-length distribution embedding; 2) designing hypernetworks to generate multiple ICNN potentials conditioned on embeddings; 3) integrating dual optimization with target distribution info for stable training. These enable parameter sharing across multiple mappings, reducing complexity while maintaining high accuracy, and facilitate rapid adaptation to new distributions.

Novelty

This is the first framework combining Transformer-based distribution embedding with hypernetwork parameterization for multi-source OT mapping. Unlike prior methods like CONDOT or MetaOT, HOTET avoids pairwise training, supports fast prediction for new distributions, and scales efficiently, representing a significant step forward in deep OT research.

Limitations

  • In many-to-many scenarios with numerous distributions, the current model faces challenges in maintaining efficiency and accuracy, especially with high distribution complexity.
  • Dependence on the base OT solver's quality means that if the solver performs poorly, the overall mapping quality suffers.
  • Handling extremely high-dimensional data or highly imbalanced samples remains difficult, requiring further robustness improvements.

Future Work

Future directions include extending HOTET to many-to-many settings, enhancing embedding robustness in high dimensions, and exploring unsupervised or semi-supervised learning to reduce reliance on labeled data. Incorporating more efficient Transformer variants and multi-scale embeddings could further improve scalability and performance.

AI Executive Summary

As data complexity and dimensionality grow, the demand for scalable and accurate multi-distribution optimal transport (OT) solutions intensifies. Traditional methods, often relying on pairwise neural network training, become computationally prohibitive and lack generalization to unseen distributions. To address this, the authors introduce HOTET, a novel framework that leverages Transformer embeddings and hypernetworks to learn multiple OT maps simultaneously.

The core idea is to embed empirical distribution samples into a fixed-dimensional space using Transformer architectures, which are permutation-invariant and handle variable-length data effectively. These embeddings serve as conditioned inputs to hypernetworks that generate parameters for ICNN potentials, approximating the OT maps. During training, the model uses dual optimization with target distribution information, enabling it to learn a shared parameter space that generalizes well to new distributions.

Extensive experiments on Gaussian mixture datasets demonstrate HOTET’s superior accuracy, with L2-UVP scores below 3.5%, outperforming existing methods like MetaOT. The model also successfully predicts OT maps for unseen distributions, with cosine similarity exceeding 0.91, confirming its strong generalization. In practical image applications, HOTET enables multi-image color transfer with minimal fine-tuning, maintaining high visual fidelity.

This approach significantly reduces computational costs, supports rapid adaptation, and broadens the scope of deep OT applications. It paves the way for scalable, flexible, and real-time distribution matching in diverse fields such as computer vision, generative modeling, and domain adaptation. Future work will focus on extending to many-to-many scenarios, improving high-dimensional robustness, and integrating more efficient Transformer variants, further pushing the boundaries of deep optimal transport.

Deep Analysis

Background

Optimal Transport (OT) has evolved as a fundamental tool for measuring distributional differences, with applications spanning image processing, generative models, and domain adaptation. Classical OT algorithms like Monge and Kantorovich formulations laid the groundwork, while recent deep learning approaches, including ICNN-based neural OT, have improved flexibility. However, these methods typically handle only single source-target pairs, and their computational complexity scales poorly with multiple distributions. The rise of deep neural architectures has enabled approximate solutions, but the challenge remains to efficiently learn mappings across many distributions simultaneously, especially in high-dimensional settings. Existing solutions like CONDOT and MetaOT attempt to address this but are limited by pairwise training and scalability issues.

Core Problem

The core challenge is to develop a scalable, generalizable framework capable of learning OT maps from multiple empirical distributions to a common target efficiently. Traditional methods require training separate neural networks for each pair, leading to high computational costs and poor scalability. Moreover, existing models struggle to embed variable-length, unordered samples into a fixed representation that supports downstream learning. Addressing these issues is critical for applications requiring rapid adaptation to new distributions, such as real-time image editing, transfer learning, and large-scale data alignment. The difficulty lies in designing an embedding that captures the essence of empirical samples while maintaining permutation invariance and compatibility with neural potentials.

Innovation

This work introduces three key innovations: 1) embedding empirical distributions via Transformer models, leveraging their permutation invariance and ability to handle variable-length data; 2) parameterizing multiple ICNN potentials with hypernetworks conditioned on these embeddings, enabling multi-source mapping with shared parameters; 3) employing a dual optimization framework that incorporates target distribution information during training, improving generalization to unseen distributions. These innovations collectively allow for a unified, scalable approach to multi-distribution OT, reducing the need for pairwise training and enabling rapid prediction of new mappings.

Methodology

  • �� Input: multiple empirical samples from source distributions; • Transformer module processes each sample set, removing positional encoding, to produce a fixed-dimensional embedding vector; • Hypernetworks F and G generate parameters for ICNN potentials based on these embeddings; • ICNNs approximate the convex potentials for OT, enabling map computation; • During training, the model uses the target distribution to compute loss via a base OT solver, updating hypernetworks and embedding modules; • For new distributions, the trained hypernetworks predict OT maps directly from sample embeddings, supporting fast inference.

Experiments

The authors evaluate HOTET on Gaussian mixture datasets, comparing against MetaOT and MM-B baselines using W2B metrics. They train models with embedding dimension 64, ICNN layers 3, and transformer heads 4. Experiments include predicting OT maps for unseen distributions, color transfer tasks, and ablation studies on embedding modules. Metrics such as L2-UVP and cosine similarity quantify accuracy. Results show HOTET achieves lower errors and higher similarity scores, demonstrating superior generalization and efficiency. Visualizations of color transfer confirm practical viability. Hyperparameters are tuned via grid search, and robustness is verified through multiple runs.

Results

HOTET’s L2-UVP scores are consistently below 3.5% on Gaussian mixtures, outperforming baseline methods. The cosine similarity between predicted and true OT maps exceeds 0.91, indicating high accuracy. In high-dimensional settings, the model maintains errors under 3%, significantly better than existing approaches. Color transfer experiments show that HOTET can adapt to new images with minimal fine-tuning, producing visually coherent results. These findings validate the framework’s scalability, accuracy, and practical relevance across diverse tasks.

Applications

HOTET can be directly applied to multi-image style transfer, domain adaptation in computer vision, and generative modeling where distribution alignment is crucial. Its ability to quickly predict OT maps from samples makes it suitable for real-time applications, such as video editing, augmented reality, and large-scale data integration. The framework’s flexibility supports extension to other modalities, including text and audio, facilitating cross-domain transfer tasks. Its efficiency enables deployment in resource-constrained environments, broadening the impact of deep OT in industry.

Limitations & Outlook

Despite promising results, HOTET faces challenges in many-to-many scenarios with numerous distributions, where parameter sharing may limit expressiveness. The reliance on the base OT solver’s accuracy means that poor solver performance can degrade overall results. Handling extremely high-dimensional data or highly imbalanced samples remains difficult, requiring further robustness enhancements. Additionally, the current approach assumes the availability of sufficient sample data for embedding, which may not hold in sparse data regimes. Future work should address these limitations to improve scalability and robustness.

Plain Language Accessible to non-experts

想象你在一家工厂里,有很多不同的货物堆放方式(分布),你想用最少的搬运次数,把它们搬到一个标准仓库(目标分布)里。以前,你可能要逐个堆搬运,费时费力。现在,工厂里来了一个聪明的机器人(Transformer),它可以一眼看出每个堆的特点,把它们变成一个简单的标签。然后,一个超级调度系统(超网络)根据这些标签,快速设计出搬运方案,帮你一次性搞定所有堆的搬运。这个机器人还能学会新堆的搬运方法,不用每次都重新训练。这样,搬运变得更快、更省力,也更智能。未来,这个系统还能帮工厂自动匹配不同仓库的货物,让物流变得更高效。

ELI14 Explained like you're 14

想象你在学校的食堂,有很多不同的餐盘(分布),每个餐盘里装的食物都不一样。你想用最少的努力,把这些食物重新摆到一个标准的餐盘(目标分布)里。以前,你可能要逐个餐盘去调整,花费很多时间。现在,有个聪明的机器人(Transformer)可以一眼看出每个餐盘的内容,把它们变成一个简单的“标签”。然后,一个超级智能的调度系统(超网络)根据这些标签,设计出一套搬运方案,帮你快速把所有餐盘里的食物都摆到标准的餐盘里。这就像用一个万能的机器人,能一次学会所有餐盘的摆放方法,未来还可以快速适应新来的餐盘。这样,不仅节省时间,还让整理变得更轻松、更聪明。

Glossary

Optimal Transport (最优传输)

一种数学框架,用于找到将一个概率分布转移到另一个分布的最优方式,最小化运输成本。

论文中用以描述不同分布间的映射问题。

Transformer (变换器)

一种基于注意力机制的深度学习架构,擅长处理序列或集合数据,具有Permutation Invariance。

用于生成经验分布的样本嵌入。

Hypernetworks (超网络)

一种神经网络,用于生成另一神经网络的参数,支持条件化和快速适应。

在本文中用以参数化ICNN潜在网络。

ICNN (输入凸神经网络)

一种特殊结构的神经网络,保证输出为凸函数,适合逼近OT势函数。

作为OT映射的潜在网络。

Embedding (嵌入)

将高维或无序样本集转化为固定维度的向量表示,便于后续学习。

由Transformer实现经验分布的样本嵌入。

Open Questions Unanswered questions from this research

  • 1 多源多目标场景下,模型如何保持高效性和泛化能力仍未充分解决,特别是在分布数量大、样本复杂度高时。
  • 2 在极高维空间中,嵌入表达的稳定性和准确性需要进一步验证。
  • 3 如何在无监督或半监督条件下,提升模型对未知分布的适应能力,是未来的重要研究方向。

Applications

Immediate Applications

图像颜色迁移

利用OT映射实现多图像色彩风格迁移,只需提供样本色直方图,模型即可快速生成对应映射,适用于艺术创作和图像编辑。

域适应与迁移学习

在不同数据分布间快速迁移,减少重新训练成本,提升模型在新场景中的表现,广泛应用于医疗、自动驾驶等领域。

Long-term Vision

自动化数据分布匹配

未来可实现大规模、多源数据的自动匹配与迁移,推动智能制造、个性化推荐等行业的变革。

Abstract

Distributional data have become increasingly prominent in modern signal processing, highlighting the necessity of computing optimal transport (OT) maps across multiple probability distributions. Nevertheless, recent studies on neural OT methods predominantly focused on the efficient computation of a single map between two distributions. To address this challenge, we introduce a novel approach to learning transport maps for new empirical distributions. Specifically, we employ the transformer architecture to produce embeddings from distributional data of varying length; these embeddings are then fed into a hypernetwork to generate neural OT maps. Various numerical experiments were conducted to validate the embeddings and the generated OT maps. The model implementation and the code are provided on https://github.com/jiangmingchen/HOTET.

cs.LG