Abstract
Efficiently serving embedding-based recommendation (EMR) models remains a significant challenge due to their increasingly large memory requirements. Today's practice splits the model across many monolithic servers, where a mix of GPUs, CPUs, and DRAM is provisioned in fixed proportions. This approach leads to suboptimal resource utilization and increased costs. Disaggregating embedding operations from neural network inference is a promising solution but raises novel networking challenges. In this paper, we discuss the design of FlexEMR for optimized EMR disaggregation. FlexEMR proposes two sets of techniques to tackle the networking challenges: Leveraging the temporal and spatial locality of embedding lookups to reduce data movement over the network, and designing an optimized multi-threaded RDMA engine for concurrent lookup subrequests. We outline the design space for each technique and present initial results from our early prototype.
Introduction
Modern recommendation systems—the engines behind video feeds and shopping sites—rely on Embedding-based Recommendation (EMR) models. These models are unique because they are "memory monsters." While the neural network component is relatively small, the embedding tables, which translate categorical data like User IDs into mathematical vectors, can grow to terabytes in size.
Currently, these models are deployed on monolithic servers with fixed hardware ratios, leading to significant inefficiencies. Approximately 23% of hardware resources sit idle because different models have varying memory and compute requirements. Disaggregation—separating embeddings onto high-capacity memory servers while keeping neural networks on GPU servers—is the logical solution, but it introduces a massive "network tax" that can negate performance gains.
The Bottleneck of Embedding Lookups
The primary challenge in disaggregating EMR models is the latency and bandwidth requirements of embedding lookups. As shown in Figure 3, embedding lookups dominate the total execution time, and this bottleneck scales with the embedding dimension.
FlexEMR System Architecture
To address the network bottleneck, we propose FlexEMR. The system architecture, illustrated in Figure 2, separates the Ranker (compute) from the Embedding Servers (memory) using an optimized networking layer.
Methods
FlexEMR employs two main strategies to eliminate the network bottleneck:
1. Locality-Enhanced Disaggregation
- Adaptive EMB Caching: FlexEMR dynamically adjusts the GPU cache size based on current workload. If the neural network requires more memory for large query batches, the cache shrinks to avoid contention; otherwise, it expands to maximize local data access.
- Hierarchical Pooling: Instead of transferring all requested vectors to the GPU server for aggregation, FlexEMR "pushes down" the pooling operation to the storage server. The server performs the addition locally and returns a single result, significantly reducing network traffic.
2. Optimized RDMA Networking
- Multi-threaded RDMA Engine: To overcome thread contention in high-speed networking, FlexEMR uses a "mapping-aware" design. This ensures each CPU thread has a dedicated hardware path to the Remote Direct Memory Access (RDMA) interface.
- Live Connection Migration: The system can dynamically migrate network connections between engines to balance load across storage servers without service interruption.
Evaluation
We evaluated FlexEMR using industry-standard benchmarks (MLPerf DLRM) and real-world production traces from Meta and Alibaba. Our results demonstrate that FlexEMR achieves up to a 2.3x improvement in throughput compared to standard disaggregated setups. Additionally, the system reduces latency for credit-based flow control by 35%, effectively managing traffic bursts.
Conclusion and Future Work
FlexEMR demonstrates that disaggregation is a viable path for scaling massive recommendation models if network overhead is properly managed. Future work will focus on scaling routing tables for tens of terabytes of data and exploring the application of these techniques to other large-scale AI models, such as Mixture-of-Experts (MoE) and Large Language Models (LLMs).
Summary updated