Greek letters

ωi=10000−2i/d\omega_i = 10000^{-2i/d} Omega

A frequency ω (positional encodings, Fourier features) or a weight; capital Ω is a regularizer, a sample space or big-Omega.

In ML papers

Lowercase ω\omega is often an angular frequency: the frequencies ωi\omega_i of sinusoidal positional encodings, rotary embeddings and Fourier features, as in sin⁡(ωit)\sin(\omega_i t). In older papers it is also a weight (ωij\omega_{ij} where others write wijw_{ij}), or a single outcome of a random experiment.

Capital Ω\Omega has three common uses: a regularization term Ω(θ)\Omega(\theta) added to a loss; the sample space Ω\Omega of all outcomes in probability; and big-Omega, Ω(n)\Omega(n), a lower bound on growth (see Big-O notation).

How to type it

LaTeXShows
\omega ωω\omega
\Omega ΩΩ\Omega

A worked example

d=4:ω0=1,ω1=10000−1/2=0.01d = 4: \quad \omega_0 = 1, \quad \omega_1 = 10000^{-1/2} = 0.01

With model width 4, the sinusoidal encoding uses one fast frequency and one slow one.

Common confusions

Related

PE(pos,2i)=sin⁡(pos100002i/d)PE_{(pos, 2i)} = \sin\left(\frac{pos}{10000^{2i/d}}\right)Sinecos⁡(u,v)=u⊤v∥u∥ ∥v∥\cos(\mathbf{u}, \mathbf{v}) = \frac{\mathbf{u}^\top \mathbf{v}}{\|\mathbf{u}\| \, \|\mathbf{v}\|}CosineO(n2d)\mathcal{O}(n^2 d)Big-O notation

Decode this example →