Papers · Reinforcement learning and alignment · 2015
Trust Region Policy Optimization
The notation of the TRPO paper, explained: its 69 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.
Read from arXiv's HTML version: 69 displayed equations and 225 pieces of inline math. 65 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.
- Decode →
- Decode →
- (1)Decode →
- Decode →
- (2)Decode →
- (3)Decode →
- (4)Decode →
- (5)Decode →
- (6)Decode →
- (7)Decode →
- (8)Decode →
- (9)Decode →
- Decode →
- (10)Decode →
- Decode →
- (11)Decode →
- Decode →
- Decode →
- (12)Decode →
- Decode →
- (13)Decode →
- Decode →
- (14)Decode →
- Decode →
- (15)Decode →
- (16)Decode →
- (17)Decode →
- Decode →
- (18)Decode →
- Decode →
- Decode →
- (20)Decode →
- (21)Decode →
- (22)Decode →
- (23)Decode →
- (24)Decode →
- (25)Decode →
- (26)Decode →
- (27)Decode →
- (28)Decode →
- (29)Decode →
- (30)Decode →
- (31)Decode →
- (32)Decode →
- (33)Decode →
- (34)Decode →
- (35)Decode →
- (36)Decode →
- (37)Decode →
- (38)Decode →
- (39)Decode →
- (40)Decode →
- (41)Decode →
- (42)Decode →
- (43)Decode →
- (44)Decode →
- (45)Decode →
- (46)Decode →
- (47)Decode →
- (48)Decode →
- (49)Decode →
- (50)Decode →
- (51)Decode →
- (52)Decode →
- (53)Decode →
- (54)Decode →
- (55)Decode →
- (56)Decode →
- (57)Decode →
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) 623 uses
A subscript picks an element (xᵢ), a time step (h_t), a named copy (W_q), or the parameters (p_θ).
- , ,
Italic letters (variables) 199 uses
A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
- , ,
Tilde accent 146 uses
A modified version of the variable: noisy, corrupted, proposed or intermediate.
- , ,
Superscript (power or label) 60 uses
Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).
- ,
Bar (mean) 43 uses
A bar usually marks an average: x̄ is the mean of the x values.
Dots (ellipsis) 24 uses
“And so on”: continue the pattern.
Hat (estimate) 3 uses
A hat marks an estimate or prediction: ŷ is the model’s guess for y.
Superscript in parentheses 2 uses
An index in a superscript: x⁽ⁱ⁾ is the i-th training example, W⁽ˡ⁾ the weights of layer l. Not a power.
Loss (ℒ) 2 uses
The loss: the number training tries to make small. Also written L, J(θ) or ℓ.
Calligraphic letters 2 uses
A script capital usually names a set, a space, a distribution or a loss.
Multi-letter names 2 uses
A run of italic letters like pos or model is usually one name, not a product of single letters.
Greek letters
Pi 360 uses
A policy π(a | s) in reinforcement learning, or the constant 3.14159…
Theta 186 uses
The model’s parameters: all of its weights and biases, as one collection.
Gamma 76 uses
The discount factor in reinforcement learning, or the learned scale in normalization layers.
Eta 54 uses
The learning rate in most gradient-descent papers.
Rho 54 uses
A correlation coefficient, a decay rate (RMSprop, Adadelta), or an importance ratio in RL.
Alpha 49 uses
Often a learning rate or step size; also attention weights αᵢⱼ or a mixing weight.
Delta (capital) 30 uses
A change or update: ΔW is the change to the weights W.
Mu 30 uses
A mean: the average of a distribution, a batch, or a layer’s features.
Epsilon 16 uses
A tiny constant for numerical safety (10⁻⁸ in Adam), or noise ε ~ 𝒩(0, I).
Tau 16 uses
A temperature that sharpens or flattens a softmax; in RL, a trajectory.
Delta (lowercase) 13 uses
A small change, or the error signal δ = ∂L/∂z in backpropagation.
Beta 8 uses
Usually a decay rate (Adam’s β₁, β₂), a shift parameter in normalization, or a weight on a loss term.
Lambda 2 uses
Usually the strength of a regularization term; also eigenvalues.
Vectors and matrices
Centre dot 35 uses
A dot product between vectors, plain multiplication between numbers, or an empty slot f(·).
- , ,
Absolute value (bars) 25 uses
Absolute value of a number; for a set, its size; for a matrix, sometimes its determinant.
- , ,
L1 norm 13 uses
The sum of the absolute values of the entries.
- , ,
Transpose 10 uses
Swap rows and columns. xᵀy is a dot product; xyᵀ is an outer product.
- , ,
Inverse 8 uses
The matrix inverse, A⁻¹A = I; for a function, its inverse function; for a number, 1/x.
- , ,
Norm 4 uses
The length (size) of a vector. With subscript 2 or none, the Euclidean length √(Σxᵢ²).
Times (cross) 3 uses
Usually the “by” in a shape (n × d); also plain multiplication or a cross product.
Calculus and gradients
- , ,
Prime 24 uses
Either a derivative, f′(x), or simply "another one": x′ is a second sample, s′ the next state.
Infinity 16 uses
Infinity; as a norm subscript, ‖x‖_∞ is the largest absolute entry.
- , ,
Partial derivative 13 uses
A partial derivative: how one quantity changes when one input changes and the others are held fixed.
Nabla (gradient) 5 uses
The gradient: the vector of partial derivatives. ∇_θ L is how the loss changes with each parameter.
Probability and statistics
Given (conditional bar) 95 uses
“Given”: p(y | x) is the probability of y given that x is known.
- , ,
Probability p(x) 66 uses
A probability or probability density; p is usually the true or model distribution, q an approximation.
Distributed as (tilde) 53 uses
“Is drawn from” or “is distributed as”: x ~ p means x is a sample from the distribution p.
- , ,
Expectation 48 uses
The expected value: the average of what is inside, weighted by the probabilities in the subscript.
KL divergence 15 uses
How different distribution q is from p. Zero when they match; not symmetric.
Logarithm 2 uses
A logarithm, almost always the natural log (base e) in ML papers.
Normal distribution 1 use
The normal (Gaussian) distribution with the given mean and variance.
Semicolon (parameterized by) 1 use
In p(x; θ), the semicolon separates the variable x from fixed parameters θ.
Exponential 1 use
The exponential function eˣ, with e ≈ 2.718. Always positive.
Functions and operators
- , ,
Summation 51 uses
Add up the expression for every value of the index, from the bottom limit to the top.
- , ,
Fraction 28 uses
Division: the top divided by the bottom.
- , ,
Max and min 27 uses
The largest (or smallest) value, over the arguments or over the range in the subscript.
- ,
Arrow (maps to) 13 uses
Maps to (f: X → Y), tends to (x → 0), or implies (⇒).
- , ,
Argmax 3 uses
The input that makes the function largest, not the largest value itself.
Big-O notation 2 uses
How a cost grows with size, ignoring constants: O(n²) means at most proportional to n² for large n.
Square root 1 use
The square root. In attention, dividing by √d_k keeps dot products at a sensible scale.
Reinforcement learning
- ,
State s and action a 489 uses
sₜ is the state at step t, aₜ the action taken there; s′ is the next state.
Advantage A 89 uses
A(s, a) = Q − V: how much better action a is than the policy’s average action in state s.
Return G 59 uses
Gₜ is the return: the total discounted reward from step t onward. The agent maximizes its expectation.
Reward r 26 uses
rₜ is the reward received at step t; R(s, a) is the reward function that hands it out.
Action-value function Q 20 uses
Q(s, a) is the expected total reward from taking action a in state s, then following the policy.
Value function V 18 uses
V(s) is how much total discounted reward to expect from state s onward.
- ,
State and action spaces 12 uses
𝒮 is the set of all states and 𝒜 the set of all actions in a Markov decision process.
Objective J 8 uses
J(θ) is the objective: the quantity to maximize, such as the expected return of a policy.
Sets, shapes and definitions
- , ,
Inequalities 55 uses
Less than / greater than (or equal). ≪ means “much smaller than”.
Approximately equal 6 uses
Approximately equal: often a Monte Carlo estimate or a Taylor approximation.
- , ,
Set braces 5 uses
A set: a collection of items. {x | condition} is every x that satisfies the condition.
Not equal 4 uses
The two sides are different.
Real numbers (ℝ) and shapes 3 uses
The real numbers. ℝⁿˣᵈ is the set of n × d arrays of reals: it states a shape.
Element of 2 uses
“Is in” or “belongs to”: x ∈ S says x is a member of the set S.
8 things the catalog has no entry for yet
-
\rm44 -
maximize9 -
\rvert6 -
\vcentcolon6 -
kl5 -
stdev2 -
NeuralNet1 -
\dim1
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)
- High-Dimensional Continuous Control Using Generalized Advantage Estimation (GAE, 2015)
- Continuous control with deep reinforcement learning (DDPG, 2015)
- Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor (SAC, 2018)