All models

sac_gaussian_actor

SAC's Gaussian actor: an MLP policy that maximizes reward and entropy together, trained by reparameterization.

Reinforcement learning and control · 23 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (27 KB)

Open in a new tab

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.

At a glance

Parameters
74.2K
Operations
23
Framework
PyTorch
Recurrent
No
Published
ICML (arXiv 2018)
Cited by
14,569 (as of 30 November 2026)
Authors
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, Sergey Levine
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m9003
Graph hash
7c2b8aa4c44e76deb92a3c7908c545a35725687d5f3bf1ebbb9bacd386f7f731
Skeleton hash
7409bb5cf33f488d28d44976ec845169a9065640e1ee7374f4011795992dbe04
Architecture hash
710684e8c047d952eb796385d71a8474283e84728ebd11573ebab12e891ae2fb
Diagram SHA-256
9a4cc7ac5cab2286ded02ec41ca776a94085637b16372ebcfec29de9c64120e3
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

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.

  • soft actor-critic
  • sac
  • actor
  • gaussian policy
  • stochastic actor
  • maximum entropy reinforcement learning
  • reparameterization trick
  • entropy
  • continuous control
  • stable-baselines3
  • softlearning

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}