Common Sense Enhanced Knowledge-based Recommendation with Large Language Model

Shenghao Yang, Weizhi Ma, Peijie Sun, Min Zhang, Qingyao Ai, Yiqun Liu, Mingchen Cai

TL;DR

CSRec is a novel framework that enhances knowledge-based recommendation systems by extracting "common sense" relationships (like complementarity and substitutability) from Large Language Models (LLMs). By using a mutual information maximization strategy to fuse this abstract common sense with traditional metadata-based knowledge graphs, the authors significantly improve recommendation accuracy, particularly in challenging "cold-start" scenarios where user data is scarce.

What Problem Does This Paper Address?

Traditional recommendation systems often struggle with data sparsity and the cold-start problem—the difficulty of recommending items to new users or suggesting new products with no history. Knowledge-based recommenders try to solve this by using Knowledge Graphs (KGs) built from metadata (e.g., "this item is a Dell laptop" or "users who bought X also bought Y").

However, these metadata-based KGs have two major flaws:

  1. Limited Scope: Attributes like brand or category only tell part of the story.
  2. Data Dependency: Co-occurrence relations (like "also bought") require massive amounts of interaction data to be useful, failing exactly when data is sparse.

The authors argue that common sense—the universal understanding that a phone needs a case or that a tablet can substitute for an e-reader—is a powerful, data-agnostic supplement that has been largely untapped in recommendation engines.

Methods

The authors propose CSRec (Common Sense Recommendation), a model-agnostic framework consisting of three main stages:

  1. Common Sense KG Construction: Instead of manual annotation, the authors prompt an LLM (ChatGPT) to identify complementary and substitute relations between item categories. For example: "I bought a phone, please recommend 10 complementary categories."
  2. Entity Mapping: Since LLMs might generate "pseudo-categories" not present in the specific dataset, the authors use the BM25 text retrieval model to map the LLM's suggestions back to the actual dataset's category set.
  3. Knowledge Fusion via MIM: This is the technical "secret sauce." Directly merging a metadata KG with a common sense KG is difficult because they exist in different "knowledge spaces." The authors use Mutual Information Maximization (MIM)—implemented via contrastive learning (InfoNCE loss)—to "softly" align the representations of the same category across both graphs. This treats the two KGs as two different "views" of the same entity, ensuring the model learns a unified representation.

Datasets

The framework was evaluated on two widely used public datasets from the Amazon product ecosystem:

  • Amazon Electronics: A large-scale dataset with over 177,000 users and 59,000 items.
  • Amazon Office Products: A smaller, denser dataset with roughly 4,900 users and 2,400 items.

Key Insights and Ideas

  • Common Sense as a Data-Agnostic Bridge: Unlike "also-bought" relations which require user history, common sense is inherent to the items themselves. This makes it a perfect tool for cold-start scenarios.
  • The "Knowledge Gap" Problem: The authors found that simply "hard merging" (combining nodes and edges) the two types of KGs actually hurt performance. The metadata is concrete and statistical, while common sense is abstract. The use of MIM allows the model to bridge this gap without forcing the two disparate types of data into a single, rigid structure.
  • Category-Level Reasoning: By performing common sense analysis at the category level rather than the item level, the system remains computationally efficient and captures higher-level human intuition that generalizes better than specific item-to-item links.

Key Results

The authors integrated CSRec into two base models: CKE (Collaborative Knowledge Embedding) and CFKG (Collaborative Filtering Knowledge Graph).

  • Overall Performance: CSRec consistently outperformed both standard Collaborative Filtering (BPR, NeuMF) and vanilla KG-based models. On the Electronics dataset, CSRec(CFKG) achieved an HR@10 of 0.2766, a significant jump over the base CFKG's 0.2712.
  • Cold-Start Gains: The most impressive results appeared in cold-start tests. For users with very few interactions (the [10, 15] group), CSRec(CFKG) showed a 34% relative improvement in HR@10.
  • Ablation Success: The experiments confirmed that the "soft merging" via MIM was superior to "hard merging" the graphs, proving that the alignment strategy is crucial for handling multi-source knowledge.

Limitations and Future Work

  • Popularity Bias in LLMs: The authors noted a performance dip in extremely cold item groups for the CKE-based version. They speculate that LLMs themselves might have a "popularity bias," where their common sense is sharper for mainstream items than for niche, long-tail products.
  • Offline Processing: Currently, the common sense extraction is performed offline. Future work could involve more dynamic, real-time common sense reasoning.
  • Refining Relations: The study focused on complementarity and substitution. Expanding the taxonomy of common sense relations (e.g., "seasonal use" or "demographic suitability") could further refine recommendations.

Summary updated

BibTeX
@inproceedings{yang2024common,
  author = {Shenghao Yang and Weizhi Ma and Peijie Sun and Min Zhang and Qingyao Ai and Yiqun Liu and Mingchen Cai},
  title = {{Common Sense Enhanced Knowledge-based Recommendation with Large Language Model}},
  booktitle = {DASFAA},
  year = {2024},
  doi = {10.1007/978-981-97-5569-1\_25},
}

Loading related content...

Figure