Tensor Factorization via Matrix Factorization

Volodymyr Kuleshov, Arun Tejasvi Chaganty, Percy Liang

Abstract

Tensor factorization, particularly CANDECOMP/PARAFAC (CP) decomposition, is a vital tool in machine learning for modeling complex data structures. However, traditional methods often struggle with computational complexity and sensitivity to noise. This paper introduces a novel two-stage algorithm that reduces CP tensor factorization to the more mature problem of simultaneous matrix diagonalization. By employing random projections followed by a "plug-in" refinement step, the method achieves state-of-the-art accuracy and robustness. Experimental results on synthetic and real-world datasets demonstrate that this approach outperforms existing methods like the Tensor Power Method (TPM) and Alternating Least Squares (ALS), particularly in noisy environments.

Introduction

Tensor factorization is a cornerstone of modern machine learning, with applications ranging from topic modeling to parameter estimation in latent variable models. Unlike matrix factorization (e.g., SVD), tensor factorization is mathematically challenging; finding the best fit is generally NP-hard. Existing algorithms, such as the Tensor Power Method (TPM) or Alternating Least Squares (ALS), frequently converge to local optima or exhibit extreme sensitivity to the eigengap—the difference between eigenvalues. When factors are similar, these algorithms become unstable. This research proposes a method that is both computationally efficient and theoretically robust to such instabilities.

Methodology: A Two-Stage Approach

The proposed algorithm simplifies high-order tensor factorization into a series of matrix operations through two primary stages:

  1. Random Projections and Simultaneous Diagonalization: The high-order tensor is first projected onto a small set of random vectors (approximately $O(\log k)$). This process "squashes" the tensor into a collection of matrices that share the same underlying eigenvectors. Mature, numerically stable matrix subroutines, such as the Jacobi method for orthogonal cases or QRJ1D for non-orthogonal cases, are then used to find these common eigenvectors, providing an initial estimate of the tensor factors.
  2. Plug-in Refinement: To reach peak accuracy, the algorithm performs a second round of projections. Instead of random vectors, it uses the estimates from the first stage as the projection directions. This "plug-in" step effectively removes the dependence on the eigengap and significantly cleans up the signal.
The impact of the plug-in refinement step. In both orthogonal and non-orthogonal cases, the plug-in projections (green) achieve lower and more stable error rates than initial random projections (blue), regardless of the number of projections used.

This approach is versatile, applying to symmetric, asymmetric, orthogonal, and non-orthogonal tensors of any order.

Experimental Evaluation

The method was evaluated using a combination of synthetic and real-world datasets:

  • Synthetic Tensors: Tensors with varying noise levels, dimensions ($d$), and ranks ($k$) were used to validate theoretical error bounds.
  • Facebook Social Network: A real-world dataset for community detection, where ground truth is defined by student attributes like dorms and majors.
  • Crowdsourcing Benchmarks: Four standard datasets (Web, RTE, Birds, Dogs) containing real-world annotations were used to test the algorithm's ability to predict correct labels from noisy worker input.

Key Results

The proposed method demonstrates significant improvements over traditional techniques across several metrics.

Robustness to Noise

On full-rank synthetic data, the proposed method (OJD1) was found to be up to 3x more accurate than the standard TPM. As shown in Figure 2, OJD1 maintains lower error rates across a wide range of noise levels compared to competing algorithms.

Performance of various algorithms across different noise levels. OJD1 consistently outperforms TPM and other baselines.

Real-World Gains

In community detection tasks on the Facebook dataset, the authors observed a 15% reduction in error compared to recent spectral methods. Furthermore, on crowdsourcing label prediction tasks, the method achieved up to an 8% improvement in accuracy, matching or outperforming state-of-the-art Expectation-Maximization (EM) estimators on most datasets.

Efficiency and Implementation

The algorithm is significantly simpler to implement and faster than high-performance alternatives like Lathauwer’s method, which requires solving massive $O(d^4)$ linear systems. By leveraging decades of optimization in matrix diagonalization, the method "outsources" the most difficult computational tasks to highly stable subroutines.

Conclusion

This paper presents a robust and efficient framework for tensor factorization by reducing it to simultaneous matrix diagonalization. The two-stage strategy—using random projections for a coarse estimate and a plug-in step for refinement—effectively overcomes the eigengap sensitivity that hindered previous matrix-reduction methods. While future work may explore global convergence proofs for the joint diagonalization step and scaling to even higher-order tensors, the current results establish this method as a powerful tool for modern machine learning applications.

Summary updated

BibTeX
@inproceedings{kuleshov2015tensor,
  author = {Volodymyr Kuleshov and Arun Tejasvi Chaganty and Percy Liang},
  title = {{Tensor Factorization via Matrix Factorization}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2015},
  url = {https://openreview.net/forum?id=UIdhX2FOCu5},
}
Figure