Graph Collaborative Reasoning

Hanxiong Chen, Yunqi Li, Shaoyun Shi, Shuchang Liu, He Zhu, Yongfeng Zhang · DOI

Abstract

Link prediction is a fundamental task in graph-based applications like recommendation systems and knowledge graph completion. While deep learning excels at pattern recognition, it often lacks the capacity for explicit relational reasoning. This paper introduces Graph Collaborative Reasoning (GCR), a framework that treats link prediction as a differentiable logical evaluation. By translating graph structures into logical expressions and utilizing modular neural logic gates, GCR combines the flexibility of neural networks with the rigor of symbolic logic. Experimental results on knowledge graph and recommendation benchmarks demonstrate that GCR significantly outperforms state-of-the-art models, particularly in sparse data scenarios.

Introduction

Link prediction—the task of guessing missing connections in a graph—is the backbone of modern recommendation systems and knowledge graph completion. Most existing models fall into two categories: embedding-based models that treat triplets independently, and Graph Neural Networks (GNNs) that focus on perceptual patterns. However, real-world links often follow logical rules (e.g., a "capital of" relation implies a "located in" relation). Traditional "hard logic" systems are too rigid for noisy data, while standard neural networks are often "black-box" systems. Graph Collaborative Reasoning (GCR) aims to bridge this neural-symbolic divide by treating link prediction as a differentiable logical evaluation.

Methodology

The core innovation of GCR is translating the graph structure into a neural logic reasoning problem.

Logical Translation and Neural Modules

GCR models the validity of a target link as a function of its neighbors. To make this computationally tractable, the authors apply De Morgan’s Law to simplify complex neighbor relations into a manageable logical expression: $\neg T_1 \lor \neg T_2 \lor \dots \lor \neg T_n \lor T_x$, where $T_x$ is the target link and $T_n$ are its neighbors.

Instead of hard-coded logic gates, GCR uses modularized neural networks (MLPs) to represent operators like NOT and OR. These "soft" modules can handle uncertainty and learn directly from data.

The GCR architecture translates graph structures into neural logic modules, using NOT and OR gates to evaluate the truth of a target link.

Anchor for Truth and Regularization

The model defines a constant, randomly initialized "anchor vector" T in the reasoning space to represent the concept of "True." Training ensures that for a valid link, the vector representation of its logical expression is close to this anchor. Additionally, specific logical regularizers are added to the loss function to ensure neural modules behave like consistent logic gates (satisfying properties like commutativity).

Experiments and Results

The authors evaluated GCR on the FB15k-237 knowledge graph and two sparse recommendation datasets from Amazon (Beauty and Clothing).

Performance and Insights

GCR consistently outperformed state-of-the-art baselines, including TransE, ConvE, and NGCF. On the FB15k-237 dataset, GCR achieved an MRR of 0.492, a 7.66% improvement over the best baseline. The performance gain was even more pronounced on sparse recommendation data, with a 44.41% improvement in Hit@10 for the Clothing dataset.

Performance comparison of GCR against baselines and sensitivity analysis of the logical regularization coefficient across different datasets.

Key insights from the study include:

  • Logic as a Sparsity Solution: GCR excels on sparse data because it can "reason" through a few neighbor links rather than requiring the dense neighborhoods needed by traditional GNNs.
  • Differentiable Symbolic Reasoning: The model learns rules through backpropagation without requiring human-authored symbolic rules.
  • Importance of Regularization: Ablation studies confirmed that logical regularization is crucial; without it, the neural modules fail to represent logical operations correctly.

Conclusion

GCR represents a significant step in bridging the gap between neural learning and symbolic reasoning. By treating the graph structure as a template for differentiable logic, it achieves superior performance on both knowledge graphs and sparse recommendation tasks. Future work may extend this to multi-hop reasoning and broader applications like question answering or molecular modeling.

Summary updated

BibTeX
@inproceedings{chen2021graph,
  author = {Hanxiong Chen and Yunqi Li and Shaoyun Shi and Shuchang Liu and He Zhu and Yongfeng Zhang},
  title = {{Graph Collaborative Reasoning}},
  booktitle = {WSDM},
  year = {2021},
  doi = {10.1145/3488560.3498410},
}
Figure