Abstract
Sequential recommendation (SR) models have traditionally followed a "one-model-fits-all" paradigm, deploying the same high-capacity architecture for every user regardless of the complexity of their behavioral patterns. This paper introduces CANet (Compound Adaptive Network), a framework that adaptively assigns custom-sized neural network architectures to users based on their specific needs. By routing "easy" users to lightweight sub-models and "hard" users to complex ones, CANet achieves significant computational savings—up to 65%—with minimal impact on recommendation accuracy.
1. Introduction
Modern Sequential Recommendation (SR) models aim to predict a user's next interaction by modeling their historical behavior. To capture increasingly complex user interests, the field has shifted toward larger, deeper architectures, particularly those based on Transformers. While these "heavy" models achieve state-of-the-art accuracy, they impose a heavy computational burden, making real-time deployment on mobile devices and edge hardware challenging.
This research challenges the necessity of uniform model complexity. The authors argue that the current approach suffers from significant computational redundancy: while high-capacity models are essential for users with niche or "long-tail" interests, simpler, smaller models are often sufficient for users whose behaviors follow popular or predictable patterns.
2. The CANet Framework
CANet addresses this redundancy by implementing an adaptive routing mechanism that selects an optimal sub-model for each user. The framework consists of two primary components: a Backbone Supernet and a Lightweight Router.
2.1 Compound Routing Space
Unlike previous efficiency methods that focus on a single dimension (such as skipping layers), CANet operates across a Compound Routing Space. It simultaneously adjusts three critical dimensions of the neural architecture:
- Embedding Size: The dimensionality of the initial item representations.
- Hidden Size: The width of the feature extraction layers.
- Layer Depth: The number of sequential blocks in the model.
By varying width and depth together, CANet can find more nuanced trade-offs between speed and accuracy than single-dimensional approaches.
2.2 Weight-Slicing Schema
To avoid the storage overhead of maintaining multiple independent models, CANet utilizes a Weight-Slicing Supernet. In this schema, smaller sub-models are represented as "slices" (sub-matrices) of the largest model's weights. This allows the system to support 36 different sub-model configurations within a single set of parameters, ensuring the framework remains memory-efficient.
2.3 The Router and Optimization
The Router is a tiny SASRec-based module that analyzes a user's history to predict the most efficient sub-model configuration for their specific behavior. To train this system end-to-end, the authors employ several specialized optimization strategies:
- Gumbel-Softmax: This technique makes the discrete choice of a sub-model differentiable, allowing the router and the backbone to be optimized simultaneously.
- Uniform Loss: This prevents "model collapse," a scenario where the router defaults to picking the same sub-model for every user.
- Guide Loss: This acts as a "prior knowledge" signal, encouraging the router to assign smaller models to "easy" users (those whose interests are easily captured by minimal parameters) and reserving larger models for "hard" users.
3. Experimental Evaluation
The researchers evaluated CANet on three real-world datasets: Last.FM20, Last.FM50 (music recommendation), and RESS (multi-category e-commerce).
3.1 Key Results
- Efficiency Gains: CANet reduced computational costs (measured in FLOPs) by 55% to 65% compared to the full-sized SASRec model.
- Accuracy Preservation: Despite the massive reduction in computation, the drop in recommendation accuracy (NDCG@10 and Recall@10) remained under 1.5%.
- Baseline Comparison: CANet consistently outperformed other adaptive frameworks like SkipRec (depth-only) and AutoDim (embedding-only), validating the necessity of a compound approach.
4. Insights and Discussion
The study confirms the "Easy User" Hypothesis: model capacity should be proportional to the difficulty of the user's preference. Interestingly, the router often chooses a large embedding size to capture initial information but then utilizes a smaller hidden size for feature extraction—a specific architectural nuance that manual design might overlook.
4.1 Limitations and Future Work
While CANet is designed to be model-agnostic, the current evaluation primarily focuses on the Transformer-based SASRec. Future research could explore its performance on CNN-based (NextItNet) or RNN-based architectures. Additionally, the current routing space is discrete; moving toward finer granularity or layer-wise parameter adjustments could yield even greater efficiency gains. Finally, the multi-task loss function requires careful hyper-parameter tuning ($\lambda_1, \lambda_2$) to balance the trade-off between accuracy and computational cost across different datasets.
5. Conclusion
CANet demonstrates that the "one-model-fits-all" approach is inherently inefficient for sequential recommendation. By treating model architecture as a dynamic variable tailored to individual user behavior, CANet provides a scalable path forward for deploying high-performance recommendation systems on resource-constrained devices without sacrificing significant accuracy.
Summary updated