Understanding Capacity-Driven Scale-Out Neural Recommendation Inference

Michael Lui, Yavuz Yetim, Özgür Özkan, Zhuoran Zhao, Shin-Yeh Tsai, Carole-Jean Wu, Mark HempsteadOpenReview 2020 · DOI

Abstract

Deep learning recommendation models have grown to the terabyte scale. Traditional serving schemes—that load entire models to a single server—are unable to support this scale. One approach to support these models is distributed serving, or distributed inference, which divides the memory requirements of a single large model across multiple servers. This work is a first-step for the systems community to develop novel model-serving solutions, given the huge system design space. Large-scale deep recommender systems are a novel workload and vital to study, as they consume up to 79% of all inference cycles in the data center. To that end, this work is the first to describe and characterize scale-out deep learning recommender inference using data-center serving infrastructure. This work specifically explores latency-bounded inference systems, compared to the throughput-oriented training systems of other recent works. We find that the latency and compute overheads of distributed inference are largely attributed to a model's static embedding table distribution and sparsity of inference request inputs. We evaluate three embedding table mapping strategies on three representative models and specify the challenging design trade-offs in terms of end-to-end latency, compute overhead, and resource efficiency. Overall, we observe a modest latency overhead with distributed inference—P99 latency is increased by only 1% in the best case configuration. The latency overheads are a result of the commodity infrastructure used and the sparsity of embedding tables. Encouragingly, we also show how distributed inference can account for efficiency improvements in data-center scale recommendation serving.

Introduction: The Memory Wall in Recommendation Systems

Recommendation systems—the engines behind video suggestions, product rankings, and digital advertising—represent the single largest consumer of AI compute in modern data centers. At organizations like Meta, these models account for up to 79% of all inference cycles. To achieve high accuracy, these models rely on "embedding tables" to process sparse categorical features, such as user IDs or content tags.

As these models ingest more data, their embedding tables have reached the 1-10 terabyte range. This growth has hit a "memory wall": a standard commodity server lacks the DRAM capacity to house a single model. While specialized high-memory hardware exists, it is expensive and lacks the flexibility required for dynamic data-center scaling. This research explores "distributed inference"—partitioning these massive models across a cluster of standard servers—to overcome memory constraints while adhering to strict real-time latency Service Level Agreements (SLAs).

Architecture: Capacity-Driven Distributed Inference

The proposed architecture utilizes a capacity-driven approach to split the neural network into distinct shards. The "main shard," which contains the dense, compute-intensive layers, resides on a primary server. The memory-heavy embedding tables are offloaded to "sparse shards" located on remote servers.

When a request arrives, the main shard communicates with the sparse shards via asynchronous Remote Procedure Calls (RPCs). This allows the system to fetch necessary embedding data in parallel. To optimize this distribution, three heuristic sharding strategies were evaluated:

  1. Capacity-balanced: Distributes tables to ensure each server utilizes roughly the same amount of memory.
  2. Load-balanced: Distributes tables based on expected lookup frequency, preventing any single server from becoming a compute bottleneck.
  3. Net-specific bin-packing (NSBP): Groups tables according to their specific neural network branch to minimize the total number of RPC calls per request.

Methodology

The system was evaluated using three production-grade architectures (DRM1, DRM2, and DRM3). To provide a rigorous "apples-to-apples" baseline, these models were scaled to fit within a 256GB server for comparison against the distributed setup. The evaluation utilized real, de-identified recommendation ranking requests sampled from production traffic over a five-day period, capturing natural fluctuations in query patterns.

Key Insights and Trade-offs

Parallelism vs. Network Latency

A primary concern in distributed systems is that network communication will violate real-time latency constraints. However, the study found that because the main shard can query multiple sparse shards asynchronously, the network penalty is largely hidden by parallelism. In the best-case configuration (8 shards, load-balanced), the P99 tail latency overhead was a mere 1% compared to a single-server baseline.

The Compute Overhead

While adding shards increases parallelism and can lower latency, it introduces a compute-efficiency trade-off. Each additional shard requires CPU cycles for RPC boilerplate, data serialization, and request scheduling. The NSBP strategy emerged as the most compute-efficient, as it minimizes the number of RPC calls, though it offers slightly less latency reduction than pure load-balancing.

Model Architecture Sensitivity

The success of distributed inference depends heavily on the model's internal structure. Models with a "long tail" of many smaller embedding tables (DRM1 and DRM2) benefit significantly from sharding. Conversely, models dominated by a single, monolithic embedding table (DRM3) see fewer gains because the workload cannot be effectively distributed across the cluster.

Heterogeneous Hardware Potential

Because sparse shards are memory-bound rather than compute-bound, they do not require high-performance CPUs. The researchers found that sparse shards could be hosted on lower-power, weaker servers without impacting end-to-end latency, suggesting a path toward significant energy and cost savings in the data center.

Conclusion

Distributed inference is not merely an alternative to model compression; it is a mandatory evolution for terabyte-scale AI. Even with state-of-the-art quantization and pruning (achieving up to 5.56x reduction), these models remain too large for single-server deployment. By demonstrating that distributed inference can operate with minimal latency overhead, this work provides a foundation for the next generation of scale-out recommendation infrastructure. Future research will focus on automating sharding strategies to remove the burden of manual optimization from system designers.

Summary updated

BibTeX
@misc{lui2020understanding,
  author = {Michael Lui and Yavuz Yetim and Özgür Özkan and Zhuoran Zhao and Shin-Yeh Tsai and Carole-Jean Wu and Mark Hempstead},
  title = {{Understanding Capacity-Driven Scale-Out Neural Recommendation Inference}},
  year = {2020},
  eprint = {2011.02084},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.02084},
  howpublished = {OpenReview},
}
Figure