Pruning the Algebra, Not the Weights: Cheap Speedups for Complex and Hypercomplex Networks

Complex-valued neural networks process signals such as speech spectra, radar returns and MRI scanner data as numbers with both a size and an angle. Hypercomplex networks generalize this by grouping channels into small algebraic units. Both kinds of model are attractive because they need fewer parameters, but they often run slower than ordinary networks. The reason is that each multiplication between such numbers expands into several real multiplications, four in the complex case. Pruning, the usual fix, works poorly here for two reasons. Removing individual weights shrinks storage, but every surviving connection still costs four real multiplications, and scattered zeros do not speed up GPU matrix multiplication. The pruning procedures that work best also need many rounds of full retraining.

This note proposes moving pruning from the millions of weights to the handful of numbers that define how the algebraic components multiply. A parameterized hypercomplex layer can be rewritten exactly as a sum of $r$ dense block matrix multiplications. Here $r$ is the number of independent "component products" the algebra needs: 4 for naive complex multiplication, 3 with Gauss's classical trick, and up to $n^2$ for a learned $n$-dimensional algebra. Each component removed deletes one whole dense matrix multiplication, so the saving appears directly in wall-clock time. Because a layer has at most $n^2$ such components, finding which ones to drop is a small search done once per layer, not a cycle of retraining.

Core Claim

The real cost of a complex or hypercomplex layer is set by the rank of its algebra (the number of separate block products it requires), not by its parameter count or its count of nonzero weights. That rank can be learned and pruned per layer with a one-shot, layer-wise procedure. On phase-sensitive tasks such as speech enhancement and MRI reconstruction, we expect rank-pruned layers to reach the accuracy of complex networks at a measured latency at or below that of real-valued networks with similar parameter counts. We also expect the method to cost a small fraction of the training compute of iterative magnitude pruning.

The Mechanism

A parameterized hypercomplex (PHM) layer, introduced in PHNNs: Lightweight Neural Networks via Parameterized Hypercomplex Convolutions, builds its weight as $W=\sum_{i=1}^{n} A_i \otimes F_i$. Each $A_i$ is a small $n\times n$ matrix of learned "multiplication rules", and each $F_i$ is a filter of size $(d_{out}/n)\times(d_{in}/n)$. Stack the rule matrices into a tensor $T[i,p,q]=A_i[p,q]$ and write it as a sum of rank-one pieces, $T=\sum_{k=1}^{r} u_k \circ v_k \circ w_k$. Here $u_k$, $v_k$ and $w_k$ are length-$n$ vectors and $\circ$ is the outer product. The layer's output block $p$ is then

$$ y_p=\sum_{k=1}^{r} v_k[p]\; G_k\Big(\sum_{q=1}^{n} w_k[q]\,x_q\Big),\qquad G_k=\sum_{i=1}^{n} u_k[i]\,F_i , $$

where $x_q$ is the $q$-th block of the input. Computing the layer therefore costs exactly $r$ dense block multiplications, plus mixing steps that are negligible in cost.

Ordinary complex multiplication is the case $n=2$, $r=4$, and Gauss's trick is an exact rewrite with $r=3$. A learned algebra may need fewer components than any named algebra, or fewer than its exact rank. Whether it can drop below that rank without losing the phase behavior that motivates complex networks is an empirical question about the task.

Research Program

We will build drop-in rank-factored versions of complex convolutions, complex LSTMs and Kronecker attention. These will be fused so that each surviving component is a single dense GEMM (general matrix multiply). Pruning starts from a trained dense complex or PHM model, expanded to its trivially exact decomposition with $r_0=n^2$ components. For each layer we then greedily remove the component whose loss least increases the layer's output reconstruction error on a small calibration batch. After each removal we refit the surviving mixing vectors by least squares, which is cheap because they are tiny. A short global fine-tune follows.

The layer-wise reconstruction objective reuses the idea behind An Efficient Pruner for Large Language Model with Theoretical Guarantee, whose mAIHT pruner reaches 50% sparsity on LLaMA-7B in 20–30 minutes on one GPU. That pruner is defined only for real, element-wise sparsity. We change the unit being selected from a weight to an algebra component, which turns an unstructured problem into a small structured one. A rank budget is allocated across layers by measured latency, not by component count.

Prior work defines the gap. Neural Networks at a Fraction with Pruned Quaternions shows that quaternion networks degrade more gracefully than real networks under extreme iterative magnitude pruning. It uses full lottery-ticket retraining, reports no latency, and works only on image classification. Bayesian Sparsification of Deep C-valued Networks compresses complex networks 50–100× in storage through a three-stage pipeline. It explicitly notes that this does not turn into speed, because each surviving complex weight still costs four multiplications. It also finds that doubled real networks compress better than complex ones, which suggests the algebra already removes redundancy. Our proposal tests that hypothesis directly by asking how much of the algebra itself is redundant.

Quaternion Recurrent Neural Networks reports up to 3× slower training despite roughly 3× fewer parameters. Lightweight Hypercomplex MRI Reconstruction halves parameters on FastMRI but never measures latency. Both motivate measuring wall-clock time rather than parameters.

Baselines

The naive reference is the unmodified dense complex model run with framework-default complex arithmetic, which uses four real products. Two lines of work supply the strongest existing systems.

For speech, the strongest system is DCCRN (DCCRN). It has 3.7M parameters and runs at 3.12 ms per frame on a laptop CPU. Its successor DCCRN+ (DCCRN+) reports PESQ-WB 2.84 on VoiceBank+DEMAND at a real-time factor of 0.137–0.250, the fraction of audio duration needed to process it. DCUnet (Phase-Aware Speech Enhancement with Deep Complex U-Net) reports PESQ 3.24.

For MRI, the strongest system is Kronecker SwinMR. At 8× acceleration it reports 29.35 dB PSNR with 1.20M parameters, against 29.65 dB for dense SwinMR (Lightweight Hypercomplex MRI Reconstruction).

We retrain each baseline ourselves on identical data splits, with matched tuning budgets, and measure latency on the same GPU and CPU. The reported numbers serve only as sanity anchors.

The structural baselines are as follows. The first is the same model with Gauss's 3-product complex arithmetic, a free, fixed 25% saving that we must beat. The second is channel pruning or width scaling to matched measured latency. The third is iterative magnitude pruning, following the quaternion lottery-ticket protocol of Iqbal and Mishra. The fourth is element-wise Bayesian sparsification as in Nazarov and Burnaev. MusicNet is a natural benchmark for the fourth comparison, but the file gives only its compression factor; no reported precision result was found on Lacuna for it.

Two ablations isolate the key ingredient. One zeroes individual entries of $A_i$ rather than whole rank-one components. The other replaces one-shot greedy selection with iterative selection plus retraining.

Beating the baselines means two things. First, the method must sit strictly on or above the accuracy-versus-measured-latency frontier of all baselines, for example matching DCCRN+'s PESQ-WB at lower real-time factor. Second, it must spend under one dense-training-equivalent of extra compute, whereas iterative pruning typically costs 5–20× dense training.

Why not just…?

Why not just use Gauss's 3-multiplication trick? For pure complex layers this is a real threat, because the exact rank is already 3 and the remaining room is small. The proposal is only worth doing if learned PHM layers with $n\ge3$ admit per-layer ranks well below $n^2$, or if some complex layers tolerate ranks below 3. The Gauss baseline measures this directly. If neither condition holds, the honest conclusion is "use Gauss's trick", and we will report that.

Why not just shrink the network's width? Channel pruning also yields dense speedups and needs no new kernels. Iqbal and Mishra's finding that algebraic coupling survives extreme compression better than real redundancy suggests algebra-level compression may hold up better. That remains a hypothesis, which the matched-latency width-scaled baseline settles.

Why not just apply a fast real-valued pruner like mAIHT to the real-expanded weights? Doing so yields element-wise sparsity. Nazarov and Burnaev already observed that this does not speed up complex layers, and it destroys the shared structure that defines the algebra. We include it to show the storage-versus-speed gap concretely.

Decisive Checks

The first check is whether the count of block GEMMs, $r$, predicts measured latency across layers and hardware. If memory traffic dominates instead, the mechanism fails. The second check is whether rank-pruned DCCRN and SwinMR models dominate width-scaled models at equal latency on VoiceBank+DEMAND and FastMRI at 8× and 16× acceleration. The third check is whether the components that survive in wave-physics tasks preserve complex-like rotation structure while those in image tasks do not, which would show that the right algebraic rank depends on the task. A CIFAR-10 Conv-4 replication against Iqbal and Mishra's iterative quaternion pruning will compare accuracy and total training compute directly.