Abstract
As deep learning models scale, deploying them on resource-constrained hardware becomes increasingly challenging. This paper introduces a novel method for "integrated compression" by representing linear layer weights in the wavelet domain. Unlike previous approaches that use fixed basis functions, the authors propose a Learnable Wavelet Transform where the wavelet filters themselves are optimized during training. By incorporating differentiable "wavelet losses" to ensure valid filter properties, the method achieves up to 90% parameter reduction in Recurrent Neural Networks (RNNs) and Convolutional Neural Networks (CNNs) while maintaining performance competitive with state-of-the-art models.
Introduction
Deep learning models often contain significant redundancy. While post-hoc techniques like pruning and quantization are effective, they often require complex multi-stage training. Integrated compression aims to design inherently small networks. Previous methods utilized structured transforms like Fourier or Walsh-Hadamard, but these often rely on fixed bases and have $O(n \log n)$ complexity. This work explores Wavelets as a more flexible, $O(n)$ alternative that can adapt to specific data patterns.
Methods
The Architecture
The core innovation is the integration of the Fast Wavelet Transform (FWT) directly into the network's architecture. A standard weight matrix $W$ is replaced with a decomposition: $$W = D W^{-1} G \Pi W B$$ Where $W$ and $W^{-1}$ are the forward and inverse FWTs, $D, G, B$ are learnable diagonal scaling matrices, and $\Pi$ is a fixed random permutation matrix to ensure global connectivity.
Learning the Bases
To ensure the learned filters function as valid wavelets, the authors introduce two "soft" constraints added to the standard task loss:
- Perfect Reconstruction Loss ($L_{pr}$): Ensures a signal remains unchanged after a forward and inverse transform.
- Alias Cancellation Loss ($L_{ac}$): Ensures high-frequency aliasing artifacts from downsampling are cancelled during reconstruction.
By minimizing these alongside the task loss, the optimizer "discovers" the optimal wavelet basis for the specific task. The authors found that starting with a Haar wavelet initialization leads to faster convergence than random initialization.
Key Results and Insights
The authors evaluated their approach across MNIST (LeNet-5), synthetic RNN tasks (Copy-memory, Adding), and real-world NLP (Penn Treebank).
Massive Compression in RNNs
On the Sequential MNIST task, a "WaveGRU" achieved 96.4% accuracy with only 4.9K parameters, compared to a standard GRU requiring 795K parameters for 100% accuracy. A critical insight emerged regarding the update gate ($g_z$) in Gated Recurrent Units (GRUs). As shown in the experimental results, the update gate is highly sensitive to compression; while the reset gate and hidden state can be heavily compressed with minimal impact, over-compressing the update gate leads to significant performance degradation.
LeNet-5 on MNIST
The method reduced parameters by 92% (from 431K to 36K) while maintaining an error rate of 0.74%, outperforming other state-of-the-art compression methods like the Fastfood transform in terms of the error-to-parameter ratio.
Limitations and Future Work
While the FWT is theoretically $O(n)$, current deep learning libraries are optimized for dense matrix multiplications. Real-world wall-clock speedups would require custom, highly optimized GPU implementations of the FWT. Future research could explore alternative wavelet design spaces, such as "lifting" schemes, and scale the method to larger architectures like ResNets or Transformers.
Summary updated