Max-Entropy Reinforcement Learning with Flow Matching and A Case Study on LQR
Yuyang Zhang, Yang Hu, Bo Dai, Na Li
TL;DR
This work addresses the expressiveness gap in max-entropy RL by parameterizing SAC policies with flow-based models trained via flow matching. It introduces an online variant, importance sampling flow matching (ISFM), for policy improvement that uses samples from a flexible tilde p and provides a bound on the resulting policy approximation that depends on the fourth-order Renyi divergence $D_4(p^{\theta^*}_{x,1}\|\tilde p)$. Policy evaluation leverages the instantaneous change-of-variable formula to compute entropy-regularized returns efficiently. The approach is validated on max-entropy LQR, where the optimal policy is Gaussian with closed-form parameters; the theory and experiments show that SAC-ISFM with flow-based policies recovers the optimal Gaussian policy, confirming both convergence and practical viability.
Abstract
Soft actor-critic (SAC) is a popular algorithm for max-entropy reinforcement learning. In practice, the energy-based policies in SAC are often approximated using simple policy classes for efficiency, sacrificing the expressiveness and robustness. In this paper, we propose a variant of the SAC algorithm that parameterizes the policy with flow-based models, leveraging their rich expressiveness. In the algorithm, we evaluate the flow-based policy utilizing the instantaneous change-of-variable technique and update the policy with an online variant of flow matching developed in this paper. This online variant, termed importance sampling flow matching (ISFM), enables policy update with only samples from a user-specified sampling distribution rather than the unknown target distribution. We develop a theoretical analysis of ISFM, characterizing how different choices of sampling distributions affect the learning efficiency. Finally, we conduct a case study of our algorithm on the max-entropy linear quadratic regulator problems, demonstrating that the proposed algorithm learns the optimal action distribution.
