TL;DR
HieraRAG is a new hierarchical framework designed to determine the optimal level of category granularity when building synthetic benchmarks for Retrieval-Augmented Generation (RAG) systems. By evaluating questions across varying levels of specificity, the framework reveals that while some evaluation dimensions (like question complexity) benefit from highly fine-grained categories, others (like answer type and linguistic variation) actually lose signal and introduce noise if split too finely.
What Problem Does This Paper Address?
Evaluating RAG systems requires testing them against a diverse set of questions. With the rise of Large Language Models (LLMs), practitioners increasingly rely on synthetically generated question-answer (QA) benchmarks. However, benchmark designers face a fundamental dilemma: At what level of granularity should query characteristics be categorized?
Should we classify questions coarsely (e.g., simply "easy" vs. "hard"), or should we break them down into highly specific sub-categories (e.g., "multi-span aggregation", "single-hop inference", "comparative synthesis")? Coarse categories risk missing nuanced system failures, while overly fine-grained categories increase generation costs and can introduce redundant or ambiguous distinctions that dilute the evaluation signal.
Methods
The authors introduce HieraRAG, a framework that systematically varies synthetic questions across three core dimensions at three levels of granularity—Coarse (2 categories), Medium (4 categories), and Fine (8 categories):
- Question Complexity (QC): Cognitive demand, from simple fact lookup to multi-hop reasoning.
- Answer Type (AT): Expected response format, from direct extraction to abstractive synthesis.
- Linguistic Variation (LV): Lexical alignment between the query and the source document, from verbatim phrasing to high conceptual rephrasing.
To evaluate these configurations, HieraRAG introduces two key metrics:
- Discriminative Power (DiscPow): Measured as the standard deviation of the RAG system's performance (generation quality) across categories at a given granularity level. Higher variance means the categories are successfully exposing distinct system behaviors.
- Coherence Ratio ($\rho_{\text{coherence}}$): A novel metric inspired by the clustering silhouette coefficient. It quantifies whether fine-grained "children" categories cleanly and logically subdivide their "parent" category by balancing horizontal discrimination (sibling variance) against vertical consistency (parent-child performance alignment).
Datasets
The framework was tested by generating a dataset of 5,872 synthetic QA pairs extracted from the FineWeb-10BT corpus using DataMorgana (powered by Claude 3.5 Sonnet).
For the evaluation pipeline, the authors used a standard standard two-stage RAG setup: BM25 for retrieval and Falcon-3-10B-Instruct for generation. Human validation was conducted on a stratified sample of 110 QA pairs to verify synthetic quality and category alignment.
Key Insights and Ideas
- Granularity Needs Vary by Dimension: One size does not fit all. Question Complexity monotonically improves in discriminative power as you move to finer categories. However, Answer Type and Linguistic Variation peak at medium granularity (4 categories) and degrade at 8 categories. Finer is not always better.
- The "Vocabulary Mismatch" Trump Card: Linguistic Variation and Question Complexity act independently, but retrieval success dictates whether complexity even matters. If a query uses highly distant vocabulary, BM25 retrieval fails completely, rendering the question's underlying reasoning complexity irrelevant to the final generation quality.
- Automating Taxonomy Validation: The proposed Coherence Ratio acts as an automated sanity check for benchmark designers. If a fine-grained split yields a low coherence ratio ($\rho < 1.0$), it signals that the sub-categories are introducing semantic noise or arbitrary constraints rather than meaningful diagnostic subdivisions.
Key Results
- Question Complexity (QC) saw its discriminative power leap from 0.007 (coarse) to 0.035 (medium, a 4.8× gain), and up to 0.053 at fine granularity. This confirms that breaking down reasoning types yields a much clearer picture of RAG capabilities.
- Answer Type (AT) and Linguistic Variation (LV) both peaked at medium granularity (0.044 and 0.047 respectively) before dropping significantly at the fine-grained level (falling by 16% and 33%).
- Coherence Ratio Validation: The framework successfully flagged structural issues. For instance, the fine-grained splits under AT's
summary_or_explanationparent were highly coherent ($\rho = 3.31$), whereas LV'sconceptual_rephrasesplits collapsed ($\rho = 0.04$), indicating that the sub-categories strayed too far from the parent's performance profile.
Limitations and Future Work
The primary limitation is that the specific granularity peaks found in this study reflect a single RAG configuration (BM25 + Falcon-3-10B). Because BM25 is highly sensitive to exact keyword matching, it likely amplified the importance of the Linguistic Variation dimension at coarser levels; switching to a dense or hybrid retriever might shift these dynamics.
Additionally, the authors noted low human consensus (28.6% agreement) when manually validating the highly specific, fine-grained categories, highlighting the inherent semantic ambiguity of deep taxonomies. Future work includes testing HieraRAG across diverse embedding models, vector retrievers, and exploring post-hoc multi-label tagging via LLM classifiers.
Summary updated