A Flexible and Efficient Algorithmic Framework for Constrained Matrix and Tensor Factorization

Kejun Huang, Nicholas D. Sidiropoulos, Athanasios P. Liavas

TL;DR

The authors introduce AO-ADMM, a unified algorithmic framework that combines Alternating Optimization (AO) with the Alternating Direction Method of Multipliers (ADMM) to solve constrained matrix and tensor factorization problems. This "plug-and-play" approach allows researchers to easily swap between different constraints (like non-negativity or sparsity) and loss functions (like robust $l_1$ or K-L divergence) without sacrificing the computational efficiency of traditional Least-Squares methods.

What Problem Does This Paper Address?

Matrix and tensor factorizations are the workhorses of modern data science, used for everything from dimensionality reduction to blind source separation. While unconstrained versions (like PCA) are well-understood and easy to solve, real-world data often requires specific constraints to ensure the results are physically meaningful or interpretable—for example, chemical concentrations must be non-negative, and document topics should be sparse.

The challenge is that existing algorithms are fragmented. An algorithm designed for non-negative matrix factorization (NMF) usually can't handle simplex constraints or robust loss functions without a total redesign. Furthermore, these specialized algorithms often lose the computational "tricks" (like caching matrix decompositions) that make unconstrained Alternating Least Squares (ALS) so fast. The authors sought a single, efficient framework that could handle almost any combination of constraints and loss functions.

Methods

The proposed framework, AO-ADMM, uses a nested optimization strategy:

  1. Outer Loop (AO): Following the standard "block coordinate descent" approach, the algorithm updates one factor matrix at a time while keeping the others fixed. This turns a complex, non-convex problem into a series of smaller convex sub-problems.
  2. Inner Loop (ADMM): Instead of looking for a closed-form solution (which often doesn't exist for constrained problems), the authors use ADMM to solve each sub-problem. ADMM is particularly powerful here because it uses proximity operators—simple, element-wise operations that can enforce constraints like non-negativity or $l_1$ sparsity very cheaply.

To make this hybrid approach competitive with specialized solvers, the authors employ three key efficiency strategies:

  • Cholesky Caching: They pre-calculate and reuse matrix decompositions, mirroring the efficiency of ALS.
  • Warm Starts: Because the factor matrices don't change much between outer iterations, the solution from the previous step is used as the starting point for the next, often reducing the inner ADMM loop to just a single iteration.
  • Proximal Regularization: A small penalty term is added to ensure the algorithm converges to a stationary point, even for complex tensor problems.

Datasets

The authors evaluated AO-ADMM across a wide variety of real-world and synthetic datasets:

  • Image Processing: Extended Yale Face Database B (dense images) and a CT image dataset (3D tensor).
  • Text Mining: TDT2 text corpus (sparse document-term matrix).
  • Social Networks: Facebook Wall Posts (large sparse tensor).
  • Chemistry: Amino acids fluorescence data (tensor completion).
  • Recommender Systems: MovieLens 100k (matrix completion with biases).
  • Machine Learning: MNIST handwritten digits (for dictionary learning).

Key Insights and Ideas

  • The "One-Iteration" Trick: Perhaps the most surprising insight is that you don't need to solve the ADMM sub-problem to high precision. Thanks to "warm starts" from the AO loop, performing just one or two ADMM iterations is often sufficient to ensure overall convergence, making the per-iteration cost nearly identical to unconstrained ALS.
  • Unified Constraints via Proximity: By using ADMM, the complexity of the constraint is moved into the proximity operator. Whether you want non-negativity, Lasso regularization, or smoothness, the "heavy lifting" of the matrix multiplication remains the same; only the final element-wise step changes.
  • Handling Missing Data: The framework treats missing values (matrix completion) as just another loss function. This allows it to outperform traditional Expectation-Maximization (EM) methods by suppressing artifacts caused by systematically missing data.

Key Results

  • Speed and Accuracy: In NMF tasks, AO-ADMM consistently reached lower error rates faster than state-of-the-art specialized solvers like AO-BPP and Accelerated HALS.
  • Dictionary Learning: On the MNIST dataset, AO-ADMM trained a non-negative dictionary in just 40 seconds, compared to 3 minutes for the highly optimized C++ package SPAMS, despite AO-ADMM being implemented in MATLAB.
  • Flexibility in Recommender Systems: On MovieLens data, the authors showed how easily they could add "biases" (user/movie offsets) and non-negativity constraints to a K-L divergence loss, achieving a 6% improvement over classical collaborative filtering results.

Limitations and Future Work

While highly flexible, the authors note a few trade-offs:

  • General Loss Overhead: When moving away from Least-Squares to general loss functions (like Huber or $l_1$), the algorithm loses some caching benefits. Specifically, a large matrix product must be recomputed in every inner ADMM iteration, which can be expensive for very large datasets.
  • Convergence Assumptions: The proof that the algorithm reaches a stationary point assumes the sequence of updates remains bounded. While usually true in practice (especially with Frobenius norm regularization), it is a theoretical requirement.
  • Scalability: While the paper discusses sparse implementations, truly massive "Big Data" applications might require further parallelization of the ADMM steps across distributed systems.

Summary updated

BibTeX
@article{huang2016flexible,
  author = {Kejun Huang and Nicholas D. Sidiropoulos and Athanasios P. Liavas},
  title = {{A Flexible and Efficient Algorithmic Framework for Constrained Matrix and Tensor Factorization}},
  journal = {IEEE Trans. Signal Process.},
  year = {2016},
  doi = {10.1109/tsp.2016.2576427},
}
Figure