Statistical Inference via Generative Models: Flow Matching and Causal Inference
Abstract
Generative AI has achieved remarkable empirical success, but from the perspective of statistics it often remains opaque: its predictions may be accurate, yet the underlying mechanism is difficult to interpret, analyze, and trust. This book reinterprets generative AI in the language of statistics, using flow matching as a central example. The key idea is that generative models should be understood not merely as devices for producing plausible data, but as methods for the nonparametric learning of high-dimensional probability distributions. From this viewpoint, missing-data imputation becomes principled sampling from learned conditional distributions, counterfactual analysis becomes the estimation of intervention distributions, and distributional dynamics become statistically analyzable objects. Mathematically, flow matching represents distributional deformation through the continuity equation and a time-dependent velocity field, thereby extending score matching from the learning of static score fields to the learning of transport paths themselves. Building on this foundation, the book develops a statistical framework in which generative models are used to estimate nuisance components while inferential validity is maintained through orthogonalization and cross-fitting in the spirit of double/debiased machine learning. Applications to survival analysis, censoring, missingness, and causal inference show how generative models can be integrated into statistical inference for structured high-dimensional problems.
Figures & tables
| dataset | PH | tv | mean | Br.(Cox) | Br.(Flow) | |
|---|---|---|---|---|---|---|
| lung | 210.0 | 0.545 | ph.ecog | 0.00348 | 0.21587 | 0.21578 |
| pbc | 1180.5 | 0.118 | bili | 0.00341 | 0.06763 | 0.06828 |
| veteran | 93.5 | 2.17e-4 | karno | 0.01807 | 0.16758 | 0.16476 |
| Metric | MICE | FM |
|---|---|---|
| Missingness rate | ||
| RMSE (mean imputation) | ||
| (distribution distance) | ||
| Brier ( ) | ||
| (SE) | ||
| (SE) | ||
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| RMSE_MLE | CT_MLE (sec) | RMSE_SM | CT_SM (sec) | |
|---|---|---|---|---|
| mean | 0.182256 | 1.595136 | 0.051682 | 0.127432 |
| std | 0.001820 | 1.511921 | 0.001156 | 0.016656 |
| The -dimensional Euclidean space. | |
| Probability measures. | |
| Probability density functions. | |
| A random variable follows distribution . | |
| Expectation. When the underlying distribution is explicit, we write or . | |
| Empirical measure: . | |
| Gaussian distribution with mean and covariance matrix . |
| Gradient of with respect to . | |
| Divergence of a vector field : . | |
| Laplacian: . | |
| Vector field (velocity field) at time ; also written as . | |
| Score function of density : . | |
| Pushforward of measure by a map . If , then . | |
| Flow map of an ODE: the position at time of a particle starting at at time . |
| Pseudo-time or interpolation parameter, typically . | |
| Reference distribution, typically a known distribution such as the standard Gaussian. | |
| Density of the intermediate distribution (probability path) at time . | |
| Conditional vector field (target velocity) with endpoint fixed. | |
| Random variables representing the start point (noise) and the end point (data), respectively. |
| Treatment (intervention) variable, typically . | |
| Observed outcome variable. | |
| Potential outcome under treatment . | |
| Intervention operator that sets to in a structural model. | |
| Conditional average treatment effect (CATE): . | |
| Propensity score: . | |
| Outcome regression: . |
Causal Inference
Causal inference studies how interventions and counterfactuals reveal cause-and-effect relationships beyond observed associations.
See all 316 papers