Manuscript Offprint

arXiv:2609.00863

Conditional Flow Matching for ML-Based Inverse Design Problems

Juliana Felder, Milad Habibi, Soheyl Massoudi, Mark Fuge

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Engineering inverse design is often limited by the high computational cost of iterative solvers for optimization problems constrained by partial differential equations (PDEs) and by their sensitivity to initialization. Deep generative models can produce candidate designs without rerunning the simulator at inference time. Generative adversarial networks (GANs) sample in one forward pass, whereas diffusion models require iterative reverse-time integration.

In this work, we add conditional flow matching (CFM) to EngiOpt and compare it with a conditional diffusion model and a conditional generative adversarial network (cGAN) on structural (beams2d) and thermal (heatconduction2d) benchmarks from EngiBench using the same downstream optimization protocol. We use cumulative optimality gap (COG) and final optimality gap (FOG) as the primary metrics for evaluating the generated designs as warm starts for gradient-based refinement. On the evaluated EngiOpt implementations and two EngiBench tasks, CFM achieves the lowest measured COG, FOG, maximum mean discrepancy (MMD), and volume-fraction deviation on both tasks. CFM has mean volume-fraction deviations of 0.4% and 1.0% on beams2d and heatconduction2d, respectively, compared with 3.8% and 11.2% for diffusion. At Euler s=16s = 16, CFM achieves 53.2 samples/s on beams2d — about 66×66\times the measured throughput of the evaluated diffusion baseline using 1000 network evaluations under the same timing protocol — with COG 1.182±3.1261.182 \pm 3.126, compared with 1.173±3.1001.173 \pm 3.100 for Euler s=32s = 32.

Across the two tasks, CFM produces warm starts with lower measured COG than both baselines and uses fewer network evaluations than diffusion.

Keywords engineering inverse design · flow matching · warm starts · generative models · engineering optimization

1 Introduction

Engineering inverse design seeks geometries that satisfy target physical performance criteria — a task traditionally solved by iterative gradient-based optimization constrained by expensive physics simulations [Peckham et al., 2025, Habibi et al., 2026]. Each design update requires a simulator call, making it expensive to solve many related design instances [Giannone et al., 2023]. Generative models offer a data-driven alternative: trained on reference designs produced by numerical optimization, they approximate p(x∣c)p(x \mid c) and generate candidates at inference time without rerunning the simulator [Regenwetter et al., 2022, Mazé and Ahmed, 2023]. The aim is not to generate a fully converged design, but to provide an initialization that the downstream optimizer can refine under the prescribed physical conditions.

Prior studies report improved sample quality for diffusion models over conditional generative adversarial networks (cGANs) [Mazé and Ahmed, 2023, Zhang et al., 2025, Habibi and Fuge, 2024], but hundreds of network evaluations per sample can make generation slow. We introduce conditional flow matching (CFM) as a new baseline in EngiOpt [Felten et al., 2025] — alongside existing cGAN and diffusion implementations — replacing stochastic denoising with

*Equal contribution.

A PREPRINT

deterministic velocity regression [Lipman et al., 2023]. Because CFM and diffusion share the same conditional U-Net backbone, the comparison limits differences in model architecture and focuses on the training objective and sampling procedure.

We ask whether CFM can generate useful warm starts with fewer network evaluations than diffusion and lower seed-to-seed variability than the evaluated cGAN baseline. Our contributions are:

  1. A CFM baseline for EngiOpt/EngiBench, evaluated against conditional diffusion and cGAN using the same data splits, checkpoint-selection procedure, and downstream optimizer.

  2. An evaluation protocol centered on cumulative optimality gap (COG) and final optimality gap (FOG), measuring downstream warm-start utility via optimization trajectories rather than distributional metrics alone.

  3. A solver and number of function evaluations (NFE) ablation showing beams2d COG of 1.182±3.1261.182 \pm 3.126 at NFE= 16 and 1.173±3.1001.173 \pm 3.100 at NFE= 32, while NFE= 16 reaches approximately 64×−66×64\times-66\times the measured diffusion throughput.

References (44)