Compact Neural Architecture Designs by Tensor Representations

Jiahao Su, Jingling Li, Xiaoyu Liu, Teresa M. Ranadive, Christopher J. Coley, Tai-Ching Tuan, Furong Huang

Introduction

Modern deep learning has entered a "heavyweight" era. State-of-the-art models like ResNet and VGG achieve remarkable accuracy but at the cost of millions of parameters. This massive footprint makes deployment on resource-constrained devices—such as smartphones, IoT sensors, and embedded systems—prohibitively difficult.

Traditional compression techniques like pruning or low-rank matrix factorization often "flatten" data, destroying the inherent multi-dimensional structure of information. This paper introduces Tensorial Neural Networks (TNNs), a framework that replaces standard linear and convolutional layers with multilinear operations on higher-order tensors. By leveraging generalized tensor algebra and a novel sequential knowledge distillation technique, TNNs achieve up to 10x model compression while maintaining or even exceeding the performance of traditional low-rank methods.

The Tensorial Framework

Instead of treating weights as simple matrices, TNNs treat them as complex, higher-order tensors. This shift requires a fundamental re-evaluation of how neural operations are performed.

Tensor diagrams representing different orders of data structures.

Generalized Tensor Algebra

The authors developed a new mathematical suite for tensor operations, including contraction, convolution, and batch products. This allows for the derivation of backpropagation rules for layers that do not follow standard matrix-based architectures. The framework introduces several "flavors" of layers based on different tensor decompositions:

  • mTT (modified Tensor-Train)
  • mTR (Tensor-Ring)
  • mCP (Canonical Polyadic)
  • mTK (Tucker)

Sequential Knowledge Distillation (Seq-KD)

Training a compact "student" TNN from a large "teacher" model is often unstable with standard end-to-end methods. To solve this, the authors propose Seq-KD, which compresses the model layer-by-layer. This "stair-step" approach is faster, more stable, and yields higher accuracy than training the entire network simultaneously.

The Power of Reshaping

A core insight of this research is that data which appears complex in a 1D vector or 2D matrix can often be simplified when viewed through a higher-order lens.

A toy example showing how reshaping periodic and modulated structures into higher-order matrices exposes low-rank properties.

As shown in the figure above, signals with periodic or modulated structures become "low-rank" when reshaped into higher-order matrices or tensors. By deliberately reshaping weights into higher dimensions, TNNs can identify and exploit patterns that standard networks miss. Furthermore, this framework provides a mathematical "umbrella" for existing popular designs; the authors demonstrate that common structures like bottleneck modules and interleaved group convolutions are actually specific instances of tensor decompositions.

Experimental Results

The framework was evaluated on standard computer vision benchmarks including MNIST, CIFAR-10, CIFAR-100, and ImageNet-2012.

  • Massive Compression: On CIFAR-10, ResNet-32 was compressed by 10x with a negligible accuracy drop (maintaining 91.28% accuracy). In LeNet-5, fully-connected layers were reduced to just 0.2% of their original size.
  • Superiority over Baselines: TNNs consistently outperformed standard low-rank methods like SVD or standard CP decomposition. For instance, on ImageNet, TNN-mCP achieved significantly higher Top-1 accuracy than its NN-CP counterparts at identical compression rates.
  • Training Stability: The Seq-KD method reached near-optimal error rates much earlier in the training process compared to end-to-end distillation.

Limitations and Future Work

While TNNs drastically reduce parameter counts and theoretical floating-point operations (FLOPs), a primary hurdle remains: hardware acceleration. Current GPUs are highly optimized for standard matrix multiplications (BLAS/cuBLAS). Because the generalized tensor algebra introduced here is novel, existing CUDA libraries cannot yet fully exploit the parallelism of these operations. Consequently, theoretical speedups may not yet translate to real-world wall-clock time on current hardware. Future research will focus on developing specialized kernels to bridge the gap between theoretical efficiency and practical execution speed.

Summary updated

BibTeX
@article{su2022compact,
  author = {Jiahao Su and Jingling Li and Xiaoyu Liu and Teresa M. Ranadive and Christopher J. Coley and Tai-Ching Tuan and Furong Huang},
  title = {{Compact Neural Architecture Designs by Tensor Representations}},
  journal = {Frontiers Artif. Intell.},
  year = {2022},
  doi = {10.3389/frai.2022.728761},
}
Figure