
HET: Scaling out Huge Embedding Model Training via
Cache-enabled Distributed Framework
Xupeng Miao
∗1
, Hailin Zhang
∗1
, Yining Shi
1
, Xiaonan Nie
1
, Zhi Yang
1
, Yangyu Tao
2
, Bin Cui
1,3
1
Department of Computer Science & Key Lab of High Condence Software Technologies (MOE), Peking University
3
Institute of Computational Social Science, Peking University (Qingdao),
2
Tencent Inc.
3
Center for Data Science, Peking University & National Engineering Laboratory for Big Data Analysis and Applications
{xupeng.miao, z.hl, shiyining, xiaonan.nie, yangzhi, bin.cui}@pku.edu.cn,
2
brucetao@tencent.com
ABSTRACT
Embedding models have been an eective learning paradigm for
high-dimensional data. However, one open issue of embedding
models is that their representations (latent factors) often result in
large parameter space. We observe that existing distributed train-
ing frameworks face a scalability issue of embedding models since
updating and retrieving the shared embedding parameters from
servers usually dominates the training cycle. In this paper, we pro-
pose HET, a new system framework that signicantly improves the
scalability of huge embedding model training. We embrace skewed
popularity distributions of embeddings as a performance oppor-
tunity and leverage it to address the communication bottleneck
with an embedding cache. To ensure consistency across the caches,
we incorporate a new consistency model into HET design, which
provides ne-grained consistency guarantees on a per-embedding
basis. Compared to previous work that only allows staleness for
read operations, HET also utilizes staleness for write operations.
Evaluations on six representative tasks show that HET achieves
up to 88% embedding communication reductions and up to 20
.
68
×
performance speedup over the state-of-the-art baselines.
PVLDB Reference Format:
Xupeng Miao, Hailin Zhang, Yining Shi, Xiaonan Nie, Zhi Yang, Yangyu
Tao, Bin Cui. HET: Scaling out Huge Embedding Model Training via
Cache-enabled Distributed Framework . PVLDB, 15(2): 312 - 320, 2022.
doi:10.14778/3489496.3489511
PVLDB Artifact Availability:
The source code of this research paper has been made publicly available at
https://github.com/PKU-DAIR/Hetu/.
1 INTRODUCTION
To train a model on high-dimensional data, such as words in a cor-
pus of text [
9
,
38
,
42
] or the user-item interaction data [
16
,
45
,
54
],
it is common to use an embedding model, which projects a sparse
high-dimensional feature space, into a continuous low-dimensional
embedding space. For example, in a language model, a training ex-
ample might be a sparse vector with non-zero entries corresponding
to the IDs of words in a vocabulary, and the distributed represen-
tation for each word will be a lower-dimensional vector. “Wide
∗
Equal contribution.
This work is licensed under the Creative Commons BY-NC-ND 4.0 International
License. Visit https://creativecommons.org/licenses/by-nc-nd/4.0/ to view a copy of
this license. For any use beyond those covered by this license, obtain permission by
emailing info@vldb.org. Copyright is held by the owner/author(s). Publication rights
licensed to the VLDB Endowment.
Proceedings of the VLDB Endowment, Vol. 15, No. 2 ISSN 2150-8097.
doi:10.14778/3489496.3489511
and deep learning” [
10
] creates distributed representations from
cross-product transformations on categorical features. Embedding
model is common at modern web companies (e.g., Facebook [
39
],
Google [
12
] and Tencent [
49
]), which have been recognized as
an eective learning paradigm to extract useful information for
downstream tasks such as recommendation.
As each feature needs to be represented by a set of embeddings
(i.e., latent vectors), many embedding models are at a giant scale and
are too large to copy to a worker on every use, or even to store in
RAM on a single host. For instance, the parameters of a real-world
document embedding model in Google [
7
,
13
] occupies several
terabytes, and the industrial click-through rate prediction model in
Baidu [
53
] has 10
11
input sparse features and also requires 10 Tb
parameters. For this reason, it is challenging to scale embedding
models up to large-scale use cases, in which millions or even billions
of parameters need to be learned.
Modern distributed ML systems (e.g., TensorFlow [
7
]) typically
adopt the parameter server [
28
] framework to scale out models.
The server usually maintains the globally shared parameters by
aggregating updates from the workers and updating the global
parameters. Workers communicate only with the server nodes,
updating and retrieving the shared parameters. Existing ML systems
usually support data parallelism where a worker usually contains a
replica of the ML model and is assigned an equal-sized partition of
the entire training data. Bulk Synchronous Parallel (BSP) [
15
] or
Asynchronous Parallel (ASP) [
32
] are usually adopted for updating
the model parameters during distributed training.
However, this setup faces a scalability issue for large embed-
ding models [
46
,
53
]. We observe that the greatest ineciency
comes from updating and retrieving the shared feature embedding
parameters through a limited bandwidth link. For example, using
TensorFlow with ASP, up to 86% of training time is spent on em-
bedding fetching and updating, which dominates the training cycle.
The major reason is that an embedding model often uses deep neu-
ral networks with low computational complexity, comparing with
the giant embedding data. Accordingly, the computation takes a
much shorter time than the reads and writes of remote embedding
data. Moreover, with the increasing gap between emerging pow-
erful accelerators and the slow growth of network bandwidth, the
embedding communication bottleneck would become even more
severe. To our knowledge, there is little prior work addressing the
scalability issue of embedding models in a distributed environment.
In this paper, we propose
HET
, a novel distributed system frame-
work to scale
H
uge
E
mbedding model
T
raining. Our key idea is
to exploit an ecient
embedding-cache-enabled
architecture,
1
arXiv:2112.07221v1 [cs.LG] 14 Dec 2021
评论