Exponential Machines

Alexander Novikov, Mikhail Trofimov, Ivan Oseledets

TL;DR

Exponential Machines (ExM) is a novel predictor designed to model all possible interactions between features—of every order—by representing an exponentially large weight tensor in the highly compact Tensor Train (TT) format. By employing stochastic Riemannian optimization, the authors successfully train models with up to $2^{160}$ parameters on a single machine, outperforming standard methods on complex, high-order data.

What Problem Does This Paper Address?

In machine learning, features rarely act in isolation. In sentiment analysis, for example, the word "like" is generally positive, but the pair "not" + "like" is negative. This is a "second-order" interaction. To capture deeper nuances, models often need to look at triplets, quadruplets, or even higher-order combinations of features.

The primary bottleneck is mathematical complexity. If a dataset has $d$ features, there are $2^d$ possible subsets of interactions. For a dictionary of just 160 words, $2^{160}$ is a number vastly larger than the estimated number of atoms in the observable universe. Storing a distinct weight for every possible interaction is physically impossible. Consequently, existing solutions like Factorization Machines (FM) typically stop at second- or third-order interactions to prevent computational explosion.

Methods

The authors introduce Exponential Machines (ExM) to bypass this combinatorial explosion. The core innovation lies in how they handle the massive weight tensor $\mathcal{W}$:

  1. Tensor Train (TT) Format: Instead of attempting to store $2^d$ individual weights, the authors factorize the weight tensor into a sequence of small, interconnected matrices known as TT-cores. This reduces the parameter count from $O(2^d)$ to $O(d \cdot r^2)$, where $r$ (the TT-rank) is a small constant that controls the model's overall complexity and capacity.
Visualization of the Tensor Train (TT) format factorizing a large tensor into smaller interconnected cores.
  1. Stochastic Riemannian Optimization: Training factorized tensors with standard Stochastic Gradient Descent (SGD) is notoriously difficult because gradients can easily vanish or explode. To solve this, the authors treat the set of fixed-rank tensors as a "Riemannian manifold"—a smooth geometric surface. Their algorithm performs optimization steps directly on this surface, which proves to be significantly more stable and faster than standard SGD.
  2. Smart Initialization: The authors mathematically prove that a standard linear model (like logistic regression) is actually a special case of an ExM with a TT-rank of 2. This insight allows them to "warm-start" the complex ExM using the pre-trained weights of a simple linear model, ensuring a stable starting point for optimization.

Datasets

The authors evaluated ExM across four distinct types of data to test its versatility:

  • UCI Car Dataset: A small classification task featuring categorical variables.
  • UCI HIV Dataset: A binary classification task involving 160 features.
  • Synthetic Data: A custom dataset explicitly designed with 6th-order interactions to test if the model could uncover high-order patterns that traditional models miss.
  • MovieLens 100K: A classic, widely-used recommender system benchmark.

Key Insights and Ideas

  • The "All-Order" Advantage: Unlike Factorization Machines, which are typically limited to a fixed interaction order (e.g., 2nd or 3rd), ExM considers every possible combination of features simultaneously without explicitly calculating them all.
  • Linear Models are "Rank 2": One of the most elegant theoretical findings in the paper is the link between simple and complex models. By demonstrating that a linear model is merely a rank-2 TT-tensor, the authors provide a clear, principled path for increasing model capacity: simply increase the TT-rank.
  • Geometry Matters: The paper highlights that the geometry of the parameter space is crucial for training success. Their Riemannian approach succeeded on synthetic data where standard SGD completely failed to converge.
  • Beyond Polynomials: The ExM framework can be extended to handle interactions between functions of features (like $\log(x)$ or $\sin(x)$), rather than just the raw features themselves, adding another layer of expressiveness.

Key Results

  • Synthetic Superiority: On data specifically containing 6th-order interactions, ExM (using rank 16) achieved a 0.96 AUC, matching the best high-order Factorization Machines while being significantly faster at inference. Standard baselines like Random Forests and Neural Networks struggled, scoring only around 0.50–0.55.
  • Unprecedented Efficiency: Thanks to the TT-format, the authors successfully "fitted" a tensor that theoretically contains $2^{160}$ entries on a single machine.
  • MovieLens Performance: ExM performed on par with state-of-the-art high-order Factorization Machines on the MovieLens 100K dataset, achieving a 0.784 AUC.
  • Training Speed: On the HIV dataset, the Riemannian optimization converged roughly 20 times faster than the SGD baseline, proving the practical value of their geometric optimization approach.
Training loss over time comparing Riemannian optimization against standard SGD on the Car and HIV datasets.

Limitations and Future Work

The primary limitation acknowledged by the authors is sparsity. The current Riemannian optimization algorithm does not natively support sparse data updates. For datasets with hundreds of thousands of features—which are common in web-scale advertising and recommendation—the authors had to fall back to the less-efficient SGD baseline.

Future work will likely focus on adapting these Riemannian techniques to handle sparse updates natively. Overcoming this hurdle would allow Exponential Machines to scale seamlessly to the massive, sparse datasets found in industrial-scale recommendation engines.

Summary updated

BibTeX
@inproceedings{novikov2017exponential,
  author = {Alexander Novikov and Mikhail Trofimov and Ivan Oseledets},
  title = {{Exponential Machines}},
  booktitle = {International Conference on Learning Representations},
  year = {2017},
  url = {https://openreview.net/forum?id=rkYmiD9lg},
}
Figure