Abstract
We propose HyMoERec, a novel sequential recommendation framework that addresses the limitations of uniform Position-wise Feed-Forward Networks in existing models. Current approaches treat all user interactions and items equally, overlooking the heterogeneity in user behavior patterns and diversity in item complexity. HyMoERec introduces a hybrid mixture-of-experts architecture that combines shared and specialized expert branches with an adaptive expert fusion mechanism for the sequential recommendation task. This design captures diverse reasoning for varied users and items while ensuring stable training. Experiments on MovieLens-1M and Beauty datasets demonstrate that HyMoERec consistently outperforms state-of-the-art baselines.
Introduction
Sequential recommendation systems aim to predict a user's next interaction by modeling their historical behavior. Modern architectures, such as Transformers and State Space Models (SSMs), typically rely on Position-wise Feed-Forward Networks (PFFNs) to perform non-linear transformations on item representations. However, standard PFFNs are "one-size-fits-all" components that treat every interaction identically.
This approach fails to account for two critical factors:
- User Behavior Heterogeneity: Users exhibit varying degrees of predictability. Some follow simple, linear patterns, while others require more complex, non-linear reasoning to model accurately.
- Item Complexity Diversity: Popular or "head" items may be easily predicted using general trends, whereas "niche" or "tail" items often require specialized representations that a general-purpose network might overlook.
The HyMoERec Framework
To address these limitations, we introduce HyMoERec, which reimagines the PFFN as a dual-branch Hybrid Mixture-of-Experts (HyMoE) system.
1. Hybrid Mixture-of-Experts (HyMoE) Block
Instead of a single dense layer, the HyMoE block utilizes two distinct pathways:
- Dense, Shared Branch: A standard FFN that processes every token. This ensures a stable baseline representation and provides consistent learning signals throughout training.
- Sparse, Specialized Branch: A pool of experts ($E$) managed by a lightweight router. The router selects only the top-$K$ most relevant experts for a given interaction, allowing the model to allocate specialized parameters to specific types of items or behaviors.
2. Adaptive Expert Fusion (AEF)
Combining sparse and dense branches can lead to training instability, often referred to as "expert collapse." HyMoERec mitigates this through an Adaptive Expert Fusion (AEF) mechanism using a learnable gating parameter, $\alpha$. We employ a progressive warm-up schedule: early in training, the model relies primarily on the shared expert. As training matures, it gradually integrates the specialized experts, ensuring that the model masters general sequential patterns before fine-tuning specialized knowledge.
3. Load-Balance Regularization
To prevent the router from over-relying on a subset of experts, we incorporate a load-balancing loss. This encourages uniform utilization across the entire expert pool, maximizing the model's representative capacity.
Experimental Evaluation
We evaluated HyMoERec on two benchmark datasets: MovieLens-1M (ML-1M) and Amazon Beauty. These datasets represent different interaction densities and item diversities, providing a robust test for the hybrid architecture.
Key Results
HyMoERec consistently outperformed state-of-the-art baselines, including Mamba4Rec and BERT4Rec:
- ML-1M Performance: HyMoERec achieved an HR@5 of 0.2157, representing a 2.4% improvement over the strongest baseline (Mamba4Rec).
- Amazon Beauty Performance: The model reached an HR@5 of 0.0518, demonstrating its effectiveness even in sparser, more diverse interaction environments.
- Comparison to Traditional Models: Compared to RNN-based models like NARM and GRU4Rec, HyMoERec showed improvements of up to 24.8% in specific metrics, highlighting the advantages of the hybrid MoE approach in capturing complex dependencies.
Conclusion
HyMoERec demonstrates that optimizing the often-overlooked feed-forward layers can yield significant performance gains in sequential recommendation. By balancing stable, shared representations with specialized, sparse experts, the framework effectively handles the inherent heterogeneity of user behaviors and item complexities. Future work will explore the scalability of this approach to larger expert pools and its generalizability across more diverse recommendation domains.
Summary updated