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

Inferring substitutable and complementary products with Knowledge-Aware Path Reasoning based on dynamic policy network

Zijing Yang, Jiabo Ye, Linlin Wang, Xin Lin, Liang He

TL;DR

This paper introduces KAPR, a novel approach for inferring substitutable and complementary product relationships using knowledge graphs and reinforcement learning. By modeling the problem as a Markov Decision Process and leveraging both structured and unstructured knowledge, KAPR achieves state-of-the-art performance with interpretable reasoning paths.

What Problem Does This Paper Address?

Recommender systems heavily rely on understanding how products relate to each other. Specifically, identifying substitutable products (e.g., two different brands of smartphones) and complementary products (e.g., a phone and its charger) is crucial for providing relevant recommendations. Existing methods often struggle with:

  • Fine-grained inference: They fail to capture subtle product characteristics that determine substitutability or complementarity.
  • Lack of interpretability: They provide probability scores but don't explain why a recommendation is made, making it hard to trust or debug.
  • Limited use of knowledge graphs: While knowledge graphs offer rich relational information, effectively leveraging their topological structure for reasoning has been underexplored.

This paper aims to address these limitations by developing a model that can perform accurate, interpretable, and knowledge-aware reasoning over product knowledge graphs.

Methods

The core of the proposed KAPR model lies in its Knowledge-Aware Path Reasoning approach, which frames the problem as a Markov Decision Process (MDP). Here's a breakdown of the key components:

  • Knowledge Graph Construction: A knowledge graph is built by extracting structured information from e-commerce datasets. This graph connects products, brands, categories, and even words from reviews.
  • Dynamic Policy Network: An agent is trained using reinforcement learning to navigate this knowledge graph. Unlike static policy networks, KAPR's dynamic policy network can adapt to a changing action space, which is crucial for exploring complex graph structures. It uses an attention mechanism to select the best action based on the current state and available actions.
  • Multi-Feature Inference (MFI) Component: This component leverages unstructured knowledge (product descriptions, titles, categories) to generate robust rewards for the reinforcement learning agent. It comprises two models: MFI_s for substitutable relationships and MFI_c for complementary relationships. The reward is the maximum of these two scores, acknowledging that both types of relationships can be beneficial for reasoning.
  • Pruning Strategy: To handle the large number of potential actions (edges) in the knowledge graph, a pruning strategy is employed. This strategy uses structured knowledge and meta-path patterns to retain only relevant actions, effectively narrowing the search space and improving reasoning accuracy.
  • Path Reasoning: The agent explores paths in the knowledge graph, guided by the dynamic policy network and the MFI-based reward. These paths serve as explicit evidence for the inferred relationships.

Datasets

The authors evaluate their model on four real-world datasets:

  • Baby
  • Beauty
  • Cell Phone (including accessories)
  • Electronics

These datasets contain reviews and product metadata. The paper does not introduce new benchmarks but utilizes existing ones for evaluation.

Key Insights and Ideas

  • Knowledge Fusion is Key: Integrating both structured (knowledge graph) and unstructured (textual descriptions) knowledge significantly enhances the model's ability to discriminate between product relationships.
  • Dynamic Policies for Dynamic Graphs: The dynamic policy network's ability to adapt to changing action spaces is crucial for effective reinforcement learning on complex knowledge graphs, outperforming static approaches.
  • Interpretability Through Paths: The reasoning paths generated by the agent provide transparent explanations for the inferred relationships, building trust and allowing for deeper understanding.
  • MFI for Robust Rewards: Using unstructured knowledge to construct a reward function is vital for overcoming the sparsity of explicit relationship labels and guiding the learning process effectively.
  • Substitutable and Complementary Relationships are Intertwined: The study highlights that in some categories, the distinction between substitutes and complements can be fuzzy, as user behavior (viewing vs. purchasing) can lead to overlapping relationships.

Key Results

  • KAPR achieves state-of-the-art performance across all four datasets for both substitutable and complementary relationship inference, outperforming models like PGPR, SPEM, and DecGCN.
  • On average, KAPR shows significant relative improvements over PGPR, with 18.0% and 24.7% gains in hits@10 for substitutable and complementary relationships, respectively.
  • The MFI component alone shows an average relative improvement of 4.11% and 4.49% in hits@50 compared to models relying solely on product-level features, demonstrating the value of category-level information.
  • Ablation studies confirm that both the knowledge fusion mechanism and the dynamic policy network are essential components, contributing significantly to the overall performance.
  • The model demonstrates good reasoning ability, with an average of about three reasoning paths per product pair and a success rate of effective paths at 0.62 and 0.74 for substitutable and complementary relationships, respectively.

Limitations and Future Work

  • Relationship Ambiguity: The paper acknowledges that in certain categories, the distinction between substitutable and complementary relationships can be fuzzy due to user behavior, posing a challenge for accurate judgment.
  • Graph Structure Optimization: While removing some edges can improve results, the authors suggest future work should focus on optimizing the graph structure itself.
  • Fine-grained Feature Importance: The experiments show that a decrease in fine-grained features leads to lower accuracy, indicating the importance of these attributes. Future work could explore more sophisticated ways to leverage these features.
  • Action Pruning Strategy: The performance is slightly influenced by the size of the pruned action space. While the current approach is effective, further research could explore more optimal pruning strategies.
  • Broad Applicability: The authors express optimism about the model's broad applicability to various recommender system tasks due to the existence of more fine-grained product relationships in real-world data.

Summary updated

BibTeX
@article{yang2022inferring,
  author = {Zijing Yang and Jiabo Ye and Linlin Wang and Xin Lin and Liang He},
  title = {{Inferring substitutable and complementary products with Knowledge-Aware Path Reasoning based on dynamic policy network}},
  journal = {Knowledge-Based Systems},
  year = {2022},
  doi = {10.1016/j.knosys.2021.107579},
}
Figure