Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

PolyFlow: Safe and Efficient Polytope-Constrained Flow Matching with Constraint Embedding and Projection-free Update

About

While flow-based generative models have demonstrated strong performance across a wide range of domains, deploying them in safety-critical physical systems remains challenging due to strict constraint requirements. Existing approaches typically enforce safety through post-hoc corrections, which incur substantial computational overhead and may distort the learned distribution. We propose PolyFlow, a polytope-constrained flow matching framework that embeds constraints directly into the model and flow dynamics. PolyFlow introduces a discrete-time flow formulation and a projection-free architecture, which eliminate the discretization error and guarantee strict satisfaction of arbitrary polyhedral constraints, without the need for expensive iterative solvers. Experimental results show that PolyFlow achieves zero constraint violation while maintaining high distributional fidelity across a range of planning and control tasks. Compared to state-of-the-art constrained generation baselines, PolyFlow significantly reduces inference latency and demonstrates a favorable trade-off between safety, efficiency, and generative quality. Code is available on https://github.com/MJianM/PolyFlow.

Jianming Ma, Qiyue Yang, Yang Zhang, Liyun Yan, Zhanxiang Cao, Yazhou Zhang, Yue Gao• 2026

Related benchmarks

TaskDatasetResultRank
Safe Planning2D Maze Default Sampling Steps
Safety Score1
8
Action GenerationWalker2d Simple
Safety100
5
Constrained Generative ModelingWalker2d Hard
Safety100
5
Constrained Sample GenerationHopper-Simple
Safety1
5
Polytope-Constrained Action GenerationHalfcheetah
Safety100
5
Safe ControlHopper-Simple
Safety Rate100
5
Safe ControlHopper Complex
Safety Rate100
5
Safe ControlWalker2d Simple
Safety Rate100
5
Safe ControlWalker2d Complex
Safety Rate100
5
Safe ControlHalfcheetah
Safety Rate100
5
Showing 10 of 16 rows

Other info

Follow for update