TL;DR
WEARec introduces a novel frequency-domain approach to sequential recommendation by combining dynamic, personalized Fourier filtering with wavelet-based feature enhancement. By doing so, it simultaneously captures long-range periodic user preferences and fine-grained, short-term interest shifts, outperforming state-of-the-art models while maintaining highly efficient log-linear computational complexity.
What Problem Does This Paper Address?
Sequential Recommendation (SR) systems aim to predict a user's next interaction by analyzing their historical behavior. Traditional time-domain models, like Transformers (SASRec), rely heavily on self-attention mechanisms to capture these patterns. However, user interaction data is often noisy and chronologically entangled, making it difficult for models to isolate underlying periodic preferences.
To solve this, recent research has shifted toward the frequency domain, using the Discrete Fourier Transform (DFT) to replace self-attention with learnable filters (e.g., FMLPRec). Despite their success, these frequency-domain models suffer from two major flaws:
- Static, One-Size-Fits-All Filtering: Existing methods apply the same fixed-pattern filter to every user sequence, completely ignoring individual differences in behavior. As shown in the paper's introductory analysis, different users are driven by entirely different frequency components.
- The "Blurring" Effect of Global DFT: While the global Fourier transform excels at capturing long-term periodic trends, it acts essentially as a low-pass filter. This means it struggles to capture local temporal features, blurring out sudden, short-term interest shifts and non-stationary signals.
Methods
The authors propose WEARec (Wavelet Enhanced Adaptive Frequency Filter for Sequential Recommendation), an attention-free architecture that processes user sequences through two parallel, synergistic modules:
- Dynamic Frequency-domain Filtering (DFF): Instead of static filters, DFF uses a multi-head projection to split sequence embeddings into parallel subspaces. It applies a Fast Fourier Transform (FFT) and then uses a Multi-Layer Perceptron (MLP) to dynamically generate user-specific scaling factors and bias terms based on the sequence context. This modulates the base filter weights, creating a personalized frequency response for each user before transforming the signal back via Inverse FFT (IFFT).
- Wavelet Feature Enhancement (WFE): To capture the transient, short-term fluctuations that Fourier transforms miss, WFE integrates a Discrete Wavelet Transform (DWT) using the Haar wavelet. DWT decomposes the sequence into low-frequency (trend) and high-frequency (detail) sub-signals. The high-frequency components are adaptively scaled using a learnable matrix to amplify or suppress transient features, and the sequence is perfectly reconstructed using the Inverse DWT (IDWT).
Finally, a Feature Integration step blends the global features from DFF and the local features from WFE using a balancing hyperparameter ($\alpha$), followed by a standard point-wise Feed-Forward Network (FFN).
Datasets
The model was evaluated on four widely used public benchmark datasets, preprocessed using standard 5-core filtering (retaining users with at least 5 interactions):
- Amazon Beauty: Sparse e-commerce product reviews.
- Amazon Sports: Sparse e-commerce product reviews.
- MovieLens-1M (ML-1M): A dense movie recommendation dataset containing roughly 1 million interactions.
- LastFM: Music artist listening records, characterized by longer average sequence lengths.
Key Insights and Ideas
- User Preferences are Frequency-Diverse: A key "aha moment" in the paper is the statistical proof that user cohorts are uniquely driven by different frequency bands. A unified filter is easily dominated by the majority pattern, failing individual users.
- Fourier and Wavelets are Better Together: Fourier transforms provide a global view but lose time localization; wavelets provide excellent time-frequency localization for transient signals. Combining them allows the model to balance long-term stability with short-term reactivity.
- Breaking the $O(n^2)$ Bottleneck: By replacing self-attention ($O(n^2d)$ complexity) with FFT and DWT, the feature-mixing layer's time complexity drops to $O(nd \log n)$. This makes WEARec highly scalable and robust against overfitting in long-sequence scenarios.
Key Results
WEARec consistently outperformed traditional time-domain models (Caser, GRU4Rec, SASRec, DuoRec) and state-of-the-art frequency-domain models (FMLPRec, FamouSRec, FEARec, SLIME4Rec, BSARec) across all datasets.
- Recommendation Accuracy: On the LastFM dataset, WEARec achieved a 11.40% relative improvement in Hit Ratio @ 10 (HR@10) and a 6.89% improvement in NDCG@10 compared to the best-performing baseline.
- Long-Sequence Robustness: When testing longer sequence lengths ($N=200$), baseline models showed signs of performance convergence or overfitting. WEARec maintained a steady upward performance trajectory.
- Computational Efficiency: Despite adding MLPs for dynamic parameter generation, WEARec demonstrated significantly faster training times per epoch than advanced baselines like BSARec and SLIME4Rec due to its attention-free, contrastive-learning-free design.
Limitations and Future Work
The authors note that while WEARec is faster to train, the inclusion of the context-modulating MLPs does increase the total parameter count slightly compared to simpler static-filter models like FMLPRec.
Additionally, the current implementation sets the wavelet decomposition level to 1 and relies exclusively on the Haar wavelet. The authors suggest that exploring multi-level wavelet decompositions and alternative wavelet families could yield deeper multi-resolution insights for sequential recommendation.
Summary updated