CS-Pi: Constraint-Satisfying Flow Policy Sampling
On the map: Diffusion models → Diffusion and flow policies for robotics
Abstract (arXiv)
A flow-matching policy deployed in the field must often satisfy a constraint that was absent from its demonstrations, such as avoiding an obstacle it has never seen. Retraining for every new constraint is impractical, so the constraint must be enforced at inference time. Enforcing it must not discard what the policy learned: an action the policy would rarely sample may avoid the obstacle yet fail the task. We therefore want actions that are both safe, satisfying the constraint, and plausible, remaining likely under the policy. Gradient guidance, the most common approach, steers noisy states, so it must evaluate its cost on the policy's running estimate of the clean action; when the policy is uncertain between passing left or right of an obstacle, this estimate is their average and can pass straight through it. We instead build on rejection and projection. Rejection redraws actions until one is safe: every output is plausible, but the wait is intractable when safe actions are rare. Projection moves an action to the nearest safe one: it is efficient, but the result need not be plausible. Our key insight is that flow-matching sampling lets us combine the two, keeping projection's efficiency and rejection's plausibility. CS-Pi, our draw-project-renoise sampler, projects each draw to the nearest safe action, adds noise back scaled to how far the projection moved it, and re-runs the unmodified policy until a draw is safe. Replacing only the projection step extends CS-Pi to continuous costs. Across a 2D diagnostic, a 7-DoF shelf pick-and-place, an orientation preference, and a zero-shot Franka deployment, CS-Pi reaches 81% safe success on the shelf and 55% on hardware, against 55% and 40% for projection, while staying plausible.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Diffusion and flow policies for robotics, one of 14 directions in Diffusion models. Submitted 5 Nov 2026.
Builds on
No reference list yet.
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026ConicFlow: constrained Inference-time optimal control for flow matching models
- 2026BayesFP: Posterior Estimation for Flow-Based Policies via Feynman-Kac Sampling
- 2026MintFlow: Minimal Trajectory Intervention for Constrained Flow Matching
- 2025HardFlow: Hard-Constrained Sampling for Flow-Matching Models via Trajectory Optimization
- 2025Guided Flow Policy: Learning from High-Value Actions in Offline Reinforcement Learning
- 2026A Survey of Flow Matching in Reinforcement Learning
- 2026One Trajectory, Two Requirements: Accuracy and Local Stability in Euler Sampling for Flow Matching Policies
- 2026When One Step Is Enough: An Empirical Study of Euler Integration in Flow-Matching Policies