arXiv:2610.29722cs.CLOct 2026

Manuscript Offprint

arXiv:2610.29722

Retrieval Augmented Generation Compositionality

Ido Levy, Segev Shlomov, Leshem Choshen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Retrieval Augmented Generation (RAG) grounds large language models in external knowledge. Modern pipelines combine embedding, chunking, retrieval, reranking, query augmentation, context compression, and agentic verification, yet these techniques are typically evaluated one at a time. It remains unclear whether their isolated gains survive composition, whether retrieval quality and answer faithfulness favor the same design choices, and whether conclusions from small corpora hold at large scale. We pre-declare three hypotheses and introduce LASAGNA, an open-source framework for controlled RAG evaluation. We test 450 configurations across eight benchmarks and corpora ranging from 5K to 200K documents. Three findings emerge. First, individually strong techniques from different phases of a RAG pipeline do not necessarily compose: three retrieval techniques predict a +47% combined improvement but deliver only +17% when used together. Second, component gains stack differently for retrieval and faithfulness, and optimizing one can hurt the other. Third, the best composition changes as the corpus grows: the combination that wins on a small corpus may not remain best at large scale. These findings show that gains measured in isolation are not reliable predictors of realistic performance, and that new RAG techniques should be tested with the full surrounding stack. We call on researchers to do so and supply LASAGNA to simplify these experiments.

1 INTRODUCTION

Retrieval-augmented generation (RAG) (Gao et al., 2023b; Fan et al., 2024) combines choices across many pipeline stages. Our study covers eight stages that span the dominant design axes in modern RAG (Fig. 1b; full catalog in Section K): embedding, chunking, index-time enrichment, retrieval, query augmentation, reranking, context compression, and agentic quality gates. Most new techniques are proposed and evaluated one stage at a time, in isolation from the surrounding pipeline, or from several representative pipelines that would test whether findings generalize (Yu et al., 2024). Adding to the complexity, RAG systems are evaluated for two goals (Saad-Falcon et al., 2024; Friel et al., 2024): retrieving the right content (NDCG@10) and producing a faithful answer from it (RAGAS; Es et al., 2024). It is unclear whether isolated gains persist under composition. It is also unclear whether the same design choices optimize both retrieval quality (which documents are retrieved) and answer faithfulness (whether the answer is grounded in those documents), two goals RAG evaluation typically reports separately. We pre-declare three hypotheses. H1. Components often fail to compose: isolated gains from single-component ablations do not necessarily persist when components are combined. H2. A simple RAG pipeline can be near-optimal in many settings, while more elaborate configurations tend to specialize to narrower ones. Most RAG ablations in the literature run at 5K to 50K documents, whereas the applications RAG can serve run at corpora an order of magnitude larger; H3. composition rankings shift with corpus scale, so conclusions from small-corpus benchmarks may not hold at larger scales. Prior work has explored combinations through configuration sweeps and heuristic search (Wang et al., 2024; Li et al., 2025; Rau et al., 2024; Jin et al., 2025; Kim et al., 2024; Fu et al., 2024; Chen et al., 2026); these approaches can identify strong configurations but do not directly measure interaction effects: whether the benefit of one component depends on the

(a)

Figure

(b)

(c)

167 configurations

D-optimal · 8 dimensions

Figure 1: LASAGNA overview. (a) Seven functional blocks. (b) Eight dimensions in a 167-configuration D-optimal design. (c) Faithfulness versus latency for four operational profiles; faded points show other configurations.

other components in the pipeline. These interactions, and how they change with corpus scale, remain largely unquantified.

Testing these hypotheses requires a framework that isolates pipeline stages and supports reproducible evaluation across benchmarks. We created LASAGNA, an open-source RAG framework, to provide this (Fig. 1a, Section 3). Each stage sits behind a fixed interface, so swapping one method cannot silently change the implementation at another. Adding a new technique is a single line of code; the framework tests it inside a complete modern pipeline without reimplementing the surrounding stack.

We use LASAGNA to study RAG composition with a 167-configuration D-optimal design (Fedorov et al., 1972; Atkinson et al., 2007) across eight configurable stages of a modern RAG pipeline (Table 10), eight benchmarks (Fig. 5), and corpus sizes from 5K to 200K documents, complemented by 138 non-factorial ablation configurations across 24 targeted experiments (Section F). Across the factorial, ablation suite, and scaling sweep, the central finding is that techniques that perform well separately do not consistently retain their gains inside a full pipeline, and the pattern differs between retrieval and faithfulness. Retrieval gains compose sub-additively: the three largest single-component improvements sum to a predicted +47% NDCG@10 gain, but the composed pipeline realizes only +17% (Section D.14). Faithfulness gains compose near-additively: separately measured improvements approximately transfer to the full pipeline (Table 47). Pipeline and generator also partly substitute: a stronger generator helps the lightest pipeline far more than the heaviest, so a heavier stack buys less when the generator is already strong (Section F.9).

Three practical implications follow. First, the components that improve retrieval are not the same as those that improve faithfulness, and optimizing one metric can hurt the other. Second, the four complete RAG profiles expose a Pareto tradeoff on retrieval quality, faithfulness, and response time, with no universal winner. Adding an agentic loop to a strong retrieval stack yields only a negligible faithfulness gain while hurting retrieval quality and latency. Across three other benchmarks at 100K–200K documents, lighter pipelines retain similar measured quality at 10–20× lower latency (Sections D.8 and 5). Third, corpus size shifts profile rankings: the design leading at small corpora trails by 13.7% NDCG@10 at 200K, with a rank flip visible from 25K (Fig. 4a). Small-corpus rankings should therefore be rechecked at the intended scale. Our contributions are:

Table 1: LASAGNA vs. prior RAG evaluations. Columns defined in Section G.1.

StudyConfigs (mode, varied stages)Designη2\eta^2InteractionsScalingParetoPre-registeredBenchmarks
(Jin et al., 2025)16 methods (5)library + part. GRID (tech.)×××××32
(Rau et al., 2024)500+ runs (3)partial GRID (tech.)×××××~12
(Wang et al., 2024)~dozens seq. (7)GREEDY (tech.)×××○×6
(Kim et al., 2024)30+ seq. (6)GREEDY (tech.)×××××4
(Friel et al., 2024)32 joint (4)GRID (mix.)×××××5
(Xiong et al., 2024)41 partial (3)partial GRID (tech.)××○ (top-k, 5 corpora)××5
LASAGNA (ours)167 factorial + 138 abl. (8)D-OPT (tech., 30 levels)✓✓ (28)✓ (6 × 3)✓ (4, HV)✓8 (15)
  1. How RAG components compose. A compositional study of RAG across eight configurable stages, eight benchmarks, and corpora scales from 5K to 200K documents: 167 configurations from a D-optimal factorial plus 138 non-factorial configurations across 24 targeted ablations. The four operational RAG profiles that emerge (SPEED, STANDARD, BALANCED, MAX-RELIABLE) are calibrated to cost, latency, and performance.

  2. LASAGNA. The open-source framework built to conduct and reproduce this study. It provides a modular, stage-isolated RAG pipeline and an evaluation harness that lets researchers add a method and test it with the surrounding stack (Sections C.1 and F).