TL;DR
This paper introduces a novel framework to decompose dense linear layers into fundamental geometric primitives using Clifford algebra. By expressing linear transformations as structured compositions of bivectors and rotors, the authors achieve an exponential reduction in parameter complexity from $O(d^2)$ to $O(\log^2 d)$. When applied to LLM attention layers, these hyper-compact layers match the performance of standard low-rank and block-Hadamard baselines while using a fraction of the parameters.
What Problem Does This Paper Address?
Modern large language models (LLMs) are notoriously parameter-heavy, with dense linear layers consuming millions of weights. While empirical evidence suggests these networks internally rely on low-level "primitives" that compose into complex behaviors, we lack a clear mathematical framework to isolate and synthesize these building blocks.
Existing parameter-efficient methods like LoRA (Low-Rank Adaptation) or Block-Hadamard matrices focus primarily on function approximation rather than uncovering an underlying geometric structure. This paper tackles a fundamental question: Can we synthesize standard linear transformations from a minimal set of irreducible geometric primitives?
Methods
The authors turn to Clifford Algebra (Geometric Algebra) to re-imagine linear layers. Instead of using standard dense matrices, they express transformations using bivectors (geometric objects encoding oriented planes) and rotors (algebraic operators that rotate objects via "sandwich products").
To make this framework compatible with modern deep learning, the authors introduce two key innovations:
- Differentiable Invariant Decomposition: Computing a rotor from a general bivector typically requires evaluating an infinite exponential series, which is computationally impractical and prone to truncation errors. The authors introduce a Krylov-subspace-inspired power iteration algorithm that decomposes general bivectors into mutually commuting simple bivectors. This unlocks an exact, closed-form trigonometric solution for the exponential map, making the entire pipeline fully differentiable and stable for backpropagation.
- Generalized Rotor Gadget: Standard rotor operations require dimensions to be powers of two. To accommodate arbitrary input ($d_{in}$) and output ($d_{out}$) dimensions, the authors design a multi-rotor architecture. It splits the input into distinct subspaces, applies parallel rotor maps, and aggregates the results via a pooling operator.
Datasets
The authors evaluated their approach across two primary paradigms:
- Language Modeling (Perplexity): Evaluated on the Wikitext2, C4, and Penn Treebank (PTB) datasets.
- Downstream Tasks (Accuracy): Evaluated using multiple-choice reasoning benchmarks, specifically the ARC Challenge and HellaSwag.
- End-to-End Training: The Fashion-MNIST (FMNIST) dataset was used to verify the feasibility of training multi-layer perceptrons (MLPs) entirely from scratch using rotor layers.
Key Insights and Ideas
- The Multivector Advantage: By operating in the richer multivector space of Clifford algebra, rotors can act on a subset of a $2^n$-dimensional space. This allows them to achieve exponential parameter savings ($O(\log^2 d)$ vs $O(d^2)$) without sacrificing the expressivity needed for orthogonal transformations.
- Exact Trigonometric Forms: Decomposing general bivectors into orthogonal, commuting simple components allows the matrix exponential to collapse into a simple, exact formula: $\cos\|b\| + \frac{\sin\|b\|}{\|b\|}b$. This eliminates approximation errors entirely.
- Bypassing Eigendecomposition Instability: Standard eigendecomposition algorithms suffer from numerical instability during backpropagation when dealing with near-degenerate singular values. The authors' iterative power method elegantly sidesteps this issue, ensuring smooth gradient tracking.
Key Results
- Staggering Parameter Reductions: In a LLaMa-3.2 1B model, a standard dense query projection layer utilizes 4,194,304 parameters. The rotor-based alternative replaces this with just $\le 896$ parameters—representing a 4700× reduction in parameter count.
- Competitive Performance: When selectively replacing 1 to 3 attention layers (Key, Query, Value projections) in pre-trained models like LLaMa-3.2 1B and Qwen-2.5 1.5B, the rotor layers matched or exceeded the performance of Low-Rank (rank 1 and 4) and Block-Hadamard baselines.
- Expressivity Scaling: As shown in Figure 5, model perplexity consistently improves as the "width" (number of parallel rotor maps) and "depth" (number of stacked rotor maps) increase, demonstrating a predictable path toward matching dense model baselines.
- End-to-End Success: When training an MLP from scratch on Fashion-MNIST, the rotor-based network achieved a final accuracy of 88.36%, performing competitively against the dense matrix baseline of 89.67%.
Limitations and Future Work
- Wall-Clock Runtime Overhead: Because current deep learning hardware is optimized for standard matrix multiplication, the unoptimized rotor layers run roughly $w \times d$ times slower (where $w$ is width and $d$ is depth) than dense layers. They do not yet exploit block sparsity.
- The Need for Custom Kernels: The parameter savings are currently theoretical in terms of speedups. Realizing actual wall-clock efficiency gains will require developing specialized, hardware-aware Clifford algebra kernels.
- Trading Compute for Bandwidth: A promising future direction is using these layers to solve memory bandwidth bottlenecks in edge devices. Instead of loading millions of weights from slow off-chip memory, a device could load a tiny set of geometric parameters and synthesize the dense weights on-chip dynamically.
Summary updated