Skip to content
Mathematics

04. Mathematics

Functional equivalence with stated preconditions

For a linear layer Y=XW⊤+bY=XW^\top+b, input and output bases U,OU,O define W^=OWU⊤\hat W=OWU^\top and b^=bO⊤\hat b=bO^\top. Then Y^=(XU⊤)W^⊤+b^=(XW⊤+b)O⊤\hat Y=(XU^\top)\hat W^\top+\hat b=(XW^\top+b)O^\top. The implementation validates matrix dimensions and uses FP64/FP32/reduced-precision comparisons rather than shape checks.

Normalization and nonlinearity

RMSNorm coordinate gains are absorbed into every adjacent projection before basis conjugation: W~=Wdiag⁡(g)\tilde W=W\operatorname{diag}(g). This is exact only when the normalized output feeds no other operation. SwiGLU and GeGLU permit intermediate permutations and scaling of the non-gated branch; arbitrary dense rotations do not commute with coordinate-wise AdaLN.

Positional and recurrent operations

RoPE and interleaved MRoPE require each Q/K transform to commute with every 2×2 planar rotation and to share structure across a GQA group. Frame-wise DeltaNet uses A=K⊤Diag⁡(β)KA=K^\top\operatorname{Diag}(\beta)K and B=V⊤Diag⁡(β)KB=V^\top\operatorname{Diag}(\beta)K; orthogonal conjugation gives A^=OAO⊤\hat A=OAO^\top and B^=RBO⊤\hat B=RBO^\top, preserving the normal-equation update.

Counterexample: a dense residual rotation does not preserve coordinate-wise AdaLN. Zero-shot diffusion uses signed permutations; dense residual bases require separately trained block-scalar modulation. The conjugation laboratory evaluates these relationships numerically.

Choose your language

All languages are equal. Pick the one you want to browse in.

Europe

Middle East & North Africa

South Asia

Southeast Asia

East Asia

Central Asia & Caucasus

Africa

Oceania

Constructed & Classical