CS-Pi: Constraint-Satisfying Flow Policy Sampling
Abstract
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.
Create a lesson
Metadata
- Comments
- Accepted to CoRL 2026. Project page: https://sumo048.github.io/CS-pi_site/
Related papers
Ground Your Steps: Optimizing Sampling Schedules in Flow Matching Robot Policies
Shared title terminologycs.ROLicheng Yang, Yonghao He, Lingfeng Qian et al.
iMFPO: Improving Mean Flow Policy Optimization with Drift-Aware Velocity Alignment for Embodied Control
Shared title terminologycs.ROLisiyu Pan, Ting Huang, Zeyu Zhang et al.
Escapingthe instruction blackhole of vision-language-action policies via optimal-transport wormholes
Shared title terminologycs.ROXuetao Li, Chen Liu, Jing Wu et al.
Ask to Land: Learning a Mask-Conditioned Open-Vocabulary Landing Policy via Differentiable Physics
Shared title terminologycs.ROFangyu Sun, Guanyan Wu, Yang Deng et al.
FailPoint-X: A Policy-Matched, Failure-Anchored Benchmark for Offline VLA Post-Training from Human Takeovers
Shared title terminologycs.ROZirui Li, Yujie Yan, Jingxuan Qian et al.
RegHarness: Regulating What Code-as-Policy Agents Keep from Steps to Skills
Shared title terminologycs.ROShengming Liu, Yunyi Gao, Xinyi Wang et al.