Abstract
Energy-Based Models (EBMs) have been a staple of generative modeling for decades, offering efficient ways to solve problems via unnormalized likelihood functions. Conversely, the realm of neural Optimal Transport (OT) solvers remains relatively nascent. This paper bridges the gap between EBMs and Entropy-regularized OT (EOT). We introduce a novel methodology that leverages EBM technical improvements to enrich EOT solvers. Theoretically, we establish generalization bounds for our approach. Practically, we demonstrate its efficacy on 2D toy scenarios and high-resolution unpaired image-to-image translation tasks.
Introduction
Optimal Transport (OT) provides a robust mathematical framework for aligning probability distributions, with significant implications for domain adaptation and generative modeling. Despite its power, computing the "optimal plan"—the mapping that minimizes the cost of moving mass between distributions—is notoriously difficult in high-dimensional continuous spaces like images.
While OT is frequently employed as a loss function (e.g., in Wasserstein GANs), explicitly modeling the transport maps themselves presents a steeper challenge. Existing neural OT solvers often encounter stability issues at low regularization levels or necessitate complex, multi-model architectures. This research identifies a synergy: Energy-Based Models (EBMs), which excel at modeling unnormalized densities, can be repurposed to solve the EOT problem efficiently.
Theoretical Framework: The EBM-EOT Bridge
The core contribution of this work is a weak dual formulation of the EOT problem. We demonstrate that the optimal conditional transport plan $\pi^*(y|x)$, which dictates how a source point $x$ is mapped to target samples $y$, can be expressed as a Gibbs-Boltzmann distribution:
$$d\mu^f_x(y) \propto \exp\left(\frac{f(y) - c(x, y)}{\epsilon}\right)$$
In this formulation, $f(y)$ represents a learned dual potential parameterized by a neural network, $c(x, y)$ is the cost function, and $\epsilon$ is the entropy regularization coefficient. This insight transforms the OT problem into a task familiar to the EBM community: learning an energy function.
By optimizing the potential $f$ using a loss function adapted for OT objectives, we can generate samples via the Unadjusted Langevin Algorithm (ULA). This MCMC-based approach iteratively follows the gradient of the energy function to produce samples from the target distribution.
Experimental Evaluation
We validated the Energy-guided EOT solver across several benchmarks, ranging from synthetic data to high-resolution imagery.
High-Resolution Image Translation
To handle high-dimensional data like the AFHQ (Animal Faces High Quality) dataset ($512 \times 512$ resolution), we applied the solver within the latent space of a pre-trained StyleGAN2. This allows for complex image manipulations—such as Cat $\to$ Dog or Wild $\to$ Dog translations—by transporting low-dimensional latent codes. Notably, this approach does not require a dedicated data-to-latent encoder, simplifying the generative pipeline compared to many GAN-based methods.
Toy 2D and Synthetic Benchmarks
We utilized a Gaussian-to-Swissroll transformation to visualize the transport plans and a high-dimensional Gaussian-to-Gaussian task (up to 128D) to compare against analytical ground truths. These experiments highlighted the model's ability to maintain structural consistency during transport and its robustness across varying dimensions.
Key Results and Insights
- Efficiency and Scalability: Unlike solvers requiring dual potentials $(u, v)$ or auxiliary score-based models, our method requires training only a single potential network $f_\theta$.
- Quantitative Performance: In Gaussian-to-Gaussian tasks, our model outperformed recent baselines like SCONES and SB-FBSDE in the Bures-Wasserstein metric. On AFHQ $512 \times 512$, the model achieved an FID of 56.6 for Cat $\to$ Dog translation, outperforming CycleGAN (85.9) and remaining competitive with specialized models like EGSDE (51.04).
- Theoretical Rigor: We provide finite-sample generalization bounds, ensuring that the learned plans converge to the true optimal plans as data availability increases.
Conclusion and Future Work
The Energy-guided EOT solver successfully bridges the gap between EBMs and OT, providing a scalable and theoretically grounded method for distribution alignment. The primary limitation remains the computational cost of MCMC sampling during inference, which is iterative and hyperparameter-sensitive. Future research will explore integrating more advanced EBM training techniques, such as persistent replay buffers or diffusion-based initializations, to enhance sampling stability and speed.
Summary updated