NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HAMSI: Distributed Incremental Optimization Algorithm Using Quadratic Approximations for Partially Separable Problems

Umut Simsekli, Hazal Koptagel, Figen Öztoprak, S. Ilker Birbil, Ali Taylan CemgilarXiv 2015

Abstract

Training large-scale machine learning models, such as those used in recommendation systems, often requires minimizing complex objective functions. While first-order methods like Stochastic Gradient Descent (SGD) are popular for their scalability, they frequently converge slowly due to their inability to account for the curvature of the optimization landscape. We present HAMSI (Hessian Approximated Multiple Subsets Iteration), a novel second-order incremental optimization algorithm designed for partially separable problems. By combining limited-memory BFGS (L-BFGS) for local quadratic approximations with a bipartite graph partitioning scheme, HAMSI enables efficient parallelization without the overhead of traditional second-order methods. Experimental results on MovieLens datasets demonstrate that HAMSI significantly outperforms first-order baselines in both convergence speed and parallel efficiency.

Introduction

Modern machine learning tasks often involve massive datasets and high-dimensional parameter spaces. For problems like matrix factorization, the objective function is typically "partially separable," meaning it can be decomposed into sub-functions that depend on small, overlapping subsets of variables. Optimizing these functions at scale presents a dual challenge: achieving fast convergence through second-order information while maintaining high parallel throughput.

Standard second-order methods, which utilize the Hessian matrix to understand the curvature of the loss surface, offer superior convergence rates but are computationally prohibitive for large-scale problems. Conversely, first-order methods like SGD are easy to parallelize but often require many iterations to reach a high-quality solution. HAMSI bridges this gap by providing a highly parallelizable framework that successfully incorporates approximate second-order information.

The Problem of Partial Separability

A partially separable objective function can be modeled as a bipartite graph, or factor graph, where factors represent individual components of the objective and nodes represent variables.

Factor graph representation of a partially separable objective function, where factors $f_i$ depend on subsets of variables $x_j$.

In Figure 1, the overlaps between factors (e.g., $x_2$ is shared by $f_1$ and $f_2$) create dependencies that complicate parallel updates. Simple parallelization can lead to race conditions or require expensive synchronization locks, which degrade performance.

The HAMSI Algorithm

HAMSI addresses these challenges through two primary innovations: local quadratic approximations and a structured parallelization strategy.

Local Quadratic Approximations

Instead of relying solely on gradients, HAMSI employs a limited-memory BFGS (L-BFGS) approach to approximate the Hessian matrix locally. This allows the algorithm to take more informed steps toward the minimum, drastically reducing the number of iterations required for convergence. Crucially, the authors demonstrate that the overhead of maintaining these approximations is minimal compared to the gains in optimization efficiency.

Parallelization via Graph Partitioning

To enable safe parallel execution, HAMSI partitions the objective function into a "cover" of subsets. Each subset is constructed such that the factors within it do not share any variables. This allows multiple threads to process different factors within the same subset simultaneously without the risk of race conditions.

Illustration of subset-based parallelization. In each step, a subset of non-overlapping factors (solid squares) is processed in parallel, ensuring no race conditions on variables.

As shown in Figure 3, the algorithm cycles through these subsets. In the first step (left), factors $f_1$ and $f_3$ are updated in parallel because they share no variables. In the subsequent step (right), factor $f_2$ is updated. This deterministic, cyclic scheduling ensures both theoretical convergence and high hardware utilization.

Load Balancing with STRATA-B

To further optimize parallel performance, the authors introduced STRATA-B, a balanced stratification heuristic. Unlike standard partitioning methods that might leave some CPU cores idle, STRATA-B intelligently divides the parameter space into non-equal intervals to ensure an even distribution of work across all threads. This approach also improves cache locality, leading to lower cache miss rates compared to lock-free methods like HOGWILD.

Experimental Evaluation

The performance of HAMSI was evaluated on the MovieLens 1M, 10M, and 20M datasets for the task of matrix factorization.

  • Massive Speedups: On the MovieLens 20M dataset, HAMSI reached a Root Mean Square Error (RMSE) of approximately 0.90 within 500 seconds. In contrast, a highly optimized mini-batch Gradient Descent baseline remained at an RMSE of 3.88 in the same timeframe.
  • Parallel Efficiency: The STRATA-B scheme demonstrated superior scalability. It achieved an L1 cache miss ratio of only 8.8% on the 20M dataset, significantly lower than the 13.3% observed with the HOGWILD algorithm.
  • Low Overhead: Profiling confirmed that the second-order updates added negligible time to each iteration, confirming that the benefits of curvature information come at a very low cost.

Conclusion

HAMSI represents a significant step forward in large-scale optimization for partially separable problems. By successfully integrating second-order curvature information into a highly parallelizable, cache-efficient framework, it offers a powerful alternative to traditional first-order methods. Future work will focus on extending HAMSI to constrained optimization problems and exploring its application in other domains such as neural network training and tensor factorization.

Summary updated

BibTeX
@misc{simsekli2015hamsi,
  author = {Umut Simsekli and Hazal Koptagel and Figen Öztoprak and S. Ilker Birbil and Ali Taylan Cemgil},
  title = {{HAMSI: Distributed Incremental Optimization Algorithm Using Quadratic Approximations for Partially Separable Problems}},
  year = {2015},
  eprint = {1509.01698},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1509.01698},
}
Figure