Provable Online CP/PARAFAC Decomposition of a Structured Tensor via Dictionary Learning

Sirisha Rambhatla, Xingguo Li, Jarvis D. Haupt

Introduction

Tensor decomposition, particularly Canonical Polyadic (CP) or PARAFAC decomposition, is a fundamental technique for extracting latent factors from multi-dimensional data. By decomposing a 3-way tensor into its constituent factors, researchers can uncover complex interactions between different features. However, this task is inherently difficult because the optimization landscape is non-convex.

Existing provable algorithms for tensor factorization often suffer from three major drawbacks. First, they typically assume homogeneous structures, requiring all factors to be either sparse or incoherent. Second, many methods incur an irreducible estimation bias. Finally, most are batch-oriented, making them unsuitable for real-time streaming applications. This paper introduces TensorNOODL, an online algorithm designed to handle heterogeneously structured tensors (e.g., one incoherent factor and two sparse factors) with provable exact recovery guarantees.

Methodology: Tensor Factorization as Dictionary Learning

The core innovation of TensorNOODL is reframing the 3-way tensor factorization problem as a matrix dictionary learning task. This approach allows the algorithm to leverage efficient online optimization techniques.

Matricization and Online Learning

When a new tensor slice arrives, the algorithm identifies and flattens its non-zero fibers. This process transforms the tensor slice into a matrix $Y^{(t)}$, which can be modeled as $Y^{(t)} = \mathbf{A}^* \mathbf{X}^{*(t)}$. Here, $\mathbf{A}^*$ represents the incoherent dictionary (the fixed underlying patterns), and $\mathbf{X}^{*(t)}$ is a sparse coefficient matrix.

Transformation of the 3-way tensor factorization problem into a matrix dictionary learning task.

The algorithm uses an online dictionary learning framework, employing Iterative Hard Thresholding (IHT) to update the dictionary $\mathbf{A}$ and estimate the sparse coefficients $\mathbf{X}$ sequentially.

Untangling the Khatri-Rao Product

The matricization step merges two of the original tensor factors ($\mathbf{B}$ and $\mathbf{C}$) into the single matrix $\mathbf{X}$ via a Khatri-Rao Product (KRP). To recover the original factors, the authors developed a novel SVD-based algorithm called Untangle-KRP. This step mathematically separates the estimated $\mathbf{X}$ back into the individual sparse factors $\mathbf{B}$ and $\mathbf{C}$, ensuring the full CP decomposition is recovered.

Theoretical Guarantees

TensorNOODL provides the first provable guarantees for exact, unbiased recovery of factors in the mixed-structure setting. Under mild conditions regarding initialization, rank ($m = \mathcal{O}(n)$), and sparsity, the algorithm converges at a linear rate.

Comparison of TensorNOODL with existing state-of-the-art methods in terms of recovery guarantees and conditions.

As shown in the comparison table, unlike prior works by Sun et al. (2017) or Anandkumar et al. (2015) which may have estimation bias or slower convergence, TensorNOODL achieves zero bias and maintains linear convergence.

Experimental Results

The authors validated TensorNOODL across synthetic and real-world datasets:

  • Synthetic Data: The algorithm achieved exact support recovery with relative Frobenius errors reaching $10^{-10}$, significantly outperforming traditional baselines that plateaued at much higher error levels.
  • Enron Email Dataset: By analyzing a 184x184x44 tensor of employee communications, TensorNOODL successfully identified four distinct organizational cliques (Legal, Executive, Pipeline, Trading) with higher cluster purity than competing methods.
  • NBA Shot Patterns: Using streaming data from the 2018–19 season, the algorithm clustered players by playstyle. It successfully matched players like James Harden and Devin Booker based on their shared preference for specific 3-point zones and rim attacks.

Conclusion

TensorNOODL bridges the gap between theoretical provability and practical scalability in tensor decomposition. By reducing the problem to dictionary learning and providing an "untangling" mechanism for structured factors, it enables unbiased, real-time analysis of complex multi-dimensional data. While current theoretical bounds on sample complexity are conservative, the algorithm's empirical performance demonstrates its robustness for large-scale, streaming applications.

Summary updated

Abstract

We consider the problem of factorizing a structured 3-way tensor into its constituent Canonical Polyadic (CP) factors. This decomposition, which can be viewed as a generalization of singular value decomposition (SVD) for tensors, reveals how the tensor dimensions (features) interact with each other. However, since the factors are a priori unknown, the corresponding optimization problems are inherently non-convex. The existing guaranteed algorithms which handle this non-convexity incur an irreducible error (bias), and only apply to cases where all factors have the same structure. To this end, we develop a provable algorithm for online structured tensor factorization, wherein one of the factors obeys some incoherence conditions, and the others are sparse. Specifically we show that, under some relatively mild conditions on initialization, rank, and sparsity, our algorithm recovers the factors exactly (up to scaling and permutation) at a linear rate. Complementary to our theoretical results, our synthetic and real-world data evaluations showcase superior performance compared to related techniques. Moreover, its scalability and ability to learn on-the-fly makes it suitable for real-world tasks.
BibTeX
@inproceedings{rambhatla2020provable,
  author = {Sirisha Rambhatla and Xingguo Li and Jarvis D. Haupt},
  title = {{Provable Online CP/PARAFAC Decomposition of a Structured Tensor via Dictionary Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=JM4NOmmFW9},
}
Figure