Structured BFGS Method for Optimal Doubly Stochastic Matrix Approximation

Dejun Chu, Changshui Zhang, Shiliang Sun, Qing TaoAAAI 2023

Abstract: This paper presents a Structured BFGS (s-BFGS) method for the optimal doubly stochastic matrix approximation problem. By leveraging the diagonal structure of the generalized Hessian in the dual formulation, the method achieves $O(n)$ per-iteration complexity. Numerical results demonstrate that s-BFGS significantly outperforms state-of-the-art first-order and second-order methods in terms of CPU time and scalability.

Introduction

The problem of Optimal Doubly Stochastic Matrix Approximation involves finding a matrix $X$ that minimizes $\|X - A\|_F^2$ subject to $X \mathbf{1} = \mathbf{1}$, $X^T \mathbf{1} = \mathbf{1}$, and $X \ge 0$. This is equivalent to projecting a matrix $A$ onto the Birkhoff polytope, a task essential in fields ranging from Markov chain analysis to deep learning attention mechanisms and spectral clustering.

While mathematically straightforward, solving this at scale is computationally demanding. Standard first-order methods like the dual gradient method (DualBB) are simple but often require many iterations to converge. Conversely, second-order methods like the semismooth Newton method (SSNCG1) offer fast convergence in terms of iterations but incur high computational costs per step. The s-BFGS method aims to bridge this gap by providing second-order-like convergence with first-order-like per-iteration costs.

The s-BFGS Method

The proposed s-BFGS method operates on the dual formulation of the problem, which reduces the number of variables from $n^2$ to $2n$. The core innovation lies in the "structured" update of the quasi-Newton matrix. Instead of a standard dense BFGS update, the authors initialize the inverse Hessian approximation using the diagonal components of the true generalized Hessian. This "curvature embedding" preserves a structure that allows the search direction to be computed in $O(n)$ time.

Comparison of iterations and CPU time across different matrix sizes $n$. While s-BFGS requires more iterations than the second-order SSNCG1, its linear per-iteration cost leads to significantly lower total CPU time.

Furthermore, the algorithm utilizes a Newton-based line search to find the optimal step size. Due to the specific structure of the dual objective, this line search typically converges in a single iteration using information already computed for the gradient, bypassing expensive objective function evaluations.

Performance and Scalability

Numerical evaluations were conducted on synthetic matrices with dimensions $n$ ranging from 1,000 to 25,000. As shown in the performance plots, s-BFGS maintains a stable iteration count as $n$ increases. More critically, its total CPU time grows much more gracefully than its competitors, demonstrating superior scalability for large-scale problems.

Convergence of the gradient norm over time for $n = 2 \times 10^4$. s-BFGS reaches the target tolerance much faster than competing methods.

In real-world applications, such as spectral clustering on LIBSVM datasets, s-BFGS achieved speedups of 9x to 89x over the traditional Alternating Projection method. For the a8a dataset, s-BFGS reached convergence in approximately 30 seconds, compared to over 45 minutes for the baseline method.

Conclusion

The s-BFGS method provides an efficient "middle ground" between first-order and second-order optimization techniques. By exploiting the specific structure of the doubly stochastic approximation problem, it achieves state-of-the-art performance in wall-clock time and scalability. Future work may explore extending this structured quasi-Newton approach to other matrix nearness problems or integrating it into constrained layers within deep neural networks.

Summary updated

BibTeX
@inproceedings{chu2023structured,
  author = {Dejun Chu and Changshui Zhang and Shiliang Sun and Qing Tao},
  title = {{Structured BFGS Method for Optimal Doubly Stochastic Matrix Approximation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i6.25877},
}
Figure