NOMAD: Non-locking, 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

Introduction

Matrix completion is the mathematical engine behind modern recommender systems, such as predicting movie ratings. To handle industrial-scale datasets, these computations must be distributed across multiple machines. However, traditional distributed algorithms often suffer from two major inefficiencies:

  1. The Curse of the Last Reducer: Bulk synchronization (e.g., MapReduce) forces fast machines to sit idle while waiting for the slowest machine to finish.
  2. Resource Alternation: In many systems, the CPU is idle during network transmission, and the network is idle during computation.

NOMAD (Non-locking, stOchastic Multi-machine algorithm for Asynchronous and Decentralized matrix completion) addresses these issues by providing a lock-free, fully asynchronous framework that keeps both CPU and network resources constantly utilized.

The NOMAD Framework

NOMAD optimizes the matrix using Stochastic Gradient Descent (SGD) with a unique architectural twist: Static Users and Nomadic Items. The algorithm partitions user data ($W$) statically among workers, while item data ($H$) are treated as "nomadic" variables that move fluidly between machines.

Bipartite representation of the matrix completion problem where items and users are nodes. Panel (a) shows the dependencies, and (b) shows a specific update.

Under the "Owner Computes" paradigm, item variables are packaged as messages and passed between workers. A worker can only update an item if it currently "owns" that item in its local queue. Because only one worker owns an item at any given time, race conditions are eliminated, completely removing the need for expensive network locks.

Distributed Implementation and Scalability

NOMAD operates with fine-grained parallelism at the level of individual item columns. This allows for fluid load balancing; when a worker finishes with an item, it peeks at the queue sizes of other workers and sends the item to one with a lighter workload.

Matrix partitioning in NOMAD where user rows are static and item columns move as nomadic variables between workers.

As shown in the partitioning diagram, user rows are assigned to specific workers while item columns (the vertical bars) migrate. This structure provides several benefits:

  • Cache Locality: As data is partitioned across more machines, user data chunks become small enough to fit entirely within a CPU's L3 cache, often resulting in super-linear scaling.
  • Serializability: Unlike some asynchronous algorithms that allow "stale" updates, NOMAD’s ownership model ensures updates are strictly serializable, which mathematically guarantees faster and more stable convergence.

Evaluation and Results

The authors evaluated NOMAD on massive benchmark datasets, including the Netflix Prize (99M ratings), Yahoo! Music (252M ratings), and Hugewiki (2.7B ratings).

Key results include:

  • Single Machine Performance: NOMAD showed near-linear scaling up to 30 threads, outperforming shared-memory algorithms like FPSGD and CCD++.
  • Distributed Efficiency: On AWS clusters with 32 machines, NOMAD significantly outpaced competitors like DSGD and DSGD++. By overlapping computation with communication, it effectively hid network latency.
  • Versus GraphLab: NOMAD converged orders of magnitude faster than GraphLab's ALS implementation, which was crippled by the overhead of distributed locking.

Conclusion

NOMAD demonstrates that a decentralized, lock-free architecture can significantly improve the performance of large-scale matrix completion. By treating variables as nomadic entities, the system avoids the bottlenecks of global synchronization. Future work involves adapting this framework to other bipartite problems, such as Support Vector Machines (SVMs) and Latent Dirichlet Allocation (LDA).

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: Non-locking, stOchastic Multi-machine algorithm for Asynchronous and Decentralized matrix completion}},
  journal = {Proc. VLDB Endow.},
  year = {2014},
  doi = {10.14778/2732967.2732973},
}
Figure