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

Optimistic Asynchrony Control: Achieving Synchronous Convergence With Asynchronous Throughput for Embedding Model Training

Roger Waleffe, Jason MohoneyWANT @ ICML 2024

TL;DR

This paper introduces Optimistic Asynchrony Control (OAC), a novel method for training large machine learning models on mixed CPU-GPU systems. OAC enables asynchronous batch processing for higher throughput while guaranteeing synchronous convergence, leading to significantly faster training times without sacrificing model accuracy.

What Problem Does This Paper Address?

Modern machine learning models, especially those involving embeddings (like in graph learning or NLP), are growing massive, often exceeding the memory capacity of GPUs. A common workaround is to store model parameters in CPU memory and transfer subsets (batches) to the GPU for computation. This leads to two main training paradigms:

  • Synchronous Training: Batches are processed one by one. This ensures fast convergence but suffers from low throughput because the GPU waits idly during data transfer.
  • Asynchronous Training: Batches are processed in parallel. This boosts throughput by keeping the GPU busy but can lead to "stale updates" where concurrent batches access outdated parameter values, potentially degrading model quality or slowing down convergence.

The core challenge is to achieve the high throughput of asynchronous training without sacrificing the reliable convergence of synchronous training, especially for large embedding models where parameter transfers are a bottleneck.

Methods

The paper proposes Optimistic Asynchrony Control (OAC), inspired by Optimistic Concurrency Control (OCC) in database systems. Instead of preventing conflicts (like pessimistic approaches), OAC allows parallel processing and then validates for conflicts.

The key ideas are:

  1. Computation Order: OAC identifies the sequential order in which batches are processed by the GPU (even in an asynchronous setup, the GPU processes them one by one from its input queue). This "computation order" defines the target synchronous execution.
  2. Parameter Timestamps: Each parameter in CPU memory is assigned a timestamp. When a batch is processed, it reads the current timestamps of the parameters it accesses.
  3. GPU Cache and Validation: A cache on the GPU stores recently updated parameter values and their timestamps. Before a batch's computation on the GPU is finalized, OAC checks this cache.
  4. Validation Logic: If a batch's parameter values are older than those already in the GPU cache (indicated by timestamps), OAC "corrects" the batch's parameters to match the more recent values from the cache. This ensures the batch's update is based on the state it would have seen in a synchronous execution following the computation order.
  5. Atomic Operations and Locks: Parameter reads/writes, along with their timestamps, are made atomic using locks to ensure consistency, especially when multiple threads access the same parameter.

Essentially, OAC allows parallel data transfer and computation but inserts a validation step on the GPU to reconcile potential conflicts and ensure that updates are consistent with a serial execution.

Datasets

The experiments were conducted using the Freebase86m knowledge graph. This is a large graph with approximately 86 million nodes, requiring significant memory for node embeddings (17-68GB). The task evaluated was link prediction, a common application for graph embedding models.

Key Insights and Ideas

  • The "Computation Order" is Key: The paper cleverly identifies that even in asynchronous training, the GPU's processing order of batches from its input queue provides a consistent sequential reference point. This is the basis for ensuring synchronous equivalence.
  • Optimism Pays Off: By allowing parallel processing and only validating at a later stage, OAC avoids the overhead of pessimistic locking, leading to higher throughput.
  • GPU-Side Validation is Crucial: Performing the validation and correction on the GPU before the final update is critical. This allows OAC to leverage the GPU's computational power for conflict resolution and ensures that the correct parameter values are used for the update.
  • Time-to-Accuracy is the Real Metric: For large-scale training, simply achieving high accuracy or high throughput isn't enough. The paper emphasizes that the fastest way to reach a desired accuracy (time-to-accuracy) is the ultimate goal, and OAC excels here.

Key Results

  • Synchronous Convergence: OAC consistently achieves the same model convergence (accuracy) as standard synchronous training.
  • Asynchronous Throughput: OAC matches the throughput of asynchronous training, meaning it processes batches at a similar rate.
  • Best Time-to-Accuracy: By combining synchronous convergence with asynchronous throughput, OAC achieves the fastest training times. In experiments, OAC was up to 3x faster than synchronous training while achieving equivalent or better accuracy.
  • Reduced Manual Tuning: Unlike tuned asynchronous methods that require careful parameter fiddling, OAC works effectively with standard settings, simplifying its application.

Limitations and Future Work

  • Deadlock Prevention: The paper acknowledges that per-parameter locks could theoretically lead to deadlocks. While they haven't observed this in practice due to the lightweight nature of the locks, they suggest that deadlock detection (e.g., monitoring GPU utilization) and recovery (reverting to a checkpoint) are potential solutions if deadlocks were to occur.
  • Cache Eviction: The paper discusses mechanisms for cache eviction to manage GPU memory, but this is an area that requires careful implementation to ensure correctness.
  • Future Work: The authors plan to make OAC available in the public version of the Marius system, enabling wider adoption for graph learning models. Further exploration into optimizing cache eviction and robust deadlock handling could be future research directions.

Summary updated

BibTeX
@inproceedings{waleffe2024optimistic,
  author = {Roger Waleffe and Jason Mohoney},
  title = {{Optimistic Asynchrony Control: Achieving Synchronous Convergence With Asynchronous Throughput for Embedding Model Training}},
  booktitle = {WANT @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=xHQeok6ZWX},
}
Figure