arXiv

Divergence is Uncertainty: A Closed-Form Posterior Covariance for Flow Matching

Title: Divergence as a Proxy for Uncertainty: A Closed-Form Solution for Posterior Covariance in Flow Matching

Abstract:

While flow matching has emerged as a dominant paradigm in generative modeling, effectively quantifying the uncertainty of its generated samples remains a significant challenge. Current methodologies typically rely on retraining models with auxiliary variance heads, maintaining computationally expensive ensembles, or propagating approximate covariance matrices through numerous integration steps—each approach necessitating a compromise between training overhead, inference speed, and accuracy. We demonstrate that such trade-offs are unnecessary. By adapting Tweedie’s formula from the denoising context to the flow matching interpolant, we derive an exact, closed-form expression for the posterior covariance at every stage of the generative trajectory. This solution hinges on a single metric: the divergence of the learned velocity field. This quantity can be calculated post-hoc on any pre-existing flow matching model, eliminating the need for architectural changes or retraining. For single-step generators like MeanFlow, this formula provides end-to-end generation uncertainty in one forward pass, bypassing the multi-step variance propagation inherent in previous techniques. Our experiments on MNIST reveal that the resulting per-pixel uncertainty maps are semantically coherent, focusing on digit boundaries where sample variation peaks. Furthermore, the scalar uncertainty score accurately reflects actual prediction error, all while requiring approximately $10^4 \times$ less total compute than ensembling or Monte Carlo dropout.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Law’s Billable Hour Is Being Shredded by AI
Bloomberg

Law’s Billable Hour Is Being Shredded by AI

AI is dismantling the billable hour by automating routine legal tasks. This technological shift threatens the traditiona...

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026
Bloomberg

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026

SoftBank in Early Talks to Back $800 Million Agile Robots Round
Bloomberg

SoftBank in Early Talks to Back $800 Million Agile Robots Round

SoftBank is in early talks to back Agile Robots’ $800 million funding round. The Japanese tech giant is currently in pre...

Amundi Is Diversifying Risk Via Commodity Currencies, Gold
Bloomberg

Amundi Is Diversifying Risk Via Commodity Currencies, Gold

Amundi diversifies risk by investing in commodity-linked currencies and gold. This strategy hedges against market volati...

Reuters

Marvell Technology surges after Nvidia's Huang calls it 'next trillion-dollar company'

Marvell Technology shares surged after Nvidia CEO Jensen Huang labeled the firm the “next trillion-dollar company.”

Russia Says It Found Foreign Spyware on Top Officials’ Phones
Bloomberg

Russia Says It Found Foreign Spyware on Top Officials’ Phones

Russia’s FSB claims to have discovered foreign spyware on senior officials’ phones. Moscow attributes the intrusion to h...