Abstract
Sequential recommender systems aim to predict a user's next interaction by analyzing their historical behavior. A persistent challenge in this field is effectively distinguishing between long-term and short-term user interests, which often contribute differently to the final recommendation. Existing methods typically rely on manually defined or exhaustively searched short-term window lengths, which are either inefficient or suboptimal. Furthermore, state-of-the-art Transformer-based models suffer from quadratic computational complexity relative to sequence length. This paper proposes AutoMLP, a novel sequential recommender system that utilizes a pure Multi-Layer Perceptron (MLP) architecture to achieve linear complexity. AutoMLP introduces an automated and adaptive search algorithm to determine optimal short-term interest lengths via end-to-end optimization. Extensive experiments demonstrate that AutoMLP achieves competitive performance against state-of-the-art methods while maintaining significantly higher efficiency.
Introduction
Sequential recommendation is the task of predicting the next item a user will interact with based on their chronological history. To be effective, models must balance long-term interests (stable, general preferences) with short-term interests (recent, fleeting trends).
Current approaches face two primary bottlenecks:
- Fixed Windows: Most models use a hard-coded "short-term" window (e.g., the last 5 items). Identifying the optimal length usually requires tedious manual tuning or exhaustive grid searches, which are computationally expensive and dataset-specific.
- Computational Complexity: Transformer-based models like BERT4Rec rely on self-attention mechanisms with quadratic complexity ($O(N^2)$). This makes them difficult to scale for long user histories or low-latency industrial applications.
The AutoMLP Framework
AutoMLP addresses these challenges by replacing complex attention mechanisms with a "pure MLP" architecture that maintains linear complexity ($O(N)$). The framework is built upon three core pillars:
SRSMLP Layers
Inspired by the MLP-Mixer architecture, the Sequential Recommender System MLP (SRSMLP) layers alternate between two types of mixing:
- Sequence-mixer: Learns temporal patterns across different items in the sequence.
- Channel-mixer: Learns correlations between different features within an item's embedding space.
Dual-Interest Modules
To capture the nuances of user behavior, AutoMLP employs parallel modules. One module processes the entire interaction history to establish a baseline of long-term preferences, while a second module focuses on a specific recent window to capture immediate shifts in interest.
Automated Session Length Search
The "Auto" in AutoMLP refers to its use of Differentiable Architecture Search (DARTS). Instead of treating the short-term window length as a static hyperparameter, the authors treat it as a continuous, learnable parameter. This allows the model to automatically "discover" the most effective look-back window for a specific dataset through gradient descent, eliminating the need for exhaustive manual searching.
Experimental Evaluation
The model was evaluated on two benchmark datasets: MovieLens-1M (approx. 1 million ratings) and Amazon Beauty (approx. 2 million reviews). Both datasets were filtered to include users with at least 10 interactions to ensure sufficient sequential data.
Performance and Accuracy
AutoMLP consistently outperformed heavy-hitting baselines, including GRU4Rec, BERT4Rec, and FDSA. On the MovieLens-1M dataset, AutoMLP achieved an MRR@10 of 0.3912, a significant improvement over BERT4Rec's 0.3535.
Efficiency and Scalability
AutoMLP demonstrates superior efficiency in terms of both memory and parameters:
- Parameter Count: AutoMLP achieved state-of-the-art results with only 16.8 million parameters, whereas competing models like GRU4Rec+ and FDSA required over 34 million.
- Search Speed: While exhaustive search methods (AutoMLP-s) scale linearly and become prohibitively slow as the search space grows, AutoMLP’s DARTS-based search time remains nearly flat.
- Linear Complexity: By utilizing MLPs instead of self-attention, AutoMLP maintains a linear relationship between sequence length and computational cost, making it ideal for long-sequence modeling.
Conclusion
AutoMLP proves that "attention is not all you need" for sequential recommendation. By combining simple MLP mixing with automated architecture search, the framework provides a highly efficient, adaptive, and accurate alternative to Transformer-based models. Future work may explore expanding the search space for window lengths and integrating more complex multi-modal features, such as item images or text descriptions, into the MLP-based architecture.
Summary updated