Reweighted Flow Matching via Unbalanced OT for Label-free Long-tailed Generation

Hyunsoo Song, Minjung Gim, Jaewoong Choi · Submission to ICLR 2026 · Rejected

TL;DR

Flow matching models trained on long-tailed data suffer from "majority bias," frequently misrepresenting or outright ignoring underrepresented minority classes. UOT-RFM (Unbalanced Optimal Transport Reweighted Flow Matching) introduces the first entirely label-free solution to this problem: it computes a geometric "majority score" from mini-batch unbalanced optimal transport and uses inverse reweighting during training to recover faithful tail-class fidelity and correct mode proportions.

What Problem Does This Paper Address?

Real-world datasets rarely have uniform class distributions; instead, a few dominant (head) classes contain the vast majority of samples, while many minority (tail) classes contain very few. Standard continuous normalizing flows and flow matching models trained on such data exhibit strong majority bias: the learned vector fields preferentially fit dense head regions, producing low-fidelity, blurry, or missing samples for tail classes.

While prior long-tailed generative models in GANs and diffusion offer workarounds, they almost universally rely on explicit class labels (e.g., class-conditional objectives or classifier-guided sampling). The authors tackle an important question: Can a flow matching model overcome majority bias without any access to class labels?

Methods

UOT-RFM pairs source and target samples using mini-batch Unbalanced Optimal Transport (UOT) and balances training using a derived importance weight:

  1. Source-Fixed Mini-batch UOT: Classical Optimal Transport (OT) enforces strict marginal matching, which is sensitive to outliers and preserves dataset imbalance. UOT relaxes hard marginal constraints via $f$-divergence penalties. The authors configure a source-fixed UOT ($\tau_1 = \infty$ for the Gaussian prior $\mu$, and finite penalty $\tau_2 = \tau$ for the data $\nu$), ensuring initial conditions remain standard Gaussian while allowing the target marginal $\pi_{\tau, 1}^u$ to softly deviate from the empirical data measure.
  2. Label-Free Majority Score: The optimal UOT plan naturally assigns higher transport mass to dense regions (where transport cost is low) and downweights sparse, peripheral tail modes. The density ratio between the UOT target marginal and the empirical distribution acts as an unsupervised majority score: $$\hat{s}_\tau(x_1^j) = |B| \hat{\pi}_{\tau, 1}^u(x_1^j)$$ Samples with $s_\tau > 1$ belong to majority modes, while $s_\tau \ll 1$ correspond to minority/tail samples.

  3. Reweighted Loss with Over-Correction: The model modifies the Conditional Flow Matching (CFM) objective with an inverse weight powered by order $k \ge 1$: $$\mathcal{L}_{\text{ours}, k}(\theta) = \mathbb{E}_{t, (x_0, x_1)\sim \pi_\tau^u, x_t} \left[ s_\tau(x_1)^{-k} \| v_\theta(t, x_t) - (x_1 - x_0) \|_2^2 \right]$$

  4. Theoretical exact recovery ($k = 1$): By Radon–Nikodym derivative arguments, $k = 1$ theoretically recovers the true data distribution $\nu$.
  5. Empirical over-correction ($k > 1$): For steep exponential tails, choosing $k > 1$ aggressively boosts the gradients of tail samples, counterbalancing majority domination.

Datasets

The authors evaluate UOT-RFM on:

  • CIFAR-10-LT and CIFAR-100-LT: Created by artificially subsampling CIFAR-10/100 to follow an exponential decay across classes, evaluated at imbalance ratios $\mathcal{I} = 0.01$ (a 100:1 head-to-tail ratio) and $\mathcal{I} = 0.001$ (a 1000:1 ratio).
  • Balanced CIFAR-10 and CIFAR-100: Evaluated to verify that the reweighting does not hurt performance on uniform distributions.
  • Synthetic 2D Gaussian Mixture: A 3-component toy dataset (weights: 0.70, 0.275, 0.025) used to inspect the correlation between the learned majority score and ground-truth mode densities.

Key Insights and Ideas

  • Turning an OT Weakness into a Feature: UOT is typically used because it discards outliers and low-density regions. Rather than viewing this mass reduction as loss of information, the authors recognize that the UOT target marginal acts as an intrinsic density filter. The ratio of the transported marginal to the empirical marginal yields a purely geometric, label-free proxy for class rarity.
  • Why $k > 1$ Outperforms Exact Inversion ($k=1$): While $k=1$ provably recovers the true target distribution in theory, neural network parameterization in practice still prioritizes frequent patterns. Choosing higher-order corrections ($k \approx 8\text{--}16$) forces the vector field regressor to dedicate substantial capacity to sparsely sampled tail modes.
  • Marginal Matching Parameter ($\tau$) Governs Correction Sensitivity: A smaller $\tau$ allows UOT to downweight tail samples more drastically (producing very small $s_\tau$ values), which leads to aggressive upweighting when inverted. A larger $\tau$ keeps scores closer to 1, providing training stability at the cost of milder tail intervention.

Key Results

  • Significant FID Improvements on Long-Tailed Benchmarks: Under long-tailed evaluation ($\text{LT}\rightarrow\text{LT}$), UOT-RFM markedly outperforms independent (I-CFM) and optimal transport (OT-CFM) baselines:
  • CIFAR-10-LT ($\mathcal{I} = 0.01$): Reaches 11.03 FID (vs. 14.57 for I-CFM and 17.31 for OT-CFM).
  • CIFAR-10-LT ($\mathcal{I} = 0.001$): Achieves 12.84 FID (vs. 17.54 for I-CFM and 21.26 for OT-CFM).
  • CIFAR-100-LT ($\mathcal{I} = 0.01$): Achieves 15.37 FID (vs. 25.55 for I-CFM and 31.34 for OT-CFM).
  • Mode Coverage and Proportions: On CIFAR-10-LT ($\mathcal{I} = 0.01$), UOT-RFM increases recall from $0.29$ to $0.41$ and drops the Normalized Class Ratio Error (NCRE) from $0.84$ (I-CFM) and $1.02$ (OT-CFM) down to $0.40$, generating distribution proportions much closer to the ground truth.
  • Tail Quality & Likelihood: Class-wise Negative Log-Likelihood (NLL) improves consistently across all classes (e.g., mean NLL of $3.88$ on CIFAR-10-LT vs. $4.02$ for I-CFM), and generated tail images show fewer artifacts and clearer object semantics.
  • Low Computational Overhead: UOT-RFM requires only $\sim 7\%$ extra training time compared to standard OT-CFM.

Limitations and Future Work

  • Training from Scratch: UOT-RFM requires full model retraining with the reweighted objective, unlike test-time guidance techniques that modify sampling trajectories on pre-existing checkpoints.
  • Hyperparameter Sensitivity on Balanced Data: While competitive on balanced CIFAR-10 (FID $3.58$ with $k=1$), it slightly lagged behind OT-CFM on balanced CIFAR-100 (FID $6.54$ vs. $6.14$), indicating that uniform distributions require careful tuning to avoid unnecessary perturbation of the transport plan.
  • Future Directions: The authors suggest extending the geometric UOT majority score to test-time controllable guidance, potentially combining the benefits of label-free density estimation with plug-and-play inference.

Summary updated

BibTeX
@misc{song2025reweighted,
  author = {Hyunsoo Song and Minjung Gim and Jaewoong Choi},
  title = {{Reweighted Flow Matching via Unbalanced OT for Label-free Long-tailed Generation}},
  year = {2025},
  eprint = {2509.25713},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.25713},
}

Loading related content...

Figure