AlignRec: Aligning and Training in Multimodal Recommendations

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

TL;DR

This paper introduces AlignRec, a novel framework for multimodal recommendation systems that tackles the critical issue of misalignment between different data modalities (like images, text, and user/item IDs). By introducing three specific alignment objectives and a two-stage training strategy, AlignRec significantly improves recommendation performance and offers a more efficient way to leverage multimodal information.

What Problem Does This Paper Address?

Modern recommendation systems increasingly leverage rich multimodal data, such as images and text, to provide more accurate and personalized suggestions. However, a significant challenge arises from the "semantic gap" – the inherent differences in how these modalities are represented. Simply concatenating or using multimodal features as auxiliary information can lead to misalignment, where the representations of content (images, text) and categorical IDs (user IDs, item IDs) don't effectively complement each other. This misalignment hinders the ability of recommendation models to fully exploit the rich information present in multimodal data, especially in scenarios with sparse interactions (long-tail items) or cold-start users/items. Existing methods often struggle to address this issue, leading to suboptimal performance.

Methods

AlignRec proposes a unified framework to address multimodal recommendation challenges through three key alignment objectives:

  • Inter-Content Alignment (ICA): This objective focuses on aligning different content modalities (vision and text) for the same item. It uses an attention-based cross-modality encoder (specifically, a transformer-based model like BEiT3) to fuse vision and text information into a single, unified multimodal representation. This is achieved through mask-then-predict strategies (Masked Language Modeling and Masked Image Modeling).
  • Content-Category Alignment (CCA): This alignment bridges the gap between the unified multimodal content features and the categorical ID-based features (user and item IDs). It employs an in-batch InfoNCE loss to ensure that positive content-category pairs are closer in the representation space than negative pairs. A regularization term is also introduced to prevent representation collapse.
  • User-Item Alignment (UIA): This objective directly aligns the final user and item representations using cosine similarity, aiming to maximize the prediction of interacted items for a given user. This is closely related to the core recommendation objective.

To tackle the challenge of imbalanced learning speeds between multimodal content and categorical IDs, AlignRec adopts a two-stage training strategy:

  1. Pre-training: The ICA task is pre-trained first to obtain unified multimodal features.
  2. Training: The CCA, UIA, and the main recommendation (BPR) loss are trained together, leveraging the pre-trained multimodal features.

Additionally, AlignRec introduces three intermediate evaluation protocols (Zero-Shot Recommendation, Item-CF Recommendation, and Mask Modality Recommendation) to assess the quality of multimodal features independently of the final recommendation performance.

Datasets

The paper evaluates AlignRec on three real-world Amazon review datasets:

  • Baby
  • Sports
  • Electronics

These datasets are filtered using a 5-core setting, and the raw images and text reviews are used. The paper notes that previous works often use pre-extracted features (e.g., 4,096-dimensional visual features and 384-dimensional textual features), whereas AlignRec starts from raw data.

Key Insights and Ideas

  • Misalignment is a core problem: The paper convincingly demonstrates that the semantic gap between different modalities is a significant bottleneck in current multimodal recommendation systems.
  • Unified alignment is crucial: Instead of treating modalities separately or as simple auxiliaries, AlignRec's strength lies in its comprehensive approach to aligning content-to-content, content-to-category, and user-to-item representations.
  • Two-stage training is essential for efficiency: The imbalanced learning rates of different modalities necessitate a staged approach to training, preventing faster-learning components from dominating before richer multimodal representations are formed.
  • Intermediate evaluation is valuable: The proposed intermediate evaluation metrics offer a way to assess the quality of multimodal features directly, which can guide model selection and hyperparameter tuning, leading to more efficient development.
  • Text modality is often more critical: The mask modality experiments suggest that text features might carry more crucial information for recommendation than vision features in some contexts.

Key Results

  • State-of-the-art performance: AlignRec consistently outperforms nine baselines across all three datasets in terms of Recall@20 and NDCG@20, with statistically significant improvements. For example, on the Baby dataset, AlignRec achieves a Recall@20 of 0.1046, outperforming the next best baseline (FREEDOM) by a notable margin.
  • Effective multimodal features: AlignRec's generated multimodal features are shown to be superior to pre-extracted features (like Amazon's original features or CLIP features) when used with existing recommendation models, leading to performance gains.
  • Efficiency: AlignRec achieves this superior performance with a significantly smaller parameter count and comparable inference speed compared to other advanced multimodal methods.
  • Robustness: The mask modality evaluation demonstrates AlignRec's robustness to missing modalities, a crucial aspect for real-world applications.
  • Long-tail performance: AlignRec shows strong performance on long-tail items, indicating its ability to generalize multimodal knowledge effectively to scenarios with sparse data.

Limitations and Future Work

  • Hyperparameter sensitivity: The paper notes that the performance of AlignRec is sensitive to the weights of the alignment losses (α and β), requiring careful tuning.
  • Model complexity: While AlignRec is more efficient than some baselines, the multimodal encoder itself (BEiT3) is complex. The paper suggests that further research could explore simpler multimodal encoders.
  • Online deployment: The authors express interest in evaluating and deploying AlignRec on an online social media platform in the future.
  • Exploring more modalities: The current work focuses on vision and text. Future work could extend to other modalities.

Summary updated

BibTeX
@inproceedings{liu2024alignrec,
  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 Yong Yu and Weinan Zhang},
  title = {{AlignRec: Aligning and Training in Multimodal Recommendations}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  doi = {10.1145/3627673.3679626},
}
Figure