Skip to content
The Daily Triptych177 / 365
How temperature weights the soft objective

Under the maximum-entropy objective the expected return term keeps unit weight while the entropy term scales with temperature α. Raising α increasingly favours stochastic policies; lowering α approaches ordinary return maximisation.

II · THE IDEA · ARTIFICIAL INTELLIGENCE

Soft Actor-Critic with Maximum Entropy

RL · Maximum entropy RL · Off-policy actor-critic · Continuous control

▶ Listen · narrated

Chasing reward alone often yields brittle policies. Soft Actor-Critic also pays the actor to stay uncertain, and that entropy bonus reshapes exploration and sample efficiency on continuous control tasks.

At a glance

What it is
An off-policy actor-critic algorithm with a stochastic actor and a maximum-entropy objective
Objective
Maximise expected return plus expected policy entropy, scaled by a temperature
Critics
Twin Q-functions trained to reduce overestimation bias in the soft Bellman update
Actor update
Reparameterised stochastic policy gradient through the soft Q-function
Reported gains
Strong sample efficiency and robustness on continuous control benchmarks

Think of a robot arm learning to reach a target. If it is scored only on how close it gets, it may repeat the first workable motion forever and never discover a smoother path. Soft Actor-Critic also scores the arm for keeping its choices varied. While it is learning, a mixed set of motions is treated as partly good in itself, so the arm keeps trying alternatives instead of freezing on one habit.

In plain terms, SAC learns two things at once: a critic that judges actions under this “reward plus variety” goal, and an actor that proposes actions. Experience is stored and reused. Two critics cross-check each other so judgments do not become wildly optimistic. A knob called temperature decides how much variety is worth relative to raw success. The result is a learning process that usually needs fewer trials than methods that chase success alone and then add noise as an afterthought.

Look closer

  1. Entropy is part of the objective, not a side trick

    In the maximum-entropy formulation the policy is scored on expected return and on the entropy of the action distribution at visited states. A temperature parameter scales the entropy term. Large temperature favours broad, exploratory behaviour; small temperature recovers something closer to ordinary return maximisation. The entropy bonus is therefore not an exploration heuristic bolted on afterwards; it is inside the quantity the actor and critics are optimising.

  2. Two Q-functions and a soft Bellman backup

    SAC maintains two soft Q-networks and forms the backup from the more conservative of the two estimates. That design targets the positive bias that appears when a single maximised Q-function is used for policy improvement. Targets are computed with a soft value that subtracts a log-probability term, so high-probability actions are not over-valued purely for being likely under the current policy.

  3. Reparameterisation keeps the actor off-policy and low-variance

    The stochastic actor is trained with gradients that flow through reparameterised samples rather than through a high-variance likelihood-ratio estimator alone. Because learning is off-policy, those updates draw on a replay buffer of past transitions. The combination is what lets a maximum-entropy stochastic policy remain sample-efficient instead of discarding experience after each on-policy batch.

The story

Soft Actor-Critic sits in the family of off-policy actor-critic methods for continuous action spaces, but it changes the quantity being optimised. Instead of seeking a policy that maximises expected return alone, it seeks a policy that maximises expected return plus expected entropy. Actions are drawn from a stochastic actor; the critics estimate a soft Q-value consistent with that entropy-augmented objective.

The practical effect of the entropy term is to keep the policy from collapsing too early onto a narrow set of actions. In continuous control, where the action space is large and local optima are common, a deterministic or nearly deterministic actor can lock onto a brittle strategy after relatively little experience. An entropy-regularised actor is rewarded for remaining spread out where that spread still yields return, which encourages wider state-action coverage during learning. The temperature that multiplies entropy sets how expensive certainty is: turn it down and the method behaves more like a conventional return maximiser; turn it up and stochasticity is valued more highly.

Training proceeds from a replay buffer. Transitions collected under the current or past policies are reused, which is the usual off-policy efficiency argument, now applied to a maximum-entropy objective. Two Q-function approximators are learned in parallel. When forming the soft Bellman target, the algorithm takes the minimum of the two Q-estimates before subtracting a log-probability term associated with the policy. That minimum operation is there to limit overestimation: a single Q-network that is maximised during policy improvement tends to be optimistic in poorly sampled regions, and the twin-critic pattern reduces how much of that optimism is written back into the targets.

The actor is updated by improving the policy against these soft Q-values. Because the actor is stochastic, the update must account for the distribution over actions. SAC uses a reparameterisation so that action samples are differentiable functions of policy parameters and noise, allowing low-variance gradients to pass through the critic into the actor. The entropy contribution appears in this step as well: increasing probability mass on actions the critic likes is balanced against the desire not to become a delta mass too quickly.

Later development of the method treated the temperature itself as something that can be adjusted rather than fixed by hand, so that a target entropy level can be pursued while the reward scale varies across tasks. The core picture remains the same. A stochastic actor, soft value backups, twin critics, and off-policy replay together implement maximum-entropy reinforcement learning at the scale of deep function approximators.

On standard continuous control benchmarks the approach was reported to reach strong asymptotic performance with comparatively few environment steps, and to do so across a wider range of hyperparameter settings than several strong prior actor-critic and policy-gradient baselines. The claim is not that entropy solves exploration in every environment, but that building entropy into the objective yields a learning dynamics that is both sample-efficient and comparatively forgiving when the temperature, step sizes and network details are imperfectly tuned.

Why it mattered then

When Soft Actor-Critic appeared, deep continuous control was caught between sample-hungry on-policy methods and off-policy actor-critics that could be unstable or hypersensitive to settings. Maximum-entropy reinforcement learning offered a principled account of stochastic policies and exploration, yet turning that account into a practical deep algorithm still required careful choices about critics, backups and gradients. SAC assembled those choices—off-policy replay, twin soft Q-functions, reparameterised actor updates, and an explicit temperature—into a method that performed strongly on the continuous control suites then used as shared yardsticks. It mattered in its moment because it showed that entropy regularisation could be more than a theoretical preference: it could be the ingredient that made an off-policy stochastic actor both efficient and comparatively robust.

Why it matters now

Entropy-regularised actor-critics remain a default starting point for continuous control and for many robotics-style tasks where actions are real-valued and data are expensive. The same structural ideas—stochastic actors, soft value targets, twin critics, and automatic temperature adjustment—reappear in later algorithms and in practical training stacks. Even when a project does not run SAC unchanged, the lesson travels: exploration can be expressed inside the objective rather than only as external noise, and stability often comes from how backups and policy gradients are shaped, not only from larger networks. For anyone training policies on physical or simulated continuous systems, the maximum-entropy off-policy pattern is still a reference design against which newer methods are judged.

The surprising detail

The entropy term does not merely sprinkle noise on the actions. Because it enters the soft Bellman backup, the critics themselves learn values that already credit policies for being stochastic. The actor is then improved against values that contain that credit, so exploration pressure is shared across both sides of the actor-critic loop rather than confined to the sampling procedure. That coupling is easy to miss if entropy is pictured only as something added to the policy loss.

What is disputed

Benchmark superiority and robustness claims come from the evaluations reported in the source papers on their chosen continuous control suites and baselines. They should be read as empirical results under those protocols, not as a guarantee on every new domain, reward scale or function-approximator stack. Temperature scheduling and automatic tuning also change behaviour; results for fixed and adapted temperature are not interchangeable without care.

Remember this

SAC maximises return plus entropy with an off-policy stochastic actor and twin soft Q-functions—exploration sits inside the objective, not only in the noise.

Test yourself

If you removed the entropy term from SAC’s objective but kept the stochastic actor, twin Q-functions and replay buffer, which intended behaviours would you most directly lose, and why would twin Q-functions alone not replace them?

Go deeper

Image: Original diagram, The Daily Triptych. Licence: Original work. Source.

← Back to day 177