Notation conventions

x+x+⋯+x⏟n terms=nx\underbrace{x + x + \cdots + x}_{n \text{ terms}} = nx Underbrace and overbrace

A horizontal brace under or over part of a formula labels that part. It adds no math.

In ML papers

A brace under (⋯⏟label\underbrace{\cdots}_{\text{label}}) or over (⋯⏞label\overbrace{\cdots}^{\text{label}}) a piece of a formula is an annotation. It names that piece, gives its shape or meaning, or counts its terms, without changing the value of the formula.

Papers use it to explain a loss term by term, for example marking which part is the reconstruction term and which is the KL term of a VAE objective, or to note the size of a repeated block.

How to type it

LaTeXShows
\underbrace{a + b}_{\text{label}}a+b⏟label\underbrace{a + b}_{\text{label}}
\overbrace{a + b}^{\text{label}}a+b⏞label\overbrace{a + b}^{\text{label}}

A worked example

E[log⁡p(x∣z)]⏟reconstruction−DKL(q(z∣x)∥p(z))⏟regularizer\underbrace{\mathbb{E}\left[\log p(x \mid z)\right]}_{\text{reconstruction}} - \underbrace{D_{\mathrm{KL}}\left(q(z \mid x) \| p(z)\right)}_{\text{regularizer}}

The labels say what each half of the VAE objective does; delete them and the formula is the same.

Common confusions

Related

x1,…,xnx_1, \ldots, x_nDots (ellipsis)f(x)={xx>00otherwisef(x) = \begin{cases} x & x > 0 \\ 0 & \text{otherwise} \end{cases}Cases (piecewise)L(θ)\mathcal{L}(\theta)Loss (ℒ)

Decode this example →