FlowOpt Policy: Learning to Optimize Actions with Flows
FlowOpt Policy: Learning to Optimize Actions with Flows
Augustinos D. Saravanos, Oswin So, Chuchu Fan
AbstractModel-based planning requires repeatedly solving complex non-convex optimization problems over action sequences. Sampling-based optimizers are most commonly used, yet their handcrafted updates cannot exploit structure shared across planning instances. From a complementary perspective, expressive generative policies produce action sequences directly without optimizing them over the planning horizon using a predictive model. We bridge these two paradigms by introducing FlowOpt Policy, which casts the optimization of action sequences as a learned transport problem. Rather than reweighting candidates and resampling from a proposal, or generating actions directly, a learned flow iteratively transports the candidate population based on its rollout evaluations. Our framework is theoretically grounded in a splitting of the Wasserstein gradient flow of a free energy over action populations. The resulting proximal step defines flow-matching targets using candidates obtained by a higher-budget optimizer from the populations FlowOpt Policy encounters, enabling self-supervised training without demonstration data. The same formulation also motivates attention over the population, allowing each candidate's update to depend on the others' locations and rollout costs. We further show that classical methods such as MPPI and CEM emerge as special cases of this mechanism. Across physics-based and learned world-model tasks, FlowOpt Policy outperforms both handcrafted and learned sampling-based planners, and generalizes better than state-conditioned generative policies to unseen objectives, as it learns how to optimize rather than what to output.