Abstract
In response to the development of recent efficient dense layers, this paper shows that something as simple as replacing linear components in pointwise convolutions with structured linear decompositions also produces substantial gains in the efficiency/accuracy tradeoff. Pointwise convolutions are fully connected layers and are thus prepared for replacement by structured transforms. Networks using such layers are able to learn the same tasks as those using standard convolutions, and provide Pareto-optimal benefits in efficiency/accuracy, both in terms of computation (mult-adds) and parameter count (and hence memory). Code is available at https://github.com/BayesWatch/deficient-efficient.
Introduction
The evolution of deep learning has shifted focus toward "efficient" architectures suitable for mobile and edge devices. Models like MobileNet and ShuffleNet have popularized depthwise-separable convolutions to reduce computational overhead. However, a closer inspection reveals that the 1x1 "pointwise" convolution—responsible for mixing information across channels—remains a significant bottleneck. In many modern networks, these pointwise layers account for the vast majority of both parameters and floating-point operations (FLOPs).
This research posits that because 1x1 convolutions are mathematically equivalent to fully connected (dense) layers, they are prime candidates for structured compression techniques originally developed for the final layers of older networks (like VGG). By substituting these layers with Structured Efficient Linear Layers (SELLs), we can push the boundaries of the efficiency-accuracy Pareto frontier.
Methodology: Structured Efficient Linear Layers (SELLs)
The authors evaluate a diverse set of linear transforms to replace standard 1x1 convolutions:
- Tensor-Train (TT) and Tucker Decomposition: These methods decompose a large weight matrix into a series of smaller, low-rank tensor cores. This significantly reduces the number of parameters required to represent the linear mapping.
- HashedNet: This technique uses a hash function to map multiple weights to a single shared parameter value. It is particularly effective for reducing the storage footprint of a model.
- Linearised ShuffleNet: Inspired by the ShuffleNet architecture, this substitution uses grouped convolutions combined with "riffle shuffles" to maintain cross-group information flow with reduced connectivity.
- ACDC: A structured transform consisting of a stack of diagonal matrices and Discrete Cosine Transforms (DCT).
Compression Ratio Scaled (CRS) Weight Decay
A significant contribution of this work is the Compression Ratio Scaled (CRS) weight decay. Simply swapping a standard convolution for a compressed SELL often leads to training instability or failure to converge. The authors identify that standard weight decay assumes a specific variance in the weights relative to the layer size. When the number of parameters $M$ is reduced from the original $N$, the effective regularization strength changes.
The authors derive a principled scaling factor: $d_c = \frac{Md}{N}$. By scaling the weight decay $d$ by the compression ratio, the total variance of the weight matrix is stabilized. This "rote" method allows these substitutions to be used as drop-in replacements without the need for exhaustive, manual hyperparameter searches. Furthermore, the authors utilize Attention Transfer (AT)—a distillation technique—to help the compressed "student" networks mimic the feature maps of a full-sized "teacher" network.
Experimental Results
The proposed methods were benchmarked on CIFAR-10 and ImageNet datasets using Wide-ResNet (WRN) and DARTS-based architectures.
Pareto Optimality in Context
The experiments demonstrate that SELL substitutions allow models to explore regions of the efficiency/accuracy tradeoff that were previously unoccupied by standard architectures. As illustrated in Figure 4, when applied to the DARTS architecture, SELLs (particularly HashedNet and Tensor-Train) achieve parameter counts significantly lower than state-of-the-art models like NASNet-A or AmoebaNet-B while maintaining competitive error rates.
Scaling to ImageNet
To prove real-world viability, the authors applied SELLs to a WRN-50-2 backbone on the ImageNet dataset. The results, summarized in Figure 5, show that these generic substitution methods can compete with or even exceed the performance of specialized architectures like MobileNet and ShuffleNet. For example, a WRN-50-2 using ShuffleNet substitutions achieved a Top-1 error of 26.9% with only 25.72% of the original parameters.
Discussion and Limitations
The choice of SELL depends on the specific optimization goal. HashedNet and Tensor-Train are the most effective for reducing parameter count and memory usage. Conversely, ShuffleNet-style substitutions are superior for reducing "mult-adds," which directly impacts computational speed.
However, theoretical efficiency does not always translate to wall-clock speedups. Methods like Tensor-Train and HashedNet often require specialized CUDA kernels to avoid the memory overhead of reconstructing the full weight matrix during the forward pass. Additionally, while CRS weight decay stabilizes most SELLs, the ACDC transform remained somewhat unstable at high compression ratios.
Conclusion
By recognizing pointwise convolutions as dense layers, this work provides a unified framework for applying structured linear decompositions to modern neural networks. The introduction of CRS weight decay provides the necessary stability to make these substitutions practical. This approach demonstrates that significant gains in efficiency can be achieved through generic layer substitutions, offering a powerful alternative to the manual design of complex, efficient architectures.
Summary updated