All models

sb3_sac_mlp_policy

An actor network and two Q-function critics for maximum entropy reinforcement learning in continuous control.

Reinforcement learning and control · 32 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 (41 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
362.3K
Operations
32
Framework
PyTorch
Recurrent
No
Published
ICML 2018
Cited by
5,594 (as of 22 October 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
m9036
Graph hash
0f8ec6c11b5b11be5281faac78d3bfa26237639f5afc0969b1fd0a93891790a7
Skeleton hash
bbb6c6efd435a8b6b78208e337f55f1c885b2f591ba9f357d076a35f3701922c
Architecture hash
46f52ccedb362d4650ba5e906726247a2ec2d21014d274ae21ec0b762f513345
Diagram SHA-256
b564f621850e441b261a11cb17d6deb2ef881158fb36abf366b2e727fba2ad8e
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

Soft actor-critic (SAC) is an off-policy actor-critic algorithm for deep reinforcement learning, built on the maximum entropy framework. In that framework the actor aims to maximize expected reward while also maximizing entropy, that is, to succeed at the task while acting as randomly as possible. The paper presents it as an answer to two problems of model-free deep RL: very high sample complexity and brittle convergence that calls for meticulous hyperparameter tuning.

The networks behind the algorithm are a policy and its value functions. The policy is a Gaussian with mean and covariance given by neural networks, and a tanh squashing function is applied to the Gaussian samples so that actions stay in a finite interval. Two Q-functions are trained independently and the minimum of the two is used, which the paper says mitigates positive bias in the policy improvement step and speeds up training, especially on harder tasks. The paper's formulation also includes a separate state value network, while noting that there is no need in principle for one.

On a range of continuous control benchmark tasks the paper reports that SAC outperforms prior on-policy and off-policy methods and reaches very similar performance across different random seeds. The authors' original implementation uses Tensorflow; its repository is no longer maintained and directs readers to their Softlearning package.

Key idea. Soft actor-critic combines off-policy updates with a stable stochastic actor-critic formulation in the maximum entropy framework, giving sample-efficient and stable learning on continuous control tasks.

  • SAC
  • soft actor-critic
  • soft actor critic
  • maximum entropy reinforcement learning
  • off-policy reinforcement learning
  • continuous control
  • stable-baselines3 SAC
  • MlpPolicy
  • actor-critic

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