Tensor Train polynomial models via Riemannian optimization

Alexander Novikov, Mikhail Trofimov, Ivan V. OseledetsarXiv 2016

Introduction

In many machine learning applications, feature interactions are non-additive. For instance, in sentiment analysis, the combination of "not" and "like" conveys a meaning distinct from the individual words. While modeling pairwise interactions is common, capturing all possible high-order interactions (triplets, quadruplets, etc.) is traditionally computationally prohibitive. For a dataset with $d$ features, there are $2^d$ possible interaction subsets. Storing weights for each would lead to exponential parameter growth and severe overfitting. This paper introduces Exponential Machines (ExM), a framework that models full polynomial complexity while keeping parameter counts and computation time linear with respect to $d$.

Methods

The core of the ExM model is the Tensor Train (TT) Factorization. Instead of an exponentially large weight tensor $\mathcal{W}$, the model uses the TT-format to decompose it into a chain of small, 3-dimensional cores.

Visualization of the Tensor Train (TT) decomposition

This decomposition reduces the parameter count from $O(2^d)$ to $O(d \cdot r^2)$, where the hyperparameter $r$ (TT-rank) controls model capacity and acts as a regularizer.

To train these models effectively, the authors employ Stochastic Riemannian Optimization. Standard SGD often fails on factorized tensors due to vanishing or exploding gradients. By treating the set of fixed-rank tensors as a Riemannian manifold, the algorithm projects gradients onto the tangent space and retracts updated weights back onto the manifold, ensuring stable and efficient convergence. Additionally, the authors prove that a standard linear model is a special case of an ExM with TT-rank 2, allowing for effective initialization using pre-trained linear weights.

Experimental Evaluation

The authors evaluated ExM across several benchmarks, including the UCI Car and HIV datasets, synthetic data with 6th-degree polynomial interactions, and the MovieLens 100K recommender system dataset.

Key Results

ExM demonstrated superior performance on tasks requiring high-order interaction modeling. On synthetic data, ExM (rank 16) achieved an AUC of 0.96, while standard models like Logistic Regression and Random Forests performed near random guessing (0.50–0.56).

The Riemannian optimization approach also showed significant efficiency gains. On the HIV dataset, it reached a training loss of $10^{-4}$ approximately 20 times faster than the SGD baseline.

Training loss convergence on Car and HIV datasets

As illustrated in the convergence plots, the Riemannian methods consistently outperform core-wise SGD approaches in terms of both speed and final loss stability across different datasets.

Conclusion and Future Work

The Exponential Machine framework successfully scales high-order interaction modeling to astronomical parameter spaces (up to $2^{160}$) through the power of Tensor Train decomposition and Riemannian optimization. Future work includes improving support for sparse data and developing automated methods for TT-rank selection to further enhance the model's usability in diverse real-world scenarios.

Summary updated

BibTeX
@misc{novikov2016tensor,
  author = {Alexander Novikov and Mikhail Trofimov and Ivan V. Oseledets},
  title = {{Tensor Train polynomial models via Riemannian optimization}},
  year = {2016},
  eprint = {1605.03795},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1605.03795},
}
Figure