Abstract
We propose Tensorial Neural Networks (TNNs), a generalization of existing neural networks that extends operations from low-order operands to high-order tensors. By deriving non-trivial backpropagation rules for generalized tensor algebra, we enable training via stochastic gradient descent. TNNs offer three primary advantages: they preserve multi-dimensional input structures without flattening, provide a theoretical framework for existing architectures like Inception, and achieve superior compression by exploiting periodicity and modulation. Experiments on MNIST, CIFAR-10, and ImageNet demonstrate that TNN-based compression significantly outperforms state-of-the-art low-rank approximation methods, achieving up to 10x compression on ResNet-32 with minimal accuracy loss.
Introduction
Modern deep learning architectures are increasingly parameter-heavy, posing challenges for deployment on resource-constrained devices. Traditional compression techniques, such as low-rank approximation (LRA), often treat weight matrices as simple 2D grids, ignoring the inherent multi-dimensional structure of data. Standard neural networks (NNs) typically require "flattening" data, which destroys vital spatial and structural relationships. This research introduces a mathematical framework that preserves these structures while drastically reducing parameter counts.
Methodology: Tensorial Neural Networks
The core innovation is the replacement of standard matrix-vector multiplications with Generalized Tensor Operations. We define four primitive operations—tensor contraction, multiplication, convolution, and partial outer product—that operate on operands of any order.
Learning in TNNs is framed as a hierarchical nonlinear tensor decomposition. To facilitate this, we derived specific backpropagation rules to allow standard SGD training. Our compression pipeline involves two steps:
- Data Tensorization: Reshaping weights into higher-order tensors to reveal hidden invariant structures like periodicity.
- Sequential Learning: A layer-by-layer projection of a pre-trained network into the TNN space, which is more stable and faster than end-to-end fine-tuning.
Beyond Low-Rankness
Traditional compression methods focus on low-rank patterns. TNNs go further by exploiting periodicity and modulation. By reshaping a vector into a high-order tensor, complex periodic signals can be represented as simple, low-rank tensors. This allows for extreme compression without losing critical information.
Key Results
The researchers evaluated TNNs across several benchmarks:
- CIFAR-10 (ResNet-32): Achieved 10x compression with 91.28% accuracy (only a 1.92% drop). This outperformed state-of-the-art LRA methods by approximately 5% accuracy at the same compression rate.
- MNIST (LeNet-5): Fully connected layers were compressed to 0.2% of their original size (500x reduction) with only a 2% accuracy loss.
- Convergence: The proposed sequential tuning method reached stable performance significantly faster than traditional fine-tuning, requiring far fewer gradient updates.
Conclusion
Tensorial Neural Networks provide a powerful framework for model compression that respects the multi-dimensional nature of data. By unifying modern architectures under a single algebraic umbrella and exploiting structures beyond simple low-rankness, TNNs offer a path toward deploying high-performance deep learning models on edge devices. Future work will focus on optimizing the computational complexity of finding optimal tensor evaluation paths and automating the selection of tensor orders.
Summary updated