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

Jianming Ma, Qiyue Yang, Yang Zhang, Liyun Yan, Zhanxiang Cao +2 more
6/11/2026
2 citations
cs.LGcs.AIcs.RO
diffusion-flow

Official code: MJianM/PolyFlow (1 star, Python, last commit 2026-05-21).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MJianM/PolyFlowOfficial100%

PolyFlow: Safety Guaranteed and Sample Efficient Flow Matching via Constraint Embedding and Projection-free Update

10PythonJan 28, 20266 months ago

Similar Papers

Cite this paper

@article{ma2026polyflow,
  title  = {PolyFlow: Safe and Efficient Polytope-Constrained Flow Matching with Constraint Embedding and Projection-free Update},
  author = {Jianming Ma and Qiyue Yang and Yang Zhang and Liyun Yan and Zhanxiang Cao and Yazhou Zhang and Yue Gao},
  year   = {2026},
  eprint = {2606.13400},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.13400v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.13400.svg)](https://codeofpaper.com/paper/2606.13400)

Discussion