Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Soft Actor-Critic Algorithms and Applications

Soft Actor-Critic trains robot policies stably with off-policy maximum entropy learning

  • Problem Model-free deep RL needs very many environment steps and is sensitive to hyperparameters. That keeps it from being used on real robots.
  • Method Soft Actor-Critic trains a stochastic actor and two soft Q-functions off-policy from a replay pool. It also maximizes entropy, and an entropy constraint tunes the temperature automatically.
  • Results On a Minitaur quadruped, the method learned walking from 160k environment steps, about 2 hours of real-world training.

Why sample cost and brittleness limit deep RL

Model-free deep RL has two practical problems that keep it away from real robots: sample cost and sensitivity to hyperparameters. Simple tasks can demand millions of environment steps, and behaviours with high-dimensional observations can demand far more. Learning rates, exploration constants and similar settings have to be chosen carefully for each problem, so good results depend on careful tuning.

One source of poor sample efficiency is on-policy learning, where popular methods such as TRPO, PPO and A3C need fresh samples for almost every policy update. Q-learning can reuse past data, but combining off-policy learning with neural function approximation hurts stability, and continuous action spaces add a separate actor that must perform the maximization.

DDPG is a common off-policy actor-critic method, yet its interplay between the deterministic actor and the Q-function makes it hard to stabilize and brittle to hyperparameters, which limits it on complex high-dimensional tasks. The maximum entropy framework offers a different route, but in SAC as first presented the temperature can be a source of brittleness, because the reward scale and the entropy weight have to be matched.

Soft policy iteration as the theoretical base

The objective adds an entropy term, weighted by a temperature \(\alpha\), to the reward at each visited state, so \(\alpha\) controls how stochastic the optimal policy is. Letting \(\alpha\) approach zero recovers the conventional return objective. A discount factor \(\gamma\) keeps the infinite-horizon sums finite, and the discounted objective is written out in an appendix.

Policy evaluation repeatedly applies a soft Bellman backup, where the target is the reward plus \(\gamma\) times the expected soft state value of the next state. The soft state value is \(V(s_t)=\mathbb{E}_{a_t\sim\pi}[Q(s_t,a_t)-\alpha\log\pi(a_t|s_t)]\), and repeating the backup converges to the soft Q-function of the policy when the action set is finite.

Policy improvement moves the policy toward the exponential of the current soft Q-function, projected onto a restricted policy set \(\Pi\) by minimizing a Kullback-Leibler divergence. The projected policy has soft Q-values at least as high as the old policy's, for finite action sets. Alternating evaluation and improvement from any starting policy in \(\Pi\) converges to a policy whose soft Q-values are at least those of every other policy in \(\Pi\), again assuming finite actions.

Exact iteration is practical only in the tabular case, so the next step replaces both steps with function approximators trained by stochastic gradients.

Soft Q, policy and replay updates in SAC

The soft Q-function is fit by minimizing a soft Bellman residual averaged over replayed transitions, with a target that uses the entropy of the next action. The target uses a target soft Q-function whose weights are an exponentially moving average of the soft Q-function weights, which the authors state stabilizes training. The method keeps two soft Q-functions trained independently and takes their minimum in both the Q gradient and the policy gradient.

The policy is reparameterized as \(a_t=f_\phi(\epsilon_t;s_t)\), so that the action is a deterministic transformation of input noise \(\epsilon_t\). Because the target is a Q-function represented by a differentiable network, the reparameterization trick is preferred over the likelihood ratio estimator, since it gives a lower variance estimator.

The resulting policy gradient extends the DDPG style policy gradient to any tractable stochastic policy.

Algorithm 1 alternates between collecting transitions with the current policy into a replay pool and taking gradient steps on the two Q-functions, the policy and the temperature, followed by target weight updates. A single Q-function was enough to learn a 21-dimensional Humanoid, but the authors found two Q-functions speed up training, especially on harder tasks.

Replacing a fixed temperature with an entropy constraint

The right temperature has to be found for each task, because the magnitude of the reward differs across tasks and grows or shrinks as the policy improves. A fixed target entropy is too rigid, since the policy should explore more in uncertain states and stay near deterministic where one action is clearly better, so the constraint is placed on average entropy.

The constrained problem maximizes expected return subject to a minimum expected entropy \(\bar{H}\) at each time step. Solving backward through time turns each step into a dual problem, with a dual variable \(\alpha_t\) that takes the role of the temperature, and strong duality is used for the linear objective with convex entropy constraint.

The optimal dual variable at each step is the minimizer of an expected objective over the policy's log-probability and \(\bar{H}\).

In practice the temperature is learned by a single gradient step per iteration on \(J(\alpha)=\mathbb{E}_{a_t\sim\pi_t}[-\alpha\log\pi_t(a_t|s_t)-\alpha\bar{H}]\), which approximates dual gradient descent. The convergence argument for truncated dual steps assumes convexity, which neural network function approximators do not satisfy, and the authors found the approach works in practice regardless.

Simulated benchmark results

The benchmarks are OpenAI gym continuous control tasks and the rllab Humanoid, with DDPG, PPO, TD3 and soft Q-learning as baselines. Each algorithm was trained with five random seeds and evaluated once every 1000 environment steps, and the curves show the mean with a shaded minimum-to-maximum band. SAC appears both with a fixed temperature tuned per environment and with the learned temperature.

The evaluation protocol differs by method: SAC is evaluated with the mean action, and soft Q-learning with its exploration noise.

In these runs DDPG made no progress on Ant-v1, Humanoid-v1 and the rllab Humanoid, which the authors say agrees with earlier reports. Soft Q-learning learns all the tasks, but more slowly than SAC and with worse asymptotic performance.

The learned temperature works across environments without per-environment tuning, which the authors use to argue that the tuning is effectively unnecessary. Across random seeds SAC gives similar performance, in contrast with the instability the authors see in other off-policy algorithms. The reported spread is a minimum-to-maximum band over five trials, not a confidence interval, so the stability claim rests on that band.

The authors also say the SAC numbers compare favorably with results from prior work, but those were not produced in this controlled setup.

Minitaur walking from real-world experience

The Minitaur has eight direct-drive actuators, with two per leg that move the leg in the sagittal plane. The action is the swing angle and extension of each leg, mapped to motor positions tracked by a PD controller. The state stacks the current and past five observations and actions, because latencies and contacts make the dynamics non-Markovian.

The policy and value functions are feed-forward networks with two hidden layers of 256 neurons each.

A workstation runs the training while the on-board Nvidia Jetson TX2 collects trajectories, and the two exchange data and policies over Ethernet. Human intervention is limited to resetting the robot after falls or large drifts.

Walking was learned from 160k environment steps, about 400 episodes with a maximum length of 500 steps, which is roughly 2 hours of real-world training. The policy was trained only on flat terrain, yet it walked up and down a slope, pushed through an obstacle made of wooden blocks and stepped down stairs without further learning. The authors attribute this robustness to the entropy maximization used during training.

The authors describe this as the first deep RL result for underactuated quadrupedal locomotion learned directly in the real world without simulation or pretraining.

Valve rotation with a dexterous hand

The hand is a three-finger dclaw with 9 DoFs, each driven by a Dynamixel servo-motor, and the policy sends target joint angles to an on-board PID controller. The image network has two convolutional layers with four 3x3 filters and max pooling, followed by two fully connected layers of 256 units. The image observations are 32x32 pixels, and the policy also receives finger joint positions and velocities.

Learning from raw RGB images took 300k environment interaction steps, about 20 hours including resets and network training. When the valve position is fed to the networks instead of images, learning took about 3 hours. The authors compare this with a PPO run on the same task reported at 7.4 hours by Zhu et al., which is a reported figure rather than a run in this setup.

The metric is the median distance of the valve from the target angle, in radians, over a rollout.

The image and position settings differ in their observations and in how the valve is reset, since the position-based run resets the valve to point away from the target at the start.

Limits of the evidence

The convergence guarantee for the temperature update assumes convexity, which the neural network setting does not satisfy, so the temperature update rests on practical experience rather than proof. The policy iteration and soft Bellman results assume a finite action set, and the theory is developed in the tabular setting before the function approximation step.

The earlier SAC formulation with a fixed temperature can be brittle to the temperature hyperparameter, which is the reason for the automatic tuning.

The robot results are single learning runs, and the text reports no baseline on the Minitaur or the dexterous hand. The image and position variants of the valve task differ in inputs and reset conditions, and the PPO time is a reported figure, so these numbers are not a matched comparison. The benchmark comparison uses five seeds per algorithm, and the fixed-temperature SAC was tuned separately for each environment.

Paper info

Authors
Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, Sergey Levine
Venue
arXiv · Preprint
First published
2018-12-13
Added
2026-11-12
Updated
2019-1-29
Version
v2
arXiv
1812.05905
Category
cs.LG · cs.AI · cs.RO · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, Sergey Levine (2018). Soft Actor-Critic Algorithms and Applications. arXiv:1812.05905v2. https://arxiv.org/abs/1812.05905v2

BibTeX
@misc{haarnoja2018soft,
  title = {{Soft Actor-Critic Algorithms and Applications}},
  author = {Tuomas Haarnoja and Aurick Zhou and Kristian Hartikainen and George Tucker and Sehoon Ha and Jie Tan and Vikash Kumar and Henry Zhu and Abhishek Gupta and Pieter Abbeel and Sergey Levine},
  year = {2018},
  eprint = {1812.05905},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.05905v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up