TL;DR
Real-world devices experience fluctuating compute, memory, and battery budgets, yet standard neural networks cannot dynamically scale their resource footprint. This paper introduces Learning Compressible Subspaces (LCS), a technique that trains a continuous subspace of model weights capable of being adaptively compressed (via structured sparsity, unstructured sparsity, or quantization) to arbitrarily fine-grained efficiency levels at runtime—without retraining, fine-tuning, or BatchNorm recalibration.
What Problem Does This Paper Address?
When deploying deep models to edge hardware (phones, wearables, embedded systems), resource availability varies dynamically as background tasks launch or battery levels drop. Traditional deployment strategies handle this poorly:
- Multiple static models: Training and storing separate models for different resource budgets introduces massive storage and training overhead and prevents continuous scaling.
- Dynamic / Slimmable networks: Existing single-model approaches (e.g., slimmable networks) rely on predefined discrete compression targets (e.g., 25%, 50%, 75% width) and critically depend on Batch Normalization (BatchNorm) statistics. Because pruning channels or quantizing weights corrupts stored running means and variances, these methods require recalibrating or storing separate sets of BatchNorm parameters for every possible compression level, making continuous, on-device adaptation impractical.
Methods
LCS builds on the concept of neural network weight subspaces (training lines or simplexes connecting multiple weight configurations) and adapts them explicitly for on-the-fly model compression:
- Linear Subspaces ($\text{LCS+L}$): The network subspace is parameterized by two weight endpoints, $\omega_1$ and $\omega_2$. A network configuration along the line is sampled via $\omega^*(\alpha) = \alpha \omega_1 + (1-\alpha) \omega_2$ for $\alpha \in [0, 1]$. One end is conditioned to specialize in high accuracy (low compression), while the other specializes in high efficiency (high compression).
- Point Subspaces ($\text{LCS+P}$): To avoid storing two sets of weights on memory-constrained devices, the authors introduce a degenerate single-point variant where a single weight vector $\omega$ is trained to tolerate varying compression levels dynamically.
- Eliminating BatchNorm Recalibration: The authors demonstrate that BatchNorm's running statistics corrupt dramatically when compression rates deviate from training targets. Replacing BatchNorm with Group Normalization (or Instance Normalization for structured pruning, where channel counts vary dynamically) eliminates running statistics entirely, enabling arbitrary compression ratios at inference time without recalibration.
- Biased Sampling: Borrowing intuition from "sandwich" training rules, training samples the subspace endpoints more frequently than interior points to prevent degradation at the extreme ends of the accuracy-efficiency spectrum.
- Universal Applicability: LCS is formulated generically to support:
- Structured Sparsity: Dynamic channel pruning.
- Unstructured Sparsity: Magnitude-based TopK parameter pruning.
- Quantization: Dynamic affine integer quantization from 3 to 8 bits.
Datasets
The authors evaluated their methods on standard vision classification benchmarks:
- CIFAR-10 (using pre-activation ResNet-20).
- ImageNet (using ResNet-18 and VGG-19).
No new datasets or benchmarks were introduced.
Key Insights and Ideas
- BatchNorm is the hidden bottleneck of dynamic compression: The study provides a detailed empirical breakdown showing that inference-time accuracy degradation in adaptive networks is strongly correlated with Mean Absolute Differences (MAD) in batch-wise vs. stored BatchNorm statistics. Moving to instance/group statistics resolves this without accuracy penalties.
- Continuous trade-offs without discrete slots: Rather than selecting among 3 or 4 preset profiles, an operating system can tune compression continuously (e.g., 87.3% sparsity or 5-bit quantization) based on milliwatt-level power changes.
- Implicit filter specialization in point models: For structured pruning, the single-set-of-weights approach ($\text{LCS+P}$) performed nearly identically to the two-weight linear subspace ($\text{LCS+L}$). Because smaller sub-networks share only early channels while larger networks utilize the outer channels, channel pruning naturally induces architectural specialization without requiring extra weight parameters.
- True directional specialization: Evaluating weights trained for high sparsity with low-sparsity settings (and vice versa) causes sharp accuracy drops, proving that the learned weight line forms a directed trajectory of specialized solutions rather than a generic flat basin.
Key Results
- Structured Sparsity: On CIFAR-10 and ImageNet, LCS substantially outperforms baselines like Universal Slimming (US), Network Slimming (NS), and Learning Efficient Convolutions (LEC) across continuous sparsity ranges:
- At 93.5% structured sparsity on CIFAR-10, $\text{LCS+P}$ achieves 75.96% accuracy, whereas US collapses to 21.81% and NS to 19.76% due to normalization mismatch.
- On ImageNet with ResNet-18 at 92.9% sparsity, $\text{LCS+P}$ maintains 44.62% top-1 accuracy (compared to 8.34% for US and 1.34% for NS).
- Unstructured Sparsity: Models tolerate extreme sparsity (>90%) with negligible accuracy drops. Unlike standalone TopK models that crash if evaluated at non-target sparsities, LCS models smoothly traverse from 0% to 98% sparsity.
- Dynamic Quantization: A single $\text{LCS+L}$ model spans 3-bit through 8-bit precision, matching or even exceeding the performance of separate networks individually trained and fine-tuned for a single fixed bit-width (e.g., maintaining 63.72% on VGG-19 ImageNet at 8-bit down to 33.46% at 3-bit).
Limitations and Future Work
- Storage Footprint of Linear Subspaces: While $\text{LCS+P}$ uses standard $1\times$ storage, the linear subspace variant ($\text{LCS+L}$) requires storing two copies of the network weights ($2|\omega|$), which may limit its feasibility on low-capacity edge devices.
- Ultra-low Precision Limits: The authors avoided evaluating bit-widths below 3 bits (such as binary or ternary networks) due to training stability issues.
- Unstructured Sparsity Acceleration: While unstructured sparsity yields large theoretical FLOP and memory reductions, realizing physical inference speedups requires specialized sparse accelerator hardware.
- Inconsistent Line vs. Point Behavior: While the linear formulation demonstrated advantages at moderate unstructured sparsity rates in initial tests, this benefit was less pronounced across wider ranges—an anomaly flagged for future study.
Summary updated