TL;DR
Recommendation systems constantly need to adapt to changing user behavior, but retraining on massive datasets is computationally prohibitive. This paper introduces a data selection strategy that curates small, informative subsets of user interaction data to efficiently update generative recommender models, significantly mitigating performance degradation due to temporal drift. The key is using gradient-based representations to identify crucial data points, achieving performance close to full retraining with a fraction of the computational cost.
What Problem Does This Paper Address?
In real-world recommendation systems, user behavior is not static. It evolves over time due to various factors like seasonality, changing trends, and new content releases. This phenomenon, known as "temporal drift," causes recommender models to become less accurate if they aren't updated. However, continuously retraining these models on the ever-growing stream of user interaction data is impractical due to immense storage, compute, and latency requirements. The challenge, therefore, is to find a way to update models effectively and efficiently, capturing the benefits of new data without the cost of full retraining. This paper tackles this by focusing on smart data selection: how to pick the most valuable data points from the incoming stream to update the model.
Methods
The core of this work lies in a three-stage data selection pipeline:
- Representation Gathering: The paper explores different ways to represent user interaction histories. They compare:
- Token-based: Treating histories as bags of discrete tokens (item, action type, etc.) and using methods like BM25 for similarity.
- Model-based (RepSim): Using the hidden states from a sequential recommender model (like HSTU) to create a fixed-dimensional vector representation of a history.
- Gradient-based (GradSim): Computing the gradient of the model's loss with respect to the parameters of its final layer, specifically for predicting the next item. This aims to capture how much a data point influences the model's learning.
- Scoring Representations: Each selected user history is scored based on its similarity to a "reference set" of recent, relevant data. This reference set acts as a target for what the model should learn to predict. The idea is to select data that is representative of current user behavior.
- Data Sampling: Based on these scores, a small subset of training data is selected. The paper investigates various sampling strategies:
- Ranking-based: Selecting the top-K or bottom-K scoring examples.
- Weighted Sampling: Sampling examples with probabilities proportional to their scores.
- KNN-Weighted: Clustering representations and sampling within clusters.
- Diverse-Weighted: An iterative strategy that samples data while penalizing redundancy to ensure diversity.
The paper uses the HSTU (Hierarchical Sequential Transformer for User Modeling) model, which is designed to handle long, non-stationary user histories by incorporating relative positional and temporal biases.
Datasets
The experiments are conducted on a proprietary, decade-scale music and podcast streaming dataset spanning from 2015 to 2025. This dataset includes approximately 10K users and a vocabulary of 10M items. The authors use this dataset to simulate a continuous learning setting, evaluating model performance over time as new data arrives.
Key Insights and Ideas
- Gradient-based signals are powerful: The most significant insight is that using gradient information (GradSim) to represent data points provides a much stronger signal for effective data selection compared to model-based (RepSim) or simple token-based methods. This suggests that understanding how a data point influences model parameters is key to identifying valuable training examples.
- Distribution matching is crucial, but not sufficient: Selecting data that matches the distribution of recent interactions (using a reference set) is effective. However, simply matching distributions isn't enough.
- Diversity matters: Combining distribution matching with diversity-aware sampling (like the Diverse-Weighted strategy) leads to further performance improvements, especially for metrics like NDCG. This indicates that while staying relevant to current trends is important, covering a broader range of user behaviors prevents the model from becoming too narrow.
- Cost-effectiveness: Gradient-based methods are computationally more expensive (requiring backward passes), but the performance gains often justify the cost, especially when compared to the prohibitive cost of full retraining.
- Reference set size is flexible: The effectiveness of distribution matching doesn't drastically change with larger reference sets, suggesting that a small, recent slice of data is sufficient for effective scoring.
Key Results
- Significant performance recovery: GradSim with Diverse-Weighted sampling recovers up to 78% of the performance degradation caused by temporal drift over a three-year period, significantly outperforming random sampling (which recovers around 42%).
- Close to full retraining: The best data selection strategies (GradSim + Diverse-Weighted) achieve performance very close to full retraining, but with a fraction of the computational cost.
- GradSim outperforms RepSim: Across all metrics, GradSim consistently yields stronger downstream performance than RepSim.
- Top-K/Bottom-K vs. Weighted: Selecting a mixture of high-scoring and low-scoring examples (TopBottomK) is better than just selecting the highest-scoring ones (TopK). Weighted sampling also shows advantages over hard thresholding.
- Efficiency trade-off: While GradSim is computationally more intensive (roughly 3x FLOPs of RepSim), it offers substantial performance benefits.
Limitations and Future Work
- Computational cost of GradSim: The paper acknowledges that gradient-based methods are more computationally expensive than model-based or token-based approaches.
- Future work directions:
- Exploring representations beyond the final layer of the model.
- Systematically studying the interplay between different representation and sampling strategies.
- Investigating lower-cost model-based embeddings paired with probabilistic/diversity sampling to bridge the gap with gradient-informed methods.
- Developing lightweight signals for detecting temporal drift to guide targeted data curation more proactively.
Summary updated