Functions and operators

θ←θ−η∇θL\theta \leftarrow \theta - \eta \nabla_\theta \mathcal{L} Assignment arrow

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

In ML papers

a←ba \leftarrow b means "set aa to bb", as in code. It appears in algorithm boxes and update rules: θ←θ−η∇θL\theta \leftarrow \theta - \eta \nabla_\theta \mathcal{L} overwrites the parameters with their updated values. Unlike ==, it is not a claim that the two sides are equal.

How to type it

LaTeXShows
\leftarrow←\leftarrow
\gets←\gets

A worked example

t←t+1t \leftarrow t + 1

Increment a counter: nonsense as an equation, normal as an assignment.

Equations that use it

Related

η\etaEta∇θL\nabla_\theta \mathcal{L}Nabla (gradient)f(x):=x2f(x) := x^2Defined as (:=)f:Rn→Rmf: \mathbb{R}^n \to \mathbb{R}^mArrow (maps to)

Decode this example →