Distributed Equivalent Substitution Training for Large-Scale Recommender Systems

Haidong Rong, Yangzihao Wang, Feihu Zhou, Junjie Zhai, Haiyang Wu, Rui Lan, Fan Li, Han Zhang, Yuekui Yang, Zhenyu Guo, Di Wang · DOI

Introduction

Modern recommender systems (RS) are massive, often involving hundreds of billions of parameters to predict click-through rates (CTR). Because these models are too large to fit on a single machine, they typically rely on Parameter Server (PS) architectures. However, PS architectures face a fundamental trade-off: asynchronous training is fast but suffers from "gradient staleness," which degrades accuracy, while synchronous training provides stability but is crippled by network bottlenecks when sending massive sparse feature weights across workers.

Researchers from Tencent have introduced Distributed Equivalent Substitution (DES), a training framework that brings fully synchronous training to TB-scale recommender systems for the first time. By mathematically refactoring "weights-rich" layers to communicate small intermediate results instead of massive weight vectors, DES slashes communication overhead significantly while achieving higher accuracy than traditional methods.

The DES Framework

The core innovation of DES is moving away from treating neural network layers as "black boxes" that require weight synchronization. Instead, DES looks at the underlying mathematics to find a more efficient way to distribute computation.

Comparison between traditional Parameter Server (PS) architecture and the Distributed Equivalent Substitution (DES) framework.

The strategy follows three distinct steps:

  1. Partitioning: Weights, such as massive embedding tables, are partitioned and co-located with specific workers.
  2. Sub-operators: The original heavy operator (e.g., a massive matrix multiplication) is replaced by a group of sub-operators. Each worker performs a partial computation using only its local portion of the weights.
  3. Aggregation: Instead of syncing the weights themselves, workers only communicate the partial results—which are orders of magnitude smaller—and aggregate them using MPI-style operations like AllReduce.

Mathematical Equivalence and Implementation

The "Equivalent" in DES refers to the fact that the output of the distributed sub-operators is mathematically identical to the original single-node operator. This ensures that the model's logic remains unchanged while the execution is optimized.

Numerical illustration of how DES reduces communication volume from 12 floats to 4 floats while maintaining mathematical equivalence.

This approach is applied to three common components of recommender systems:

  • Logistic Regression: Instead of pulling weights to compute a dot product, each worker computes a local partial sum. Only these scalars are synchronized.
  • Factorization Machines (FM): By refactoring the FM equation, workers compute local latent vector sums and inner products independently, then combine them.
  • Deep Neural Networks (DNN): DES uses blocked matrix multiplication to ensure that embedding lookups and the first fully-connected layer happen locally without exchanging raw embedding vectors.

Key Results and Insights

The authors evaluated DES on the public Criteo dataset and a massive internal Tencent dataset. The results demonstrate that in large-scale RS, the network is almost always the bottleneck, not the CPU. DES intentionally trades a small amount of redundant local computation for a massive reduction in network traffic.

  • Communication Savings: DES achieved between 72.2% and 99.7% communication savings compared to mesh-based PS strategies.
  • Throughput Boost: Training speed improved significantly: 1.55x for LR, 4.52x for Wide & Deep, and 3.91x for DeepFM.
  • Better Accuracy: Because DES enables synchronous training without the usual performance penalty, it consistently achieved higher AUC (Area Under ROC) than asynchronous PS. On the Criteo dataset, DES improved AUC by 0.84% to 1.6%, a substantial gain in industrial CTR prediction.

Conclusion

While DES successfully addresses the communication bottleneck, the authors note that the system is now "computation bound," with operations like hash table lookups on the CPU becoming the new limiting factor. Future work involves moving these operations to GPUs and extending the DES framework to more complex architectures like Deep Interest Networks (DIN).

Summary updated

BibTeX
@inproceedings{rong2020distributed,
  author = {Haidong Rong and Yangzihao Wang and Feihu Zhou and Junjie Zhai and Haiyang Wu and Rui Lan and Fan Li and Han Zhang and Yuekui Yang and Zhenyu Guo and Di Wang},
  title = {{Distributed Equivalent Substitution Training for Large-Scale Recommender Systems}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2020},
  doi = {10.1145/3397271.3401113},
}
Figure