NVIDIAElizabeth GoodmanExplainer
How Generative Recommenders Are Redefining RecSys at Scale
Summary
Generative recommenders (GRs) recast recommendation as next-item or next-action sequence prediction conditioned on user histories, replacing traditional embedding-similarity objectives and potentially unifying retrieval and ranking. The post presents HSTU, which uses timestamp-ordered interleaved items and actions, SiLU-based attention weighting, relative attention bias, and gating, alongside Semantic IDs, which derive a smaller vocabulary through hierarchical clustering of item embeddings. For production, recsys-examples combines TorchRec, DynamicEmb, Megatron-Core, recommender-specific KV and decoding components, while nv-embedding-cache provides tiered GPU, CPU, and remote embedding storage. On an H100, the Semantic ID path was reported as 1.85x higher in online throughput and 46% lower median latency than SGLang under the stated long-context, beam-search workload, and DLRM v3 reached 99,997 queries/sec.
Context
Traditional recommender systems face terabyte- or petabyte-scale user-history data, sparse long-tail interactions, cold-start users and items, and strict latency requirements. Static embedding tables can exceed a GPU's HBM capacity, while production serving must retrieve and rank thousands of candidates within milliseconds.
Approach / What changed
The described stack uses generative recommendation with HSTU and Semantic IDs. recsys-examples provides TorchRec and DynamicEmb for dynamic, sharded embedding tables, Megatron-Core parallelism for dense layers, and specialized decoding components. nv-embedding-cache adds hierarchical GPU, CPU, and remote storage for embedding lookups, with caching, sharding, and PyTorch-compatible modules.
Takeaways
HSTU replaces softmax attention normalization with SiLU-based weighting, adds relative attention bias, and applies elementwise gating before output projection to support efficient long-sequence recommendation.
Semantic IDs create a smaller vocabulary through hierarchical clustering of item embeddings, enabling autoregressive generation, beam search, and ranking from output logits.
In the stated H100 benchmark, Semantic ID-GR serving achieved about 19.7 requests per second versus 10.7 for SGLang, with about 198 ms versus 370 ms median latency.
Source and freshness
- Source
- developer.nvidia.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.