
sb3_ContinuousCritic
Reinforcement learning and control13 ops144.4K params
SAC's twin soft Q-function critic: two MLPs over state and action whose minimum mitigates positive bias.
Reinforcement learning and control · 13 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 critic 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. 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 critic is a soft Q-function trained to minimize the soft Bellman residual, with a target built from a target value network whose weights can be an exponentially moving average of the value network weights. SAC parameterizes two Q-functions, trains them independently, and uses the minimum of the two for the value gradient and the policy gradient, in order to mitigate positive bias in the policy improvement step. Although the algorithm can learn challenging tasks, including a 21-dimensional Humanoid, with just a single Q-function, the authors found that two Q-functions significantly speed up training, especially on harder tasks.
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 from a replay buffer. 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.
The captured member follows Stable Baselines3, a set of reliable implementations of reinforcement learning algorithms in PyTorch that lists SAC among its algorithms, while the authors' own code, haarnoja/sac and its successor Softlearning, uses Tensorflow. In the paper the algorithm is agnostic to the parameterization of the policy, as long as it can be evaluated for any arbitrary state-action tuple.
Key idea. SAC's critic trains two independent soft Q-functions and takes their minimum, which the authors found significantly speeds up training, especially on harder tasks, inside what they describe as the first off-policy actor-critic method in the maximum entropy reinforcement learning framework.
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},
}