NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Repeated Padding as Data Augmentation for Sequential Recommendation

Yizhou Dang, Yuting Liu, Enneng Yang, Guibing Guo, Linying Jiang, Xingwei Wang, Jianzhe Zhao · DOI

Abstract

Sequential recommendation (SR) models typically require fixed-length input sequences, leading to extensive zero-padding for the majority of users with short interaction histories. This "idle space" represents a missed opportunity for model training. This paper proposes Repeated Padding+ (RepPad+), a simple yet effective data augmentation technique that replaces zero-padding with repetitions of a user's existing interactions. RepPad+ is model-agnostic, requires no additional parameters, and significantly boosts performance—improving GRU4Rec by up to 84% and SASRec by 35%—while maintaining training efficiency.

What Problem Does This Paper Address?

Sequential recommendation models—powered by RNNs, CNNs, or Transformers—predict a user's next item based on their past actions. To process data in batches, these systems require input sequences of a fixed length (e.g., the last 50 items).

However, real-world user data follows a "long-tail" distribution: while a few power users have hundreds of interactions, the vast majority have very short histories. This results in a massive amount of zero-padding. Traditionally, these zeros are ignored during calculation, representing "idle" input space.

Comparison of traditional zero-padding versus RepPad and the distribution of 'idle space' in real-world datasets.

Existing data augmentation (DA) techniques try to fix data sparsity by creating new training sequences (increasing training time) or using complex auxiliary tasks like Contrastive Learning. The authors ask a simpler question: Can we improve models just by filling that idle padding space more effectively?

Methods

The authors introduce RepPad+, a sequence-level data augmentation strategy that operates "horizontally" within the existing input dimensions.

  1. RepPad (The Base): Instead of padding with [0, 0, 0, A, B, C], it repeats the original sequence: [A, B, A, B, A, B, C]. To prevent the model from accidentally learning that the end of one repetition predicts the start of the next, they optionally insert a delimiter (0) between repetitions.
  2. The "+" (Medium-length Sequences): If a sequence is too long to be repeated fully but still has some empty space (e.g., length 30 in a 50-slot window), RepPad+ randomly intercepts a consecutive subsequence to fill the remaining gap.
  3. Plug-and-Play: This is a data-loading operation. It requires no changes to the model architecture, no new loss functions, and no additional hyperparameters to tune.
Illustration of RepPad+ strategies: full sequence repetition for short sequences and sub-sequence selection for medium-length sequences.

Datasets

The researchers evaluated RepPad+ across seven diverse, real-world datasets:

  • Short-sequence datasets: Amazon (Toys, Beauty, Sports, Home) and Yelp. These are characterized by very short average user histories (8–10 interactions).
  • Long-sequence datasets: LastFM and MovieLens-1M (ML-1M). These have much longer average histories (48–165 interactions).

Key Insights and Ideas

  • Horizontal vs. Vertical Augmentation: Traditional DA is "vertical" (adding more rows to the dataset), which slows training. RepPad+ is "horizontal," packing more information into existing rows and utilizing space already allocated in memory.
  • Gradient Stability: RepPad+ makes the training process more stable. By providing more "signal" per sequence, the average gradients for item embeddings become more centralized and less prone to extreme outliers, leading to smoother convergence.
  • The Future Leakage Paradox: In autoregressive models, "seeing the future" is usually avoided. However, because RepPad+ repeats the sequence, the "tail" of the first repetition technically appears before the "head" of the second. Surprisingly, this "future information leakage" actually helps the model learn better representations, acting as a form of implicit regularization.
  • Efficiency: Because it doesn't increase the number of training samples, RepPad+ is significantly faster than state-of-the-art Contrastive Learning methods (like CL4SRec) while often outperforming them.

Key Results

The performance improvements are remarkably high for such a simple change:

  • Massive Gains on RNNs: On the GRU4Rec model, RepPad+ improved average recommendation performance by up to 84.11%.
  • Strong Gains on Transformers: On the popular SASRec model, it achieved a 35.34% improvement.
  • Efficiency: Compared to heuristic methods like "Slide Windows," RepPad+ achieved better accuracy with much lower training time overhead.
  • Robustness: The method proved effective across different architectures (RNN, CNN, MLP, and Transformer), showing it is truly model-agnostic.

Limitations and Future Work

The primary limitation is inherent to the approach: it only works if there is idle space. If a dataset consists entirely of very long sequences that already meet or exceed the maximum input length, there is no room to "repeat" data, and the benefits of RepPad+ diminish.

For future work, the authors suggest exploring more sophisticated padding strategies beyond simple repetition and investigating how to combine RepPad+ with other types of data augmentation to see if the benefits compound.

Summary updated

BibTeX
@misc{dang2024repeated,
  author = {Yizhou Dang and Yuting Liu and Enneng Yang and Guibing Guo and Linying Jiang and Xingwei Wang and Jianzhe Zhao},
  title = {{Repeated Padding as Data Augmentation for Sequential Recommendation}},
  year = {2024},
  eprint = {2403.06372},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.06372},
}
Figure