Towards High-Order Complementary Recommendation via Logical Reasoning Network

Longfeng Wu, Yao Zhou, Dawei Zhou

Abstract

Complementary Recommendation (CR) is a cornerstone of e-commerce, yet traditional methods struggle with the asymmetric nature of product relationships and the complexity of high-order queries involving multiple items. We present LOGIREC, a novel framework that leverages probabilistic Beta embeddings and neural logical operators to model these intricate relationships. By representing items as distributions rather than points, LOGIREC captures semantic uncertainty and utilizes intersection, projection, and negation operators to perform logical reasoning in the embedding space. Experimental results across multiple Amazon datasets demonstrate that LOGIREC significantly outperforms state-of-the-art baselines, particularly in handling high-order query sets and asymmetric complementarity.

Introduction

In e-commerce, recommending items that "go well together" (e.g., a camera and a lens) is vital for enhancing user experience and increasing sales. However, current systems face three primary hurdles:

  1. The Asymmetry Trap: Complementarity is often directional. Buying a high-end camera implies needing a specific memory card, but buying a memory card does not necessarily imply interest in an expensive camera. Symmetric measures like cosine similarity fail here.
  2. Low-Order Limitations: Most systems recommend based on a single item, failing to capture the specific intent revealed by a combination of items (e.g., a tent, sleeping bag, and stove collectively signal a camping trip).
  3. Semantic Uncertainty: Items like "keyboards" can be ambiguous. Standard point embeddings struggle to represent the breadth of potential complements for such items.
Conceptual illustration of asymmetric and high-order complementary relationships.

Methodology

The LOGIREC (Logical Reasoning Network) framework addresses these challenges through several key innovations:

Probabilistic Beta Embeddings

Unlike traditional models that represent products as single points, LOGIREC uses Beta distributions. This allows the model to capture the "uncertainty" or variety of an item's potential complements. The shape of the distribution reflects whether an item is a broad, popular product or a niche, specific one.

Neural Logical Operators

The model implements three primary operations within the embedding space to simulate logical reasoning:

  • Projection: Predicts the potential complements of a single item.
  • Intersection: Combines multiple query items into a single representation of "intent," narrowing the search space to items that complement the entire set.
  • Negation: Filters out "substitute" items—those that are similar but not complementary (e.g., two different brands of the same product).
The LOGIREC architecture, featuring logical reasoning and attention mechanisms.

Attention and Optimization

For high-order queries, an attention mechanism weights the importance of different items in a user's bundle. The model is optimized using Kullback–Leibler (KL) divergence, which is naturally asymmetric, ensuring the model learns directed relationships.

Experimental Evaluation

The researchers evaluated LOGIREC using six categories from the Amazon dataset, including Gift Cards, Video Games, and Office Products. High-order ground truth was established by identifying triplets of frequently co-purchased items.

Key Results

  • Performance Gains: LOGIREC achieved substantial improvements in Hit Rate (Hit@3) and Mean Reciprocal Rank (MRR). For instance, in the "Gift Cards" category, it outperformed traditional methods like LightGCN and Matrix Factorization by a significant margin.
  • Robustness to Query Size: While baseline performance often degraded as query sets grew, LOGIREC remained robust, demonstrating its superior ability to synthesize information from multiple items.
  • Asymmetry Validation: Analysis of the "Degree of Asymmetry" confirmed that LOGIREC successfully learned directed relationships that symmetric models (CF, MF) could not capture.

Conclusion

LOGIREC represents a significant step forward in complementary recommendation by moving from simple similarity to complex logical reasoning. By combining probabilistic embeddings with neural operators, it effectively handles the nuances of asymmetry and high-order intent, providing more accurate and context-aware recommendations in diverse e-commerce settings.

Summary updated

BibTeX
@inproceedings{wu2022towards,
  author = {Longfeng Wu and Yao Zhou and Dawei Zhou},
  title = {{Towards High-Order Complementary Recommendation via Logical Reasoning Network}},
  booktitle = {ICDM},
  year = {2022},
}
Figure