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

CAFE: Coarse-to-Fine Neural Symbolic Reasoning for Explainable Recommendation

Yikun Xian, Zuohui Fu, Handong Zhao, Yingqiang Ge, Xu Chen, Qiaoying Huang, Shijie Geng, Zhou Qin, Gerard de Melo, S. Muthukrishnan, Yongfeng Zhang · DOI

Abstract

Knowledge Graph (KG) reasoning has emerged as a powerful tool for explainable recommendations, yet existing methods often struggle with efficiency and accuracy in large-scale graphs. This paper presents CAFE (Coarse-to-Fine neural symbolic reasoning), a framework that decomposes the recommendation task into a two-stage process. By first sketching a personalized user profile and then performing profile-guided path reasoning, CAFE achieves significant improvements in recommendation quality and a 10x speedup over previous state-of-the-art path-guided models.

Introduction

In modern e-commerce, recommendations are most effective when accompanied by transparent logic. Knowledge Graphs facilitate this by enabling models to traverse paths of semantic relations (e.g., User → Purchase → Category → Item). However, navigating these massive graphs presents a "needle in a haystack" challenge.

Conceptual illustration of Knowledge Graph reasoning for personalized recommendations.

Existing approaches typically fall into two categories: "Rec-First" models, which generate post-hoc explanations for predicted items, and "Path-Guided" models, which use Reinforcement Learning to explore the graph. The former often lacks genuine causal reasoning, while the latter suffers from high computational costs and noise sensitivity. CAFE addresses these limitations by introducing a "coarse-to-fine" strategy that mimics human reasoning: starting with a rough behavioral sketch before filling in specific product details.

Methodology: The Coarse-to-Fine Framework

The CAFE framework operates in two distinct stages to bridge the gap between high-level user behavior and fine-grained item selection.

The CAFE architecture, illustrating the transition from coarse user profile composition to fine-grained path reasoning.

1. Coarse Stage: User Profile Composition

The first stage identifies prominent behavioral patterns for each user. Instead of examining every node, CAFE focuses on sequences of relations (e.g., Purchase → Produced_by → Belong_to).

  • Pattern Discovery: Candidate patterns are identified via random walks on the KG.
  • Personalization: The system solves a bounded knapsack optimization problem to select the most relevant patterns for a specific user, creating a "coarse sketch" of their discovery process.

2. Fine Stage: Profile-guided Path Reasoning (PPR)

With the user profile as a guide, the model performs targeted reasoning to find specific items.

  • Neural Symbolic Modules: CAFE utilizes a library of small, specialized neural modules, each corresponding to a specific relation type in the KG.
  • Layout Tree & Batch Reasoning: These modules are assembled into a tree structure based on the user's profile. The PPR algorithm then traverses this tree to find multiple reasoning paths simultaneously, significantly increasing efficiency compared to sequential path searching.

Experimental Evaluation

The authors evaluated CAFE using four Amazon e-commerce datasets: CDs & Vinyl, Clothing, Cell Phones, and Beauty. These datasets represent diverse and noisy real-world scenarios.

Key Results

  • Accuracy: CAFE consistently outperformed state-of-the-art baselines like KGAT and PGPR. For instance, on the Clothing dataset, CAFE achieved a 6.34% Recall, surpassing KGAT (5.17%) and PGPR (4.83%).
  • Efficiency: Due to its batch-processing PPR algorithm, CAFE demonstrated a 10x speedup over the RL-based PGPR model.
  • Robustness: The framework proved resilient to missing data; hiding 30% of user patterns during training resulted in only a marginal performance drop (1.5–3%), indicating strong generalization capabilities.

Conclusion

CAFE introduces a scalable and accurate paradigm for explainable recommendations. By leveraging a coarse-to-fine reasoning process, it effectively filters graph noise while maintaining high computational efficiency. Future work may involve extending this modular reasoning to more complex logical structures and diverse domains beyond e-commerce.

Summary updated

BibTeX
@inproceedings{xian2020cafe,
  author = {Yikun Xian and Zuohui Fu and Handong Zhao and Yingqiang Ge and Xu Chen and Qiaoying Huang and Shijie Geng and Zhou Qin and Gerard de Melo and S. Muthukrishnan and Yongfeng Zhang},
  title = {{CAFE: Coarse-to-Fine Neural Symbolic Reasoning for Explainable Recommendation}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2020},
  doi = {10.1145/3340531.3412038},
}
Figure