Abstract
Although generative recommenders demonstrate improved performance with longer sequences, their real-time deployment is hindered by substantial computational costs. To address this challenge, we propose a simple yet effective method for compressing long-term user histories by leveraging inherent item categorical features, thereby preserving user interests while enhancing efficiency. Experiments on two large-scale datasets demonstrate that, compared to the influential HSTU model, our approach achieves up to a 6x reduction in computational cost and up to 39% higher accuracy at comparable cost (i.e., similar sequence length).
Introduction
Generative Recommendation (GR) models have emerged as a powerful paradigm, directly generating the next recommended item. These models follow "scaling laws" where performance improves significantly with the length of historical user interactions. However, the underlying causal Transformers face a quadratic computational bottleneck ($O(L^2)$) relative to sequence length. In latency-sensitive online environments, processing thousands of historical interactions is often infeasible.
The CAUSE Framework
To overcome these efficiency barriers, we introduce CAUSE (Categorical User Sequence Compression). The framework partitions a user's timeline into a high-resolution recent sequence and a compressed long-term history.
The compression process leverages item categories (e.g., movie genres) as a "free lunch" for clustering:
- Grouping: Items in the long-term history are bucketed by categorical features.
- Selection: Buckets are ranked by recency. The model retains the top-$V$ most recent buckets and the top-$G$ items within them, discarding the rest.
- Aggregation: Item embeddings within surviving buckets are aggregated into dense "history tokens" using learned alignment weights.
These tokens are prepended to the recent sequence, providing long-term context without the quadratic compute penalty of the full sequence.
Experimental Evaluation
We evaluated CAUSE on two large-scale datasets: KuaiRand-27K (micro-videos) and MovieLens-20M (movies).
Key Results
- Efficiency: Compared to the state-of-the-art HSTU model with a sequence length of 4,096, CAUSE achieves a 6x reduction in inference time and a 4x reduction in training time.
- Accuracy: When constrained to the same input sequence length (e.g., 256 tokens), CAUSE outperforms the standard HSTU model by 39.14% in NDCG@1 on MovieLens-20M.
- Robustness: CAUSE consistently outperforms other sequence-reduction baselines like GenRank in both accuracy and speed.
Discussion and Future Work
A key insight of this work is that inherent item metadata acts as a natural, computationally efficient clustering mechanism. By preserving high-resolution data for the immediate recent sequence and compressing distant history, CAUSE captures both immediate intent and long-term interests effectively.
While CAUSE performs best with high-quality categorical features, it can fall back to K-Means clustering on learned embeddings if metadata is unavailable. Future work will focus on scaling CAUSE to even larger industrial systems and exploring more sophisticated aggregation techniques for the history tokens.
Summary updated