Optimal Transport (OT) is a powerful mathematical framework for finding cost-efficient paths between data distributions, often used in tasks like image-to-image translation or biological trajectory modeling. However, standard OT relies on a strict "mass conservation" constraint, requiring every point in the source distribution to be matched to a point in the target. In a paper presented at ICLR 2024, researchers demonstrate that relaxing this constraint through unbalancedness significantly improves the robustness and accuracy of neural Monge maps in real-world scenarios.
The Mass Conservation Problem
In practice, datasets are rarely perfectly balanced. Consider mapping a set of digits to letters (e.g., '8' to 'B'). If the source has 1,000 instances of '8' but the target only has 500 instances of 'B', a standard OT model will force the remaining 500 '8's to map to unrelated letters like 'O' or 'I' to satisfy mass conservation. This distortion is particularly problematic in biology, where cells may divide or die, and in computer vision, where outliers often lack logical counterparts in the target domain.
The Unbalanced Solution: Rescaling Neural Monge Maps
The authors propose a theoretically grounded framework to incorporate unbalancedness into existing neural Monge map estimators. Their approach centers on a re-scaling scheme (Proposition 3.1), which proves that an unbalanced OT problem can be decomposed into two steps: first, re-weighting the source and target distributions to account for mass imbalances, and second, solving a standard balanced OT problem between these rescaled distributions.
This modularity allows the "unbalanced" modification to be integrated into various architectures, including Input Convex Neural Networks (UOT-ICNN), Monge Gap regularizers (UOT-MG), and Flow Matching (UOT-FM). This integration allows models to learn continuous paths between distributions while ignoring "unmatchable" noise or outliers.
Experimental Validation
The framework was evaluated across diverse domains, including single-cell RNA sequencing and image translation, showing consistent improvements over balanced baselines.
Biological Fidelity in Cell Trajectories
In modeling the development of mouse pancreas cells, standard OT-ICNN failed to correctly map the Ngn3 EP cell cluster. Because the target distribution saw a massive increase in a different cell lineage, the mass conservation constraint "pulled" the Ngn3 cells toward the wrong destination. By allowing for unbalancedness, UOT-ICNN correctly identified the biological trajectory, increasing prediction accuracy for this cluster from 7% to 69%.
Robust Image Translation
On the EMNIST "digits to letters" task, UOT-FM achieved an FID of 23.0, compared to 36.9 for the balanced version. In CelebA face translation tasks, the unbalanced approach better preserved the identity of subjects by ignoring "unmatchable" features (like hats or glasses) that were imbalanced between groups. This stability is particularly useful during training, as it prevents the model from force-fitting outliers that appear in specific mini-batches.
Conclusion
By introducing unbalancedness, neural Monge maps become significantly more stable and realistic. While the approach requires tuning a hyperparameter ($\tau$) to control the degree of imbalance, the gains in accuracy—particularly in biological modeling—suggest that giving OT a "reality check" by relaxing mass conservation is a vital step forward for unpaired domain translation.
Summary updated