Unifying Ranking and Generation in Query Auto-Completion via Retrieval-Augmented Generation and Multi-Objective Alignment

Kai Yuan, Anthony Zheng, Jia Hu, Divyanshu Sheth, Hemanth Velaga, Kylee Kim, Matteo Guarrera, Besim Avci, Xuetao Yin, Jianhua Li, Rajyashree Mukherjee, Sean SuchterFeb 2026

Problem

Query auto-completion (QAC) suggests completions while the user types. The usual retrieve-and-rank pipeline covers rare, new and misspelled prefixes poorly and needs heavy feature engineering. Pure generative models cover them but can invent queries that return nothing or are unsafe. The goal is fewer keystrokes and higher suggestion adoption without those failures.

Example from the article: on a large commercial search platform, the baseline learning-to-rank (LTR) system covers 84.6% of evaluated prefixes with suggestions (per the paper).

Solution in brief

Treat QAC as generation of the whole list of up to 10 suggestions in one pass. The prompt carries the prefix, retrieved candidates and their metadata, so the model stays grounded. The model is fine-tuned on critique-revised synthetic data, then aligned with DPO on a reward built from automatic verifiers. A cache plus a compact model keeps latency near 100 ms.

Questions this case answers
  • How to produce a ranked list of short text suggestions for a partial input when retrieve-and-rank misses rare inputs and free generation hallucinates
  • How to align a generative model with several competing business objectives using automatic verifiers instead of human labels for every sample
  • How to cover long-tail and misspelled prefixes in query auto-completion without hand-built ranking features?
  • How to generate query suggestions with an LLM without hallucinated or unsafe queries?

Tools and methods

  • Retrieval-augmented generation (RAG) — builds the prompt from the prefix, candidates, catalog metadata and query features.
  • Supervised fine-tuning (SFT) — trains the generator on about 50K synthetic prompt-suggestion pairs.
  • Critique-revision loop — a teacher LLM writes lists, a critic LLM gives feedback, the teacher revises.
  • Multi-objective DPO — aligns the generator with a weighted reward from learned and rule-based verifiers.
  • Hybrid serving — cache for frequent prefixes, compact model for the rest.
Continue reading — it's free

Google or a one-time email code. No password.