Lossless Compression for 3DCNNs Based on Tensor Train Decomposition

Dingheng Wang, Guangshe Zhao, Guoqi Li, Lei Deng, Yang WuarXiv 2019 · DOI

TL;DR

Three-dimensional convolutional neural networks (3DCNNs) are powerful tools for video and spatio-temporal recognition, but their massive parameter sizes make deployment on embedded devices challenging. This paper introduces a method to compress 3DCNN kernels by up to 180x using Tensor Train (TT) decomposition during in situ training (from scratch). By establishing a systematic principle for selecting TT ranks, the authors demonstrate that highly redundant 3DCNNs can be compressed drastically with virtually zero loss in accuracy.

What Problem Does This Paper Address?

While 2D convolutional networks handle static images, 3DCNNs add a temporal dimension to process video frames or 3D point clouds. This extra dimension causes the parameter space of convolutional kernels to explode, leading to massive model sizes (often nearing a gigabyte).

Deploying these models to edge environments—like robotics or embedded systems—requires heavy model compression. Standard techniques like pruning, quantization, and knowledge distillation have notable drawbacks: they often require complex multi-stage training pipelines, rely on intricate data structures, or offer limited compression ratios. Traditional tensor decompositions (like CP or Tucker) also suffer from the "curse of dimensionality" because their core tensors still scale exponentially.

The authors tackle this by applying Tensor Train (TT) decomposition directly to 3D convolutional kernels, aiming for massive compression directly from scratch without a complex pre-training pipeline.

Methods

The core approach relies on Tensorizing 3D Convolutional Kernels. A standard 3D convolutional kernel is a 5th-order tensor (comprising time, height, width, input channels, and output channels). The authors reshape and map this complex structure into a balanced, higher-order tensor format that can be efficiently broken down into a chain of low-rank, matrix-like core tensors (the Tensor Train format).

TT decomposition structures for matrices, 2D kernels, and 3D kernels

A major contribution of this work is a theoretical framework for TT rank selection. Historically, choosing the "ranks" (the inner dimensions of the tensor train that control the compression-accuracy trade-off) involved guesswork. The authors bridge this gap by connecting TT decomposition to Hierarchical Tucker decomposition theory, proving that selecting a relatively small, truncated rank based on the full rank of specific matricized modes is sufficient to preserve network performance.

Crucially, this method supports in situ training: the network is initialized and trained in its compressed TT format from day one, bypassing the need to ever train or store the uncompressed "base" model.

Datasets

The authors evaluated their approach across several computer vision benchmarks:

  • CIFAR-10: Used for preliminary pragmatic verification of the rank selection rules.
  • VIVA Challenge: A challenging hand-gesture dataset containing 885 video sequences across intensity and depth channels.
  • UCF11 & UCF101: Standard, widely used action recognition datasets containing videos of real-world human actions.

Key Insights and Ideas

  • Redundancy Scales with Network Size: A fascinating finding is that larger, more redundant 3DCNN architectures are actually easier to compress losslessly than smaller ones. The inherent regularity of the TT format acts as a powerful regularizer, preventing overfitting in massive models.
  • Layer Coupling Matters: Compressing only the convolutional layers or only the fully connected (FC) layers in isolation often leads to significant accuracy drops. However, when both parts are compressed together, the layer coupling preserves the expressive power of the network while maximizing the compression ratio.
  • The Computation-Storage Trade-off: Mathematically, performing convolutions on a TT-decomposed kernel adds an extra step to reconstruct the kernel, which increases theoretical computational complexity. However, the authors show that modern parallel hardware (GPUs/CPUs) can compute these operations efficiently in multiple threads, meaning the practical execution time overhead is minimal.

Key Results

The experimental results demonstrate massive storage savings with negligible—and sometimes even positive—impacts on accuracy:

  • VIVA Dataset: For their largest model (3DCNN-VIVA-5), the authors achieved a 180.4x compression ratio, shrinking the model from 970 MB to just 5.41 MB. Remarkably, the compressed model saw an accuracy increase of 0.36 percentage points due to the regularization effect.
  • UCF11 Dataset: The two-stream TT-3DCNN achieved a 107.5x compression ratio (shrinking from over 1 GB to 9.9 MB) while maintaining an accuracy of 93.56% (compared to the baseline's 93.78%).
  • UCF101 Dataset: The model achieved an 87.5x compression ratio with only a minor drop in performance (77.86% vs. 78.38% baseline).

Limitations and Future Work

Despite the impressive compression ratios, the authors note a few areas for improvement:

  1. Latent Degradation: As datasets grow increasingly complex (e.g., moving from UCF11 to the more diverse UCF101), a slight accuracy degradation begins to appear, indicating that very tight rank constraints may eventually limit the network's capacity.
  2. Algorithmic Complexity: Because the TT convolution breaks the associative law with the convolution operator, it requires an explicit kernel reconstruction step during forward passes, which prevents it from being purely accelerated at the tensor-core level without memory overhead.

For future work, the authors suggest combining TT decomposition with orthogonal compression methods—such as network quantization, sparsification, or Neural Architecture Search (NAS)—to push the boundaries of extreme edge-device optimization.

Summary updated

BibTeX
@misc{wang2019lossless,
  author = {Dingheng Wang and Guangshe Zhao and Guoqi Li and Lei Deng and Yang Wu},
  title = {{Lossless Compression for 3DCNNs Based on Tensor Train Decomposition}},
  year = {2019},
  eprint = {1912.03647},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.03647},
}
Figure