arXiv:2610.37226cs.CVOct 2026

Manuscript Offprint

arXiv:2610.37226

Subspace Clifford Networks

Zhongping Ji

Abstract

Recent advances in Clifford Algebra Networks (CliffordNet) have demonstrated that formulating visual feature interactions through the Clifford Geometric Product (uv=u⋅v+u∧v)(uv = u \cdot v + u \wedge v) endows vision backbones with rich algebraic expressivity, coupling scalar feature alignment with bivector geometry in a unified operator. In this work, we propose Subspace Clifford Networks, a reformulation that replaces global cyclic rolling with grouped subspace interactions. Instead of sampling sparse cyclic diagonals across the entire DD-dimensional channel space, we project the features into an aligned space RD=⨁g=1GVg\mathbb{R}^D = \bigoplus_{g=1}^G V_g partitioned into GG low-dimensional groups Vg≅RkV_g \cong \mathbb{R}^k with k∈{2,3,4}k \in \{2, 3, 4\}. Within each kk-dimensional group, we compute all (k2)\binom{k}{2} wedge coordinates and concatenate them with SiLU-activated coordinate-wise products, while sandwiching the grouped interaction between learnable 1×11 \times 1 linear projections to enable cross-group channel mixing. This design reduces intermediate feature expansion from 2∣S∣D2|S|D (typically 10D10D for 5 shifts) down to 1.5D~1.5\tilde{D} (k=2k=2), 2.0D~2.0\tilde{D} (k=3k=3), or 2.5D~2.5\tilde{D} (k=4k=4). Furthermore, exploiting the small, fixed group size k∈{2,3,4}k \in \{2, 3, 4\}, we implement a fused CUDA kernel that evaluates the forward interaction and a recomputation-based analytical backward pass using thread-local variables without allocating global-memory buffers for elementwise intermediates. Finally, we extend the backbone from an isotropic columnar layout to a multi-resolution Hierarchical Clifford Network with configurable per-stage subspace dimensions. Experiments on CIFAR-100 show that the proposed models substantially reduce parameter count and training time across both regimes, while the hierarchical variants also improve classification accuracy over the evaluated shift-based hierarchical baselines.

1 Introduction

Modern computer vision backbones—ranging from Convolutional Neural Networks (CNNs) [1, 2] to Vision Transformers (ViTs) [3, 4] and State-Space Models (SSMs) [5, 6, 7]—commonly follow the “MetaFormer” design pattern [8], interleaving spatial token mixers with channel-mixing Feed-Forward Networks (FFNs). Recently, CliffordNet [9] explored an alternative design based on Geometric Algebra (Clifford Algebra) [10, 11]. By modeling feature evolution through the Clifford Geometric Product (uv=u⋅v+u∧v)(uv = u \cdot v + u \wedge v), CliffordNet combines symmetric feature alignment (via an inner-product branch) and anti-symmetric structural variation (via an exterior wedge-product branch), achieving competitive accuracy without separate FFN blocks.

Operationalizing exterior wedge interactions in a DD-dimensional channel space (RD\mathbb{R}^D), however, presents a clear computational trade-off. While coordinate-wise products scale linearly with channel dimension DD, evaluating all pairwise wedge components u∧vu \wedge v spans (D2)=D(D−1)2\binom{D}{2} = \frac{D(D-1)}{2} pairs, incurring O(D2)O(D^2) intermediate channels. To keep the interaction width linear in DD, the original CliffordNet [9] introduced a Sparse Rolling Interaction mechanism, pairing each channel cc with a subset of cyclically shifted channels (c+s)mod  D(c + s) \mod D for s∈Ss \in \mathcal{S} (e.g., S={1,2,4,8,16}\mathcal{S} = \{1, 2, 4, 8, 16\}) via cyclic tensor shifts (torch.roll).

In practice, this shift-based implementation has three main costs:

  1. Sparse Pair Coverage: Rolling samples only a predefined subset of channel pairs (c,(c+s)mod  D)(c, (c + s) \mod D) across the global channel dimension, rather than evaluating all pairwise wedge interactions within local channel groups.

  2. Channel Expansion and Projection Overhead: For ∣S∣=5|S| = 5 shifts in full mode (inner + wedge), the rolling strategy concatenates 2∣S∣=102|S| = 10 feature maps, expanding the intermediate channel dimension to 10D10D. Consequently, the subsequent contraction projection P\mathcal{P} requires a 10D×D10D \times D linear layer, which increases parameter count and multiply-accumulate operations (MACs).

  3. Memory-Bound Execution Latency: In standard deep learning frameworks, executing multiple cyclic shifts, element-wise subtractions, products, and wide concatenations launches multiple separate GPU kernels. These operations allocate and read/write intermediate tensors in global device memory, increasing both latency and activation memory footprint during training.

In this paper, we address these costs by proposing Subspace Clifford Networks. Instead of sampling sparse cyclic shifts across all DD channels, we partition the projected feature channels into G=D~/kG = \tilde{D}/k low-dimensional groups of size k∈{2,3,4}k \in \{2, 3, 4\}. Within each kk-dimensional group, we evaluate all (k2)\binom{k}{2} pairwise wedge coordinates alongside kk SiLU-activated coordinate-wise products. To enable cross-group channel communication, we place the grouped interaction between two learnable 1×11 \times 1 linear projections: an input projection mixes the DD input channels and generates the state and context streams prior to grouping, while an output projection maps the concatenated group outputs back to RD\mathbb{R}^D.

This grouped formulation substantially reduces the intermediate channel width. Even at k=4k = 4 (which produces (42)=6\binom{4}{2} = 6 wedge coordinates and 4 inner coordinates per group), the intermediate channel dimension is 4+64D~=2.5D~\frac{4+6}{4}\tilde{D} = 2.5\tilde{D}—a 75% reduction compared to the 10D expansion of 5-shift rolling. Moreover, because the group size k∈{2,3,4}k \in \{2, 3, 4\} is small and fixed, the element-wise operations can be fused into a single CUDA kernel. We implement a templated CUDA kernel that computes context differencing, within-group wedge and inner terms, SiLU activation, and a recomputation-based analytical backward pass using thread-local variables without allocating intermediate global-memory buffers. Finally, we extend the isotropic CliffordNet backbone to a multi-resolution Hierarchical Clifford Network, supporting spatial downsampling and stage-specific group sizes (e.g., (k1,k2,k3)=(2,3,4)(k_1, k_2, k_3) = (2, 3, 4)).

Our main contributions are summarized as follows:

• Grouped Subspace Clifford Interaction: We reformulate high-dimensional Clifford interactions by decomposing the projected channel space into GG groups of dimension k∈{2,3,4}k \in \{2, 3, 4\} coupled with input and output 1×11 \times 1 linear projections, providing complete within-group wedge pair coverage while reducing post-projection channel width by up to 75% compared to 5-shift rolling.

• Fused CUDA Kernel Implementation: We develop a templated CUDA extension that fuses the forward and recomputation-based backward passes for k∈{2,3,4}k \in \{2, 3, 4\}, avoiding intermediate elementwise buffers in device memory and achieving a 17.2×17.2\times operator speedup and a 50% reduction in peak extra allocated memory for the evaluated k=4k = 4 benchmark.

• Hierarchical & Hybrid-Subspace Architecture: Beyond the isotropic backbone, we introduce a multi-stage hierarchical CliffordNet architecture equipped with a contiguous 5×55 \times 5 SpatialDiffusion module, supporting configurable per-stage subspace dimensions across multi-resolution feature pyramids.