mlsanityData to 14 Oct 2026

DocQAC: Adaptive Trie-Guided Decoding for Effective In-Document Query Auto-Completion

arXiv 2604.18257 ↗First posted 20 Apr 2026cs.IR cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Query auto-completion (QAC) has been widely studied in the context of web search, yet remains underexplored for in-document search, which we term DocQAC. DocQAC aims to enhance search productivity within long documents by helping users craft faster, more precise queries, even for complex or hard-to-spell terms. While global historical queries are available to both WebQAC and DocQAC, DocQAC uniquely accesses document-specific context, including the current document's content and its specific history of user query interactions. To address this setting, we propose a novel adaptive trie-guided decoding framework that uses user query prefixes to softly steer language models toward high-quality completions. Our approach introduces an adaptive penalty mechanism with tunable hyperparameters, enabling a principled trade-off between model confidence and trie-based guidance. To efficiently incorporate document context, we explore retrieval-augmented generation (RAG) and lightweight contextual document signals such as titles, keyphrases, and summaries. When applied to encoder-decoder models like T5 and BART, our trie-guided framework outperforms strong baselines and even surpasses much larger instruction-tuned models such as LLaMA-3 and Phi-3 on seen queries across both seen and unseen documents. This demonstrates its practicality for real-world DocQAC deployments, where efficiency and scalability are critical. We evaluate our method on a newly introduced DocQAC benchmark derived from ORCAS, enriched with query-document pairs. We make both the DocQAC dataset (https://bit.ly/3IGEkbH) and code (https://github.com/rahcode7/DocQAC) publicly available.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 16 of its 37 references that are in the map. First posted on arXiv 20 Apr 2026.

Builds on

16 of 37 references.

References · 16

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  5. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  6. 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 237
  7. 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 197
  8. 2022Autoregressive Search Engines: Generating Substrings as Document Identifierscited by 113
  9. 2019Gmail Smart Compose: Real-Time Assisted Writingcited by 98
  10. 2017Learning to Attend, Copy, and Generate for Session-Based Query Suggestioncited by 22
  11. 2018Personalized neural language models for real-world query auto completioncited by 10
  12. 2020Efficient Neural Query Auto Completioncited by 10
4 more
  1. 2025Efficient Beam Search for Large Language Models Using Trie-Based Decodingcited by 10
  2. 2023Trie-NLG: Trie Context Augmentation to Improve Personalized Query Auto-Completion for Short and Unseen Prefixescited by 5
  3. 2021Improving Text Auto-Completion with Next Phrase Predictioncited by 4
  4. 2023KTRL+F: Knowledge-Augmented In-Document Searchcited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Rethinking Soft Compression in Retrieval-Augmented Generation: A Query-Conditioned Selector Perspective
  2. 2026Fast and Faithful: Real-Time Verification for Long-Document Retrieval-Augmented Generation Systems
  3. 2026Unifying Ranking and Generation in Query Auto-Completion via Retrieval-Augmented Generation and Multi-Objective Alignment
  4. 2025Hybrid Retrieval-Augmented Generation for Robust Multilingual Document Question Answering
  5. 2023Context-aware Decoding Reduces Hallucination in Query-focused Summarization
  6. 2025MacRAG: Compress, Slice, and Scale-up for Multi-Scale Adaptive Context RAG
  7. 2024HiQA: A Hierarchical Contextual Augmentation RAG for Multi-Documents QA
  8. 2025Hierarchical Document Refinement for Long-context Retrieval-augmented Generation