Pairwise Optimal Transports for Training All-to-All Flow-Based Condition Transfer Model
Kotaro Ikeda, Masanori Koyama, Jinzhe Zhang, Kohei Hayashi, Kenji Fukumizu
TL;DR
This work addresses learning all-to-all transfers between conditional distributions under continuous and sparse conditioning by introducing A2A-FM, a flow-based framework that learns pairwise transports across all condition pairs. A novel coupling objective builds minibatch-based permutations to approximate pairwise OT, with a theoretical guarantee that, in the infinite-sample limit, the learned couplings converge to $W_2^2(P_{c_1},P_{c_2})$ for almost every $(c_1,c_2)$. The approach scales to non-grouped data and large, high-dimensional settings, and demonstrates state-of-the-art performance in molecular property transfer and high-dimensional image-attribute transfer, while maintaining favorable computational properties relative to prior multimarginal methods. The work provides practical tools for conditional generation and design tasks where continuous conditions are central, with code available at the provided repository.
Abstract
In this paper, we propose a flow-based method for learning all-to-all transfer maps among conditional distributions that approximates pairwise optimal transport. The proposed method addresses the challenge of handling the case of continuous conditions, which often involve a large set of conditions with sparse empirical observations per condition. We introduce a novel cost function that enables simultaneous learning of optimal transports for all pairs of conditional distributions. Our method is supported by a theoretical guarantee that, in the limit, it converges to the pairwise optimal transports among infinite pairs of conditional distributions. The learned transport maps are subsequently used to couple data points in conditional flow matching. We demonstrate the effectiveness of this method on synthetic and benchmark datasets, as well as on chemical datasets in which continuous physical properties are defined as conditions. The code for this project can be found at https://github.com/kotatumuri-room/A2A-FM
