TL;DR
Real-world data is heavily skewed, causing generative models to obsess over common examples while ignoring rare ones—unless you feed them explicit class labels to force a balance. This paper introduces UOT-RFM, a method that teaches Flow Matching models to spot and boost rare "tail" data purely through data geometry, no labels required. By turning a mathematical quirk of Unbalanced Optimal Transport on its head, it generates diverse, faithful distributions even when minority classes are outnumbered 1000-to-1.
What Problem Does This Paper Address?
Imagine training an image generator on wildlife photos. Because squirrels are photographed far more often than snow leopards, the dataset is long-tailed—a few "head" classes dominate, while many "tail" classes have tiny sample sizes. Left to their own devices, generative models suffer from majority bias: they master the squirrels and either ignore or mangle the snow leopards.
Existing fixes for GANs and diffusion models rely heavily on explicit class labels—telling the model, "Hey, this is a rare snow leopard, pay extra attention!" Meanwhile, Flow Matching—a fast, rising star in generative modeling that learns smooth, straight-line paths (vector fields) from random noise to real data—hadn't yet been explored for long-tailed data. The authors ask: Can we cure majority bias in Flow Matching without using any class labels at all?
Methods
In standard Flow Matching, training pairs up random noise with real data samples. Recent methods use Optimal Transport (OT) on mini-batches to pair noise with the closest data points, creating straighter, easier-to-learn paths. However, strict OT forces every single data point to be matched, making it hyper-sensitive to rare outliers.
Enter Unbalanced Optimal Transport (UOT). UOT relaxes the rules: instead of forcing an exact match, it allows the algorithm to softly ignore isolated, low-density data points if transporting noise to them is too "expensive." Ironically, UOT naturally worsens majority bias—it concentrates probability mass on dense head classes and down-weights the rare tails.
The authors' clever twist in UOT-Reweighted Flow Matching (UOT-RFM) is to use UOT's bias as a radar for rarity:
- Source-fixed UOT Coupling: They pair mini-batch noise and data using UOT, keeping the noise distribution strictly fixed while letting the target data marginal flex.
- Label-free Majority Score ($s_\tau$): They measure the ratio of UOT's altered target density to the true data density. If $s_\tau > 1$, UOT favored the point (it's in a crowded head region). If $s_\tau \ll 1$, UOT ignored it (it's in a sparse tail region).
- Inverse Reweighting: During Flow Matching regression, they multiply each sample's loss by $s_\tau^{-k}$, where $k \ge 1$ is a correction order.
As shown above, while raw UOT suppresses the tail mode (blue curve), inversely reweighting by $s_\tau^{-k}$ boosts those neglected regions right back up (red dashed curves).
Datasets
No new datasets were introduced, but the authors evaluated UOT-RFM across synthetic and standard benchmarks:
- Synthetic 2D Gaussian Mixture: 3 components with heavily skewed weights (0.70, 0.275, 0.025) to validate the majority score.
- CIFAR-10-LT & CIFAR-100-LT: Long-tailed versions of the classic image datasets with exponential class decay, tested at severe imbalance ratios of $\mathcal{I} = 0.01$ (100:1) and $\mathcal{I} = 0.001$ (1000:1).
- FFHQ-64 & Places-LT-256: High-resolution natural datasets used to test Latent Flow Matching. FFHQ (human faces) is naturally imbalanced across unlabelled demographic attributes like age and accessories.
- Standard CIFAR-10 & CIFAR-100: Balanced datasets to ensure the method doesn't break under normal conditions.
Key Insights and Ideas
- Geometry is a proxy for rarity: Without a single label, the UOT majority score cleanly separates head and tail classes purely by measuring how "isolated" points are during mini-batch transport.
- Exact theory meets practical "over-correction": Theoretically, setting $k=1$ exactly cancels out UOT's bias and recovers the true data distribution. Practically, however, neural network optimization still favors head classes—so cranking up to higher-order over-correction ($k > 1$, peaking around $k=10$) is what actually unlocks great tail generation.
- Naive label reweighting fails: The authors tested "oracle" baselines where they replaced their geometric score with ground-truth class frequencies. Surprisingly, the supervised oracles performed terribly (FID ~33–35 vs. UOT-RFM's 11.17), proving that arbitrary reweighting breaks Flow Matching unless it is mathematically tied to the transport coupling.
Key Results
UOT-RFM consistently beats standard Flow Matching baselines (I-CFM, OT-CFM, and unweighted UOT-CFM) with only ~7% extra training time over OT-CFM:
- Image Quality & Diversity (FID $\downarrow$): On CIFAR-100-LT ($\mathcal{I}=0.01$), UOT-RFM slashes FID from 26.06 (I-CFM) and 31.20 (OT-CFM) down to 15.29. At $\mathcal{I}=0.001$, it hits 18.25 vs. 32.05+ for baselines.
- Class Proportions & Coverage: On CIFAR-10-LT, UOT-RFM cuts Normalized Class Ratio Error more than in half (0.40 vs. 0.84–1.24 for baselines) and boosts Recall from 0.29 to 0.41, proving it actually generates rare classes rather than just memorizing common ones.
- Tail Fidelity: It achieves lower (better) Negative Log-Likelihood across nearly every class—head and tail alike (3.88 mean NLL vs. 4.02+ for baselines).
- Scalability & Balance: It achieves the best FID on latent-space FFHQ-64 (13.53) and remains completely competitive on standard balanced CIFAR-10 (3.58 FID at $k=1$).
Limitations and Future Work
Because UOT-RFM relies on a geometric assumption—that low-density regions correspond to semantic minority classes—it treats all sparse points as rare gems worth boosting. The authors note that a small fraction of geometric outliers might actually be noisy or corrupted data rather than true minority classes (discussed further in their appendix). Future directions are not explicitly detailed in the main text.
Summary updated