Abstract
Multimedia recommendations aim to use rich multimedia content to enhance historical user-item interaction information, which can not only indicate the content relatedness among items but also reveal finer-grained preferences of users. In this paper, we propose a Knowledge-aware Diffusion-Enhanced architecture using contrastive learning paradigms (KDiffE) for multimedia recommendations. Specifically, we first utilize original user-item graphs to build an attention-aware matrix into graph neural networks, which can learn the importance between users and items for main view construction. The attention-aware matrix is constructed by adopting a random walk with a restart strategy, which can preserve the importance between users and items to generate aggregation of attention-aware node features. Then, we propose a guided diffusion model to generate strongly task-relevant knowledge graphs with less noise for constructing a knowledge-aware contrastive view, which utilizes user embeddings with an edge connected to an item to guide the generation of strongly task-relevant knowledge graphs for enhancing the item's semantic information. We perform comprehensive experiments on three multimedia datasets that reveal the effectiveness of our KDiffE and its components on various state-of-the-art methods. Our source codes are available at https://github.com/1453216158/KDiffE.
Introduction
Multimedia Recommendation (MMRec) systems attempt to suggest items by analyzing visual, textual, and acoustic content alongside historical interaction data. Despite their potential, two major hurdles persist. First, the "Averaging" Problem: most GNN-based models treat all user-item interactions as equally important, leading to noisy representations when accidental or non-representative clicks are aggregated. Second, Knowledge Graph Noise and Sparsity: external knowledge graphs (KGs) used to link items are often sparse or contain topic-irrelevant connections that fail to capture true user behavior.
To address these issues, we introduce KDiffE (Knowledge-aware Diffusion-Enhanced architecture). KDiffE leverages a topology-based attention mechanism and a guided diffusion process to generate clean, task-relevant representations for multimedia recommendation.
The KDiffE Architecture
The KDiffE framework operates through three primary components: an attention-aware GNN for the main view, a guided diffusion model for the contrastive view, and a contrastive learning objective to align them.
Attention-aware GNN (Main View)
Instead of employing computationally expensive learnable attention weights, KDiffE utilizes the graph's own topology. By applying a Random Walk with Restart (RWR) strategy and the Jaccard index, the model constructs an attention-aware matrix. This matrix identifies which neighbors in the graph are most significant, allowing the GNN to prioritize meaningful connections during feature aggregation while maintaining lower computational costs than adaptive attention-based competitors.
Guided Diffusion Model (Contrastive View)
To mitigate KG noise, KDiffE treats the knowledge graph structure as a target for denoising. In the forward process, Gaussian noise is added to item-entity relationships. In the reverse process, a neural network recovers the original relationships. Crucially, user embeddings are used as a guide during this recovery, ensuring the reconstructed graph focuses on relationships relevant to user preferences rather than just recovering any existing relationship.
Contrastive Learning
The model generates two views of the data—the main view from the GNN and the enhanced view from the diffusion model. It then employs an InfoNCE loss to align these views, forcing the model to learn representations that are robust against noise in both the interaction and knowledge graphs.
Experimental Evaluation
KDiffE was evaluated on three diverse multimedia datasets: TikTok (short-form videos), Amazon-Baby (product data), and Amazon-Sports (large-scale product data).
As shown in the table above, KDiffE consistently outperformed several state-of-the-art baselines. On the TikTok dataset, it achieved a Recall@20 of 0.112 and NDCG@20 of 0.046, surpassing the next best model, MGCL (0.109 Recall, 0.040 NDCG). Ablation studies (KDiffE_1, _2, and _3) demonstrate that removing the attention-aware matrix or the guided diffusion mechanism leads to a measurable drop in performance, confirming that both components are essential for the model's success.
Conclusion
KDiffE demonstrates that combining graph topology with diffusion-based denoising significantly enhances multimedia recommendation performance. By using user context as a guide, the diffusion process effectively filters noise from external knowledge graphs. Future work will explore deeper semantic reconstruction to discover entirely new, latent relationships between items that are not present in the original data.
Summary updated