Joint Modeling and Optimization of Search and Recommendation

Hamed Zamani, W. Bruce Croft · OpenReview

Abstract

Despite the somewhat different techniques used in developing search engines and recommender systems, they both follow the same goal: helping people to get the information they need at the right time. Due to this common goal, search and recommendation models can potentially benefit from each other. The recent advances in neural network technologies make them effective and easily extendable for various tasks, including retrieval and recommendation. This raises the possibility of jointly modeling and optimizing search ranking and recommendation algorithms, with potential benefits to both. In this paper, we present theoretical and practical reasons to motivate joint modeling of search and recommendation as a research direction. We propose a general framework that simultaneously learns a retrieval model and a recommendation model by optimizing a joint loss function. Our preliminary results on a dataset of product data indicate that the proposed joint modeling substantially outperforms the retrieval and recommendation models trained independently.

Introduction

Historically, Information Retrieval (IR) and Information Filtering (IF) were viewed as two sides of the same coin. However, as these fields matured, they diverged into distinct disciplines: search engines became query-centric, focusing on matching terms, while recommender systems became user-centric, focusing on historical behavior. In modern e-commerce environments, this separation is increasingly artificial. A user might discover a product through a search query or a recommendation widget; in both cases, the underlying item pool is identical.

The current separation leads to inefficiencies. Search models often struggle with the "semantic gap" when query terms do not perfectly match item descriptions. Recommender systems face "cold start" problems when user history is sparse. This paper introduces the Joint Search and Recommendation (JSR) framework to address these challenges by leveraging the mutual information inherent in both tasks.

The JSR Framework

The proposed JSR framework utilizes a neural approach to learn joint representations for items across both search and recommendation tasks.

The JSR framework architecture, featuring parallel retrieval and recommendation towers sharing a common item set.

The architecture consists of two parallel "towers": a retrieval component and a recommendation component. The critical innovation is the Shared Item Set, where both towers share the same underlying embedding matrices for items and terms. This allows semantic knowledge learned in the search context (e.g., associating "waterproof" with a specific camera) to immediately benefit the recommendation model.

The system is optimized using a joint loss function: $$L = L_{Retrieval} + L_{Recommendation}$$ By employing pairwise training, the model learns to rank "positive" items (clicked or purchased) higher than random "negative" items. While the initial implementation uses simple feed-forward networks, the framework is designed to be extensible to more complex architectures.

Experimental Evaluation

The framework was evaluated using the Amazon Product Dataset, focusing on three categories of varying scales: Electronics, Kindle Store, and Cell Phones and Accessories. Since the dataset lacks explicit search logs, synthetic queries were generated based on product category hierarchies (e.g., an item in "Headphones > Bluetooth" is associated with the query "bluetooth headphones").

Key Results

The JSR framework consistently and significantly outperformed independent models across all categories and metrics.

Retrieval performance comparison showing significant gains for joint training, particularly in the Kindle Store category.

As shown in the retrieval results, the Kindle Store category saw a dramatic improvement in Mean Average Precision (MAP), rising from 0.031 with individual training to 0.149 with joint training. Recommendation performance also saw notable gains; for instance, the Hit Ratio in the Electronics category improved from 0.318 to 0.343. All reported improvements were statistically significant ($p < 0.05$).

Discussion: Generalization and Semantic Bridging

A key insight from the experiments is that joint training acts as a powerful regularizer. While individual models often achieved lower loss on training data, they performed worse on test data compared to the joint model. This suggests that co-training prevents overfitting and enhances generalization.

Furthermore, joint modeling helps bridge the semantic gap. If a search engine misses a relevant item because a specific keyword is absent from its description, the recommendation data—showing that users who searched for similar terms often bought that item—can provide the necessary signal to the search model.

Conclusion and Future Work

The JSR framework demonstrates that search and recommendation are mutually reinforcing tasks. Future research directions include integrating more advanced architectures like Transformers, incorporating short-term session context, and validating the model on real-world search logs. The framework also holds significant promise for mitigating cold-start problems by using established search data to bootstrap new recommendation systems.

Summary updated

Abstract

Despite the somewhat different techniques used in developing search engines and recommender systems, they both follow the same goal: helping people to get the information they need at the right time. Due to this common goal, search and recommendation models can potentially benefit from each other. The recent advances in neural network technologies make them effective and easily extendable for various tasks, including retrieval and recommendation. This raises the possibility of jointly modeling and optimizing search ranking and recommendation algorithms, with potential benefits to both. In this paper, we present theoretical and practical reasons to motivate joint modeling of search and recommendation as a research direction. We propose a general framework that simultaneously learns a retrieval model and a recommendation model by optimizing a joint loss function. Our preliminary results on a dataset of product data indicate that the proposed joint modeling substantially outperforms the retrieval and recommendation models trained independently. We list a number of future directions for this line of research that can potentially lead to development of state-of-the-art search and recommendation models.
BibTeX
@inproceedings{zamani2018joint,
  author = {Hamed Zamani and W. Bruce Croft},
  title = {{Joint Modeling and Optimization of Search and Recommendation}},
  booktitle = {DESIRES},
  year = {2018},
  url = {https://openreview.net/forum?id=1pUZpqVJTo},
}
Figure