TL;DR
This paper introduces a "low-rank Winograd transformation" to significantly reduce the number of trainable parameters in 3D Convolutional Neural Networks (CNNs) while maintaining performance. They also propose a "low-rank oriented sparse granularity" to achieve practical speedups by creating regular sparse patterns in the Winograd domain, overcoming limitations of previous methods.
What Problem Does This Paper Address?
3D Convolutional Neural Networks (CNNs) are powerful for tasks involving spatio-temporal data like video analysis, but they are computationally expensive due to large 3D kernels. While Winograd convolution offers a way to speed up these operations by replacing convolutions with element-wise products, its application to 3D CNNs leads to a substantial increase in parameters. This "over-parameterization" not only complicates training but also diminishes the potential speedups. Furthermore, existing methods for making these networks sparse (pruning) often result in irregular patterns that are difficult to accelerate on hardware. This paper aims to tackle both the parameter explosion and the acceleration challenge in 3D CNNs when using Winograd transformations.
Methods
The core of this work lies in two main contributions:
- Low-Rank Winograd Transformation: Instead of directly transforming the entire Winograd kernel, the authors propose to represent the updates to the Winograd kernel (during training) as a product of two smaller, low-rank matrices. This decouples the learning process, allowing the model to focus on the most important directions in the Winograd space. This significantly reduces the number of trainable parameters compared to the standard Winograd approach.
- Low-Rank Oriented Sparse Granularity: To achieve practical speedups, the authors introduce a novel sparsity pattern. Instead of arbitrary pruning, they measure the importance of entire columns within the Winograd weight matrix. By keeping only the most important columns and removing the rest, they create a highly regular sparse structure. This regularity is crucial for hardware acceleration, unlike the irregular sparsity produced by many prior methods. They use a combination of magnitude and gradient information to score these columns.
Datasets
The paper uses the following datasets:
- Kinetics: Used for pre-training models.
- Sports-1M: Used for pre-training models.
- UCF101: Used for fine-tuning and evaluation.
- HMDB51: Used for evaluating performance under different sparsity ratios.
No new benchmarks were introduced.
Key Insights and Ideas
- Winograd's Double-Edged Sword: While Winograd convolution can speed up computations, its application to 3D CNNs leads to a significant parameter increase, which can actually hinder performance and training.
- Focus on Updates, Not the Whole Kernel: The key insight for parameter reduction is to apply low-rank decomposition not to the entire Winograd kernel, but to the updates made during training. This efficiently captures the essential learning directions.
- Regularity is Key for Speed: Irregular sparsity patterns are a bottleneck for hardware acceleration. The paper's breakthrough is creating a regular sparse pattern (column-wise) that directly translates to practical speedups.
- Winograd Space is Over-Parameterized: The analysis of singular values of Winograd weights suggests that the Winograd domain is highly over-parameterized, and focusing on a low-rank subspace is sufficient for good performance.
Key Results
- Parameter Reduction: The low-rank Winograd transformation reduces trainable parameters by up to 5.94x while achieving comparable or better performance than the full Winograd model.
- Speedup: The low-rank oriented sparse granularity achieves significant speedups. For example, on C3D, they achieve a 5.0x acceleration ratio with 0.9 sparsity, outperforming other methods like MRP (4.3x speedup, 1.1% accuracy loss) and RT3D (3.6x speedup, 1.4% accuracy loss).
- Accuracy: The proposed method maintains competitive accuracy, often outperforming baseline Winograd and even matching or exceeding spatial domain methods in some cases. For instance, when pruning C3D, their method achieved a higher accuracy (0.6% loss) than MRP (1.1% loss) at a higher speedup (4.3x vs 3.8x).
- Practical Acceleration: The paper demonstrates practical inference latency reductions on CPU platforms, showing that their method translates sparsity into actual speedups effectively.
Limitations and Future Work
- Sparsity Degradation: The paper notes that performance degrades drastically if the sparsity ratio exceeds 0.8, suggesting a limit to how much can be pruned with their regular pattern.
- Rank Selection: The optimal rank for the low-rank matrices depends on the layer/block and the model architecture. The paper provides empirical choices but doesn't offer a universal method for rank selection.
- Hardware Specificity: While the method is designed for hardware-friendly speedups, the actual performance gains are dependent on the specific hardware architecture and its ability to exploit regular sparsity.
Future work could explore more sophisticated methods for rank selection, investigate the optimal sparsity thresholds for different network architectures and tasks, and potentially extend this approach to other types of neural network layers or transformations.
Summary updated