cs.AIOct 9, 2026

ConicFlow: constrained Inference-time optimal control for flow matching models

Authors: Shervin Khalafi, Kasra Fallah, Sung Cho, Dongsheng Ding, James Anderson, Alejandro Ribeiro

Organizations: University of Pennsylvania · Columbia University · University of Tennessee, Knoxville

Abstract

We propose ConicFlow, which frames constrained sampling from a flow matching model at inference time as an optimal control problem that balances deviation from the pretrained trajectory against reward, subject to hard terminal constraints. We discretize this problem and adapt receding-horizon control, optimizing only a short window of the trajectory at each step for computational tractability. We address the resulting sequence of receding-horizon subproblems with a receding-horizon primal-dual algorithm. Its dual multipliers capture the difficulty of satisfying each constraint and are refined throughout sampling, steering generation toward feasible final samples. We further propose a terminal-estimate variant that avoids accumulating local truncation errors by evaluating the reward and constraints at the predicted terminal point rather than at the end of the current horizon. Under standard regularity assumptions, we establish finite-horizon guarantees on suboptimality. Under convex-affine structure, we derive a sharper bound that scales linearly with omitted horizon length, and we show that the terminal-estimate variant is provably tighter when the flow dynamics change slowly. Experiments in both low- and high-dimensional settings with a recent large-scale flow matching model show that ConicFlow achieves high reward and strong constraint satisfaction while deviating less from the pretrained flow than recent baselines.

Figures & tables

Appendix figures & tables13 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. MintFlow: Minimal Trajectory Intervention for Constrained Flow Matching

    Sep 30, 2026Yesom Park, Kelvin Kan, Qifan Chen +2Constrained Generative ModelingConstrained Sampling

  2. Constrained Flow Matching via Lagrangian Dual Flows

    Jul 5, 2026Vince Kurtz, Alexander DavydovConstrained Generative ModelingFlow Matching

  3. LyapuFlow: Controlling Generative Flows with Lyapunov Feedback for Inverse Problems

    Oct 3, 2026Minseon Gwak, Hans Hao-Hsun Hsu, Danielle C. Maddix +1Constrained Generative ModelingInference-Time Guidance