Efficient Algorithms for the Hadamard Decomposition

Samuel Wertz, Arnaud Vandaele, Nicolas Gillis

Introduction

Low-Rank Approximation (LRA), such as Singular Value Decomposition (SVD), is a cornerstone of data science for compression and pattern discovery. However, standard LRA is constrained by its linear rank: a rank-$r$ approximation can only capture $r$ independent components. Hadamard decomposition offers a more expressive alternative by approximating a matrix $X$ as the element-wise (Hadamard) product of multiple low-rank matrices, e.g., $X \approx (W_1H_1) \circ (W_2H_2)$. Mathematically, the product of two rank-$r$ matrices can achieve a rank of up to $r^2$, allowing for the representation of significantly more complex structures with fewer parameters.

Despite its potential, optimizing Hadamard decomposition is a non-convex and challenging problem. Traditional approaches using Alternating Gradient Descent (AGD) are often slow and sensitive to hyperparameters. This paper introduces a highly efficient Block-Coordinate Descent (BCD) framework that leverages exact sub-problem solvers and specialized initialization to overcome these hurdles.

Methodology

Block-Coordinate Descent (BCD) with Exact Resolution

The core of the proposed framework is a BCD approach that avoids the pitfalls of gradient-based methods. By fixing three of the four factor matrices, the optimization for the remaining matrix becomes a convex least-squares problem. The authors solve this column-wise using an exact linear system solver with $O(r^3)$ complexity. This eliminates the need for manual step-size tuning and ensures optimal updates at each step.

SVD-Based Initialization

Initialization is critical in non-convex optimization. The authors propose a "magnitude and sign" split strategy: taking the element-wise square root of the target matrix's absolute values and using SVD to initialize the factors. As shown below, this domain-specific heuristic significantly outperforms standard initializations like Xavier or K-Means, providing a starting point much closer to the global optimum.

Convergence comparison of different initialization strategies, highlighting the superiority of SVD-based initialization.

Momentum and Multi-Factor Generalization

To further accelerate convergence, the framework incorporates an extrapolation technique similar to Nesterov momentum. An acceleration parameter is dynamically updated based on the error trend of the previous iteration. Additionally, the framework generalizes to $p$ factors, enabling even higher effective ranks while maintaining computational efficiency through a nested loop structure.

Experimental Results

Convergence Analysis

The researchers evaluated the BCD framework against the traditional AGD method on synthetic datasets. The results demonstrate that the BCD method reaches significantly lower error levels in a fraction of the iterations required by AGD.

Comparison of convergence rates between the proposed BCD* and the traditional AGD method, showing faster and deeper convergence for BCD*.

Performance on Sparse and Structural Data

The algorithm was tested on real-world datasets, including image benchmarks ("Cameraman") and social/biological networks (Football and Les Misérables). On sparse networks, Hadamard decomposition consistently outperformed SVD for the same parameter budget. The authors also proved that Hadamard decomposition can reconstruct an $n \times n$ identity matrix with a very small parameter budget, although numerical stability becomes a factor as $n$ increases.

Conclusion

The proposed BCD framework makes Hadamard decomposition a practical tool for high-expressivity matrix approximation. By combining exact sub-problem resolution with SVD-based initialization and momentum acceleration, the method achieves superior convergence and reconstruction accuracy compared to previous gradient-based approaches. Future work will focus on refining initialization strategies for larger dimensions and exploring deeper Hadamard architectures.

Summary updated

BibTeX
@inproceedings{wertz2025efficient,
  author = {Samuel Wertz and Arnaud Vandaele and Nicolas Gillis},
  title = {{Efficient Algorithms for the Hadamard Decomposition}},
  booktitle = {MLSP},
  year = {2025},
}
Figure