Tensor Analyzers

Yichuan Tang, Ruslan Salakhutdinov, Geoffrey E. Hinton

This paper, presented at ICML 2013 by Yichuan Tang, Ruslan Salakhutdinov, and Geoffrey Hinton, introduces Tensor Analyzers (TAs)—a powerful generalization of Factor Analysis designed to capture the multiplicative interactions often found in complex, real-world data.

The Problem with Standard Factor Analysis

Standard Factor Analysis (FA) is a staple of statistics used to explain data through unobserved latent variables. However, FA is fundamentally additive: it assumes an observation is simply a weighted sum of factors plus noise.

This is a poor fit for many types of data where factors interact multiplicatively. Consider a photograph of a face: the final image is the result of facial geometry (identity) interacting with the environment's light. If you change the light, the way the geometry "loads" onto the pixels changes. To model 100 people under various lights using standard FA, you would need 100 separate models. The authors sought a way to compactly model these interactions within a single, unified probabilistic framework that can generalize to entirely new people or lighting conditions.

Enter Tensor Analyzers

The core innovation of this paper is replacing the standard FA loading matrix with a loading tensor.

Tensor Analyzer Diagram
  • Multilinear Interactions: In a TA, the latent variables are divided into $J$ groups (e.g., one group for identity, one for lighting). The loading tensor defines how these groups interact to produce the final observation.
  • Conditional Linearity: The "magic" of the TA is that if you fix all groups of factors except one, the model collapses back into a standard linear Factor Analyzer.
  • Inference via Gibbs Sampling: Because the model is locally linear, the authors use alternating Gibbs sampling. They cycle through the factor groups, drawing samples from the posterior distribution of one group while holding the others constant. This is computationally efficient because each conditional posterior is a simple Gaussian.
  • Learning: The model is trained using a stochastic version of the Expectation-Maximization (EM) algorithm. In the E-step, MCMC samples approximate sufficient statistics; in the M-step, closed-form equations update the tensor parameters.
  • Supervision: The model can incorporate "equality constraints"—for example, telling the model that a set of images all share the same identity factor—allowing it to function in unsupervised, semi-supervised, or fully supervised modes.

Key Insights and Results

The authors evaluated TAs and Mixtures of Tensor Analyzers (MTAs) on several benchmarks, including synthetic 2D data, Berkeley Natural Images, the Extended Yale B Face Database, and the UMIST Face Database.

Disentanglement and One-Shot Generalization

By design, TAs encourage the model to separate different "modes" of variation. In face experiments, one latent group naturally learns to represent lighting direction while the other represents identity.

One-Shot Face Generalization

Because the model learns a "basis" of how identity and light interact, it can recognize a new person after seeing only a single image. It simply infers the identity code for that image and can then "predict" what that person would look like under any other lighting condition. On the Yale B dataset, the TA achieved a stunning 6.4% error rate in one-shot face recognition. For context, standard Factor Analysis had a 19.6% error, and a Support Vector Machine (SVM) lagged at 35.5%. It even outperformed specialized tensor decomposition methods like "TensorFaces."

Efficiency in Complexity

An MTA (Mixture of TAs) can outperform a Mixture of Factor Analyzers (MFA) using far fewer mixture components because each TA component is significantly more expressive. For natural image patches, MTAs outperformed MFAs when the number of mixture components was small (under 50), proving that the multilinear structure captures more "structure per parameter" than purely linear models.

Limitations and Future Work

The authors note that while inference is efficient, the E-step is not exact because it relies on sampling. This introduces noise into the learning process, which can slightly degrade performance compared to models with closed-form posteriors (like MFA) when a very high number of mixture components are used.

Additionally, while the matrix inversions required are small, the overall training time for large-scale image datasets can be significant (e.g., 33 hours for the natural image experiment). Future work might involve exploring faster inference methods or applying TAs to even higher-dimensional data like video or hyperspectral imagery.

Summary updated

BibTeX
@inproceedings{tang2013tensor,
  author = {Yichuan Tang and Ruslan Salakhutdinov and Geoffrey E. Hinton},
  title = {{Tensor Analyzers}},
  booktitle = {International Conference on Machine Learning},
  year = {2013},
}
Figure