Explainable Product Search with a Dynamic Relation Embedding Model

Qingyao Ai, Yongfeng Zhang, Keping Bi, W. Bruce Croft · DOI

Abstract

Product search is one of the most popular methods for customers to discover products online. Most existing studies on product search focus on developing effective retrieval models that rank items by their likelihood to be purchased. They, however, ignore the problem that there is a gap between how systems and customers perceive the relevance of items. Without explanations, users may not understand why product search engines retrieve certain items for them, which consequentially leads to imperfect user experience and suboptimal system performance in practice. In this work, we tackle this problem by constructing explainable retrieval models for product search. Specifically, we propose to model the "search and purchase" behavior as a dynamic relation between users and items, and create a dynamic knowledge graph based on both the multi-relational product data and the context of the search session. Ranking is conducted based on the relationship between users and items in the latent space, and explanations are generated with logic inferences and entity soft matching on the knowledge graph. Empirical experiments show that our model, which we refer to as the Dynamic Relation Embedding Model (DREM), significantly outperforms the state-of-the-art baselines and has the ability to produce reasonable explanations for search results.

Introduction

Most product search engines operate as "black boxes," optimized to rank items based on purchase probability without providing transparency. This lack of explanation creates a cognitive gap for users, who may not understand the connection between their search intent and the retrieved results, leading to a suboptimal user experience. Unlike static recommendation systems, product search is inherently dynamic; a user's intent fluctuates based on their current query. Existing knowledge graph (KG) models often fail to incorporate this shifting, query-dependent context into a unified, explainable latent space.

Methodology: Dynamic Relation Embedding Model (DREM)

The authors propose the Dynamic Relation Embedding Model (DREM), which integrates multi-relational product data into a comprehensive Knowledge Graph.

Knowledge Graph Construction

The KG includes diverse entities such as users, items, words, brands, and categories. It maps various relationships, including static ones like Also_bought, Is_brand, and Write (for reviews), alongside the dynamic search context.

An illustration of the multi-relational knowledge graph used in DREM, showing entities like users, items, and brands connected by various static and dynamic relations.

Dynamic Relation Embedding

The core innovation of DREM is treating "Search&Purchase" as a dynamic relation. While static relations are modeled as simple translations ($y = x + r$), the search relation vector is computed on-the-fly as a function of the user's query using a non-linear projection. This allows the model to view a search query as a force that temporarily shifts a user's position in the latent space toward a specific cluster of items.

Soft Matching and Optimization

To generate explanations, DREM employs a Soft Matching Algorithm (SMA). Since KGs are often sparse, SMA identifies "soft" paths through the graph (e.g., User $\to$ Word $\to$ Item) and scores them based on embedding similarity. The model is trained using joint optimization with negative sampling to maximize the likelihood of observed triples while minimizing unobserved ones.

Experimental Evaluation

DREM was evaluated using four subsets of the Amazon Product Dataset: Electronics, Kindle Store, CDs & Vinyl, and Cell Phones & Accessories. The researchers used "5-core" versions of these datasets and simulated search queries by extracting terms from the hierarchical category information of purchased items.

Key Results

DREM significantly outperformed all baselines, including traditional text-based models (BM25) and state-of-the-art latent space models (HEM). Notable performance gains included a 118% improvement in Mean Average Precision (MAP) on the CDs & Vinyl dataset and a 19% improvement on Electronics.

Furthermore, the model demonstrates the power of multi-relational data; for instance, brand loyalty (Is_brand) proved highly predictive in the Cell Phones category. In a laboratory user study, participants found DREM’s logic-based explanations (e.g., linking review keywords to item descriptions) to be informative and relevant.

Conclusion and Future Work

DREM addresses the "black box" nature of product search by providing an explainable, dynamic retrieval framework. While the model excels in retrieval accuracy and logical explanation, future work is needed to address the cold-start problem for new users and items. Additionally, improving the persuasiveness of explanations and optimizing computational efficiency for web-scale deployment remain key areas for development. The real-world impact on live e-commerce transaction rates is a critical next step for validating the model's practical utility.

Summary updated

BibTeX
@article{ai2019explainable,
  author = {Qingyao Ai and Yongfeng Zhang and Keping Bi and W. Bruce Croft},
  title = {{Explainable Product Search with a Dynamic Relation Embedding Model}},
  journal = {ACM Trans. Information Systems},
  year = {2019},
  doi = {10.1145/3361738},
}
Figure