Papers · Reinforcement learning and alignment · 2015

Continuous control with deep reinforcement learning

Timothy P. Lillicrap, Jonathan J. Hunt, Alexander Pritzel and others

The notation of the DDPG paper, explained: its 10 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.

Read the paper on arXiv

Read from arXiv's HTML version: 10 displayed equations and 92 pieces of inline math. 40 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.

  1. (1)
    Qπ(st,at)=Eri≥t,si>t∼E,ai>t∼π[Rt∣st,at]Q^{\pi}(s_{t},a_{t})=\E_{r_{i\geq t},s_{i>t}\sim E,a_{i>t}\sim\pi}\left[R_{t}|s_{t},a_{t}\right]
    Decode →
  2. (2)
    Qπ(st,at)=Ert,st+1∼E[r(st,at)+γEat+1∼π[Qπ(st+1,at+1)]]Q^{\pi}(s_{t},a_{t})=\E_{r_{t},s_{t+1}\sim E}\left[r(s_{t},a_{t})+\gamma\E_{a_{t+1}\sim\pi}\left[Q^{\pi}(s_{t+1},a_{t+1})\right]\right]
    Decode →
  3. (3)
    Qμ(st,at)=Ert,st+1∼E[r(st,at)+γQμ(st+1,μ(st+1))]Q^{\mu}(s_{t},a_{t})=\E_{r_{t},s_{t+1}\sim E}\left[r(s_{t},a_{t})+\gamma Q^{\mu}(s_{t+1},\mu(s_{t+1}))\right]
    Decode →
  4. (4)
    L(θQ)=Est∼ρβ,at∼β,rt∼E[(Q(st,at∣θQ)−yt)2]L(\theta^{Q})=\E_{s_{t}\sim\rho^{\beta},a_{t}\sim\beta,r_{t}\sim E}\left[\left(Q(s_{t},a_{t}|\theta^{Q})-y_{t}\right)^{2}\right]
    Decode →
  5. (5)
    yt=r(st,at)+γQ(st+1,μ(st+1)∣θQ).y_{t}=r(s_{t},a_{t})+\gamma Q(s_{t+1},\mu(s_{t+1})|\theta^{Q}).
    Decode →
  6. (6)
    ∇θμJ≈Est∼ρβ[∇θμQ(s,a∣θQ)∣s=st,a=μ(st∣θμ)]=Est∼ρβ[∇aQ(s,a∣θQ)∣s=st,a=μ(st)∇θμμ(s∣θμ)∣s=st]\begin{split}\nabla_{\theta^{\mu}}J&\approx\E_{s_{t}\sim\rho^{\beta}}\left[\nabla_{\theta^{\mu}}Q(s,a|\theta^{Q})|_{s=s_{t},a=\mu(s_{t}|\theta^{\mu})}\right]\\ &=\E_{s_{t}\sim\rho^{\beta}}\left[\nabla_{a}Q(s,a|\theta^{Q})|_{s=s_{t},a=\mu(s_{t})}\nabla_{\theta_{\mu}}\mu(s|\theta^{\mu})|_{s=s_{t}}\right]\end{split}
    Decode →
  7. (7)
    μ′(st)=μ(st∣θtμ)+N\mu^{\prime}(s_{t})=\mu(s_{t}|\theta^{\mu}_{t})+\mathcal{N}
    Decode →
  8. ∇θμJ≈1N∑i∇aQ(s,a∣θQ)∣s=si,a=μ(si)∇θμμ(s∣θμ)∣si\nabla_{\theta^{\mu}}J\approx\frac{1}{N}\sum_{i}\nabla_{a}Q(s,a|\theta^{Q})|_{s=s_{i},a=\mu(s_{i})}\nabla_{\theta^{\mu}}\mu(s|\theta^{\mu})|_{s_{i}}
    Decode →
  9. θQ′←τθQ+(1−τ)θQ′\theta^{Q^{\prime}}\leftarrow\tau\theta^{Q}+(1-\tau)\theta^{Q^{\prime}}
    Decode →
  10. θμ′←τθμ+(1−τ)θμ′\theta^{\mu^{\prime}}\leftarrow\tau\theta^{\mu}+(1-\tau)\theta^{\mu^{\prime}}
    Decode →

Famous equations in this paper

Symbols, by category

Most used first. The examples are written as the paper writes them.

Notation conventions

  1. sts_{t}, ata_{t}, ri≥tr_{i\geq t}

    Subscript (index or label) 119 uses

    A subscript picks an element (xᵢ), a time step (h_t), a named copy (W_q), or the parameters (p_θ).

  2. QπQ^{\pi}, QμQ^{\mu}, θQ\theta^{Q}

    Superscript (power or label) 62 uses

    Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).

  3. LL, yy, NN

    Italic letters (variables) 39 uses

    A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).

  4. P(A)\mathcal{P(A)}, R\mathcal{R}

    Calligraphic letters 2 uses

    A script capital usually names a set, a space, a distribution or a loss.

  5. γ(i−t)\gamma^{(i-t)}

    Superscript in parentheses 1 use

    An index in a superscript: x⁽ⁱ⁾ is the i-th training example, W⁽ˡ⁾ the weights of layer l. Not a power.

  6. wdwd

    Multi-letter names 1 use

    A run of italic letters like pos or model is usually one name, not a product of single letters.

Greek letters

  1. μ\mu

    Mu 43 uses

    A mean: the average of a distribution, a batch, or a layer’s features.

  2. θ\theta

    Theta 43 uses

    The model’s parameters: all of its weights and biases, as one collection.

  3. π\pi

    Pi 12 uses

    A policy π(a | s) in reinforcement learning, or the constant 3.14159…

  4. τ\tau

    Tau 8 uses

    A temperature that sharpens or flattens a softmax; in RL, a trajectory.

  5. γ\gamma

    Gamma 7 uses

    The discount factor in reinforcement learning, or the learned scale in normalization layers.

  6. β\beta

    Beta 6 uses

    Usually a decay rate (Adam’s β₁, β₂), a shift parameter in normalization, or a weight on a loss term.

  7. ρ\rho

    Rho 5 uses

    A correlation coefficient, a decay rate (RMSprop, Adadelta), or an importance ratio in RL.

  8. σ\sigma

    Sigma (lowercase) 1 use

    Either the sigmoid function σ(z) = 1/(1+e⁻ᶻ) or a standard deviation. The context decides.

Vectors and matrices

  1. ×\times

    Times (cross) 4 uses

    Usually the “by” in a shape (n × d); also plain multiplication or a cross product.

  2. Absolute value (bars) 2 uses

    Absolute value of a number; for a set, its size; for a matrix, sometimes its determinant.

Calculus and gradients

  1. μ′\mu^{\prime}, Q′Q^{\prime}, θ′\theta^{\prime}

    Prime 22 uses

    Either a derivative, f′(x), or simply "another one": x′ is a second sample, s′ the next state.

  2. ∇θμ\nabla_{\theta^{\mu}}, ∇a\nabla_{a}, ∇θμ\nabla_{\theta_{\mu}}

    Nabla (gradient) 7 uses

    The gradient: the vector of partial derivatives. ∇_θ L is how the loss changes with each parameter.

  3. ∂\partial

    Partial derivative 2 uses

    A partial derivative: how one quantity changes when one input changes and the others are held fixed.

Probability and statistics

  1. ∣|

    Given (conditional bar) 22 uses

    “Given”: p(y | x) is the probability of y given that x is known.

  2. ∼\sim

    Distributed as (tilde) 12 uses

    “Is drawn from” or “is distributed as”: x ~ p means x is a sample from the distribution p.

  3. Eri≥t,si>t∼E,ai>t∼π\E_{r_{i\geq t},s_{i>t}\sim E,a_{i>t}\sim\pi}, Ert,st+1∼E\E_{r_{t},s_{t+1}\sim E}, Eat+1∼π\E_{a_{t+1}\sim\pi}

    Expectation 8 uses

    The expected value: the average of what is inside, weighted by the probabilities in the subscript.

  4. N\mathcal{N}

    Normal distribution 5 uses

    The normal (Gaussian) distribution with the given mean and variance.

  5. pp

    Probability p(x) 5 uses

    A probability or probability density; p is usually the true or model distribution, q an approximation.

Functions and operators

  1. ←\leftarrow

    Assignment arrow 6 uses

    Assignment in an algorithm: replace the variable on the left with the value on the right.

  2. 1N\frac{1}{N}, 1f\frac{1}{\sqrt{f}}

    Fraction 4 uses

    Division: the top divided by the bottom.

  3. ∑i\sum_{i}, ∑i=tT\sum_{i=t}^{T}

    Summation 3 uses

    Add up the expression for every value of the index, from the bottom limit to the top.

  4. →\to, ::

    Arrow (maps to) 2 uses

    Maps to (f: X → Y), tends to (x → 0), or implies (⇒).

  5. f\sqrt{f}

    Square root 2 uses

    The square root. In attention, dividing by √d_k keeps dot products at a sensible scale.

  6. arg max⁡a\argmax_{a}

    Argmax 1 use

    The input that makes the function largest, not the largest value itself.

  7. tanh⁡\tanh

    Hyperbolic tangent 1 use

    An S-shaped activation squashing any number into (−1, 1).

Reinforcement learning

  1. ss, aa

    State s and action a 122 uses

    sₜ is the state at step t, aₜ the action taken there; s′ is the next state.

  2. QQ

    Action-value function Q 44 uses

    Q(s, a) is the expected total reward from taking action a in state s, then following the policy.

  3. RR, rr

    Reward r 26 uses

    rₜ is the reward received at step t; R(s, a) is the reward function that hands it out.

  4. S\mathcal{S}, A\mathcal{A}

    State and action spaces 5 uses

    𝒮 is the set of all states and 𝒜 the set of all actions in a Markov decision process.

  5. JJ

    Objective J 4 uses

    J(θ) is the objective: the quantity to maximize, such as the expected return of a policy.

Sets, shapes and definitions

  1. ≥\geq, >>, ≪\ll

    Inequalities 4 uses

    Less than / greater than (or equal). ≪ means “much smaller than”.

  2. ≈\approx

    Approximately equal 4 uses

    Approximately equal: often a Monte Carlo estimate or a Taylor approximation.

  3. ∈\in

    Element of 3 uses

    “Is in” or “belongs to”: x ∈ S says x is a member of the set S.

  4. {−k,0,k}\left\{-k,0,k\right\}

    Set braces 1 use

    A set: a collection of items. {x | condition} is every x that satisfies the condition.

2 things the catalog has no entry for yet
  • dim⁡\dim \dim 6
  • \bf \bf 3

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