CLICK: Contrastive Learning for Injecting Contextual Knowledge to Conversational Recommender System

Hyeongjun Yang, Heesoo Won, Youbin Ahn, Kyong-Ho Lee2023

Abstract

Conversational recommender systems (CRSs) capture a user preference through a conversation. However, the existing CRSs lack capturing comprehensive user preferences. This is because the items mentioned in a conversation are mainly regarded as a user preference. Thus, they have limitations in identifying a user preference from a dialogue context expressed without preferred items. Inspired by the characteristic of an online recommendation community where participants identify a context of a recommendation request and then comment with appropriate items, we exploit the Reddit data. Specifically, we propose a Contrastive Learning approach for Injecting Contextual Knowledge (CLICK) from the Reddit data to the CRS task, which facilitates the capture of a context-level user preference from a dialogue context, regardless of the existence of preferred item-entities. Moreover, we devise a relevance-enhanced contrastive learning loss to consider the fine-grained reflection of multiple recommendable items. We further develop a response generation module to generate a persuasive rationale for a recommendation. Extensive experiments on the benchmark CRS dataset show the effectiveness of CLICK, achieving significant improvements over state-of-the-art methods.

Introduction

Most current Conversational Recommender Systems (CRSs) are "entity-centric." They function primarily by identifying specific movie titles or actors mentioned in a chat and mapping them to a Knowledge Graph (KG). While effective for explicit preferences (e.g., "I like Inception"), this approach often fails when users describe situational needs or emotional states without naming specific films. For instance, a user might request a "mindless movie for a stressful day" to watch with a toddler.

This gap highlights the need for context-level preferences. Existing systems struggle to map natural language descriptions of needs (the context) to specific items without an explicit entity bridge. CLICK addresses this by leveraging external community data to learn how situational contexts relate to item recommendations.

Methodology

The CLICK framework introduces a two-stage training scheme designed to bridge the gap between natural language context and structured item data.

1. Contextual Knowledge Injection (Pre-training)

The model is pre-trained using data from the r/MovieSuggestions subreddit. This dataset captures how humans recommend items based on complex, situational requests.

  • Relevance-enhanced Contrastive Loss: Unlike standard contrastive learning that uses binary labels, CLICK utilizes Reddit upvotes as a proxy for relevance. The model learns to "attract" item-text pairs more strongly if they have higher community validation (upvotes).
  • Cross-Modal Alignment: Using BERT for text requests and a Relational Graph Convolutional Network (R-GCN) for the Knowledge Graph, the contrastive loss aligns these two distinct modalities into a shared latent space.
The CLICK framework overview, illustrating the injection of contextual knowledge from Reddit data into the recommendation and response generation pipeline.

2. Fine-tuning for CRS

After pre-training, the model is fine-tuned on standard conversational datasets like ReDial. A Gate Mechanism is employed to dynamically balance entity-level preferences (explicitly mentioned movies) and context-level preferences (the overall "vibe" of the conversation). Finally, a pre-trained GPT-2 backbone generates persuasive rationales for the recommendations, ensuring the system explains why a movie fits the user's specific situational context.

Experimental Results

The authors evaluated CLICK against several state-of-the-art models, including C2CRS and KGSF, across two primary settings: the standard setting and a "No Mentioned Item" setting.

Recommendation Performance

CLICK demonstrated superior performance in recommendation accuracy. In the standard setting, it achieved a Recall@1 of 5.5%, outperforming the previous state-of-the-art. More importantly, in the "No Mentioned Item" setting—which simulates the "cold start" problem of a conversation where no movies have been named yet—CLICK's Recall@1 reached 3.5%, nearly doubling the performance of several baseline models.

Comparison of recommendation performance (Recall@k) and diversity across various models in standard and no-mentioned-item settings.

Human and Automatic Evaluation

In addition to accuracy, CLICK was evaluated on the quality of its generated responses. Human evaluators rated CLICK higher than all baselines for Fluency, Relevancy, and Informativeness. This confirms that the relevance-enhanced pre-training helps the model generate rationales that are not only grammatically correct but also contextually appropriate and persuasive.

Conclusion

CLICK successfully demonstrates that online communities like Reddit can serve as a powerful "teacher" for conversational recommendation logic. By incorporating a relevance-enhanced contrastive loss, the system moves beyond simple entity matching to a deeper understanding of situational context. Future work may involve expanding this framework to other domains such as music or e-commerce and developing more "active" conversational strategies to clarify user needs.

Summary updated

BibTeX
@misc{yang2023click,
  author = {Hyeongjun Yang and Heesoo Won and Youbin Ahn and Kyong-Ho Lee},
  title = {{CLICK: Contrastive Learning for Injecting Contextual Knowledge to Conversational Recommender System}},
  year = {2023},
  doi = {10.18653/v1/2023.eacl-main.137},
}
Figure