Abstract
Generative Query Recommendation (GQR) is a unified framework designed to streamline diverse search engine suggestion tasks—such as auto-complete and follow-up questions—using a single Large Language Model (LLM) prompt template. To address the "preference misalignment" where LLMs generate plausible but unclickable queries, GQR aligns model outputs with actual user click-through rates (CTR) using Direct Preference Optimization (DPO). By integrating historical search patterns and iterative learning, the system achieved up to a 63% increase in real-world CTR within Baidu's conversational search environment.
Introduction
Search engines rely on query recommendations to help users navigate and refine their information needs. Traditional systems employ multiple specialized models for different UI components (e.g., "did you mean?", auto-complete), which often struggle with long-tail or cold-start queries due to a heavy reliance on historical logs. While LLMs offer vast world knowledge, their raw outputs frequently fail to match user search intent. This paper introduces GQR to bridge this gap by optimizing LLMs specifically for user engagement through a unified generative approach.
The GQR Framework
The GQR framework consolidates disparate recommendation tasks into a single generative process based on three core components:
- Unified Prompting: A single template processes user queries and context to generate formatted recommendation lists, replacing the need for task-specific models.
- User Feedback Alignment (CTR-Alignment): This iterative process aligns the LLM with user preferences. A dedicated CTR predictor, trained on massive click logs, acts as a process reward model. The LLM generates candidate lists which are scored by the predictor; these scores then guide Direct Preference Optimization (DPO) to favor high-CTR outputs.
- User Initiative Alignment: To ground the model in real-world search behavior, historically co-occurring queries are retrieved and injected into the prompt as contextual side information.
Experimental Results
The GQR framework was evaluated using large-scale search logs from Baidu's Conversational AI assistant across three tasks: general query suggestion (Task 1), creative snippet generation (Task 2), and search box hints (Task 3).
Offline and Online Performance
Offline evaluation using Average Estimated CTR (AEC) showed dramatic improvements over supervised fine-tuning (SFT) baselines, with relative gains of up to 119.8%. Online A/B testing confirmed these results, with actual CTR increasing by 63%, 24%, and 42% for the three tasks, respectively.
Key Insights
- Smoothing Noise: Direct use of raw click data for DPO can be counterproductive due to the inherent randomness of user behavior. A dedicated CTR predictor provides a more stable alignment signal.
- Bias Mitigation: The authors identified and corrected for verbosity and overlap biases, ensuring the model does not simply generate longer or repetitive queries to "game" the reward system.
- Metric Correlation: The study validates AEC as a reliable offline proxy for online performance, facilitating faster iteration cycles.
Conclusion
GQR demonstrates that LLMs can be effectively "tamed" for specialized search tasks by aligning them with user-centric metrics like CTR. While the framework shows significant promise, future work will explore its generalizability across different foundation models and address the balance between query relevance and semantic diversity.
Summary updated