Abstract
Modern recommender systems often struggle with the trade-off between predictive accuracy and model interpretability. We present Neural-Symbolic Explainable Recommendation (NSER), a framework that bridges this gap by integrating deep learning's predictive power with the transparency of symbolic logic. NSER employs a two-stage "coarse-to-fine" reasoning process over Knowledge Graphs (KGs). It first identifies abstract user behavior patterns (coarse-grained) before executing these patterns to find specific item recommendations (fine-grained). Evaluated on large-scale e-commerce datasets, NSER demonstrates superior performance over state-of-the-art baselines while providing multi-level, human-readable explanations.
Introduction
The "black box" nature of deep learning models in recommendation systems poses a significant challenge for user trust and system transparency. While symbolic methods offer clear reasoning paths, they often lack the generalization capabilities of neural networks and require labor-intensive rule engineering. Furthermore, reasoning over large-scale Knowledge Graphs (KGs) involves navigating an immense search space, where finding a meaningful path from a user to a recommended item is computationally daunting.
NSER addresses these issues by "neuralizing" symbolic reasoning. Instead of treating graph relations as static labels, NSER represents them as Neural Relation Modules—small neural networks that function as composable logic units. This allows the system to maintain the structural integrity of symbolic paths while benefiting from the learning capacity of neural architectures.
Methodology: Coarse-to-Fine Reasoning
The core of NSER is a hierarchical reasoning pipeline designed to prune the search space and provide layered explanations.
1. Coarse-grained Explanation (Abstract Meta-Layout)
The first stage generates an "abstract meta-layout," which serves as a blueprint for user behavior. For instance, a pattern might be "User $\to$ mentions $\to$ Category $\to$ described_by $\to$ Item." By prioritizing specific "metapaths" based on a heuristic importance function for each user, the model establishes a high-level logic for the recommendation before looking at individual entities.
2. Fine-grained Explanation (Concrete Paths)
In the second stage, the model "executes" the meta-layout. The user's embedding is passed through the sequence of Neural Relation Modules corresponding to the chosen blueprint. This process traverses the KG to identify actual entities (e.g., specific products or brands). The terminal nodes of these paths constitute the final recommendations.
Training Objectives
NSER is trained using a multi-task objective:
- Path-fitting loss: Calibrates neural modules to accurately predict subsequent entities in known historical paths.
- Ranking loss: Leverages a "teacher model" (a pre-existing recommendation engine) to provide a ranking signal, helping the "student" NSER focus on high-utility items within the vast KG.
Experimental Evaluation
The framework was tested on four Amazon e-commerce datasets: CDs & Vinyl, Clothing, Cell Phones, and Beauty. These datasets were modeled as KGs with millions of triples involving users, items, categories, and brands.
Performance Results
NSER consistently outperformed state-of-the-art baselines like PGPR and HeteroEmbed. For example, on the Clothing dataset, NSER achieved a Recall of 6.340%, a significant improvement over HeteroEmbed's 5.466%. Similar gains were observed in NDCG across all categories, validating the effectiveness of the coarse-to-fine approach.
Ablation studies further confirmed that personalizing the meta-layout via heuristics is crucial. Models using uniform or fixed layouts performed significantly worse, highlighting that the "logic" of a recommendation must be tailored to individual user behavior.
Conclusion and Future Directions
NSER demonstrates that neural-symbolic integration can resolve the accuracy-explainability trade-off in recommendation systems. By providing both abstract logic and concrete evidence, it offers a more comprehensive "why" than traditional path-based models.
Future work will focus on reducing dependency on external teacher models and making the meta-layout generation fully differentiable. Additionally, optimizing the computational efficiency of training neural modules for massive KGs remains a key area for development.
Summary updated