Importance-Weighted Non-IID Sampling for Flow Matching Models

Xinshuang Liu, Runfa Blark Li, Shaoxiu Wei, Truong Nguyen
11/21/2025
cs.CVcs.AIcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Flow-matching models effectively represent complex distributions, yet estimating expectations of functions of their outputs remains challenging under limited sampling budgets. Independent sampling often yields high-variance estimates, especially when rare but with high-impact outcomes dominate the expectation. We propose an importance-weighted non-IID sampling framework that jointly draws multiple samples to cover diverse, salient regions of a flow's distribution while maintaining unbiased estimation via estimated importance weights. To balance diversity and quality, we introduce a score-based regularization for the diversity mechanism, which uses the score function, i.e., the gradient of the log probability, to ensure samples are pushed apart within high-density regions of the data manifold, mitigating off-manifold drift. We further develop the first approach for importance weighting of non-IID flow samples by learning a residual velocity field that reproduces the marginal distribution of the non-IID samples. Empirically, our method produces diverse, high-quality samples and accurate estimates of both importance weights and expectations, advancing the reliable characterization of flow-matching model outputs. Our code will be publicly available on GitHub.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025importanceweighted,
  title  = {Importance-Weighted Non-IID Sampling for Flow Matching Models},
  author = {Xinshuang Liu and Runfa Blark Li and Shaoxiu Wei and Truong Nguyen},
  year   = {2025},
  eprint = {2511.17812},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.17812v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.17812.svg)](https://codeofpaper.com/paper/2511.17812)

Discussion