Newton-Based Optimization for Nonnegative Tensor Factorizations

Samantha Hansen, Todd D. Plantenga, Tamara G. Kolda

Abstract

This paper introduces highly efficient second-order optimization methods for Nonnegative Tensor Factorization (NTF) using the Kullback-Leibler (K-L) divergence—the gold standard for modeling Poisson-distributed count data. By reformulating the problem into independent "row subproblems," the authors enable Newton and quasi-Newton methods to scale to large, sparse datasets, achieving high-accuracy solutions and identifying true sparsity significantly faster than traditional multiplicative update methods.

Introduction

Many real-world datasets—like network traffic logs, social media interactions, or citation counts—are best described as "count data" generated by Poisson processes. To analyze the underlying structure of this data, researchers use Nonnegative Tensor Factorization (NTF). When data follows a Poisson distribution, the appropriate objective function to minimize is the Kullback-Leibler (K-L) divergence.

Canonical Polyadic (CP) decomposition of a tensor into a sum of rank-1 components.

The industry standard for this has long been the Multiplicative Update (MU) algorithm. However, MU has two major flaws:

  1. Slow Convergence: It often takes a massive number of iterations to reach high accuracy.
  2. Sparsity Blindness: MU makes "inactive" variables very small but rarely sets them to exactly zero. This forces researchers to guess an arbitrary threshold (e.g., "is $10^{-6}$ basically zero?") to find sparse patterns.

While second-order methods (like Newton’s method) converge much faster, they are traditionally too computationally expensive to apply to the massive, multi-million-element tensors found in modern data science.

Methodology

The authors bridge the gap between Newton-level speed and tensor-level scale using a Row Subproblem Reformulation.

The Core Innovation

Instead of trying to optimize an entire factor matrix at once (the "block" approach), the authors prove that the problem can be broken down into independent subproblems for every single row of the factor matrix.

  • Efficiency: For a sparse tensor, a single row subproblem only needs to look at a tiny fraction of the total data. This makes the math tractable, fitting into memory and running fast.
  • Parallel Potential: Because these row subproblems are independent, they are "embarrassingly parallel," though the authors focused on a sequential implementation for this paper.

The Algorithms

The authors propose two specific solvers within an alternating block framework:

  1. PDN-R (Projected Damped Newton - Row): Uses exact second-order information (the Hessian). It’s incredibly fast for models with a small number of components ($R$).
  2. PQN-R (Projected Quasi-Newton - Row): Uses an L-BFGS approximation of the Hessian. This scales better as the number of components ($R$) grows, as it avoids the $O(R^3)$ cost of inverting a large matrix.

Both use two-metric gradient projection to ensure the variables stay nonnegative while allowing the algorithm to "hit" the zero bound exactly.

Experimental Evaluation

The algorithms were evaluated on:

  • Synthetic Data: Tensors of size $200 \times 300 \times 400$ with varying ranks ($R=20$ to $100$) and controlled sparsity levels.
  • DBLP Citation Data: A real-world sparse 3-way tensor ($7108 \times 1103 \times 10$) representing authors, conferences, and years. It has a density of only 0.14%.

Key Insights

  • Sparsity as a Feature: By exploiting the fact that most tensor elements are zero, the row subproblem formulation ignores the vast majority of the "Khatri-Rao product" columns that usually bog down NTF calculations.
  • Accuracy and Structure: High-accuracy solutions (measured by KKT conditions) allow the algorithm to definitively set variables to zero, revealing the true sparse "latent factors" in the data.
  • The "Small vs. Zero" Trap: Second-order methods remove the guesswork inherent in thresholding MU results by providing a clear mathematical path to the variable bound at zero.

Results

  • Speedup: For high-accuracy solutions (KKT violation $< 10^{-3}$), PDN-R and PQN-R were often 10x to 50x faster than Multiplicative Updates. On the DBLP dataset, MU failed to reach the target accuracy within three hours, while the new methods finished in minutes.
  • Sparsity Identification: The proposed methods reached the "true" number of zero entries in the factor matrices much earlier in the execution time compared to MU.
  • Robustness: The row-based approach was found to be much more robust than standard block-based Newton methods, which frequently failed to find a valid descent direction when starting far from the optimal solution.

Conclusion and Future Work

While these algorithms find local minima and can be slowed by "swamps" (collinear factor columns), they significantly outperform traditional MU methods. Future work includes developing a distributed, high-performance computing (HPC) version to leverage the inherent parallelism of the row subproblems.

Summary updated

BibTeX
@article{hansen2015newton,
  author = {Samantha Hansen and Todd D. Plantenga and Tamara G. Kolda},
  title = {{Newton-Based Optimization for Nonnegative Tensor Factorizations}},
  journal = {Optim. Methods Softw.},
  year = {2015},
  doi = {10.1080/10556788.2015.1009977},
}
Figure