Turn a history into predictions
Imagine someone who saves a guide to beginner cycling routes, skips a race recap, then opens a map. Those actions form a sequence. A model can learn which patterns of items and actions tend to precede an interaction it wants to predict.
In their 2024 ICML paper, Jiaqi Zhai and colleagues used ordered histories for two recommendation tasks. Retrieval proposes items from a large catalog. Ranking predicts how someone might respond to a particular candidate and uses that prediction to order candidates. The paper’s ranking formulation puts items and the actions they received into one sequence, so the model can consider each candidate together with earlier activity. Actions Speak Louder than Words
Where HSTU fits
HSTU stands for Hierarchical Sequential Transduction Unit. It encodes the history so the system can use it to make predictions. Its attention layers learn which past events are useful, taking into account their order and how far apart they occurred. The authors’ training procedure shares the cost of encoding a history across multiple predictions. HSTU architecture in the paper
What the paper measured
In the authors’ online ranking A/B test, the HSTU-based system improved the reported engagement metric by 12.4% and the reported consumption metric by 4.4% against their deep learning recommendation model baseline. Ranking results in Table 7
In a separate encoder benchmark on NVIDIA H100 GPUs using bfloat16, the authors reported speedups of up to 15.2× in training and 5.6× in inference against a Transformer encoder using FlashAttention-2. This comparison measures the encoder for the sequence lengths and settings tested. Encoder comparison in Figure 5
The paper’s companion repository is a place to explore the architecture and public examples. Generative Recommenders on GitHub