
sb3_SAC_Actor
Reinforcement learning and control23 ops67.3K params
SAC's Gaussian actor: an MLP policy that maximizes reward and entropy together, trained by reparameterization.
Reinforcement learning and control · 23 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
This family is the actor of soft actor-critic (SAC), an off-policy actor-critic deep RL algorithm based on the maximum entropy reinforcement learning framework, in which the actor aims to maximize expected reward while also maximizing entropy, that is, to succeed at the task while acting as randomly as possible. SAC matters because combining off-policy updates with a stable stochastic actor-critic formulation achieves state-of-the-art performance on a range of continuous control benchmark tasks, and the approach is very stable, achieving very similar performance across different random seeds.
The policy is a Gaussian with mean and covariance given by neural networks, and in the policy improvement step it is updated towards the exponential of the new Q-function by directly minimizing an expected KL-divergence. Because the target density is the Q-function, a neural network that can be differentiated, the policy is reparameterized as a neural network transformation of an input noise vector sampled from a fixed distribution such as a spherical Gaussian, which gives a lower variance estimator and extends the DDPG style policy gradients to any tractable stochastic policy. In the policy, the entropy term prevents premature convergence of the policy variance, and at evaluation time SAC uses the mean action.
In the paper's experiments all networks use 2 hidden layers of 256 units with ReLU nonlinearities, trained with Adam on minibatches of 256 samples. Overall, SAC performs comparably to the baseline methods on the easier tasks and outperforms them on the harder tasks with a large margin, both in terms of learning speed and final performance, and it extends to the Humanoid benchmark with 21 action dimensions.
The captured member follows Stable Baselines3, a set of reliable implementations of reinforcement learning algorithms in PyTorch, while the authors' Softlearning toolbox, which uses Tensorflow, exposes a gaussian policy option. Prior deep RL methods based on the maximum entropy framework had been formulated as Q-learning methods.
Key idea. SAC's actor is a stochastic Gaussian policy, trained with the reparameterization trick, that aims to maximize expected reward while also maximizing entropy, so the agent succeeds at the task while acting as randomly as possible.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{haarnoja2018softactorcriticoffpolicymaximum,
title={Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor},
author={Tuomas Haarnoja and Aurick Zhou and Pieter Abbeel and Sergey Levine},
year={2018},
eprint={1801.01290},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1801.01290},
}