
The generative recommender behind Shopify's commerce engine (2026) - Shopify
2/25/2026
This post details the development of a foundational generative recommender system for Shopify. It covers architectural decisions for handling sequential buyer journeys using autoregressive models with causal masks, incorporating time as a first-class signal through RoPE-inspired rotary encoding and relative attention bias, and implementing optimized negative sampling strategies (shared negatives, positive-aware hard negatives) to improve retrieval quality. The system also employs a boosting-inspired approach to achieve incremental recall within an ensemble of recommender models. Significant focus was placed on training efficiency, achieving up to 7.3x speedup through optimized CUDA kernels and pipeline optimizations. Online A/B testing showed positive impacts on key e-commerce metrics.




