A Theory on Flow Matching with Neural Networks

He, Yihan, Yin, Qishuo, Cao, Yuan, Fan, Jianqing, Liu, Han

–arXiv.org Artificial Intelligence 

In this work, we develop theoretical foundation for flow matching with neural-network-parameterized conditional velocity fields. We establish convergence guarantees for gradient descent in the over-parameterized 2-layered ReLU neural network regime. We derive generalization bounds for the conditional velocity-field matching objective. Building on these results, we provide Wasserstein-distance guarantees for the samples generated by the induced flow. Our analysis is based on generalization bound for multi-task representation learning with unbounded losses, which may be of independent interest beyond flow-based generative modeling. These theoretical results are validated through extensive experiments on both synthetic and real-world image benchmarks. Our code is available at https://github.com/qishuoyin/FlowMatchNN.