容量駆動なスケールアウト型ニューラル推薦推論の理解
Understanding Capacity-Driven Scale-Out Neural Recommendation Inference
Understanding Capacity-Driven Scale-Out Neural Recommendation Inference
@misc{lui2020understanding,
title = {Understanding Capacity-Driven Scale-Out Neural Recommendation Inference},
author = {Michael Lui and Yavuz Yetim and Özgür Özkan and Zhuoran Zhao and Shin-Yeh Tsai and Carole-Jean Wu and Mark Hempstead},
year = {2020},
eprint = {2011.02084},
archivePrefix = {arXiv},
primaryClass = {cs.DC},
url = {https://arxiv.org/abs/2011.02084}
}
Lui, M., Yetim, Y., Özkan, Ö., Zhao, Z., Tsai, S.-Y., Wu, C.-J., & Hempstead, M. (2020). Understanding Capacity-Driven Scale-Out Neural Recommendation Inference [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.02084
LUI M, YETIM Y, ÖZKAN Ö, et al. Understanding Capacity-Driven Scale-Out Neural Recommendation Inference[EB/OL]. (2020-11-04)[2026-11-29]. https://arxiv.org/abs/2011.02084.
要旨
ディープラーニングによる推薦モデルはテラバイト規模へと成長している。単一サーバーに全モデルをロードする従来のサービングスキームは、この規模に対応できない。この課題に対処するアプローチの一つとして、分散サービング(分散推論)があり、単一の大型モデルのメモリ要件を複数のサーバーに分割する。本稿は、膨大なシステム設計空間において、システム研究コミュニティが新たなモデルサービングソリューションを開発するための第一歩となる。大規模ディープラーニング推薦システムは、データセンターにおける全推論サイクルの 79% を消費するという新たなワークロードであり、研究が不可欠である。本稿では、データセンターサービングインフラを用いた大規模ディープラーニング推薦推論のスケールアウト挙動を記述・特性化する。具体的には、他の最近の作品が扱っているスループット志向のトレーニングシステムと比較し、遅延制約型の推論システムに焦点を当てている。我々は、分散推論の遅延と計算オーバーヘッドは、主にモデルの静的な埋め込みテーブルの分布と入力推論リクエストの疎性によって生じることが示された。さらに、3 つの DLRM 類似モデルにおける 3 つの埋め込みテーブルマッピング戦略を評価し、エンドエンド遅延、計算オーバーヘッド、リソース効率という観点から困難な設計トレードオフを特定した。全体として、分散推論方式でデータセンター規模の推薦モデルをサービングする場合、遅延オーバーヘッドは僅かであり、最良の構成では P99 遅延が 1% 程度のみ増加する。遅延オーバーヘッドは、主に使用されている汎用インフラと埋め込みテーブルの疎性によるものである。さらに、分散推論がデータセンター規模の推薦サービングにおける効率改善に寄与する方法を示すことも可能である。
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 this scale is with 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 research 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 describes and characterizes scale-out deep learning recommendation 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 a result of a model's static embedding table distribution and sparsity of input inference requests. We further evaluate three embedding table mapping strategies of three DLRM-like models and specify challenging design trade-offs in terms of end-to-end latency, compute overhead, and resource efficiency. Overall, we observe only a marginal latency overhead when the data-center scale recommendation models are served with the distributed inference manner-P99 latency is increased by only 1% in the best case configuration. The latency overheads are largely a result of the commodity infrastructure used and the sparsity of embedding tables. Even more encouragingly, we also show how distributed inference can account for efficiency improvements in data-center scale recommendation serving.