Parallelization Strategies for DLRM Embedding Bag Operator on AMD CPUs
Deep learning recommendation models (DLRMs) are deployed extensively to support personalized recommendations and consume a large fraction of artificial intelligence (AI) cycles in modern datacenters with embedding stage being a critical component. Modern CPUs execute a lot of DLRM cycles because they are cost effective compared to GPUs and other accelerators. Our paper addresses key bottlenecks in accelerating the embedding stage on CPUs. Specifically, this work 1) explores novel threading schemes that parallelize embedding bag, 2) pushes the envelope on realized bandwidth by improving data reuse in caches, and 3) studies the impact of parallelization on load imbalance. The new embedding bag kernels have been prototyped in the ZenDNN software stack. When put together, our work on fourth generation EPYC processors achieve up to 9.9x improvement in embedding bag performance over state-of-the-art implementations, and improve realized bandwidth of up to 5.7x over DDR bandwidth.
Authors
- Jun-Liang Lin (ORCID: https://orcid.org/0000-0001-5105-7574)
- Mahmut Kandemir (ORCID: https://orcid.org/0000-0002-9940-9951)
- Meena Arunachalam (ORCID: https://orcid.org/0000-0002-3155-6269)
- John Kalamatianos (ORCID: https://orcid.org/0009-0003-9835-1254)
- Varun Agrawal (ORCID: https://orcid.org/0000-0002-7759-2222)
- Vinod Kathail
- Ralph Wittig
- Gulsum Gudukbay Akbulut
- Saurabh Gupta (ORCID: https://orcid.org/0000-0003-0095-4704)
- Elliott Delaye
- Chita R. Das (ORCID: https://orcid.org/0000-0002-4746-7578)
- Rajesh Vivekanandham
- P. Gopalakrishnan
- Ashish Sirasao (ORCID: https://orcid.org/0009-0004-7828-0871)
- Satyaprakash Pareek
- Rishabh Jain (ORCID: https://orcid.org/0009-0003-4017-2093)
- Siddappa Karabannavar
- Steve Reinhardt
- Krishnakumar Nair (ORCID: https://orcid.org/0009-0001-6139-1581)
- Avinash-Chandra Pandey
Institutions
- Pennsylvania State University (US)
- Advanced Micro Devices (Canada) (CA)
- Advanced Micro Devices (United States) (US)
Publication Details
- Journal
- IEEE Micro
- Published
- 2024-08-05
- DOI
- https://doi.org/10.1109/mm.2024.3423785
- Citations
- 3
- Primary Topic
- Neural Networks and Applications
- Type
- article
- Field-Weighted Citation Impact
- 1.04