Composing Linear Layers from Irreducibles
Travis Pence, Daisuke Yamada, Vikas Singh
TL;DR
This work shows that linear layers can be represented as compositions of bivectors in Clifford algebra, enabling rotor-based linear transformations that act on multivectors and admit a parameter count of $\mathcal{O}(\log^2 d)$, substantially fewer than dense layers. By decomposing bivectors into commuting simple components and using a differentiable invariant decomposition, the authors provide a closed-form, differentiable rotor construction suitable for autograd. Empirically, rotor-based projections for key, query, and value in LLM attention achieve competitive accuracy and perplexity against Low-Rank and Block-Hadamard baselines while dramatically reducing parameter counts, and an end-to-end FMNIST experiment demonstrates feasibility for joint training. The work illuminates a principled algebraic path to understanding and constructing compact, interpretable primitives that compose into higher-level functions in neural networks, with practical potential contingent on hardware-aware optimizations. Overall, the rotor framework offers a promising step toward parameter-efficient, geometrically structured neural architectures and motivates future system-level integrations.
Abstract
Contemporary large models often exhibit behaviors suggesting the presence of low-level primitives that compose into modules with richer functionality, but these fundamental building blocks remain poorly understood. We investigate this compositional structure in linear layers by asking: can we identify/synthesize linear transformations from a minimal set of geometric primitives? Using Clifford algebra, we show that linear layers can be expressed as compositions of bivectors -- geometric objects encoding oriented planes -- and introduce a differentiable algorithm that decomposes them into products of rotors. This construction uses only O(log^2 d) parameters, versus O(d^2) required by dense matrices. Applied to the key, query, and value projections in LLM attention layers, our rotor-based layers match the performance of strong baselines such as block-Hadamard and low-rank approximations. Our findings provide an algebraic perspective on how these geometric primitives can compose into higher-level functions within deep models.
