Abstract
Large Language Models (LLMs) often struggle to adhere to specific content constraints in long-form generation, leading to redundant or irrelevant information. We introduce QPLANNER, a framework for handling "coverage-conditioned" (C²) queries—requests that explicitly include or exclude subtopics. By leveraging a novel hierarchical dataset, QTREE, and a three-step pipeline involving outline selection and Direct Preference Optimization (DPO), QPLANNER generates structured query outlines that guide the retrieval and generation process. Our results show that QPLANNER significantly improves instruction-following and retrieval precision compared to standard RAG approaches.
Introduction
While LLMs excel at generating long-form content, they frequently suffer from "information dump" syndrome, where responses fail to respect specific user constraints regarding subtopic coverage. For example, a user requesting a history of Generative AI while excluding recent trends might still receive a response dominated by current events. These requests are defined as coverage-conditioned (C²) queries. The primary challenges lie in the model's ability to select relevant sub-facets and the lack of established evaluation standards for complex, structured instructions.
Methodology
To address these challenges, we propose a three-step framework to transform vague queries into precisely tailored responses.
- QTREE Construction: A base query is decomposed into a hierarchical tree of 39 subqueries across three levels of abstraction. This tree defines the potential scope of the discussion.
- Outline Selection and Evaluation: For a given C² query, candidate "outlines" (sequences of subqueries) are extracted from the tree. A teacher model (GPT-4) scores these outlines based on their adherence to inclusion and exclusion rules.
- Training QPLANNER: A 7B parameter model (Llama-2) is trained to generate these outlines directly. We employ Direct Preference Optimization (DPO) to align the model, using "hard negatives" (outlines that appear correct but violate exclusion constraints) to ensure strict instruction following.
Datasets
We introduced QTREE, a dataset of 10,000 hierarchical subquery sets derived from three diverse sources: ASQA (factoid questions), Longform (corpus-based composition), and ExpertQA (expert-domain questions).
Key Insights
- Structured Planning: Outlines act as a "Chain-of-Thought" for RAG, forcing the model to commit to sub-topics before retrieval.
- DPO for Obedience: Fine-tuning (SFT) alone is insufficient; DPO is critical for teaching the model to respect exclusion constraints by penalizing outlines that violate user intent.
- Improved Retrieval: Subqueries derived from the outline serve as more effective search terms than the original constrained query, leading to higher quality evidence retrieval.
Results
- Automatic Evaluation: On a 5-point Likert scale, DPO-QPLANNER achieved a score of 3.16, outperforming SFT-only (2.79) and random baselines (2.57).
- Human Preference: Humans consistently preferred QPLANNER-generated responses in head-to-head RAG tasks compared to standard pipelines.
- Search Effectiveness: QPLANNER's subqueries reached a 76.1% query satisfaction rate, compared to only 21.5% for vanilla RAG approaches.
Conclusion and Future Work
QPLANNER demonstrates that structured planning significantly enhances the precision of long-form RAG. However, limitations remain, such as the current fixed 3x3x3 tree structure which may not suit all domain complexities. Future work will explore dynamic tree structures and more fine-grained scoring rubrics to further improve factual consistency and logical flow.
Summary updated