TL;DR
This paper introduces Generative Query Recommendation (GQR), a novel approach that leverages Large Language Models (LLMs) to generate query recommendations without requiring query logs or task-specific fine-tuning. GQR achieves state-of-the-art performance and user preference, demonstrating the power of LLMs for this task, especially in cold-start scenarios.
What Problem Does This Paper Address?
Modern search engines often provide "Related Searches" to help users refine their queries and find information more effectively. However, building these query recommendation systems traditionally relies heavily on large amounts of user data, specifically query logs. This presents a significant challenge in "cold-start" scenarios, such as launching a new search engine, entering a new market, or dealing with rare, long-tail queries, where such data is scarce or non-existent. Furthermore, processing and maintaining these query logs involves complex and costly pipelines. The paper aims to address this by proposing a method that bypasses the need for extensive query logs and task-specific training.
Methods
The core of the proposed approach is Generative Query Recommendation (GQR), which reframes query recommendation as a generative task. Instead of traditional methods, GQR utilizes a pre-trained Large Language Model (LLM) like GPT-3. The LLM is instructed on how to generate recommendations through a carefully crafted prompt. This prompt includes a few examples of query-recommendation pairs, allowing the LLM to understand the task in an "in-context learning" manner, without any fine-tuning.
To further enhance performance, the authors introduce Retriever-Augmented GQR (RA-GQR). This version dynamically builds its prompt by first retrieving similar queries from existing query logs. These retrieved queries and their recommendations are then incorporated into the prompt, tailoring the LLM's generation to the specific context of the user's current query. This approach leverages the strengths of both LLMs and query log data.
Datasets
The paper evaluates its methods on three datasets:
- TREC Robust 2004 Disk 4-5: Contains 250 queries and 528,155 documents.
- ClueWeb09B: Includes 200 queries and 50,220,423 documents.
- AOL dataset: A subset of 192 queries randomly sampled for a user study, and the first 200 queries extracted from the query log's long tail distribution (queries appearing only once).
The authors mention they will release these datasets upon acceptance.
Key Insights and Ideas
- LLMs as Zero-Shot Recommenders: The most significant insight is that LLMs can perform query recommendation effectively in a zero-shot setting, simply by being prompted with a few examples. This bypasses the need for complex, task-specific models and extensive training data.
- Democratizing Query Recommendation: GQR drastically lowers the barrier to entry for building query recommendation systems, making them more accessible and reducing time-to-market, especially for new or niche applications.
- Prompt Engineering is Key: The effectiveness of GQR is highly dependent on the design of the prompt. Crafting prompts that clearly convey the task and provide diverse examples is crucial.
- RA-GQR: The Best of Both Worlds: Combining retrieval from query logs with LLM generation (RA-GQR) offers a powerful hybrid approach, significantly boosting performance by providing contextually relevant examples to the LLM.
- LLMs Handle Long-Tail Queries Naturally: Unlike traditional systems that struggle with rare queries, GQR and RA-GQR demonstrate robustness in generating recommendations for long-tail queries without special mechanisms.
Key Results
- State-of-the-Art Performance: GQR (using GPT-3) achieved state-of-the-art performance on the Robust04 and ClueWeb09B datasets, outperforming two commercial search engines and a previous state-of-the-art approach.
- NDCG@10 Improvements: GQR improved NDCG@10 by up to ~4% compared to the previous best competitor. RA-GQR further boosted NDCG@10 by ~11% on Robust04 and ~6% on ClueWeb09B.
- Clarity Score: GQR also achieved higher Simplified Clarity Scores (SCS), indicating less ambiguous and more well-formed recommendations.
- User Study Success: In a blind user study, GQR (GPT-3) garnered approximately 59% of user preferences, demonstrating that its recommendations are perceived as more engaging and useful than those from commercial systems.
- Robustness: GQR consistently generated recommendations for all tested queries, including rare ones, whereas other systems sometimes failed.
Limitations and Future Work
- Prompt Sensitivity: The authors acknowledge that LLM performance is sensitive to the prompting template. While they propose a task-specific prompt, further exploration into prompt customization is suggested.
- Future Work: The authors plan to investigate more nuanced prompt modifications to enhance effectiveness. They also aim to extend their approach to exploratory queries, assessing how different prompt configurations can improve engagement and relevance in more complex information-seeking scenarios.
Summary updated