Papers · Architectures and attention · 2017
Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer
The notation of the Mixture of experts paper, explained: its 22 displayed equations, then every symbol it uses, grouped by category and shown the way the paper writes it.
Read from arXiv's HTML version: 22 displayed equations and 90 pieces of inline math. 30 symbols and constructs from the catalog.
The paper's displayed equations
Open any of them in the decoder for a symbol-by-symbol reading.
Symbols, by category
Most used first. The examples are written as the paper writes them.
Notation conventions
- , ,
Italic letters (variables) 504 uses
A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).
- , ,
Subscript (index or label) 132 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) 4 uses
Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).
Star (optimal) 4 uses
As a superscript, the optimal value: θ* is the best θ. Between two terms, convolution.
Superscript in parentheses 3 uses
An index in a superscript: x⁽ⁱ⁾ is the i-th training example, W⁽ˡ⁾ the weights of layer l. Not a power.
- ,
Multi-letter names 3 uses
A run of italic letters like pos or model is usually one name, not a product of single letters.
Dots (ellipsis) 1 use
“And so on”: continue the pattern.
Greek letters
Sigma (lowercase) 9 uses
Either the sigmoid function σ(z) = 1/(1+e⁻ᶻ) or a standard deviation. The context decides.
Phi 2 uses
The parameters of a second model (often the encoder q_φ), or a feature map φ(x).
Beta 1 use
Usually a decay rate (Adam’s β₁, β₂), a shift parameter in normalization, or a weight on a loss term.
Vectors and matrices
Centre dot 16 uses
A dot product between vectors, plain multiplication between numbers, or an empty slot f(·).
- ,
Q, K, V (query, key, value) 9 uses
In attention: queries Q, keys K and values V, each a matrix with one row per token.
- ,
Absolute value (bars) 3 uses
Absolute value of a number; for a set, its size; for a matrix, sometimes its determinant.
Times (cross) 2 uses
Usually the “by” in a shape (n × d); also plain multiplication or a cross product.
Calculus and gradients
Infinity 2 uses
Infinity; as a norm subscript, ‖x‖_∞ is the largest absolute entry.
Probability and statistics
- , ,
Probability p(x) 45 uses
A probability or probability density; p is usually the true or model distribution, q an approximation.
Entropy and cross-entropy 4 uses
H(p) is the entropy of a distribution: its average surprise. H(p, q) is the cross-entropy.
Functions and operators
Arrow (maps to) 23 uses
Maps to (f: X → Y), tends to (x → 0), or implies (⇒).
- , ,
Summation 11 uses
Add up the expression for every value of the index, from the bottom limit to the top.
- , ,
Fraction 7 uses
Division: the top divided by the bottom.
Softmax 4 uses
Turns a vector of scores into probabilities: exponentiate each, then divide by the total.
Cases (piecewise) 4 uses
A piecewise definition: the value on each line applies when that line’s condition holds.
Softplus 3 uses
log(1 + eˣ): a smooth ReLU whose output is always positive.
Hyperbolic tangent 3 uses
An S-shaped activation squashing any number into (−1, 1).
Max and min 1 use
The largest (or smallest) value, over the arguments or over the range in the subscript.
Reinforcement learning
Value function V 2 uses
V(s) is how much total discounted reward to expect from state s onward.
State s and action a 2 uses
sₜ is the state at step t, aₜ the action taken there; s′ is the next state.
Reward r 1 use
rₜ is the reward received at step t; R(s, a) is the reward function that hands it out.
Sets, shapes and definitions
- ,
Inequalities 4 uses
Less than / greater than (or equal). ≪ means “much smaller than”.
Element of 3 uses
“Is in” or “belongs to”: x ∈ S says x is a member of the set S.
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 architectures and attention papers
- Attention Is All You Need (Transformer, 2017)
- RoFormer: Enhanced Transformer with Rotary Position Embedding (RoPE, 2021)
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness (FlashAttention, 2022)
- Mamba: Linear-Time Sequence Modeling with Selective State Spaces (Mamba, 2023)
- Neural Machine Translation by Jointly Learning to Align and Translate (Bahdanau attention, 2014)
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale (ViT, 2020)