Logo

Retrieval Augmented Generation Compositionality

Do RAG techniques that win one at a time still win together? A controlled study of 450 pipeline configurations.

Ido Levy, Segev Shlomov, Leshem Choshen 2026 arXiv preprint arXiv PDF Retrieval & RAG Research
From IBMWeizmann Institute of Science

In plain words

Systems that let an AI answer questions from a company's documents are built from many parts: how documents are cut into pieces, how the right pieces are found, how they are re-sorted, and how the answer is checked. Researchers usually test one new part at a time and report how much it helps. This study asks whether those improvements still add up when all the parts are used together. In the authors' tests they mostly don't: three tweaks that each helped on their own should together have improved search by almost half, but delivered about a sixth. The parts that find the right documents are not the ones that make answers trustworthy, and the best combination changed as the document collection grew. For anyone building these systems, a recipe from a paper is a starting point to test on your own data.

TL;DR

Using LASAGNA, a stage-isolated RAG framework, the authors run a 167-configuration D-optimal factorial over eight pipeline stages, 138 targeted ablations and a 5K–200K document scaling sweep, with three pre-declared hypotheses on additivity, single-recipe generality and scale invariance. They estimate main effects and pairwise interactions separately for retrieval quality (NDCG@10) and answer faithfulness (RAGAS, LLM-judged), compare gains measured in isolation with gains realized in composed pipelines, and map the retrieval–faithfulness–latency trade-off of four complete pipeline profiles.

Glossary · 22 terms

Concepts 17

Ablation
An experiment that changes one component at a time to measure its effect, everything else held fixed.
Additivity
Gains add up: if two changes each improve a score by 10% alone, together they improve it by about 20%. Sub-additive means together they deliver less than the sum.
Agentic gating
Checks and loops around generation: grading retrieved passages, re-retrieving, drafting and verifying answers (e.g. Self-RAG, CRAG, Speculative-RAG).
Chunking
How documents are cut into passages before indexing: fixed size, by sentence, by meaning, by document structure, or hierarchically (small pieces linked to larger parents).
Context compression
Shortening the retrieved passages before they reach the model, keeping only the sentences that look relevant.
D-optimal design
A statistical method for choosing a small subset of all possible configurations that still allows estimating each factor's effect and the pairwise interactions. Here 167 runs instead of 30,720.
Distractor documents
Extra documents added to grow the collection from 5K to 200K. They are not relevant to the test questions but compete with the right passages in search.
Embedding model
The model that turns text into vectors for semantic search. Tested here: MiniLM (small, fast), E5-large and BGE-M3 (larger).
Hybrid retrieval
Combining keyword search (BM25) with vector search, usually by merging the two ranked lists. A weight (alpha) sets how much each counts.
HyDE
Hypothetical document embeddings. The model first drafts a hypothetical answer and searches with it instead of with the bare question.
Index-time enrichment
Adding information to passages before indexing, e.g. a short prefix with the document's first lines (document awareness), summaries (RAPTOR) or an entity graph (GraphRAG).
MMR
Maximal marginal relevance. A re-ordering step that penalizes passages too similar to ones already selected, to increase diversity.
Pipeline stage
One step of a RAG system. The paper varies eight: chunking, embedding, index-time enrichment, retrieval, query augmentation, reranking, context compression and agentic gating.
Profile
One of four complete pipelines distilled from the study: SPEED (small embedder, no reranking), STANDARD (hybrid search, reranking, direct answer), BALANCED (adds hierarchical chunking, compression and a verification loop) and MAX-RELIABLE (heaviest).
Query augmentation
Rewriting the question before searching: HyDE, query expansion, several query variants (RAG-Fusion) or splitting into sub-questions (decomposition).
RAG
Retrieval-augmented generation. Before answering, the system searches a document collection and gives the most relevant passages to the language model, so the answer is grounded in those documents.
Reranker
A second, more expensive model that re-scores the top retrieved passages against the question and re-orders them. A cross-encoder reads question and passage together.

Metrics 5

Effect size (eta squared)
Share of the variation in a score associated with one factor or interaction, from 0 to 1. Above about 0.14 is conventionally large, around 0.06 medium, below 0.01 negligible.
Faithfulness
Share of the claims in a generated answer that are supported by the retrieved passages, judged by an LLM (RAGAS method). From 0 to 1, higher is better. It says nothing about whether the right passages were found.
Hypervolume
One number combining retrieval quality, faithfulness and speed: NDCG@10 × faithfulness × (1 − latency / 30 s). From 0 to 1, higher is better. A pipeline that takes 30 seconds or more scores 0.
NDCG@10
Retrieval quality: whether the relevant documents appear in the top 10 results, rewarding them more the higher they rank. From 0 to 1, higher is better. Here a keyword-only (BM25) baseline scores 0.403.
Shortfall
How much of the predicted gain a combined pipeline fails to deliver: 1 − realized gain / sum of the separately measured gains. 0% means gains add up perfectly; lower is better.

1. Key takeaways

  • Separately measured gains mostly don’t add up. The three strongest single retrieval improvements predict +47% NDCG@10 together; the pipeline that combines them delivers +17%. Across 17 tested combinations, the shortfall has a median of 41%.
  • Finding the right passages and writing faithful answers are different problems. Across configurations, retrieval quality and faithfulness are uncorrelated (r = −0.01). Embeddings and reranking drive the first; query augmentation and verification loops drive the second.
  • Faithfulness gains do roughly add up. Predicted +28%, realized +32%: the problem is mostly on the retrieval side.
  • The winner changes with collection size. The simpler pipeline leads at 5K–15K documents; from 25K on a richer one leads, by 13.7% NDCG@10 at 200K.
  • No pipeline wins everything, and simple is hard to beat. The simple STANDARD profile has the best combined quality-and-speed score (0.523) and answers in 5.3 s; the verification-heavy profiles raise faithfulness from 0.74 to about 0.91 but take 12–14 s.

2. The story

And. Modern RAG systems stack many techniques: chunking strategies, hybrid retrieval, rerankers, HyDE, compression, verification loops. Each was published with an improvement on some benchmark, and practitioners assemble pipelines by picking the best-reviewed component for every stage. Whether that works decides how much effort a production RAG system needs.

But. Almost every technique is evaluated as an ablation: one stage changed, everything else stripped down. Nobody measures whether gains survive alongside the rest of a modern pipeline, whether the choices that improve retrieval also improve answers, or whether results from the usual 5K–50K-document test collections hold for the much larger collections real systems serve. “Best practice” studies search greedily for a good configuration but don’t measure how components interact.

Therefore. The authors build LASAGNA, a framework where each pipeline stage sits behind a fixed interface, and pre-declare three hypotheses: gains don’t simply add up, no single recipe serves every target, and rankings change with scale. They test them with a D-optimal design of 167 configurations over eight stages, 138 targeted ablations and a sweep from 5K to 200K documents: about 450 configurations and 358,000 query evaluations.

3. What they found

How to read the numbers. Two separate scores are tracked. NDCG@10 measures retrieval (0–1; keyword-only search scores 0.403 on this test set, a good off-the-shelf dense encoder 0.436). Faithfulness measures whether answers stick to the retrieved passages (0–1, judged by GPT-5.1). Gains are relative to a simple default pipeline. The test set is small (93 retrieval and 56 generation queries per configuration), so differences of a few percent are within noise.

Claim 1Retrieval improvements measured one at a time mostly fail to add up in a full pipeline

Evidence: The three largest single-component retrieval gains, compared with combining them:

Technique (measured alone, from NDCG@10 = 0.412)Gain in NDCG@10
Cross-encoder reranking+0.084 (+20.4%)
Document-awareness prefixes (enrichment)+0.062 (+15.0%)
Disabling MMR+0.046 (+11.2%)
Sum of the three (predicted)+46.6%
Pipeline with all three (BALANCED, realized)+17.2%

So what: the combined pipeline delivers about a third of what the separate measurements promised, a 63% shortfall.

With all five separately positive retrieval techniques, the shortfall reaches 72%. Across 17 tested combinations it ranges from 7% to 72%, median 41%. Two interactions survive strict multiple-testing correction, and both involve the embedding model: Embedding × Enrichment (effect size 0.102) and Embedding × Reranking (0.110).

How to read it: Effect sizes around 0.1 are medium-to-large. The shortfall is 1 − realized ÷ predicted.

So what: Techniques overlap in what they fix. Reranking already filters part of what disabling MMR filters, and a reranker has less to do when the embedding model already retrieves good candidates. The second technique then has little left to improve.

Verdict: Strong for retrieval: consistent across 17 combinations on a realistic baseline. One caveat: summing relative gains assumes additivity, and a score capped at 1 naturally leaves less room for each extra gain, so part of the shortfall is expected.

Claim 2Retrieval quality and answer faithfulness depend on different components

Evidence: Share of variation explained by each stage:

StageRetrieval (NDCG@10)Faithfulness
Embedding model0.164< 0.02
Index-time enrichment0.144< 0.02
Reranking0.090–
Query augmentation–0.224
Agentic gating< 0.010.217
Context compression< 0.01–

So what: the stages that matter for retrieval barely matter for faithfulness, and the reverse.

Across matched configurations, the two scores are uncorrelated (Pearson r = −0.01, p = 0.91), also within each benchmark separately. 5% of configurations combine high faithfulness with poor retrieval, and 6% the opposite.

How to read it: Effect sizes above about 0.14 are large; below 0.01 negligible. ”–” means not reported as a main driver.

So what: Optimizing a RAG system on retrieval metrics alone can produce unfaithful answers, and the reverse. Both must be measured.

Verdict: Strong. The split holds per benchmark and across 167 configurations. Faithfulness relies on an LLM judge, but its rankings were stable across judges.

Claim 3Faithfulness gains do roughly add up, so the pre-declared test was not met

Evidence: Combining BGE embeddings, hierarchical chunking, hybrid retrieval and Speculative-RAG gating was predicted at +28% faithfulness from separate measurements; the best full pipeline realized +32%. The pre-declared test asked whether pairwise interactions explain at least 20% of faithfulness variation; they don’t. A focused follow-up confirms a real but small interaction (p = 0.007): in 10 of 20 combinations of query augmentation and gating, the result departs from the additive prediction by at least 2 points (e.g. decomposition +4.7 above, query expansion −4.1 below).

How to read it: Faithfulness runs 0–1. A departure of 2–5 points from the predicted value is small but not negligible.

So what: Composition problems are concentrated in retrieval. Generation-side techniques act at complementary stages and duplicate each other less. The authors report this negative result for their own hypothesis openly.

Verdict: Partial. The confirmatory experiment used 43 queries instead of the planned 200 because of API rate limits.

Claim 4The best pipeline changes as the document collection grows

Evidence: Retrieval quality of the profiles as distractor documents grow the collection from 5K to 200K:

  • SPEED and STANDARD lose quality steadily (log-linear decline); BALANCED and MAX-RELIABLE stay roughly flat.
  • STANDARD leads at 5K and 15K; BALANCED leads from 25K onward.
  • At 200K documents, BALANCED is 13.7% higher in NDCG@10 (p = 0.003, three seeds).

Faithfulness does not decline with scale: all quality-focused profiles peak around 50K, dip at 100K and recover at 200K.

How to read it: A rank flip means a design choice made at small scale would be wrong at large scale.

So what: Hierarchical chunking and merging of neighbouring passages keep the top results dense with signal as distractors pile up. Conclusions from small test collections should be re-checked at the real size.

Verdict: Partial. The flip is significant only at 200K (the 25K and 100K gaps point the same way but are underpowered), and the distractors come from the same five domains as the test questions, so the measured decline is an upper bound.

Claim 5No pipeline wins on everything, and simpler choices often match elaborate ones

Evidence: Four complete profiles on a held-out mix of question-answering sets, three seeds:

ProfileNDCG@10FaithfulnessLatency (mean)Hypervolume
SPEED0.5410.5240.7 s0.277
STANDARD0.8600.7395.3 s0.523
BALANCED0.8400.91112.3 s0.453
MAX-RELIABLE0.8040.91614.2 s0.389

So what: STANDARD retrieves best and answers fastest among the quality profiles; the verification-heavy profiles buy about +0.17 faithfulness for 2.3–2.7× the latency.

The targeted ablations point the same way:

  • A 2019 cross-encoder (MS-MARCO MiniLM-L6) ranked above all four recent rerankers tested.
  • GraphRAG enrichment changed nothing measurable in NDCG@10 but doubled latency, so it was dropped.
  • Faithfulness was highest with the hallucination and answer-quality gates off; in one multi-hop example, a gate removed 14 of 15 supporting passages.
  • HyDE raised NDCG@10 by 3.1% but doubled first-step latency (a 0.9% gain once latency is accounted for).
  • LLM-based query rewriting (expansion, fusion, decomposition) added 2.4–2.6 s per query for marginal or negative retrieval gains.
  • Chunker choice alone moved NDCG@10 by up to 0.126 (36% relative), more than most factors in the main design.
  • Truncating BGE-M3 embeddings to 768 dimensions cut storage and search cost by 25% and raised NDCG@10 by 2.3%.

How to read it: The hypervolume weights all three goals equally with a 30 s latency limit; with a looser limit (above 46 s), BALANCED wins it.

So what: The right pipeline depends on what you value (accuracy, faithfulness or speed), and adding components does not guarantee a better system.

Verdict: Partial. The profiles are the best configurations found on the same test bed, so their comparison favours them, and the ranking depends on the chosen latency limit.

4. How it works

LASAGNA: one stage changed, everything else fixed

Supports Claims 1 to 5: the framework behind every number.

Intuition

To measure whether components combine, you have to swap one component without silently changing its neighbours. Most RAG libraries don’t guarantee that.

Mechanism

Every stage is a typed component (embedder, chunker, retriever, reranker, query enhancer, document processor, agentic pipeline, generator) with fixed input and output contracts. Automated tests check that toggling one component never changes another’s state. A new technique is added with one decorator, declared in a YAML sweep and evaluated end to end with a paired statistical test against the same surrounding stack. The framework ships 53 components, six vector databases and adapters for the eight benchmarks, and is open source.

Why it works

Stage isolation is what makes the interaction estimates attributable to the components being varied rather than to accidental side effects between stages.

A D-optimal design instead of every combination

Supports Claims 1 and 2: estimating effects and interactions.

Intuition

Testing every combination of eight stages is impossible, but you don’t need every combination to estimate each stage’s effect and how pairs of stages interact.

Mechanism

The full grid has 4 × 4 × 4 × 3 × 5 × 4 × 2 × 4 = 30,720 configurations: an estimated 40,000 GPU-hours and 600,000 USD in API costs. A D-optimal design picks 242 runs that keep all main effects and all 28 pairwise interactions estimable; 167 were executed (GraphRAG runs dropped for adding latency without gains, plus 12 timeouts). The study cost about 5,200 USD in API calls and 247 GPU-hours. Effects are reported as eta squared, with Bonferroni and false-discovery-rate corrections for the interactions.

Why it works

It’s the standard way to study many interacting factors on a budget, borrowed from experimental design in engineering, and rarely used in RAG research.

Predicted vs. realized gain

Supports Claims 1 and 3: measuring whether gains compose.

Intuition

If gains were additive, the improvement of a combined pipeline would equal the sum of the improvements measured one at a time. Comparing the two directly shows how much is lost.

Mechanism

With Δi\Delta_i the relative gain of technique ii measured alone against the default pipeline, and Δcombined\Delta_{\text{combined}} the gain of the pipeline using all of them:

predicted=∑iΔi,shortfall=1−Δcombined∑iΔi\text{predicted} = \sum_i \Delta_i, \qquad \text{shortfall} = 1 - \frac{\Delta_{\text{combined}}}{\sum_i \Delta_i}

For retrieval: ∑iΔi=46.6%\sum_i \Delta_i = 46.6\%, Δcombined=17.2%\Delta_{\text{combined}} = 17.2\%, so the shortfall is 63%.

Why it works

It needs only configurations the study already runs, whereas estimating all 28 pairwise interactions directly needs 232 parameters, more than a design of this size supports.

One mixed corpus, two tracks, growing collection

Supports Claims 2 and 4: a realistic test bed.

Intuition

Real knowledge bases mix topics in one index, so the retriever must pick the right passages among others from unrelated domains. Testing each dataset alone hides that pressure.

Mechanism

Five retrieval datasets (biomedical, financial, scientific, argument and multi-hop questions from the BEIR collection) and three question-answering sets are merged into one corpus. Each configuration is scored on two tracks: retrieval (5,132 documents, 93 queries) and end-to-end generation (5,566 documents, 56 queries). For scaling, distractor documents from the same five domains grow the collection to 15K, 25K, 50K, 100K and 200K, checked so that none is relevant to a test question.

Why it works

Mixing domains reproduces the cross-topic noise of production knowledge bases, and the controlled growth isolates the effect of collection size from everything else.

Four profiles and one combined score

Supports Claim 5: comparing complete pipelines.

Intuition

A pipeline can’t be judged on one number when it trades quality against speed. The authors distil four complete profiles at different points of that trade-off and score them on all three goals at once.

Mechanism

  • SPEED: small MiniLM embeddings, vector search only, no reranking, direct answer.
  • STANDARD: BGE-M3 embeddings, hybrid search (equal weight to keywords and vectors), cross-encoder reranking to the top 5, HyDE, MMR off, direct answer.
  • BALANCED: STANDARD plus hierarchical chunking, extractive compression, document-awareness prefixes and a three-iteration verification loop.
  • MAX-RELIABLE: the heaviest verification setup.

The combined score is the hypervolume:

HV=NDCG@10×Faithfulness×max⁡ ⁣(0,  1−latency30 s)\text{HV} = \text{NDCG@10} \times \text{Faithfulness} \times \max\!\left(0,\; 1 - \frac{\text{latency}}{30\,\text{s}}\right)

Why it works

Multiplying the three terms rewards pipelines that are good at all of them and punishes any that fail one, which makes the trade-off explicit instead of hiding it in separate tables.

5. Limitations

Not claims from the paper: an outside view of where it may fall short. The first group repeats limits the authors state themselves.

Acknowledged by the authors

  • One English test bed with few queries (about 93 retrieval and 200 generation queries per experiment), in five focused domains. No multilingual corpora, no real enterprise data, no open-weight answer models.
  • Faithfulness depends on one judge’s calibration. A second judge preserved the profile ranking, but a third (Claude Opus 4.7) agreed only moderately with the main one (r = 0.44). Raw faithfulness is also partly driven by answer length.
  • The confirmatory experiment was cut to 43 queries instead of the planned 200.
  • The component list is a January 2026 snapshot, and the design and per-query results are only available on request.

Outside view

  • The same model answers and judges. GPT-5.1 generates every answer and is the main faithfulness judge, which can favour its own style of answer.
  • Part of the shortfall is arithmetic. Scores are capped at 1, so the better a pipeline already is, the less room each extra technique has. Summing relative gains overstates what to expect even without any real interaction.
  • The profiles are chosen on the same data they’re compared on, which flatters them. They are best read, as the authors say, as candidates rather than recommendations.
  • The benchmarks are old and public (BEIR, SQuAD, HotpotQA), so some embedders and answer models may have seen them during training.

6. In practice

What to do with this paper. Paper rows are the authors’ own recipe; Adaptation rows apply it outside their setting, so their strength is capped at Partial. Treat every row as a hypothesis to test on your own system.

Do thisEvidenceStrengthSourceHow to check it on your system
Test every new technique inside your full pipeline, never alone against a stripped-down baselineClaim 1StrongPaperKeep a fixed evaluation set and A/B each change on the complete stack before adopting it
Track retrieval and answer faithfulness separately; a gain on one says nothing about the otherClaim 2StrongPaperLog recall@k or NDCG@10 on labelled questions and a faithfulness score per answer, side by side
Validate at your real collection size, not on a small sampleClaim 4PartialPaperRerun the evaluation with 2–4× more documents added as distractors and check whether the ranking of setups holds
Start simple: hybrid search, a cross-encoder reranker and a direct answer. Add verification loops only if faithfulness is the bottleneck and the latency budget allowsClaim 5PartialPaperMeasure p50/p95 latency against the faithfulness gain of each added step
Benchmark rerankers and chunkers on your data instead of taking the newest; turn MMR off on focused collectionsClaim 5PartialPaperCompare 2–3 rerankers and chunkers on your own labelled queries
With a managed RAG service, run small joint experiments over the settings it exposes (chunk size and overlap, top-k, reranking) instead of tuning them one by oneClaim 1PartialAdaptationA 2 × 2 × 2 grid over three settings is 8 runs; compare the best combination with the one-at-a-time choice
For multilingual product documentation, re-check every recommendation above, since none was tested outside EnglishClaim 2PartialAdaptationSplit your evaluation set by language and compare results per language

So what: the paper’s real recommendation is a process, not a pipeline. Build a small evaluation set that measures retrieval and faithfulness, then test changes in combination, on your data, at your scale.

7. Verdict

What to remember. A RAG improvement measured in isolation is a hypothesis, not a result. Retrieval gains overlap and shrink when combined; the components that find good passages are not the ones that keep answers faithful; and the best design at 5K documents may not be the best at 200K. A simple pipeline (hybrid search, a reranker, a direct answer) is a strong baseline that elaborate setups often fail to beat on combined quality and speed.

What it changed. It turns a common suspicion of practitioners into measurements, with a framework (LASAGNA) to test new components in a complete pipeline, and argues that compositional evaluation should become the standard for RAG papers.

How confident to be.

  • High for the method lesson: test in combination and measure both retrieval and faithfulness (Claims 1 and 2).
  • Medium for the scale effect and the profile comparison (Claims 4 and 5): a careful study, but on one English test bed with small query sets and LLM-judged faithfulness.
  • Low for transferring specific component rankings (which reranker, which chunker) to a different domain or language. The paper itself shows such rankings are fragile.

Related notes. IR – Models covers the retrieval components (BM25, dense retrieval, cross-encoders), and IR – Intro the ranking metrics such as NDCG. My LLM evaluation project covers the judge-based evaluation behind faithfulness scores. Towards a Science of Scaling Agent Systems reaches the same conclusion for agents: adding components is not the same as improving the system.

8. Sources