CAMMSR: Category-Guided Attentive Mixture of Experts for Multimodal Sequential Recommendation

Jinfeng Xu, Zheyu Chen, Shuo Yang, Jinze Li, Hewei Wang, Yijie Li, Jianheng Tang, Yunhuai Liu, Edith C. H. Ngai

TL;DR

CAMMSR introduces a novel framework for multimodal sequential recommendation that dynamically balances item text, images, and ID features based on item categories. By leveraging an auxiliary category prediction task and a sequence-level modality swap contrastive learning strategy, it captures context-sensitive user preferences and cross-modal synergies far better than static fusion methods.

What Problem Does This Paper Address?

Sequential recommender systems track how user interests evolve over time. To make better predictions, modern systems incorporate multimodal data like product descriptions (text) and product images (visuals). However, most existing models rely on static or heuristic fusion strategies that treat all modalities equally across different contexts.

In reality, user preferences are highly dynamic and context-dependent. For instance, a customer buying video games might rely heavily on textual specifications and reviews, whereas the same customer browsing beauty products will prioritize visual appearance. Furthermore, existing methods often overlook inter-modal synergies—cases where a combination of text and image triggers user interest in a way that neither could alone (e.g., a specific brand name paired with a distinct visual pattern). CAMMSR addresses these gaps by adaptively weighting modalities based on item categories and explicitly modeling cross-modal interactions.

Methods

The CAMMSR architecture consists of four main components:

  1. Item Representation Initialization: Raw text features are extracted using a pre-trained BERT model, and visual features are extracted via a pre-trained Vision Transformer (ViT). These are aligned to the same dimensionality as the item ID embeddings using linear projections, and positional embeddings are added to preserve sequence order.
  2. Category-Guided Attentive Mixture of Experts (CAMoE): Instead of processing modalities independently, CAMMSR feeds concatenated multimodal features into a Mixture of Experts (MoE) layer to capture synergistic effects. Crucially, it uses an auxiliary category prediction task. The model measures how well each modality's representation predicts the true item category; modalities that predict the category more accurately are assigned higher weights during fusion.
  3. User Interest Learning: User behavior sequences are modeled using a Transformer-based encoder. Instead of standard LayerNorm, the authors introduce Dynamic Tanh (DyT), an alternative that adaptively scales inputs and compresses outliers via a bounded tanh function, improving training stability and representation quality.
  4. Modality Swap Contrastive Learning (MSCL): To improve cross-modal alignment, the framework creates augmented sequence views by randomly swapping item representations between different modalities (e.g., swapping text and visual sequence segments). An InfoNCE loss is applied to maximize the similarity between these augmented views.

The overall workflow and its components are illustrated in the framework diagram below:

Fig. 1: The overall framework of CAMMSR. The left-hand side provides a description of the procedure, while the right- hand side details each component. 1) Item Representation Initialization initializes item multimodal representations using a pre-trained extractor with positional sequences. 2) Category-Guided Attentive Mixture of Experts leverages an additional category prediction task and attention mechanisms to effectively allocate modality weights. 3) Modality Swap Contrastive Learning constructs augmented contrastive views through modality swap operations and applies contrastive learning to enhance the alignment between different modality representations. 4) User Interest Learning models user behavior sequences with a Transformer-based encoder and explores DyT as an alternative to LayerNorm in Transformers.

Datasets

The model was evaluated on four public, real-world Amazon datasets:

  • Toys and Games (Toys)
  • Video Games (Games)
  • Beauty
  • Home and Kitchen (Home)

Additionally, the authors utilized the Amazon Baby and Microlens datasets to validate the model's performance in scenarios with multi-label categories or completely missing category data (where virtual categories were generated using GPT-4o).

Key Insights and Ideas

  • Category as a Modality Prior: The core "aha moment" is that item category is an excellent proxy for modality relevance. By forcing the network to perform an auxiliary category classification task, the model naturally learns why and when text matters more than visuals (or vice versa) without relying solely on sparse user interaction data.
  • Synergy via Early MoE Fusion: Processing modalities in isolation before final fusion misses latent correlations. Concatenating them before passing them through MoE experts allows the model to learn complex, non-linear cross-modal interactions.
  • Rethinking LayerNorm: Replacing standard LayerNorm with Dynamic Tanh (DyT) provides a lightweight way to handle outliers in multimodal embeddings, leading to faster convergence and better recommendation accuracy.

Key Results

CAMMSR consistently outperformed state-of-the-art sequential and multimodal baselines (including SASRec, UniSRec, M3SRec, and IISAN) across all datasets.

  • Accuracy Gains: Compared to the strongest baselines, CAMMSR achieved relative improvements in NDCG@5 of 14.66% on Toys, 6.67% on Games, 15.32% on Beauty, and 10.53% on Home.
  • Efficiency and Convergence: In efficiency benchmarks, CAMMSR demonstrated the fastest convergence speed among advanced multimodal models, reducing total training time significantly (e.g., requiring only 1 hour and 31 minutes to converge on the Games dataset compared to over 4.5 hours for IISAN).

Limitations and Future Work

While the category-guided mechanism proves robust even under simulated label noise, extreme label corruption degrades performance. The authors note that future work could integrate confidence-aware category estimation or self-correcting label refinement to handle noisy real-world metadata better. Additionally, they suggest exploring how to generalize this category-guidance framework to other contextual dimensions or sequential decision tasks outside of standard e-commerce recommendation.

Summary updated

BibTeX
@inproceedings{xu2026cammsr,
  author = {Jinfeng Xu and Zheyu Chen and Shuo Yang and Jinze Li and Hewei Wang and Yijie Li and Jianheng Tang and Yunhuai Liu and Edith C. H. Ngai},
  title = {{CAMMSR: Category-Guided Attentive Mixture of Experts for Multimodal Sequential Recommendation}},
  booktitle = {ICDE},
  year = {2026},
  doi = {10.1109/icde65706.2026.00166},
}
Figure