Efficient Algorithms for Leveraging LLMs for Generative and Predictive Recommender Systems
Large language models (LLMs) have taken the world by storm, revolutionizing the use of AI in products. While scaling laws demonstrate that larger models yield better results, making them work in production is hard, often due to latency demands on inference. In this proposed tutorial, we will share optimizations - both algorithmic and systems-related - that help leverage LLMs (both small and large) for recommendation and generative AI use cases at planet scale for the world's largest professional network - LinkedIn. In the first part of the tutorial, we will discuss state-of-the-art (SOTA) model quantization and pruning techniques. This will be in conjunction with a discussion on GPU kernel-level optimizations including minimizing memory copying, effectively utilizing shared memory, optimizing thread scheduling, and maximizing parallel efficiency. We will discuss our own experience with these inventing and leveraging such techniques, while also discussing the latest advancements from other enterprises and the open source world. Our discussions will cover models ranging in size from 1 billion to 100 billion+ parameters. In the second part of the tutorial, we will discuss the latest advancements in the world of LLM knowledge distillation which can result in training very powerful and performant small language models (SLMs). We will also discuss effective instruction tuning and preference alignment techniques that help with improving accuracy and quality of results for generative use cases. Finally, we will discuss actual production use cases that benefit from the aforementioned techniques at planet scale for LinkedIn.
Authors
- Qingquan Song (ORCID: https://orcid.org/0000-0002-4307-0725)
- Shao Tang (ORCID: https://orcid.org/0000-0002-9720-9905)
- Ankan Saha
- Pin-Lun Hsu (ORCID: https://orcid.org/0000-0002-5600-6239)
- Rahul Mazumder
- Yun Dai
- Kayhan Behdin (ORCID: https://orcid.org/0000-0003-3482-0421)
- Gregory Dexter
- Aman Gupta (ORCID: https://orcid.org/0009-0007-6620-841X)
- Sirou Zhu (ORCID: https://orcid.org/0000-0002-1999-2447)
Institutions
- LinkedIn (United States) (US)
Publication Details
- Published
- 2025-05-08
- DOI
- https://doi.org/10.1145/3701716.3715868
- Primary Topic
- Machine Learning and Data Classification
- Type
- article
- Field-Weighted Citation Impact
- 0.00