An Aligning and Training Framework for Multimodal Recommendations

Yifan Liu, Kangning Zhang, Xiangyuan Ren, Yanhua Huang, Jiarui Jin, Yingjie Qin, Ruilong Su, Ruiwen Xu, Weinan Zhang · DOI

Abstract

Multimodal recommender systems often struggle with the "semantic gap" between raw content (images, text) and abstract user/item IDs. This paper introduces AlignRec, a framework that decomposes the recommendation objective into three distinct alignment tasks: Inter-Content Alignment (ICA), Content-Category Alignment (CCA), and User-Item Alignment (UIA). By decoupling the training of multimodal features from collaborative filtering, AlignRec achieves state-of-the-art performance with high efficiency.

Introduction

Modern recommendation platforms, such as Amazon or Xiaohongshu, leverage both ID-based interaction data and multimodal content like product images and descriptions. However, integrating these disparate data types presents significant challenges. First, the Semantic Gap makes it difficult for models to map raw pixels and text to abstract categorical IDs. Second, Training Speed Inconsistency occurs because multimodal encoders require more data and time to converge than ID-based modules, often leading to suboptimal joint training where the ID-based part overfits before the multimodal part has learned useful features.

AlignRec addresses these issues by treating recommendation as a series of alignment objectives. This approach ensures that multimodal features are well-integrated with ID embeddings before the final recommendation task, leading to faster inference and superior accuracy.

Methods: The Alignment Trinity

AlignRec breaks down the recommendation task into three specific alignment objectives, designed to bridge the gap between content and collaborative filtering signals.

AlignRec Architecture and Alignment Objectives
  1. Inter-Content Alignment (ICA): This stage aligns vision and language modalities. Using a transformer-based encoder (BEiT3) and a "mask-then-predict" strategy, the model learns a unified multimodal representation from raw images and text.
  2. Content-Category Alignment (CCA): To bridge the gap between content and IDs, AlignRec uses a contrastive loss (InfoNCE) to ensure that an item's multimodal feature is close to its categorical ID representation in the embedding space.
  3. User-Item Alignment (UIA): Finally, the model aligns user profiles with interacted items using cosine similarity, facilitating the core recommendation task.

A key innovation is the Decoupled Training strategy. AlignRec first pre-trains the ICA task on large-scale data to obtain high-quality features. Subsequently, it trains the CCA and UIA tasks alongside the standard Bayesian Personalized Ranking (BPR) loss. The authors also introduced an Intermediate Evaluation phase, using metrics like Zero-Shot and Item-CF to assess feature quality before final training.

Experimental Setup

The framework was evaluated using three categories from the Amazon Review Dataset: Baby, Sports and Outdoors, and Electronics. These datasets provide a mix of raw images, text reviews, and user-item interaction metadata, serving as a robust benchmark for multimodal recommendation performance.

Key Results and Insights

AlignRec demonstrates significant performance gains across all datasets. As shown in the table below, it consistently outperforms nine state-of-the-art baselines, including VBPR, BM3, and FREEDOM.

Performance Comparison of AlignRec against Baselines
  • Superior Accuracy: AlignRec achieved a Recall@20 improvement of +6.19% on the Baby dataset, +4.88% on Sports, and +8.02% on Electronics compared to the best-performing baselines.
  • Efficiency and Speed: Despite its performance, AlignRec is remarkably lightweight. On the Baby dataset, it uses only 7.17M parameters (compared to BM3's 31.57M) and achieves faster inference times (2.15s vs 2.40s for MGCN).
  • Long-Tail Robustness: The model excels in "long-tail" scenarios where interaction data is sparse. By providing rich, pre-aligned multimodal context, it compensates for the lack of ID-based history that typically hampers collaborative filtering models.

Conclusion

AlignRec demonstrates that systematic alignment is more effective than complex fusion architectures for multimodal recommendation. By decoupling the training process and focusing on the "trinity" of alignment tasks, the framework achieves a new state-of-the-art in both accuracy and efficiency. Future work will explore scaling AlignRec to more dynamic social media environments and incorporating additional modalities like video and audio.

Summary updated

BibTeX
@inproceedings{liu2024aligning,
  author = {Yifan Liu and Kangning Zhang and Xiangyuan Ren and Yanhua Huang and Jiarui Jin and Yingjie Qin and Ruilong Su and Ruiwen Xu and Weinan Zhang},
  title = {{An Aligning and Training Framework for Multimodal Recommendations}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  doi = {10.1145/3627673.3679626},
}
Figure