Skip to main content
QUICK REVIEW

[Paper Review] Tensor Train decomposition on TensorFlow (T3F)

Alexander Novikov, Pavel Izmailov|arXiv (Cornell University)|Jan 5, 2018
Tensor decomposition and applicationsMathematics25 references37 citations
TL;DR

T3F is a TensorFlow-based library for Tensor Train (TT) decomposition that enables efficient, GPU-accelerated machine learning with automatic differentiation and Riemannian optimization. It supports batch processing, TT-rank adaptation, and advanced Riemannian operations, achieving up to 10x speedup over baseline libraries on matrix-vector multiplication and Gram matrix computation with GPU acceleration.

ABSTRACT

Tensor Train decomposition is used across many branches of machine learning. We present T3F -- a library for Tensor Train decomposition based on TensorFlow. T3F supports GPU execution, batch processing, automatic differentiation, and versatile functionality for the Riemannian optimization framework, which takes into account the underlying manifold structure to construct efficient optimization methods. The library makes it easier to implement machine learning papers that rely on the Tensor Train decomposition. T3F includes documentation, examples and 94% test coverage.

Motivation & Objective

  • To address the lack of a comprehensive, production-ready library for Tensor Train decomposition that supports GPU execution, batch processing, and Riemannian optimization in machine learning.
  • To enable reproducibility and accelerate development of machine learning models relying on TT-format parameterization.
  • To provide a flexible, well-documented framework with 94% test coverage for implementing TT-based models in TensorFlow.
  • To support advanced optimization techniques such as Riemannian gradient descent and Hessian projection by exploiting the manifold structure of fixed-rank TT tensors.

Proposed method

  • The library implements two core classes: TensorTrain for single TT-tensors and TensorTrainBatch for batched TT-tensors, both compatible with TensorFlow's computational graph and eager execution.
  • It provides a full suite of operations including elementwise multiplication, matrix-vector and matrix-matrix multiplication, Frobenius norm, and Gram matrix computation, all natively supporting TT-format computation.
  • Riemannian geometry operations are implemented via tangent space projections, with optimized functions like project_sum and project_matvec that exploit linearity and shared tangent spaces for efficiency.
  • Automatic Riemannian differentiation is supported, enabling gradient computation projected onto the tangent space of a TT-tensor with optimal asymptotic complexity.
  • The library includes a rank adaptation function t3f.round to control TT-rank growth during optimization, preserving model efficiency.
  • All operations are designed to work seamlessly with TensorFlow’s autodiff and GPU execution, enabling end-to-end training of TT-structured models.

Experimental results

Research questions

  • RQ1Can a dedicated, high-performance library for Tensor Train decomposition be built on top of TensorFlow that supports GPU acceleration and batch processing?
  • RQ2To what extent can Riemannian optimization techniques improve convergence and stability in TT-parameterized models?
  • RQ3How does the performance of T3F compare to existing TT libraries like TTPY in terms of speed and memory efficiency for core operations?
  • RQ4Can automatic Riemannian differentiation be efficiently implemented in a deep learning framework like TensorFlow?
  • RQ5What is the impact of batch processing and GPU acceleration on the performance of TT-based operations such as matrix-vector multiplication and Gram matrix computation?

Key findings

  • T3F achieves up to 10x speedup over TTPY on matrix-vector multiplication (0.140 ms vs. 1.885 ms per object) when using GPU acceleration.
  • The Gram matrix computation for 100 TT-vectors is accelerated by a factor of 100x on GPU (0.001 ms vs. 0.021 ms per object) compared to CPU batch processing.
  • T3F’s project_sum operation reduces computational complexity from O(bdrArBrA) to O(bdrArBrA + bdrArBrB), enabling efficient Riemannian mini-batch gradient computation.
  • The library demonstrates 94% test coverage and supports both graph and eager execution modes, facilitating prototyping and deployment.
  • T3F outperforms TTPY in all benchmarked operations—matvec, matmul, norm, and gram—on both CPU and GPU, with the largest gains observed on GPU.
  • The integration of automatic Riemannian differentiation allows for efficient optimization on the TT manifold, preserving theoretical guarantees while improving convergence.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.