Reweighted Flow Matching via Unbalanced OT for Label-free Long-tailed Generation
Hyunsoo Song, Minjung Gim, Jaewoong Choi
TL;DR
This work tackles the challenge of generating balanced data under long-tailed, label-free settings by integrating Unbalanced Optimal Transport into flow matching. The core idea is to build a mini-batch UOT coupling to construct a majority score and then reweight the flow-matching objective with an inverse power of this score, enabling first-order recovery of the target distribution and improved tail generation with higher-order corrections. Theoretical analysis shows bias in standard UOT-based flow matching and how the proposed reweighting corrects it, while extensive experiments on CIFAR-10/100 LT datasets demonstrate superior tail fidelity, class-proportion recovery, and competitive performance on balanced data. The approach offers a practical, label-free pathway to mitigate majority bias in continuous-time generative modeling with minimal training overhead and strong empirical gains. A potential extension is to combine UOT-RFM with test-time guidance for further improvements without retraining.
Abstract
Flow matching has recently emerged as a powerful framework for continuous-time generative modeling. However, when applied to long-tailed distributions, standard flow matching suffers from majority bias, producing minority modes with low fidelity and failing to match the true class proportions. In this work, we propose Unbalanced Optimal Transport Reweighted Flow Matching (UOT-RFM), a novel framework for generative modeling under class-imbalanced (long-tailed) distributions that operates without any class label information. Our method constructs the conditional vector field using mini-batch Unbalanced Optimal Transport (UOT) and mitigates majority bias through a principled inverse reweighting strategy. The reweighting relies on a label-free majority score, defined as the density ratio between the target distribution and the UOT marginal. This score quantifies the degree of majority based on the geometric structure of the data, without requiring class labels. By incorporating this score into the training objective, UOT-RFM theoretically recovers the target distribution with first-order correction ($k=1$) and empirically improves tail-class generation through higher-order corrections ($k > 1$). Our model outperforms existing flow matching baselines on long-tailed benchmarks, while maintaining competitive performance on balanced datasets.
