NOMAD: Nonlocking, stOchastic Multi-machine algorithm for Asynchronous and Decentralized matrix completion

Hyokun Yun, Hsiang-Fu Yu, Cho-Jui Hsieh, S. V. N. Vishwanathan, Inderjit S. Dhillon · DOI

TL;DR

This paper introduces NOMAD, a novel asynchronous and decentralized algorithm for matrix completion designed for large-scale, commodity hardware. NOMAD achieves state-of-the-art performance by leveraging stochastic gradient descent (SGD) with a lock-free, owner-computes paradigm, enabling efficient parallelization and dynamic load balancing.

What Problem Does This Paper Address?

Matrix completion is a crucial task in many applications, such as recommender systems, where the goal is to predict missing entries in a large, sparse matrix (e.g., user ratings for items). Traditional methods often rely on synchronous, distributed computing paradigms that are ill-suited for the lower-bandwidth, higher-latency environments of commodity hardware clusters (like those found in cloud data centers). These synchronous approaches require all processors to wait for each other at synchronization points, leading to significant idle time and poor scalability. The challenge is to develop an efficient parallel algorithm that can effectively utilize distributed, heterogeneous resources without being bottlenecked by communication overhead or synchronization delays.

Methods

NOMAD is built upon the principles of Stochastic Gradient Descent (SGD). Unlike algorithms like Alternating Least Squares (ALS) or Coordinate Descent, which require access to a large number of parameters for each update, SGD only needs a few parameters (specifically, one user vector and one item vector) per update. This fine-grained parallelism is key to NOMAD's efficiency.

The core innovations of NOMAD lie in its asynchronous and decentralized nature:

  • Non-locking, Owner-Computes Paradigm: Each processor (worker) is responsible for a subset of user parameters ($w_i$) and dynamically "owns" a subset of item parameters ($h_j$). When a worker processes an item $j$, it updates the associated user parameters $w_i$ (for users $i$ it owns) and its own item parameter $h_j$. Crucially, there are no locks; the worker that owns $h_j$ is the only one that updates it. This eliminates the need for expensive locking mechanisms.
  • Asynchronous Communication: After updating an item parameter $h_j$, the worker randomly selects another worker and sends the updated $h_j$ to it. This communication is non-blocking, meaning the worker can continue processing other items while the message is in transit.
  • Decentralized Control: There is no central master node. All workers are symmetric and operate independently, processing items from their local queues.
  • Dynamic Load Balancing: While not strictly part of the core algorithm, the paper discusses how NOMAD can be extended to dynamically balance load by preferentially sending items to workers with less work in their queues.
  • Serializability: Despite being asynchronous, the updates in NOMAD are shown to be serializable, meaning there exists an equivalent serial execution order. This property is linked to faster convergence.

Datasets

The paper evaluates NOMAD on three benchmark datasets:

  • Netflix: A well-known dataset for recommender systems.
  • Yahoo! Music: Another dataset for recommender systems.
  • Hugewiki: A large-scale dataset.

The authors also generated synthetic datasets to simulate realistic scenarios where both the dataset size and the number of machines grow over time.

Key Insights and Ideas

  • SGD's Advantage in Distributed Settings: The paper convincingly argues that SGD's requirement for only a few parameters per update makes it inherently more suitable for fine-grained parallelism in distributed environments compared to ALS or Coordinate Descent, which need more global information.
  • Lock-Free is Key for Commodity Hardware: The "owner-computes" paradigm, combined with asynchronous updates, completely bypasses the need for expensive inter-processor locking, which is a major bottleneck in many distributed algorithms, especially on networks with higher latency.
  • Asynchronous Updates Lead to Faster Convergence: The paper posits that the asynchronous and serializable nature of NOMAD's updates, avoiding stale parameters, empirically leads to faster convergence than synchronous methods.
  • Decentralization Simplifies Implementation and Scaling: The lack of a master node and the symmetric nature of workers make the system more robust and easier to scale.

Key Results

  • Scalability: NOMAD demonstrates near-linear scaling up to 30 threads on a single machine and up to 32 machines in a distributed setting.
  • Performance: NOMAD consistently outperforms state-of-the-art algorithms like DSGD, DSGD++, and CCD++ in terms of both convergence speed and final solution quality (RMSE) across various configurations.
  • Commodity Hardware Advantage: NOMAD shows a particularly strong advantage on commodity hardware clusters, where communication latency is higher, highlighting the benefits of its asynchronous and non-blocking approach.
  • Large-Scale Performance: The paper shows that NOMAD's advantage over other methods increases as the scale of the problem (dataset size and number of machines) grows.

Limitations and Future Work

  • Non-convexity: The objective function for matrix completion is non-convex, meaning different optimizers can converge to different local minima. The paper acknowledges that factors like initialization strategy, data access order, and step-size decay can affect the final solution quality.
  • Generalization: While NOMAD is demonstrated for matrix completion, the authors suggest that the underlying framework can be adapted to other problems with similar objective function structures, such as Support Vector Machines (SVMs) and Latent Dirichlet Allocation (LDA). They express interest in exploring these extensions.

Summary updated

BibTeX
@article{yun2014nomad,
  author = {Hyokun Yun and Hsiang-Fu Yu and Cho-Jui Hsieh and S. V. N. Vishwanathan and Inderjit S. Dhillon},
  title = {{NOMAD: Nonlocking, stOchastic Multi-machine algorithm for Asynchronous and Decentralized matrix completion}},
  journal = {Proc. VLDB Endow.},
  year = {2014},
  doi = {10.14778/2732967.2732973},
}
Figure