Embedding Samples Dispatching for Recommendation Model Training in Edge Environments

Guopeng Li, Haisheng Tan, Chi Zhang, Hongqiu Ni, Zilong Wang, Xinyue Zhang, Yang Xu, Han TianarXiv 2025 · DOI

Abstract

Training large-scale Deep Learning Recommendation Models (DLRMs) in edge environments is significantly hindered by the network overhead of synchronizing massive embedding tables. Traditional data dispatching methods often ignore the heterogeneous network conditions of edge workers, leading to severe communication bottlenecks. This paper presents Embedding Samples Dispatching (ESD), a framework that optimizes training data assignment by calculating expected transmission costs across workers. By utilizing a hybrid dispatcher (HybridDis) that balances optimal assignment with heuristic speed, ESD reduces data traffic by up to 36.76% and improves training speed by up to 1.74x without compromising model accuracy.

Introduction

Deep Learning Recommendation Models (DLRMs) are the backbone of modern digital services, from e-commerce personalization to social media feeds. As privacy concerns and the need for low-latency processing grow, there is a shift toward training these models at the "edge"—on local gateways or powerful IoT nodes. However, DLRMs present a unique architectural challenge: while the neural network layers are relatively small, the Embedding Tables can range from gigabytes to terabytes in size.

In edge environments, memory constraints necessitate a Parameter Server (PS) architecture where the full embedding table resides on a central server, and workers cache only the necessary subsets. Because edge network links are often slow and heterogeneous (e.g., varying from 0.5 Gbps to 5 Gbps), up to 90% of training time can be consumed by moving these embeddings. Current dispatching strategies fail to account for these network variations, often treating all cache hits and misses as equal regardless of the worker's specific bandwidth.

The ESD Framework

The proposed Embedding Samples Dispatching (ESD) framework addresses the network bottleneck by intelligently assigning training samples to workers based on a cost-aware logic. The framework consists of two primary innovations:

1. Expected Transmission Cost Calculation

Unlike traditional systems that prioritize maximizing the "cache hit ratio," ESD focuses on minimizing the actual time spent on data transmission. It evaluates the next batch of training data and constructs a cost matrix by predicting three primary network actions:

  • Miss Pull: The required data is not in the worker's cache and must be fetched.
  • Update Push: Data was modified by another worker and must be synchronized.
  • Evict Push: The worker's cache is full, requiring an existing entry to be pushed back to the server to make room.

Crucially, ESD weights these actions by the specific network bandwidth of each worker, recognizing that a cache miss on a high-speed link may be less detrimental than a cache hit on a congested, slow link.

2. HybridDis (Hybrid Dispatcher)

Assigning thousands of samples to multiple workers to achieve a global optimum is a computationally intensive task, typically solved by the Hungarian Algorithm. To prevent the dispatcher from becoming a bottleneck itself, the authors developed HybridDis, which utilizes a tunable parameter ($\alpha$) to split the workload:

  • Optimal (Opt): A CUDA-parallelized version of the Hungarian algorithm handles the most "difficult" samples—those where a suboptimal assignment would result in the highest transmission costs.
  • Heuristic (Heu): A fast, greedy algorithm processes the remaining samples where the cost difference between workers is marginal.

Experimental Evaluation

The researchers evaluated ESD using three real-world DLRM workloads:

  • S1 (Wide & Deep): Trained on the Criteo Kaggle dataset.
  • S2 (DeepFM): Trained on the Avazu dataset.
  • S3 (Deep & Cross Network): Trained on the Criteo Sponsored Search dataset.

Key Results

  • Transmission Efficiency: ESD reduced embedding transmission costs by up to 36.76% compared to LAIA, a state-of-the-art scheduler.
  • Training Speedup: The system achieved an end-to-end training speedup of up to 1.74x.
  • Heterogeneity Awareness: Experiments confirmed that ESD successfully shifted data-intensive operations to workers with higher bandwidth, whereas previous methods distributed the load blindly.
  • Scalability: As embedding sizes increased, the performance gap between ESD and traditional methods widened, suggesting that ESD is particularly effective for the increasingly large models used in industry.

Discussion and Insights

A core insight of this research is that the Hit Ratio is a deceptive metric in edge computing. By optimizing for transmission cost rather than simple cache hits, ESD acknowledges the reality of heterogeneous network environments. Furthermore, the authors provide a mathematical proof that their dispatching logic maintains the integrity of the gradients. By using a Bulk Synchronous Parallel (BSP) approach that only pushes/pulls embeddings on-demand, the model trains identically to standard versions but at a significantly higher velocity.

Limitations and Future Work

While ESD shows significant promise, the current implementation assumes uniform embedding vector sizes. Future iterations could explore non-uniform sizes to better reflect diverse model architectures. Additionally, the current framework assumes a single central Parameter Server; extending this logic to multi-PS environments would further enhance its applicability to massive-scale edge deployments. Finally, the authors aim to more deeply integrate cache eviction policies (such as their proposed "Emark" policy) directly into the initial cost calculation matrix.

Summary updated

BibTeX
@misc{li2025embedding,
  author = {Guopeng Li and Haisheng Tan and Chi Zhang and Hongqiu Ni and Zilong Wang and Xinyue Zhang and Yang Xu and Han Tian},
  title = {{Embedding Samples Dispatching for Recommendation Model Training in Edge Environments}},
  year = {2025},
  eprint = {2512.21615},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.21615},
}

Loading related content...

Figure