Contrastive Enhanced Slide Filter Mixer for Sequential Recommendation

Xinyu Du, Huanhuan Yuan, Pengpeng Zhao, Junhua Fang, Guanfeng Liu, Yanchi Liu, Victor S. Sheng, Xiaofang Zhou

Introduction

Sequential recommendation (SR) systems are the backbone of modern digital platforms, from e-commerce giants like Amazon to streaming services like Netflix. Traditionally, these models operate in the time domain, analyzing the chronological order of user interactions to predict future behavior. However, real-world user data is inherently noisy, containing accidental clicks and overlapping behavioral patterns that are difficult to disentangle in a simple timeline.

For example, a user's shopping history might include frequent purchases (e.g., groceries) alongside rare, high-value items (e.g., electronics). In the time domain, these distinct periodicities are "mashed" together, often leading models to overfit on noisy, one-off interactions. SLIME4Rec (Contrastive Enhanced SLIde Filter MixEr) addresses this by shifting the recommendation task to the frequency domain using Fourier Transforms.

Methodology: The SLIME4Rec Architecture

SLIME4Rec replaces the standard self-attention mechanism found in models like SASRec with a specialized Filter Mixer. This architecture leverages the Fast Fourier Transform (FFT) to convert item sequences into frequency spectrums, where periodic patterns become more distinct and noise can be more effectively isolated.

The SLIME4Rec architecture featuring the Filter Mixer with Dynamic Frequency Selection and Static Frequency Split modules.

The Filter Mixer consists of two primary components:

  1. Dynamic Frequency Selection (DFS): This module utilizes a "Frequency Ramp" structure. Learnable filters "slide" across the spectrum across different neural layers. Lower layers are designed to capture high-frequency details (short-term bursts), while higher layers focus on low-frequency global patterns (long-term trends).
  2. Static Frequency Split (SFS): To prevent information loss during the dynamic sliding process, the SFS module captures frequencies that the DFS might otherwise overlook, ensuring a comprehensive representation of the user's behavioral spectrum.

Additionally, the model employs Contrastive Learning to sharpen user embeddings. By comparing different "views" of the same user's frequency data, the model learns robust representations that are less sensitive to minor perturbations in the input sequence.

Experimental Setup

The effectiveness of SLIME4Rec was validated using five diverse public benchmarks:

  • Amazon (Beauty, Clothing, Sports): These datasets are characterized by high sparsity and represent various consumer categories.
  • MovieLens-1M: A dense dataset providing a different challenge for frequency-based modeling.
  • Yelp: A dataset consisting of business transaction records.

All datasets underwent standard "5-core" filtering to ensure data quality, retaining only users and items with at least five interactions.

Performance Evaluation

SLIME4Rec demonstrated superior performance compared to a wide array of baselines, including Transformer-based models (SASRec, BERT4Rec) and existing frequency-domain models (FMLP-Rec).

Comprehensive performance comparison of SLIME4Rec against state-of-the-art baselines across five datasets.

Key findings from the results include:

  • Significant Performance Gains: SLIME4Rec achieved notable improvements in ranking metrics. For instance, on the Amazon Sports dataset, it improved NDCG@5 by 16.58% over the strongest baseline.
  • Efficiency and Scalability: By utilizing FFT, SLIME4Rec achieves a computational complexity of $O(n \log n)$. This is a significant improvement over the $O(n^2)$ complexity of standard self-attention mechanisms, making it highly suitable for long-sequence recommendation tasks.
  • Robustness to Noise: In controlled noise-injection experiments, SLIME4Rec maintained higher stability than its competitors. The frequency-domain approach acts as a natural denoiser, as random "noise" interactions typically appear as high-frequency spikes that the model's filters can easily mitigate.

Conclusion

SLIME4Rec represents a significant step forward in sequential recommendation by demonstrating that well-designed linear filters in the frequency domain can outperform complex self-attention mechanisms. By mimicking the hierarchical way the human brain processes information—filtering noise at low levels and identifying broad themes at high levels—the "sliding filter" approach provides a more robust and efficient framework for understanding user behavior. Future research may explore the application of these frequency-domain techniques to cross-domain recommendation scenarios.

Summary updated

BibTeX
@inproceedings{du2023contrastive,
  author = {Xinyu Du and Huanhuan Yuan and Pengpeng Zhao and Junhua Fang and Guanfeng Liu and Yanchi Liu and Victor S. Sheng and Xiaofang Zhou},
  title = {{Contrastive Enhanced Slide Filter Mixer for Sequential Recommendation}},
  booktitle = {ICDE},
  year = {2023},
  doi = {10.1109/icde55515.2023.00205},
}
Figure