[Paper Review] Ask Me What You Need: Product Retrieval using Knowledge from GPT-3
This paper proposes a GPT-3-based product retrieval system that leverages the model's internal knowledge base via p-tuning to answer intent-driven queries—such as 'What should I get my mom for Mother's Day?'—without requiring explicit keywords. By prompting GPT-3 to predict product categories directly, the method achieves state-of-the-art performance, especially in cold-start scenarios, outperforming BERT and BM25 by up to 15.1% in HR@300 on real-world datasets.
As online merchandise become more common, many studies focus on embedding-based methods where queries and products are represented in the semantic space. These methods alleviate the problem of vocab mismatch between the language of queries and products. However, past studies usually dealt with queries that precisely describe the product, and there still exists the need to answer imprecise queries that may require common sense knowledge, i.e., 'what should I get my mom for Mother's Day.' In this paper, we propose a GPT-3 based product retrieval system that leverages the knowledge-base (KB) of GPT-3 for question answering; users do not need to know the specific illustrative keywords for a product when querying. Our method tunes prompt tokens of GPT-3 to prompt knowledge and render answers that are mapped directly to products without further processing. Our method shows consistent performance improvement on two real-world and one public dataset, compared to the baseline methods. We provide an in-depth discussion on leveraging GPT-3 knowledge into a question answering based retrieval system.
Motivation & Objective
- To address the challenge of retrieving relevant products for imprecise, intent-based queries that lack specific keywords.
- To leverage GPT-3’s internal knowledge base as an implicit knowledge source for product retrieval without external KBs.
- To improve performance on cold-start queries where product or query semantics were not seen during training.
- To evaluate the effectiveness of p-tuning versus fine-tuning and model size scaling in retrieval tasks.
Proposed method
- The retrieval model uses a prompt template: [PROMPT 1:d] [query] [MASK], where trainable continuous prompt tokens are optimized via p-tuning.
- The model predicts the most likely product category by computing a weighted sum of token-level logits: $ s_i = Σ_j \alpha_j \mathcal{M}(t_j|\tilde{q}) $.
- Only the prompt embeddings are updated during training using cross-entropy loss, preserving GPT-3’s pre-trained parameters.
- Top-K categories are selected based on category scores, then mapped to candidate products via a category-to-product mapping table.
- The final ranking uses a separate ranking model to score and re-rank the candidate products.
- The system avoids fine-tuning GPT-3 to prevent catastrophic forgetting, instead relying on prompt tuning to access its knowledge.
Experimental results
Research questions
- RQ1Can GPT-3’s internal knowledge be effectively leveraged for product retrieval without external knowledge bases?
- RQ2How does p-tuning compare to fine-tuning when adapting GPT-3 for retrieval tasks?
- RQ3Does increasing GPT-3 model size significantly improve retrieval performance on intent queries?
- RQ4Can the system generalize to cold-start queries not seen during training?
- RQ5How does the method perform compared to BERT and BM25 in both standard and out-of-distribution settings?
Key findings
- The proposed method achieved 15.14% HR@300 on the Gift dataset, a 15.0% improvement over BERT and a 15.1% improvement over the next-best baseline.
- The 13B GPT-3 model outperformed smaller models by a large margin, with HR@300 increasing from 0.0628 (1.3B) to 0.1514 (13B).
- P-tuning significantly outperformed both zero-shot and fine-tuned GPT-3, with the 137M-p-tuned model surpassing the 1.3B-fine-tuned model in performance.
- On the cold-start test set, the method achieved 0.0262 HR@300, a 85.8% improvement over BERT-based search (0.0141).
- The system demonstrated generalization to public QA datasets, outperforming BM25 and BERT on the Google LLC dataset.
- The ablation study confirmed that p-tuning avoids catastrophic forgetting and better preserves GPT-3’s pre-trained knowledge than fine-tuning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.