Papers · Reinforcement learning and alignment · 2018
Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor
The notation of the SAC paper, explained: its 21 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.
Reading this paper
Soft actor-critic: an off-policy reinforcement-learning method that maximizes reward plus the entropy of the policy, which keeps exploration going and makes training stable.
is the temperature, weighing the entropy against the reward. is the distribution of states and actions the policy visits, and the replay buffer. Subscripts name the parameters of each network: , , ; the barred is a slowly updated copy of , the target network.
Read from arXiv's HTML version: 21 displayed equations and 91 pieces of inline math. 58 symbols and constructs from the catalog, read as reinforcement learning.
The paper's displayed equations
Open any of them in the decoder for a symbol-by-symbol reading.
Famous equations in this paper
Symbols, by category
Most used first. The examples are written as the paper writes them.
Notation conventions
- , ,
Subscript (index or label) 356 uses
A subscript picks an element (xᵢ), a time step (h_t), a named copy (W_q), or the parameters (p_θ).
- , ,
Superscript (power or label) 55 uses
Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).
- , ,
Italic letters (variables) 28 uses
A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
Star (optimal) 12 uses
As a superscript, the optimal value: θ* is the best θ. Between two terms, convolution.
- ,
Calligraphic letters 10 uses
A script capital usually names a set, a space, a distribution or a loss.
- ,
Hat (estimate) 8 uses
A hat marks an estimate or prediction: ŷ is the model’s guess for y.
Dataset (𝒟) 7 uses
The dataset: usually N input-label pairs.
Bar (mean) 7 uses
A bar usually marks an average: x̄ is the mean of the x values.
Greek letters
- ,
Pi 146 uses
A policy π(a | s) in reinforcement learning, or the constant 3.14159…
Phi 29 uses
The parameters of a second model (often the encoder q_φ), or a feature map φ(x).
Psi 22 uses
The parameters of a third network (after θ and φ), a feature map, or the digamma function ψ(x).
Theta 21 uses
The model’s parameters: all of its weights and biases, as one collection.
Tau 13 uses
A temperature that sharpens or flattens a softmax; in RL, a trajectory.
Gamma 9 uses
The discount factor in reinforcement learning, or the learned scale in normalization layers.
Rho 7 uses
A correlation coefficient, a decay rate (RMSprop, Adadelta), or an importance ratio in RL.
Epsilon 7 uses
A tiny constant for numerical safety (10⁻⁸ in Adam), or noise ε ~ 𝒩(0, I).
Alpha 5 uses
Often a learning rate or step size; also attention weights αᵢⱼ or a mixing weight.
Mu 3 uses
A mean: the average of a distribution, a batch, or a layer’s features.
Lambda 3 uses
Usually the strength of a regularization term; also eigenvalues.
Vectors and matrices
- , ,
Bold lowercase (vector) 222 uses
A bold lowercase letter is a vector: a list of numbers.
Centre dot 16 uses
A dot product between vectors, plain multiplication between numbers, or an empty slot f(·).
Times (cross) 11 uses
Usually the “by” in a shape (n × d); also plain multiplication or a cross product.
Absolute value (bars) 8 uses
Absolute value of a number; for a set, its size; for a matrix, sometimes its determinant.
Inverse 2 uses
The matrix inverse, A⁻¹A = I; for a function, its inverse function; for a number, 1/x.
Determinant 1 use
A number from a square matrix: how much it scales volume. Zero means it is not invertible.
Diag 1 use
Build a diagonal matrix from a vector, or pull out the diagonal of a matrix.
Calculus and gradients
- , ,
Nabla (gradient) 12 uses
The gradient: the vector of partial derivatives. ∇_θ L is how the loss changes with each parameter.
Infinity 12 uses
Infinity; as a norm subscript, ‖x‖_∞ is the largest absolute entry.
Prime 6 uses
Either a derivative, f′(x), or simply "another one": x′ is a second sample, s′ the next state.
Derivative (d/dx) 3 uses
An ordinary derivative: the rate of change of one quantity with respect to one variable.
Probability and statistics
Given (conditional bar) 32 uses
“Given”: p(y | x) is the probability of y given that x is known.
Distributed as (tilde) 25 uses
“Is drawn from” or “is distributed as”: x ~ p means x is a sample from the distribution p.
Logarithm 16 uses
A logarithm, almost always the natural log (base e) in ML papers.
Probability p(x) 10 uses
A probability or probability density; p is usually the true or model distribution, q an approximation.
Semicolon (parameterized by) 5 uses
In p(x; θ), the semicolon separates the variable x from fixed parameters θ.
KL divergence 3 uses
How different distribution q is from p. Zero when they match; not symmetric.
Exponential 3 uses
The exponential function eˣ, with e ≈ 2.718. Always positive.
Normal distribution 1 use
The normal (Gaussian) distribution with the given mean and variance.
Functions and operators
- ,
Arrow (maps to) 13 uses
Maps to (f: X → Y), tends to (x → 0), or implies (⇒).
Assignment arrow 6 uses
Assignment in an algorithm: replace the variable on the left with the value on the right.
- , ,
Summation 5 uses
Add up the expression for every value of the index, from the bottom limit to the top.
Fraction 5 uses
Division: the top divided by the bottom.
Hyperbolic tangent 5 uses
An S-shaped activation squashing any number into (−1, 1).
- , ,
Max and min 3 uses
The largest (or smallest) value, over the arguments or over the range in the subscript.
Argmin 2 uses
The input that makes the function smallest: θ* = argmin L(θ) is the best parameter setting.
Reinforcement learning
Action-value function Q 52 uses
Q(s, a) is the expected total reward from taking action a in state s, then following the policy.
- ,
State and action spaces 35 uses
𝒮 is the set of all states and 𝒜 the set of all actions in a Markov decision process.
Objective J 19 uses
J(θ) is the objective: the quantity to maximize, such as the expected return of a policy.
Reward r 16 uses
rₜ is the reward received at step t; R(s, a) is the reward function that hands it out.
Value function V 16 uses
V(s) is how much total discounted reward to expect from state s onward.
Sets, shapes and definitions
Element of 24 uses
“Is in” or “belongs to”: x ∈ S says x is a member of the set S.
- , ,
Inequalities 18 uses
Less than / greater than (or equal). ≪ means “much smaller than”.
Real numbers (ℝ) and shapes 3 uses
The real numbers. ℝⁿˣᵈ is the set of n × d arrays of reals: it states a shape.
Defined as (≜) 2 uses
“Is defined as”: the same as :=. Introduces notation; it is not a claim to check.
Set braces 2 uses
A set: a collection of items. {x | condition} is every x that satisfies the condition.
Union and intersection 1 use
Union ∪: in either set. Intersection ∩: in both.
Not equal 1 use
The two sides are different.
Tensor shapes 1 use
ℝ with a superscript of sizes joined by × declares an array’s shape: ℝ^{B×T×d} is a 3-axis tensor.
3 things the catalog has no entry for yet
-
\mathbb{E}20 -
D_{KL}3 -
\arg1
Formulas from arXiv's HTML version of the paper, © their authors; the explanations are this site's. Title and authors as arXiv lists them.
More reinforcement learning and alignment papers
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model (DPO, 2023)
- DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models (GRPO, 2024)
- Trust Region Policy Optimization (TRPO, 2015)
- High-Dimensional Continuous Control Using Generalized Advantage Estimation (GAE, 2015)
- Continuous control with deep reinforcement learning (DDPG, 2015)