Abstract
Sequential Recommendation (SR) models often struggle with data sparsity, where limited user interaction histories hinder the learning of robust patterns. Data Augmentation (DA) is a common solution, yet existing methods frequently fail to balance the relevance of synthetic sequences with the diversity needed for effective learning. We present BASRec, a novel data augmentation framework that operates in the embedding space to strike a "Goldilocks" balance. By mixing item representations within and across user sequences, BASRec achieves significant performance gains—up to 72%—across multiple recommendation benchmarks.
Introduction: The Relevance-Diversity Trade-off
Sequential Recommendation (SR) aims to predict a user's future preferences based on their chronological interaction history. However, the effectiveness of deep learning models in this domain is often capped by the extreme sparsity of real-world datasets. While Data Augmentation (DA) generates synthetic training examples to mitigate this, current approaches typically fall into two traps:
- Weak Relevance (Semantic Drift): Heuristic methods, such as random item swapping or masking, can inadvertently destroy the underlying logic of a sequence. For instance, replacing a "Camera" with a "Banana" in a sequence of electronics creates nonsensical training data.
- Weak Diversity: Conversely, model-based methods can be overly conservative, producing augmented sequences that are nearly identical to the original. This lack of variation prevents the model from exploring new feature spaces and learning more generalized patterns.
BASRec (Balanced Augmentation for Sequential Recommendation) is designed to solve this "Goldilocks problem" by ensuring synthetic data is different enough to be useful but similar enough to remain accurate.
The BASRec Framework
BASRec is a model-agnostic plugin that can be integrated into various SR architectures, such as SASRec or GRU4Rec. Unlike traditional methods that manipulate raw item lists, BASRec operates at the representation level (embedding space), allowing for more nuanced and "soft" modifications.
Single-sequence Augmentation (SSA)
SSA focuses on diversifying individual user histories. It employs two primary operators:
- M-Reorder & M-Substitute: These operators shuffle or replace item embeddings based on random rates.
- Mixup Fusion: To maintain relevance, the modified representations are fused with the original embeddings using a Mixup technique. This ensures that even when an item is replaced, the resulting vector retains the "vibe" or semantic context of the original sequence.
- Adaptive Loss Weighting: BASRec calculates a confidence weight for each augmented sequence based on the degree of modification, guiding the model to prioritize more reliable synthetic data during training.
Cross-sequence Augmentation (CSA)
While SSA looks at individual users, CSA leverages collaborative signals across the entire training batch. It performs Nonlinear Mixup between sequences from different users. This allows the model to learn shared behavioral patterns—for example, recognizing that if User A and User B share similar interests, their augmented sequences should reflect that commonality without losing their unique semantic cores.
Two-Stage Training Strategy
To ensure stability, the authors implement a two-stage training process. The model is first trained on original data to establish a baseline understanding. In the second stage, the SSA and CSA modules are introduced to fine-tune the model and expand its knowledge base through high-quality augmented samples.
Experimental Evaluation
Datasets and Setup
The framework was evaluated on four sparse public datasets: Amazon Beauty, Sports, and Home, and Yelp. These datasets are characterized by sparsity levels exceeding 99.9%, providing a rigorous testing ground for data augmentation techniques.
Key Results
BASRec demonstrated substantial improvements over various backbone models. On average, it improved performance (measured by NDCG@10 and Hit Ratio@10) as follows:
- GRU4Rec: 72.0% average improvement.
- SASRec: 33.8% average improvement.
- FMLP-Rec: 68.5% average improvement.
In comparative analyses, BASRec consistently outperformed both simple heuristic baselines and more complex generative models like Diffusion-based or Contrastive Learning methods. Similarity analysis confirmed that BASRec's generated data occupies the ideal middle ground: it provides more diversity than conservative models while maintaining higher relevance than random heuristics.
Conclusion
BASRec addresses a critical bottleneck in sequential recommendation by balancing the competing needs for relevance and diversity in data augmentation. By shifting the augmentation process to the embedding space and incorporating cross-sequence collaborative signals, it provides a robust and flexible solution for sparse data environments. Future work will focus on automating hyperparameter tuning and exploring the integration of BASRec into a wider variety of recommendation architectures.
Summary updated