Manuscript Offprint
arXiv:2610.37226Subspace Clifford Networks
Abstract
Recent advances in Clifford Algebra Networks (CliffordNet) have demonstrated that formulating visual feature interactions through the Clifford Geometric Product 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 -dimensional channel space, we project the features into an aligned space partitioned into low-dimensional groups with . Within each -dimensional group, we compute all wedge coordinates and concatenate them with SiLU-activated coordinate-wise products, while sandwiching the grouped interaction between learnable linear projections to enable cross-group channel mixing. This design reduces intermediate feature expansion from (typically for 5 shifts) down to (), (), or (). Furthermore, exploiting the small, fixed group size , 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 , 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 -dimensional channel space (), however, presents a clear computational trade-off. While coordinate-wise products scale linearly with channel dimension , evaluating all pairwise wedge components spans pairs, incurring intermediate channels. To keep the interaction width linear in , the original CliffordNet [9] introduced a Sparse Rolling Interaction mechanism, pairing each channel with a subset of cyclically shifted channels for (e.g., ) via cyclic tensor shifts (torch.roll).
In practice, this shift-based implementation has three main costs:
-
Sparse Pair Coverage: Rolling samples only a predefined subset of channel pairs across the global channel dimension, rather than evaluating all pairwise wedge interactions within local channel groups.
-
Channel Expansion and Projection Overhead: For shifts in full mode (inner + wedge), the rolling strategy concatenates feature maps, expanding the intermediate channel dimension to . Consequently, the subsequent contraction projection requires a linear layer, which increases parameter count and multiply-accumulate operations (MACs).
-
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 channels, we partition the projected feature channels into low-dimensional groups of size . Within each -dimensional group, we evaluate all pairwise wedge coordinates alongside SiLU-activated coordinate-wise products. To enable cross-group channel communication, we place the grouped interaction between two learnable linear projections: an input projection mixes the input channels and generates the state and context streams prior to grouping, while an output projection maps the concatenated group outputs back to .
This grouped formulation substantially reduces the intermediate channel width. Even at (which produces wedge coordinates and 4 inner coordinates per group), the intermediate channel dimension is —a 75% reduction compared to the 10D expansion of 5-shift rolling. Moreover, because the group size 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., ).
Our main contributions are summarized as follows:
• Grouped Subspace Clifford Interaction: We reformulate high-dimensional Clifford interactions by decomposing the projected channel space into groups of dimension coupled with input and output 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 , avoiding intermediate elementwise buffers in device memory and achieving a operator speedup and a 50% reduction in peak extra allocated memory for the evaluated benchmark.
• Hierarchical & Hybrid-Subspace Architecture: Beyond the isotropic backbone, we introduce a multi-stage hierarchical CliffordNet architecture equipped with a contiguous SpatialDiffusion module, supporting configurable per-stage subspace dimensions across multi-resolution feature pyramids.
Efficient Vision Backbones & Channel Mixing. Modern lightweight backbones achieve efficiency through structural priors. MobileNetV2 [1] employs inverted residuals with depthwise separable convolutions, while ShuffleNetV2 [2] introduces channel split and shuffle operations to facilitate cross-group information exchange. Vision Transformers [3, 4], modernized hierarchical ConvNets such as ConvNeXt [14], and Vision SSMs [6, 7] combine spatial token mixing with channel-mixing MLPs (typically using a 4× channel expansion ratio). In contrast, our approach sandwiches low-dimensional ( ) subspace Clifford interactions—combining both coordinate-wise diagonal products and all antisymmetric off-diagonal wedge terms—between projections, maintaining a compact expansion ratio of
3 Methodology
In this section, we first review the formulation and sparse rolling realization of the original CliffordNet [9] (Sections 3.1 and 3.2). We then present our Subspace Clifford Interaction (Section 3.3), the modified CliffordAlgebraBlock and Hierarchical Architecture (Section 3.4), and our Fused CUDA Kernel (Section 3.5).
3.1 Recap: Feature Evolution and the Clifford Interaction Ansatz
Let denote an input image. Rather than flattening image patches into a 1D sequence, CliffordNet preserves the 2D spatial grid . The latent representation at layer is modeled as a -dimensional vector field , or in tensor form .
Continuous Dynamical Evolution Motivation. CliffordNet motivates feature updates across layers as a discrete approximation to a dynamical system governed by the interaction between the current feature state and a spatial context field :
where aggregates local neighborhood information over via depthwise convolutions, and denotes the interaction operator. Given a binary mode factor , the context vector field is defined as:
where defines the Differential Mode (which heuristics in [9] analogize to a discrete Laplacian difference ) and defines the Absolute Mode ( ).
The Clifford Interaction Ansatz. Standard dot-product layers compress two vectors into a symmetric scalar . CliffordNet instead motivates from the Clifford Geometric Product in :
Given an orthonormal basis of , the exterior wedge product is a bivector in :
Each coefficient represents the signed area of the parallelogram spanned by projections onto the plane. In neural network form, CliffordNet replaces the scalar inner product with a coordinate-wise product branch , concatenates it with a wedge branch , and applies a learnable contraction projection :
3.2 Recap: Sparse Rolling Realization and Its Costs
Directly evaluating all wedge coefficients in produces channels. To keep the intermediate channel width linear in , the original CliffordNet [9] samples a subset of channel pairs using a cyclic shift operator , defined by .
For a predefined set of shift offsets (e.g., ), the shifted inner and wedge slices are computed via element-wise Hadamard products :
Concatenating these slices across all yields , which is projected back to via a convolution and added to the residual stream via a Gated Geometric Residual (GGR) update:
Limitations of the Rolling Realization
Remark 1 (Sparse Pair Coverage). Let be the full skew-symmetric matrix of wedge coordinates. The rolling operator samples cyclic off-diagonals of . Rather than evaluating all pairs within local channel groups, rolling only evaluates pairs separated by offsets .
Remark 2 (Channel Expansion and Memory Traffic). When (as in CliffordNet-Lite), the concatenated tensor has channel width . Consequently, the contraction projection requires MACs per pixel, and evaluating the shifts in standard frameworks requires multiple tensor shift and concatenation operations in device memory.
3.3 Proposed Method: Subspace Clifford Interaction
To reduce intermediate channel expansion while evaluating all pairwise wedge coordinates within local groups, we replace global cyclic shifts with a grouped Subspace Clifford Interaction.
3.3.1 Channel Grouping and Pre-Projection Mixing
Let be the spatially diffused feature map at a given layer, and let denote the chosen group size. To ensure that the internal channel width is divisible by (for instance, when and ), we define the aligned channel dimension and the number of groups as:
To mix channels across groups prior to partitioning, we apply Batch Normalization (BN) followed by a learnable input projection that generates both the state stream and the initial context stream :
We then compute the spatial context stream via a depthwise convolution and form the interaction streams and with :
The spatial context branch DWConv allows the two streams and to differ across spatial neighborhoods, enabling nonzero wedge responses whenever the -dimensional group vectors are not collinear. Note that by the bilinearity and anti-symmetry of the exterior product , the wedge branch satisfies:
Thus, in exact real arithmetic, the differential parameter only alters the coordinate-wise inner branch, while leaving the wedge branch invariant.
3.3.2 Within-Group Interaction for
At each spatial location , we partition the aligned channel space into contiguous -dimensional coordinate subspaces:
where and denote the -th group slices of and . Within each group , we compute two feature branches:
- Coordinate-Wise Inner Branch ( ): Rather than summing the coordinate products into a single scalar , we retain all coordinate-wise products and apply a SiLU activation:
- Complete Within-Group Wedge Branch ( ): Identifying with the vector part of with standard basis , the exterior product has basis bivector coordinates:
Evaluating all pairs within the group yields . Specifically, for , our implementation computes:
• 2D Groups : Each group has wedge coordinate:
Concatenated with , each 2D group outputs channels, giving .
• 3D Groups : Each group has wedge coordinates. Following the cyclic 3D cross-product convention (with indices , , , where ), we compute:
Concatenated with , each 3D group outputs channels, giving .
• 4D Groups : Each group has wedge coordinates ordered lexicographically by for :
Concatenated with , each 4D group outputs channels, giving .
Concatenating the wedge and inner branches within each group and stacking all groups produces the output tensor :
3.3.3 Tensor Interpretation of the Group Representation
To understand why we retain the -dimensional vector instead of collapsing it into a single scalar , we can examine the second-order outer (dyadic) product
. Any such matrix decomposes into a symmetric part and a skew-symmetric part :
Because on the main diagonal, the components of partition into three subsets:
-
Main Diagonal Components (k terms): , which lie entirely in .
-
Antisymmetric Off-Diagonal Components terms): ( ), which form the basis coordinates of .
-
Symmetric Off-Diagonal Components terms): ( ).
Our representation retains the diagonal products (with SiLU activation) and all antisymmetric off-diagonal components, while omitting the symmetric off-diagonal components. This produces
output channels per group. Compared to a scalar dot product that sums the diagonal into a single number, keeping the coordinate-wise products allows the subsequent linear projection to assign independent weights to each coordinate. Before applying SiLU, a weighted sum defines a diagonal bilinear form (which includes both positive and negative weights as in pseudo-Euclidean inner products ). In our implemented module, SiLU introduces a coordinate-wise nonlinearity prior to , so the resulting projection acts as a learned linear combination of nonlinearly gated diagonal products and exact within-group wedge coordinates.
3.4 Block Design and Hierarchical Multi-Resolution Architecture
Reaction–Diffusion Motivation and Operator-Splitting Block Design. From a continuous dynamical perspective, feature evolution across both spatial neighborhoods and feature channels can be viewed as a coupled reaction–diffusion system:
where denotes a channel-wise spatial diffusion operator that propagates information across the 2D grid , and denotes a nonlinear cross-channel reaction operator driven by our subspace Clifford interaction. Rather than evaluating both terms simultaneously on the same input state, we discretize this system via a two-stage Lie–Trotter operator-splitting scheme ( ), yielding a streamlined CliffordAlgebraBlock with two sequential residual sub-modules:
- Spatial Diffusion Sub-step ( ): First, an optional SpatialDiffusion module aggregates spatial neighborhood context independently for each channel using a single depthwise convolution (DWConv ), followed by Batch Normalization (BN) and in-place SiLU activation, scaled by a learnable vector :
When this explicit diffusion sub-step is omitted (SpatialDiffusion-free), , and spatial propagation relies entirely on the context convolution within the subsequent reaction step.
- Subspace Clifford Reaction Sub-step ( ): Taking the diffused state as input, the pre-projection and context convolution generate to evaluate the nonlinear subspace interaction . A learnable output projection then mixes the multivector reaction products back into , followed by LayerScale and Stochastic Depth (DropPath):
Complexity Analysis. For a fixed group size , the subspace interaction SubspaceGP itself has linear complexity in the channel dimension, producing channels. Including the dense input projection and output projection , the total pointwise projection cost per spatial token is:
which has quadratic channel complexity , but reduces the post-projection cost from (in 5-shift rolling) to (Table 1).
Table 1: Per-Token Interaction Complexity Comparison between the ungrouped Full Diagonal + Wedge representation, Shift-based Rolling CliffordNet ( shifts), and our Subspace Clifford Interaction () in full mode. Post-Proj MACs counts only the contraction projection .
| Interaction Mechanism | Pair Coverage | Output Dim | Post-Proj MACs | roll Shifts |
|---|---|---|---|---|
| Full Diagonal + Wedge (Ungrouped) | All Global Pairs | |||
| Sparse Rolling () [9] | Cyclic Pairs | |||
| 2D Subspace () | All Within-Group Pairs | |||
| 3D Subspace () | All Within-Group Pairs | |||
| 4D Subspace () | All Within-Group Pairs |
From Isotropic to Hierarchical Clifford Networks. While the original CliffordNet operates on an isotropic (single-resolution) grid, multi-scale feature hierarchies are beneficial for visual recognition. We therefore construct a multi-stage hierarchical CliffordNet comprising stages. Given an initial stem embedding, each stage operates at spatial resolution with configurable stage channel width (e.g., ) and depth . Between consecutive stages, a StageDownsample module (a stride- depthwise convolution followed by BN, SiLU, and a projection) halves the spatial resolution and projects the channels from to .
Stage-Adaptive Hybrid Subspaces. Because the group size is local to each block, it can vary across stages: with . For example, early high-resolution stages can use ( intermediate channels) to reduce memory traffic, while deeper low-resolution stages can use or ( or ) to evaluate more wedge pairs per group.
3.5 Fused CUDA Kernel Optimization
As summarized in Table 1, our grouped formulation eliminates torch.roll shifts and reduces from to . However, in eager-mode PyTorch, reshaping tensors into and executing separate elementwise subtractions, products, SiLU activations, and concatenations still launches multiple fine-grained GPU kernels and materializes intermediate tensors in global device memory. IO-aware implementations such as FlashAttention [15] demonstrate that reducing intermediate memory traffic and recomputing selected quantities during backpropagation can substantially improve both runtime and memory efficiency.
Motivated by this principle, and exploiting the small fixed group size , we implement a custom fused CUDA kernel parameterized via C++ compile-time templates :
-
One-Thread-Per-Group Mapping: We launch parallel GPU threads. Each thread is assigned to a single spatial location of a single -dimensional group .
-
Fused Forward Evaluation: Using compile-time loop unrolling ('#pragma unroll'), each thread loads floats from and floats from into thread-local arrays 'float u[K]' and 'float v[K]''. Context differencing , all wedge differences (which can leverage fused multiply-add instructions), and inner
SiLU activations are evaluated directly on these thread-local variables and written once to the output tensor in device memory.
- Recomputation-Based Backward Pass: Following the IO-aware recomputation strategy [15], rather than saving elementwise intermediate buffers (such as or pre-activation products ) from the forward pass to global memory, the backward kernel reloads only and and recomputes the local products on-the-fly in thread-local variables. Because arithmetic recomputation within a k-dimensional group is orders of magnitude faster than reading intermediate tensors from device memory, this strategy simultaneously reduces both peak activation memory and backward execution time.
4 Experiments
In this section, we empirically evaluate our proposed Subspace Clifford Networks across both isotropic and multi-resolution hierarchical architectures. We design our experiments to examine four questions:
-
How does the grouped subspace Clifford interaction compare against shift-based rolling CliffordNet [9] in terms of classification accuracy, parameter count, and training time?
-
What is the effect of varying the subspace group size and using stage-adaptive hybrid configurations in hierarchical backbones?
-
How much operator-level speedup and memory reduction does our fused CUDA kernel achieve compared to the native PyTorch implementation?
-
How does scaling the multi-resolution hierarchical backbone across depth affect accuracy and training cost?
4.1 Experimental Setup
Dataset, Hardware, and Training Recipe. Following the evaluation protocol of CliffordNet [9], we conduct benchmarks on the CIFAR-100 dataset (50,000 training images and 10,000 test images across 100 classes). All models are trained from scratch for 200 epochs using the AdamW optimizer with cosine learning rate decay, a weight decay of 0.1, and standard data augmentation (AutoAugment and Random Erasing). No pre-trained weights or external data are used. All experiments and operator benchmarks are conducted on a single NVIDIA GeForce RTX 4090 GPU (24 GB GDDR6X VRAM).
Model Variants and Architectural Configurations. We evaluate four model groups in Table 2, all configured with a total depth of 12 blocks:
• Isotropic Models (12 Layers): The baseline CliffordNet-Nano ( shifts) and CliffordNet-Lite ( shifts) results are cited from [9], which use 12-layer isotropic backbones with CUDA-accelerated rolling kernels. Our Iso-Subspace-CAN ( ) and Iso-Subspace-CAN ( ) models use the same 12-layer isotropic macro-topology ( ) with our CliffordAlgebraBlock (Section 3.4).
• Hierarchical Pyramid Models (12 Layers): Both the Shift-Based Hierarchical CliffordNet baselines and our Hier-Subspace-CAN variants share the same 3-stage multi-resolution pyramid macro-architecture, configured with stage depths (totaling 12 blocks) and stage channel dimensions . The shift-based hierarchical baselines use the original GGR block with Sparse Rolling or ), whereas Hier-Subspace-CAN uses our subspace block (Section 3.4) with .
4.2 Main Results and Comparison with Shift-Based CliffordNet
Table 2 summarizes the evaluation on CIFAR-100:
- Efficiency in Isotropic Backbones. In the 12-layer isotropic regime, Iso-Subspace-CAN (k = 2) uses 0.756M parameters (46% fewer than CliffordNet-Nano at 1.4M) and achieves a +0.50% higher Top-1 accuracy (78.32% vs. 77.82%) while reducing training time from 57.64 min to 29.46 min (1.96× faster). Increasing the group size to k = 4, Iso-Subspace-CAN (k = 4) reaches 78.46% accuracy with 0.952M parameters in 31.54 min, outperforming
Table 2: Main Results on CIFAR-100. Comparison of our Isotropic and Hierarchical Subspace Clifford Networks against shift-based CliffordNet baselines. The isotropic baseline results are cited from [9] (with CUDA-accelerated rolling kernels).
| Model Architecture | Interaction Type | Params | FFN? | Train Time (min) | Top-1 Acc |
|---|---|---|---|---|---|
| CUDA-Accelerated Shift-Based Isotropic CliffordNet Baselines (torch.ro11) [9] | |||||
| CliffordNet-Nano ( shifts) | Sparse Rolling | 1.4M | No | 57.64 | 77.82% |
| CliffordNet-Lite ( shifts) | Sparse Rolling | 2.6M | No | 58.27 | 79.05% |
| Ours: Isotropic Subspace CliffordNet | |||||
| Iso-Subspace-CAN (, 12 layers) | 2D Subspace | 0.756M | No | 29.46 | 78.32% |
| Iso-Subspace-CAN (, 12 layers) | 4D Subspace | 0.952M | No | 31.54 | 78.46% |
| Shift-Based Hierarchical CliffordNet (Multi-Resolution Pyramid) | |||||
| Hier-CliffordNet () | Sparse Rolling | 2.093M | No | 64.15 | 79.48% |
| Hier-CliffordNet () | Sparse Rolling | 2.535M | No | 68.68 | 79.53% |
| Ours: Hierarchical Subspace CliffordNet (Multi-Resolution Pyramid) | |||||
| Hier-Subspace-CAN () | 2D Subspace | 0.898M | No | 41.51 | 79.48% |
| Hier-Subspace-CAN () | 3D Subspace | 1.017M | No | 43.24 | 80.12% |
| Hier-Subspace-CAN () | 4D Subspace | 1.120M | No | 43.59 | 80.19% |
CliffordNet-Nano by +0.64%. Compared to the larger 5-shift CliffordNet-Lite (2.6M params, 58.27 min, 79.05%), Iso-Subspace-CAN () is 0.59% lower in accuracy but uses 63% fewer parameters and trains 1.85× faster.
-
Effect of the Multi-Resolution Hierarchical Pyramid. Moving from a single-resolution isotropic column to the 3-stage pyramid with stage_depths = (3, 4, 5) and stage_dims = (96, 128, 160) improves accuracy for both interaction types. Under sparse rolling, Hier-CliffordNet () reaches 79.53% accuracy, requiring 2.535M parameters and 68.68 min of training time.
-
Hierarchical Subspace-CAN Results. Combining our subspace block with the hierarchical pyramid improves the accuracy–cost trade-off across all evaluated group sizes:
-
At , Hier-Subspace-CAN () matches the 79.48% accuracy of Hier-CliffordNet () while reducing parameter count by 57% (0.898M vs. 2.093M) and training time by 35% (41.51 min vs. 64.15 min).
-
At , Hier-Subspace-CAN () reaches 80.12% Top-1 accuracy with 1.017M parameters—exceeding the 2.535M 4-shift hierarchical baseline by +0.59% with 60% fewer parameters and 37% less training time (43.24 min vs. 68.68 min).
-
At , evaluating all within-group wedge pairs yields 80.19% accuracy (1.120M params, 43.59 min), outperforming both isotropic CliffordNet-Lite (+1.14%) and the 4-shift hierarchical baseline (+0.66%).
- Depth Scaling Behavior. We further examine scaling total network depth from 12 to 18 and 24 blocks while keeping stage widths fixed at and subspace dimensions at . As shown in Table 3, accuracy improves consistently with depth:
-
The 18-layer model (stage_depths = (4, 6, 8)) reaches 80.68% accuracy with 1.650M parameters and 57.12 min of training time.
-
The 24-layer model (stage_depths = (4, 10, 10)) reaches 81.21% accuracy at 2.209M parameters (68.97 min).
Compared to the 12-layer shift-based Hier-CliffordNet (, 2.535M params, 68.68 min, 79.53%), our 24-layer Hier-Subspace-CAN-24 is twice as deep, uses 13% fewer parameters (2.209M vs. 2.535M), trains in similar wall-clock time (68.97 min vs. 68.68 min), and improves Top-1 accuracy by +1.68%.
4.3 Ablation Studies
To evaluate the effects of subspace group size, hybrid stage schedules, individual branches (inner vs. wedge), and the spatial diffusion module, we conduct ablations in Table 4 using the 12-layer hierarchical backbone (stage_depths = (3, 4, 5))
Table 3: Depth Scaling of Hierarchical CliffordNet on CIFAR-100. All models share the same stage channel widths stage_dims = (96, 128, 160).
| Model Variant | Total Depth | Stage Depths | Subspace k | Params (M) | Train Time (min) | Top-1 Acc (%) |
|---|---|---|---|---|---|---|
| Hier-Subspace-CAN-12 | 12 Layers | (3, 4, 5) | (2, 4, 4) | 1.092M | 42.18 | 80.25% |
| Hier-Subspace-CAN-18 | 18 Layers | (4, 6, 8) | (2, 4, 4) | 1.650M | 57.12 | 80.68% |
| Hier-Subspace-CAN-24 | 24 Layers | (4, 10, 10) | (2, 4, 4) | 2.209M | 68.97 | 81.21% |
and stage_dims = (96, 128, 160)).
Table 4: Ablation Studies on subspace dimension , stage-adaptive hybrid schedules, interaction branches (inner vs. wedge), and spatial diffusion in Hierarchical CliffordNet (stage_depths = (3,4,5), stage_dims = (96,128,160)). Bivectors/Group denotes ; Expansion Ratio denotes .
| Subspace Config | Algebras | Bivectors / Group | Expansion Ratio | Params (M) | Train Time | Top-1 Acc |
|---|---|---|---|---|---|---|
| Uniform k = 2 | (2, 2, 2) | 1 (2D Area) | 1.5× | 0.898M | 41.51(min) | 79.48% |
| Uniform k = 3 | (3, 3, 3) | 3 (3D Cross-Prod) | 2.0× | 1.017M | 43.24(min) | 80.12% |
| Uniform k = 4 | (4, 4, 4) | 6 (4D Six-Planes) | 2.5× | 1.120M | 43.59(min) | 80.19% |
| Hybrid (234) | (2, 3, 4) | 1 → 3 → 6 | 1.5× → 2.0× → 2.5× | 1.061M | 42.13(min) | 80.22% |
| Hybrid (432) | (4, 3, 2) | 6 → 3 → 1 | 2.5× → 2.0× → 1.5× | 0.961M | 43.62(min) | 79.80% |
| Hybrid (244) | (2, 4, 4) | 1 → 6 → 6 | 1.5× → 2.5× → 2.5× | 1.092M | 42.18(min) | 80.25% |
| Inner only | (4, 4, 4) | 0 → 0 → 0 | 1.0× | 0.788M | 40.39(min) | 79.02% |
| Wedge only | (4, 4, 4) | 6 → 6 → 6 | 1.5× | 0.898M | 41.20(min) | 78.49% |
| SpatialDiffusion-free | (4, 4, 4) | 6 → 6 → 6 | 2.5× | 1.075M | 31.36(min) | 79.02% |
-
Uniform vs. Stage-Adaptive Hybrid Subspaces. Among uniform configurations, increasing the group size from (1.5× expansion) to (2.0×) and (2.5×) increases Top-1 accuracy from 79.48% to 80.12% and 80.19%. In these experiments, progressive hybrid schedules—Hybrid (2, 3, 4) (80.22%) and Hybrid (2, 4, 4) (80.25%)—achieve slightly higher accuracy than uniform (80.19%) while using fewer parameters (1.061M and 1.092M vs. 1.120M) and slightly less training time (42.13 min and 42.18 min vs. 43.59 min), as using in the high-resolution first stage reduces early-stage channel expansion. Conversely, the inverted schedule Hybrid (4, 3, 2) obtains 79.80% accuracy at 43.62 min.
-
Inner and Wedge Branches. Isolating the two branches at shows that both contribute to final performance. Retaining only the coordinate-wise inner branch (Inner only, expansion) or only the anti-symmetric wedge branch (Wedge only, expansion) yields and accuracy, respectively. Combining both branches reaches ( over Inner-only and over Wedge-only), confirming that the coordinate-wise products () and antisymmetric wedge differences () provide complementary features.
-
Impact of Spatial Diffusion. Removing the SpatialDiffusion module (SpatialDiffusion-free, relying only on the internal context depthwise convolution ctx_dw for spatial aggregation) achieves accuracy while reducing training time by (from 43.59 min down to 31.36 min). Including SpatialDiffusion adds 0.045M parameters () and improves accuracy by to .
4.4 Operator Benchmark: Fused CUDA Kernel vs. Native PyTorch
To quantify the operator-level benefit of our fused CUDA implementation (Section 3.5), we benchmark the standalone SubspaceGeometricProduct module against its native eager-mode PyTorch counterpart (using tensor views, slices, elementwise arithmetic, and 'torch.cat'). We measure combined forward + backward execution time and peak extra allocated tensor memory averaged over 100 iterations after warm-up at input shape in single precision ('float32'), full mode, and differential context ().
17.2× Operator Speedup and 50% Reduction in Peak Extra Allocated Memory. For k = 4 (where each input tensor , occupies 128 MiB and the output tensor with 320 channels occupies 320 MiB), our fused CUDA kernel reduces the combined forward and backward execution time from 48.67 ms (native PyTorch) to 2.83 ms—a 17.18× speedup. Under this measurement protocol, peak extra allocated memory drops from 640.0 MiB in native PyTorch to 320.0 MiB with our fused kernel (matching the 320 MiB allocation of the output tensor itself, as the recomputation-based backward pass avoids allocating global-memory buffers for elementwise intermediates). Numerical checks across all configurations ( , full/wedge/inner, diff/abs) confirm that the maximum absolute difference between our fused CUDA kernel and native PyTorch autograd is within .
5 Conclusion
We introduced Subspace Clifford Networks, a reformulation of Clifford algebraic feature interactions that replaces global cyclic channel shifts (torch.roll) with grouped subspace interactions ( ) sandwiched between learnable linear projections. Within each k-dimensional group, the operator evaluates all wedge coordinates together with k SiLU-activated coordinate-wise products, reducing intermediate channel expansion by up to 75% compared to 5-shift rolling. Because the group size k is small and fixed, we implemented a fused CUDA kernel with a recomputation-based backward pass that avoids intermediate elementwise buffers in device memory, achieving a operator speedup and a 50% reduction in peak extra allocated memory on the evaluated k = 4 benchmark. Building on this module, we extended the backbone from single-resolution isotropic columns to multi-resolution Hierarchical Clifford Networks with configurable per-stage subspace dimensions. On CIFAR-100, our 12-layer hierarchical model reaches 80.25% accuracy with 1.09M parameters, and our 24-layer variant reaches 81.21% accuracy while using fewer parameters than 12-layer shift-based baselines.
References
[1] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 4510–4520, 2018.
[2] Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet v2: Practical guidelines for efficient CNN architecture design. In Proceedings of the European Conference on Computer Vision (ECCV), pages 116–131, 2018.
[3] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth words: Transformers for image recognition at scale. In International Conference on Learning Representations (ICLR), 2021.
[4] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. In International Conference on Machine Learning (ICML), pages 10347–10357, 2021.
[5] Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752, 2023.
[6] Lianghui Zhu, Bencheng Liao, Qian Zhang, Xinlong Wang, Wenyu Liu, and Xinggang Wang. Vision mamba: Efficient visual representation learning with bidirectional state space model. In Proceedings of the 41st International Conference on Machine Learning (ICML), 2024.
[7] Yue Liu, Yunjie Tian, Yuzhong Zhao, Hongtian Yu, Lingxi Xie, Yaowei Wang, Qixiang Ye, Jianbin Jiao, and Yunfan Liu. Vmamba: Visual state space model. In Advances in Neural Information Processing Systems (NeurIPS), volume 37, 2024.
[8] Weihao Yu, Mi Luo, Pan Zhou, Chenyang Si, Yichen Zhou, Xinchao Wang, Jiashi Feng, and Shuicheng Yan. Metaformer is actually what you need for vision. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10819–10829, 2022.
[9] Zhongping Ji. Cliffordnet: All you need is geometric algebra. arXiv preprint arXiv:2601.06793, 2026.
[10] David Hestenes. Space-Time Algebra. Gordon and Breach, 1966.
[11] Leo Dorst, Daniel Fontijne, and Stephen Mann. Geometric Algebra for Computer Science: An Object-Oriented Approach to Geometry. Morgan Kaufmann, 2007.
[12] Johannes Brandstetter, Rianne van den Berg, Max Welling, and Jayesh K. Gupta. Clifford neural layers for PDE modeling. In International Conference on Learning Representations (ICLR), 2023.
[13] Johann Brehmer, Pim de Haan, Sönke Behrends, and Taco Cohen. Geometric algebra transformer. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, pages 35472–35496, 2023.
[14] Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, and Saining Xie. A convnet for the 2020s. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 11976–11986, 2022.
[15] Tri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. Flashattention: Fast and memory-efficient exact attention with io-awareness. In Advances in Neural Information Processing Systems (NeurIPS), volume 35, pages 16344–16359, 2022.