NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Knowledge-Enhanced Recommendation Model with Attribute-Level Co-Attention

Deqing Yang, Zengchun Song, Lvxin Xue, Yanghua Xiao

Introduction

Modern deep learning-based recommender systems have significantly improved user experience by utilizing attention mechanisms to identify relevant items in a user's history. However, most existing models suffer from two primary limitations: they rely on coarse-grained, item-level representations and typically employ one-sided attention. By treating an item as a single embedding vector, these models fail to capture the specific reasons why a user might like an item—such as a preference for a specific director, actor, or genre. Furthermore, they often leave the candidate item's representation static, failing to account for the specific context of the user's history.

The Attribute-level Co-Attention Model (ACAM) addresses these gaps by leveraging Knowledge Graphs (KGs) to decompose items into fine-grained attributes. By employing a symmetric co-attention mechanism, the model refines both user and item representations simultaneously, capturing the latent correlations between their respective attributes to deliver more precise recommendations.

The ACAM Framework

ACAM is built upon three primary layers designed to transition from item-level to attribute-level reasoning:

1. Embedding Layer

Instead of a monolithic vector, ACAM represents each item as a matrix of $M+1$ embeddings, consisting of the item itself and $M$ specific attributes (e.g., "actor" or "genre") sourced from a Knowledge Graph. User representations are constructed by aggregating the attributes of their last $L$ interacted items using an attention network, creating a multi-faceted profile of user interests.

2. Co-attention Layer

This layer serves as the core of the model. It computes a "co-attention map" or affinity matrix that quantifies the correlation between every user attribute and every candidate item attribute. This allows the model to identify complex cross-attribute signals—for example, learning that a user's interest in "Action" films is highly correlated with a specific lead actor. This process "co-augments" both the user and item representations based on these cross-attribute strengths, making the candidate item representation "context-aware" relative to the user.

3. Prediction Layer

The augmented representations are processed through a Multi-Layer Perceptron (MLP) to predict the final probability of a user-item interaction.

Knowledge Graph Grounding

To ensure that attribute embeddings remain semantically accurate, the authors incorporate a Knowledge Graph Embedding (KGE) objective, specifically TransH, into the loss function. This acts as a regularizer, constraining the embeddings to stay grounded in real-world relationships defined in the KG and preventing the model from over-fitting to sparse interaction data.

Experimental Evaluation

The model was evaluated on two large-scale datasets:

  • Douban Movies: 4,965 users and 41,785 items, using attributes like actor, director, writer, and genre.
  • NetEase Songs: 115,995 users and 19,981 items, using attributes like singer, album, composer, and lyricist.

Key Results

ACAM consistently outperformed state-of-the-art baselines, including NCF, NAIS, and RippleNet, across multiple metrics such as Hit Ratio (HR@n), Normalized Discounted Cumulative Gain (nDCG@n), and Reciprocal Rank (RR).

Notably, ACAM significantly outperformed NAIS, which utilizes item-level attention. This confirms that attribute-level granularity provides a much richer signal for recommendation than item-level representations alone. The model also demonstrated robustness to history length, showing performance gains as the number of historical items ($L$) increased from 3 to 10.

Insights and Future Work

The success of ACAM highlights two critical insights for recommendation research:

  1. Attributes are Interdependent: User interests are not isolated; a preference for a specific director often correlates with an interest in a specific genre. Co-attention effectively captures these "cross-talk" signals.
  2. Symmetric Refinement: Updating the item representation based on the user's history allows for a dynamic view of the candidate item, acknowledging that the same item may appeal to different users for different reasons.

Despite its performance, the model introduces higher computational complexity due to its matrix-based representations. Future research may explore automated attribute selection to determine which metadata matters most for different domains and investigate the model's performance in cold-start scenarios where KG data or user history may be sparse.

Summary updated

BibTeX
@inproceedings{yang2020knowledge,
  author = {Deqing Yang and Zengchun Song and Lvxin Xue and Yanghua Xiao},
  title = {{A Knowledge-Enhanced Recommendation Model with Attribute-Level Co-Attention}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2020},
  doi = {10.1145/3397271.3401313},
}
Figure