LinkedIn's Generative Recommender Speed-Up

LinkedIn engineers drastically improved Generative Recommender training efficiency, cutting GPU hours by up to 65% through system-level optimizations.

Abstract visualization of data flow and computational nodes representing AI training.
System optimizations significantly enhanced Generative Recommender training efficiency at LinkedIn.· LinkedIn Engineering
Visual TL;DR
Generative Recommender (GR)Context
new model for richer user behavior understanding
From the article 3 mentionsThis shift, exemplified by their Generative Recommender (GR), promises more nuanced understanding of user behavior over time.
Scaling HurdlesDriver
From the article 2 mentionsHowever, scaling these advanced models presents significant engineering hurdles.
System OptimizationsDriver
drastically improved training efficiency
From the article 4 mentionsCollectively, these system optimizations reduced end-to-end GPU hours by up to 65% in internal production workloads, demonstrating a powerful approach to scaling advanced recommendation systems.
Data Pipeline OverhaulDriver
key part of efficiency improvements
Compute EnhancementsDriver
further boosted system performance
From the article 2 mentionsSkewed sequence lengths led to compute waste, and the need for custom attention masks complicated efficient kernel implementations.
Training LifecycleDriver
improvements made to the entire process
From the article 9 mentionsTraining these sophisticated GR models at LinkedIn's scale introduced unique challenges.
GPU Hours CutOutcome
reduced by up to 65%
From the article 6 mentionsThis cut optimizer time by about 50%, yielding a 15% GPU hour saving for Feed GR training.
Increased Session TimeEffect
From the articleIn LinkedIn Engineering's own production deployments, the GR system demonstrated tangible benefits, including a 2.10% increase in session time spent.
Contents(6)

LinkedIn is pushing the boundaries of recommendation systems, moving beyond traditional models to embrace generative sequential architectures. This shift, exemplified by their Generative Recommender (GR), promises more nuanced understanding of user behavior over time. However, scaling these advanced models presents significant engineering hurdles.

StartupHub data

Companies working on this

Profiles of the companies named in this story, with funding and a one-liner from our database.

Mach Industries
$1.8B
Building next-generation defense systems with advanced robotics and AI.

The move to GR, which models user activity as token sequences, offers richer long-context personalization than older Deep Learning Recommendation Models (DLRM). This upgrade was crucial as user interactions on the platform became more dynamic and sequence-driven. In LinkedIn Engineering's own production deployments, the GR system demonstrated tangible benefits, including a 2.10% increase in session time spent.

Traditional DLRMs focus on per-user activity, while GRs leverage a user's entire history as ordered token streams. This means GRs utilize a broader time window (360 days versus 90) and employ transformer-based architectures, leading to larger model sizes and more complex data handling.

Engineering Hurdles at Scale

Training these sophisticated GR models at LinkedIn's scale introduced unique challenges. Variable-length sequences and large embedding tables strained memory, while data ingestion faced I/O bottlenecks. Skewed sequence lengths led to compute waste, and the need for custom attention masks complicated efficient kernel implementations.

Furthermore, GRs required frequent retraining on the latest user data, a process made more complex by the shift to listwise data. This contrasted with the simpler incremental updates of older models.

System Optimizations Drive Efficiency

To tackle these issues, LinkedIn engineers implemented a suite of system-level optimizations. The primary goal was to improve Generative Recommender training efficiency without sacrificing model quality. Total GPU hours served as the key metric for success.

Data Pipeline Overhaul

Significant I/O bottlenecks were traced to the native data loader and row-level transformations. A custom C++ fused loader was developed to consolidate padding, truncating, packing, and batching into a single PyTorch operation. This reduced training step time by approximately 50%.

Compute and Kernel Enhancements

Inefficiencies in attention kernels, particularly with dynamic sequence lengths and custom masks, were addressed by adopting FlashAttention-3 and FlexAttention. These advanced kernels minimize memory traffic and handle variable lengths more effectively. An in-house compiler backend automatically selects the optimal kernel for the runtime environment.

This switch resulted in up to a 25% training speed increase for specific GR models. Metrics calculation, which previously incurred a 15% step overhead, was optimized using a fused custom CUDA kernel. This reduced end-to-end update time from milliseconds to microseconds, contributing to a 22% GPU hour saving.

Training Lifecycle Improvements

Optimizer performance was boosted by enabling the fused flag in Adam, consolidating CUDA kernel launches and fusing the GradScaler. This cut optimizer time by about 50%, yielding a 15% GPU hour saving for Feed GR training.

Fused embedding table lookups combined multiple small lookups into a single kernel, improving cache locality and reducing memory traffic. This yielded a 10% training time improvement for Ads GR.

Evaluation, traditionally interleaved with training, was parallelized. By saving all checkpoints and evaluating them post-training, LinkedIn achieved a 16% reduction in GPU hours for Feed GR training.

The handling of variable sequence lengths was fundamentally improved through packed sequences, significantly reducing padding ratios and associated compute/memory waste. This led to over 30% GPU hour reduction and 40% GPU memory reduction for Feed GR training. Dynamic batching also offered a >50% GPU time reduction by grouping similar sequence lengths before padding.

Collectively, these system optimizations reduced end-to-end GPU hours by up to 65% in internal production workloads, demonstrating a powerful approach to scaling advanced recommendation systems.

© 2026 StartupHub.ai. All rights reserved. You may not republish this article in full without a license. Search engines and AI research tools may crawl and summarize for reference. Bulk reproduction or model training requires a license. See our terms.
Daniel Singer

Written by

Daniel Singer

Editor, StartupHub.ai

Daniel Singer is the editor of StartupHub.ai, a technology expert and thought leader on AI and its applications across sectors, from fintech and healthcare to developer tooling and consumer software. He writes and tests the tools covered here thoroughly and regularly, and built StartupHub.ai to give founders, operators and buyers a clearer read on what they are actually being sold.

More from Daniel Singer