Neural-Symbolic Recommendation with Graph-Enhanced Information

Bang Chen, Wei Peng, Maonian Wu, Bo Zheng, Shaojun Zhu

TL;DR

This paper introduces GNNLR, a novel neuro-symbolic recommendation model that combines the global implicit reasoning capabilities of Graph Neural Networks (GNNs) with the local explicit reasoning of propositional logic. By constructing item-item graphs and transforming user behavior into logical rules, GNNLR aims to provide more accurate and cognitively aligned recommendations than purely perception-based or purely logic-based approaches.

What Problem Does This Paper Address?

Traditional recommendation systems often fall into two camps: those that rely on inductive statistics (like GNNs) to learn patterns from data, and those that attempt cognitive reasoning using logic. GNNs excel at capturing implicit, global relationships within data structures like graphs, but they primarily learn perceptual matching patterns. On the other hand, existing logic-based recommendation methods often focus on local reasoning based on a user's immediate history, neglecting broader, implicit information. This leaves a gap: how to effectively combine the strengths of both approaches to achieve recommendations that are both globally informed and locally reasoned, mimicking human decision-making more closely. For instance, a user who just bought a computer might need a keyboard, not another computer, a nuance that purely pattern-matching systems might miss.

Methods

The GNNLR model is built upon five key components:

  1. Item-Item Graph Construction: Instead of traditional user-item graphs, GNNLR constructs an item-item graph. Edges are formed between items that appear adjacently in a user's historical interaction sequence. This approach creates a denser, smaller graph focused on item relationships, preserving temporal information and reducing computational complexity.
  2. Node Information Fusion: Graph Neural Networks (specifically, a Graph Convolutional Network) are used to aggregate information from the item-item graph. This process embeds item features and propagates them through the graph, capturing implicit, global relationships.
  3. Propositional Logic Convert: User historical behavior is transformed into propositional logic expressions. For example, a sequence of interactions like (v1, v4, v3) can be converted into a rule like (v1 → v3) ∨ (v4 → v3) ∨ (v1 ∧ v4 → v3) = T. These expressions are then simplified into a more computationally tractable Horn clause form.
  4. Neural Logic Computing: Independent neural network modules (NOT and OR) are trained to perform logic operations. These modules take the aggregated item embeddings and compute the truth value of the propositional logic expressions, effectively performing neural logic operations.
  5. Prediction and Training: The model predicts a user's preference for an item by computing the similarity between the logic expression's output vector and a benchmark vector T. A higher similarity indicates a higher likelihood of preference. The training employs a pairwise learning strategy with a loss function that penalizes incorrect predictions and includes regularization terms for logic operator modules and vector lengths.

Datasets

The paper evaluates GNNLR on five publicly available datasets:

  • GiftCard
  • Software
  • Luxury
  • Industry
  • MovieLens-100k (ML100k)

These datasets represent various categories and data volumes, allowing for a comprehensive evaluation. The authors use a leave-one-out strategy for data splitting, sorting user interactions by time and using the last two interactions for validation and testing.

Key Insights and Ideas

  • Bridging the Perception-Reasoning Gap: The core insight is that combining GNNs (for global, implicit perception) with propositional logic (for local, explicit reasoning) can overcome the limitations of each approach individually. This creates a more robust recommendation system that mimics human cognitive processes.
  • Item-Item Graphs for Efficiency: Shifting from user-item graphs to item-item graphs based on sequential adjacency is a clever way to reduce graph sparsity and size, making GNN processing more efficient and effective for recommendation tasks.
  • Propositional Logic as a Reasoning Engine: Representing user behavior as logical rules allows the model to perform explicit, interpretable reasoning, which is crucial for tasks that require more than just pattern matching.
  • Neuro-Symbolic Synergy: The paper demonstrates that by integrating neural networks for learning and symbolic logic for reasoning, a synergistic effect can be achieved, leading to superior performance.

Key Results

GNNLR consistently outperforms several state-of-the-art baseline models across all four evaluation metrics (N@10, N@20, H@10, H@20) on the five tested datasets. For example, on the Gift Card dataset, GNNLR achieves the highest N@10 (0.3646) and N@20 (0.4134) scores. The paper also shows that GNNLR significantly outperforms models that rely solely on GNNs (like NGCF) or solely on neural logic reasoning (like NLR), validating the contribution of both components.

Limitations and Future Work

The authors acknowledge that different GNN architectures have varying strengths and that their choice of GCN, while effective, might not be universally optimal. They suggest that further exploration of GNN architectures could yield improvements.

Future work directions include:

  • Exploring and constructing graphs from multiple perspectives to capture richer global implicit information.
  • Incorporating user information directly into the logic reasoning module.
  • Utilizing first-order logic to enhance the flexibility and scalability of the reasoning process.
  • Investigating the impact of longer training epochs for certain GNN architectures that may require more time to converge.

Summary updated

Abstract

The recommendation system is not only a problem of inductive statistics from data but also a cognitive task that requires reasoning ability. The most advanced graph neural networks have been widely used in recommendation systems because they can capture implicit structured information from graph-structured data. However, like most neural network algorithms, they only learn matching patterns from a perception perspective. Some researchers use user behavior for logic reasoning to achieve recommendation prediction from the perspective of cognitive reasoning, but this kind of reasoning is a local one and ignores implicit information on a global scale. In this work, we combine the advantages of graph neural networks and propositional logic operations to construct a neuro-symbolic recommendation model with both global implicit reasoning ability and local explicit logic reasoning ability. We first build an item-item graph based on the principle of adjacent interaction and use graph neural networks to capture implicit information in global data. Then we transform user behavior into propositional logic expressions to achieve recommendations from the perspective of cognitive reasoning. Extensive experiments on five public datasets show that our proposed model outperforms several state-of-the-art methods, source code is avaliable at [https://github.com/hanzo2020/GNNLR].
BibTeX
@misc{chen2023neural,
  author = {Bang Chen and Wei Peng and Maonian Wu and Bo Zheng and Shaojun Zhu},
  title = {{Neural-Symbolic Recommendation with Graph-Enhanced Information}},
  year = {2023},
  eprint = {2307.05036},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.05036},
}
Figure