Learning Efficient Tensor Representations with Ring Structure Networks

Qibin Zhao, Masashi Sugiyama, Longhao Yuan, Andrzej Cichocki

TL;DR

This paper introduces Tensor Ring (TR) decomposition, a powerful generalization of the popular Tensor Train (TT) format. By connecting the ends of a tensor "train" into a "ring" using a trace operation, the authors create a representation that is more flexible, symmetric, and robust to the order of data dimensions while achieving significantly higher compression rates for high-dimensional data like images and neural network weights.

What Problem Does This Paper Address?

In the age of big data, we often deal with "tensors"—multi-dimensional arrays representing video, medical images, or neural network parameters. Storing and processing these directly is often impossible due to the curse of dimensionality, where the number of elements grows exponentially with the number of dimensions.

Existing solutions have significant drawbacks:

  • CP Decomposition: Very compact but numerically unstable and hard to compute.
  • Tucker Decomposition: Stable but still scales exponentially with the number of dimensions.
  • Tensor Train (TT): A modern favorite that scales linearly, but it has a "bottleneck" at its ends (the first and last ranks must be 1) and is highly sensitive to the order in which you arrange the dimensions. If you shift the dimensions of your data, a TT model that worked well might suddenly require massive amounts of memory.

The authors aim to bridge these gaps by proposing a structure that is as stable as TT but more flexible and mathematically "elegant" through symmetry.

Methods

The core innovation is the Tensor Ring (TR) decomposition. While a Tensor Train represents a high-order tensor as a sequence of matrix products, the Tensor Ring adds a connection between the first and last "cores."

Tensor Ring Decomposition Diagram

Mathematically, this is achieved by taking the trace of the product of several 3rd-order core tensors. This simple change has profound effects:

  1. Circular Invariance: Unlike TT, if you circularly shift the dimensions of your data, the TR representation remains consistent.
  2. Relaxed Constraints: TR does not force the boundary ranks to be 1, allowing it to capture complex correlations more efficiently.

The authors provide three primary algorithms to learn these representations:

  • TR-SVD: A fast, non-iterative algorithm based on sequential Singular Value Decompositions.
  • Block-wise ALS (BALS): An iterative method that can automatically adapt the "ranks" (the internal complexity) of the model to find the best compression-accuracy tradeoff.
  • TR-SGD: A stochastic gradient descent approach designed for massive datasets or online learning where you can't load all the data at once.

Datasets

The authors evaluated their model across a diverse range of benchmarks:

  • Synthetic Functions: Highly oscillatory mathematical functions (e.g., Airy and Chirp functions) to test approximation accuracy and noise robustness.
  • CIFAR-10 & COIL-100: Standard image datasets used to test compression and reconstruction.
  • KTH Video Dataset: Used to demonstrate the model's ability to handle temporal data and human action recognition.
  • MNIST & SVHN: Used to test "Tensorizing Neural Networks," where standard fully-connected layers are replaced with TR-compressed layers.

Key Insights and Ideas

  • Symmetry Matters: By making the model a ring, every dimension is treated equally. This removes the "edge effects" found in Tensor Trains, where the middle dimensions often have much higher ranks than the ends.
  • Multi-scale Feature Capture: The authors show that different "cores" in the ring naturally correspond to different scales of an image—some cores capture small-scale patches, while others capture large-scale partitions.
  • Robustness to Noise: In synthetic tests, TR models significantly outperformed TT models when the data was corrupted by noise, suggesting that the ring structure is better at "filtering" out irregularities.
  • Neural Network Compression: Replacing a standard weight matrix with a TR representation allowed for a compression of up to 1300x while maintaining or even improving test accuracy compared to TT-based compression.

Key Results

  • Compression Efficiency: On image datasets, TR achieved a much higher compression rate for the same approximation error compared to TT, preserving visual fidelity even at high compression ratios.
Image Reconstruction Comparison
  • Invariance to Permutation: When shifting the dimensions of a 10th-order tensor, the average rank of a TT model fluctuated wildly (from 5.2 to 14.6), while the TR model remained perfectly stable (around 4.9).
  • Classification Performance: On the KTH video dataset, TR-SVD achieved 87.7% accuracy with a maximum rank of 27, outperforming TT-SVD (84.8% accuracy with rank 139) and CP-ALS (80.8% accuracy with rank 300).
  • Training Speed: The TR-SGD algorithm proved highly scalable, achieving a relative error of 0.01 on a massive synthetic dataset ($10^8$ elements) using only 1% of the data points in a single pass.

Limitations and Future Work

While the paper demonstrates clear advantages, a few areas remain open for exploration:

  • Rank Selection: Although BALS can adapt ranks, choosing the initial "target" error or rank remains somewhat heuristic.
  • Rounding: The authors mention a "rounding procedure" to optimize core sizes after operations like addition, but this isn't the primary focus of the paper.
  • Complex Topologies: The ring is a simple loop. Future work could investigate more complex "Tensor Network" graphs (like grids or trees) for even more specialized data structures.
  • Theoretical Bounds: While empirical results are strong, more rigorous theoretical bounds on the approximation capabilities of TR versus TT for specific classes of tensors would be valuable.

Summary updated

BibTeX
@inproceedings{zhao2018learning,
  author = {Qibin Zhao and Masashi Sugiyama and Longhao Yuan and Andrzej Cichocki},
  title = {{Learning Efficient Tensor Representations with Ring Structure Networks}},
  booktitle = {Workshops @ ICLR},
  year = {2018},
}
Figure