Abstract
Deep neural networks are often too large and computationally demanding for deployment on mobile and embedded devices. This paper introduces a novel "tensor sketching" technique to approximate both convolutional and fully connected layers, significantly reducing the number of trainable parameters. Unlike traditional compression methods that operate post-training, the proposed approach allows for training smaller networks directly from scratch. Experimental results demonstrate that these sketched networks can achieve high compression rates while maintaining accuracy comparable to the original, bulky models, and in some cases, even improving performance through implicit regularization.
Introduction
Modern Convolutional Neural Networks (CNNs) have achieved state-of-the-art performance in computer vision, but their massive parameter counts pose significant challenges for resource-constrained platforms. Mobile phones and IoT devices often have strict limits on storage, memory bandwidth, and compute power. While techniques like pruning and quantization can compress networks after training, they still require the initial overhead of training a massive original model. This research addresses a more fundamental question: Can we design a smaller network architecture that mathematically approximates the operations of a target network, enabling the direct training of a lightweight model?
Methods: Sketch-Based Layers
The authors propose replacing standard Convolutional (CONV) and Fully Connected (FC) layers with sketch-based counterparts, termed SK-CONV and SK-FC.
Tensor Sketching Mechanism
Instead of learning a full, massive weight tensor, the method employs random linear projections to shrink the parameter space. Specifically, random scaled sign matrices (Rademacher matrices, containing +1 and -1) are used to project tensor dimensions down to a smaller size $k$. Since these random matrices are fixed and not learned, the number of trainable parameters is drastically reduced. To ensure stability and reduce the variance of this approximation, multiple sketches are run in parallel and their results are averaged.
Efficient Implementation
A key practical contribution is the demonstration that these sketched layers can be implemented using standard matrix multiplications. By strategically reshaping input tensors and sketch matrices, the network avoids ever explicitly constructing the full, uncompressed weight tensor in memory during either the forward or backward pass. This leads to theoretical speedups in both training and inference.
Key Insights
- Theoretical Soundness: The authors prove that tensor sketching provides an unbiased estimator of the original layer's output, with approximation error decreasing as the sketch size $k$ increases.
- Implicit Regularization: Interestingly, sketched networks sometimes outperform their uncompressed counterparts (by up to 4% in accuracy). The random projections introduce noise that acts as a regularizer, helping to prevent overfitting.
- Preserving Locality: Unlike hashing-based compression, random linear projections naturally preserve the spatial locality of features, making them particularly effective for CNN architectures.
Experimental Results
The approach was evaluated across several datasets, including CIFAR10, SVHN, STL10, ImageNet10, and the challenging Places2 scene classification dataset.
Compression and Accuracy
The sketching method consistently pushed the boundaries of compression further than baseline techniques such as FreshNets or standard low-rank decomposition. The authors successfully trained networks compressed to 15% (0.15x) of their original size—a level at which competing methods often failed to converge. On the Places2 dataset using a GoogLeNet architecture, the model was compressed to approximately 20% of its original size, achieving a top-1 error of 36.4% compared to the original's 32.3%.
Conclusion
Tensor sketching provides a robust framework for approximating network architectures prior to training, eliminating the need for massive initial models. While this work focuses on architectural approximation, the authors suggest that combining tensor sketching with post-processing techniques like weight pruning or quantization could lead to even more significant reductions in model size for ultra-constrained environments.
Summary updated