potentialpaper

Machine Learning-Driven RAG System Design

Anastasia Orlova, Nina Gubina, Aleksei Dmitrenko, Arsen Sarkisyan, Nikita Vetoshkin, Anastasiia Gorbunova, Ivan Dubrovsky, Julia Razlivina, Bogdan Neterebskii, Andrei Dmitrenko

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We show that RAG configuration spaces can be modeled with surrogate models, enabling interpretable analysis of parameter interactions, cross-domain transfer, and efficient optimization without exhaustive experimentation.

Abstract. Retrieval-Augmented Generation (RAG) has become a standard approach for grounding large language models in external knowledge, yet its performance depends critically on a large number of interacting design choices. Systematic optimization of these choices remains costly, as each configuration must be evaluated through full pipeline execution. In this work, we propose to treat RAG optimization as a prediction problem, using surrogate models to approximate the functional dependencies between configuration parameters and performance metrics. Using a stage-wise configurable RAG framework, we conduct large-scale experiments across three chemistry QA domains, systematically evaluating 648 configurations per domain and publicly releasing the resulting datasets of configurations and evaluation metrics. Surrogate models trained on this data achieve strong predictive accuracy (R2≥0.84R^2 \geq 0.84 across all metrics and domains), and SHAP-IQ-based analysis of the learned models reveals consistent parameter interaction patterns across domains — despite substantial differences in corpus characteristics. We exploit this cross-domain regularity in transfer experiments: surrogate predictions generalize to unseen domains without target-domain training data on two transfer-robust metrics, and achieve full transfer across all six metrics with as little as 10% of target-domain data. Finally, we apply surrogate models to optimize RAG configurations over an expanded search space of 61,152 candidates, recovering top-performing configurations in seconds rather than days, with gains of up to +0.09 in key retrieval and generation evaluation metrics. Together, these results demonstrate that RAG design spaces are structured, transferable, and efficiently optimizable via surrogate modeling.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:42 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

(a) Scientific claims. This paper studies ML-driven optimization of RAG systems. The authors evaluate 648 RAG configurations across three chemistry QA domains, training surrogate regression models to predict six retrieval/generation metrics from pipeline parameters (chunk size, retrieval mode, retrieval depth, reranker, LLM choice). The surrogates support SHAP-IQ parameter-effect analysis, cross-domain transfer study with corpus-level features, and multi-objective optimization over an expanded configuration space, with recommended configurations validated through actual RAG executions. The pipeline and configuration-performance datasets are released. Main claim: RAG configuration performance can be accurately modelled, partially transferred across related domains, and used for faster optimization.

(b) Strengths. (1) Practical, important problem — surrogate modelling is a cost-effective answer to expensive exhaustive RAG evaluation (m8Pr, GQ4o, ovsT). (2) Systematic design — 648 configurations per domain across retrieval, chunking, reranking, and generation choices (m8Pr, ovsT). (3) Validation via actual RAG runs rather than surrogate predictions alone (m8Pr). (4) Detailed, reproducible implementation description (m8Pr). (5) Useful diagnostics — SHAP-IQ importance analysis and cross-domain transfer experiments add interpretability (m8Pr).

(c) Weaknesses (with my assessment).

  1. Surrogate evaluation methodology — random splits over a structured grid may overestimate generalisation; but this is standard protocol, actual-run validation is a strong safeguard, and the authors add ablations. Improvement area, not fatal (m8Pr).

  2. Mixed cross-domain transfer — results are mixed across metrics and domain pairs, but reported transparently; abstract claims could be refined. Evidence supports partial transferability.

  3. Mixed optimization results — some configurations show negative deltas, but Tables 10–14 report both directions honestly, with discussion of objective/baseline sensitivity. Transparency strengthens the paper.

  4. Limited novelty — the core idea is not highly novel (ovsT), but systematic application to RAG configuration plus the extensive study, SHAP-IQ analysis, transfer experiments, and released pipeline/dataset constitute a substantial empirical contribution.

  5. Limited empirical scope — chemistry QA only (GQ4o), but three distinct domains × 648 configurations with extensive analysis is a solid starting point.

  6. Uncertainty reporting — no variance across runs or QA samples; remediable in the final version.

Rebuttal outcomes. The authors addressed the main concerns: leave-one-parameter-value-out and leave-one-component-out analyses confirm surrogate robustness (R² > 0.8 under harder hold-outs); overclaims on transfer were toned down with a metric/domain-pair breakdown; win-rate analysis with confidence intervals shows surrogate-guided optimization significantly beats random and grid search; related work was revised to clarify novelty (multi-objective trade-offs, transfer, per-metric surrogates); preliminary biomedical-QA experiments were added; variance across splits and repeated generations is now reported with seeds, temperature, and API versions. All reviewers agree the rebuttal resolves the main concerns.

Minor bibliographic correction. The authors should correct the bibliographic information in References [3] and [9]: Ref. [3] contains discrepancies in the author list, including a duplicated author name, and Ref. [9] contains incorrect page numbers.

(f) Final recommendation: Accept.

Primary reasons: (1) significant practical contribution — a readily adoptable solution to the RAG configuration cost bottleneck, with pipeline and dataset released as a community resource; (2) systematic, thorough empirical study — 648 configurations × three domains, multiple metrics, SHAP-IQ, transfer experiments, actual-run validation; (3) honest, transparent reporting of mixed results without overclaiming; (4) strong rebuttal — additional analyses and revisions substantially strengthened the paper; (5) novelty in the RAG context — the techniques are not individually new, but their systematic combination for RAG configuration optimization is a valuable contribution and empirical foundation. Ratings: m8Pr (4), GQ4o (3), ovsT (4); post-rebuttal, all reviewers increased confidence and the consensus is that strengths outweigh limitations. The paper is technically solid, clearly written, and useful to the RAG community. I recommend acceptance.

Final justification

My updated meta-review above contains the final justification for my recommendation, taking into account the reviews, author response, and reviewer discussion.

Area Chair 7P6A · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

(a) Scientific claims. This paper studies ML-driven optimization of RAG systems. The authors evaluate 648 RAG configurations across three chemistry QA domains, training surrogate regression models to predict six retrieval/generation metrics from pipeline parameters (chunk size, retrieval mode, retrieval depth, reranker, LLM choice). The surrogates support SHAP-IQ parameter-effect analysis, cross-domain transfer study with corpus-level features, and multi-objective optimization over an expanded configuration space, with recommended configurations validated through actual RAG executions. The pipeline and configuration-performance datasets are released. Main claim: RAG configuration performance can be accurately modelled, partially transferred across related domains, and used for faster optimization.

(b) Strengths. (1) Practical, important problem — surrogate modelling is a cost-effective answer to expensive exhaustive RAG evaluation (m8Pr, GQ4o, ovsT). (2) Systematic design — 648 configurations per domain across retrieval, chunking, reranking, and generation choices (m8Pr, ovsT). (3) Validation via actual RAG runs rather than surrogate predictions alone (m8Pr). (4) Detailed, reproducible implementation description (m8Pr). (5) Useful diagnostics — SHAP-IQ importance analysis and cross-domain transfer experiments add interpretability (m8Pr).

(c) Weaknesses (with my assessment).

  1. Surrogate evaluation methodology — random splits over a structured grid may overestimate generalisation; but this is standard protocol, actual-run validation is a strong safeguard, and the authors add ablations. Improvement area, not fatal (m8Pr).

  2. Mixed cross-domain transfer — results are mixed across metrics and domain pairs, but reported transparently; abstract claims could be refined. Evidence supports partial transferability.

  3. Mixed optimization results — some configurations show negative deltas, but Tables 10–14 report both directions honestly, with discussion of objective/baseline sensitivity. Transparency strengthens the paper.

  4. Limited novelty — the core idea is not highly novel (ovsT), but systematic application to RAG configuration plus the extensive study, SHAP-IQ analysis, transfer experiments, and released pipeline/dataset constitute a substantial empirical contribution.

  5. Limited empirical scope — chemistry QA only (GQ4o), but three distinct domains × 648 configurations with extensive analysis is a solid starting point.

  6. Uncertainty reporting — no variance across runs or QA samples; remediable in the final version.

Rebuttal outcomes. The authors addressed the main concerns: leave-one-parameter-value-out and leave-one-component-out analyses confirm surrogate robustness (R² > 0.8 under harder hold-outs); overclaims on transfer were toned down with a metric/domain-pair breakdown; win-rate analysis with confidence intervals shows surrogate-guided optimization significantly beats random and grid search; related work was revised to clarify novelty (multi-objective trade-offs, transfer, per-metric surrogates); preliminary biomedical-QA experiments were added; variance across splits and repeated generations is now reported with seeds, temperature, and API versions. All reviewers agree the rebuttal resolves the main concerns.

Minor bibliographic correction. The authors should correct the bibliographic information in References [3] and [9]: Ref. [3] contains discrepancies in the author list, including a duplicated author name, and Ref. [9] contains incorrect page numbers.

(f) Final recommendation: Accept.

Primary reasons: (1) significant practical contribution — a readily adoptable solution to the RAG configuration cost bottleneck, with pipeline and dataset released as a community resource; (2) systematic, thorough empirical study — 648 configurations × three domains, multiple metrics, SHAP-IQ, transfer experiments, actual-run validation; (3) honest, transparent reporting of mixed results without overclaiming; (4) strong rebuttal — additional analyses and revisions substantially strengthened the paper; (5) novelty in the RAG context — the techniques are not individually new, but their systematic combination for RAG configuration optimization is a valuable contribution and empirical foundation. Ratings: m8Pr (4), GQ4o (3), ovsT (4); post-rebuttal, all reviewers increased confidence and the consensus is that strengths outweigh limitations. The paper is technically solid, clearly written, and useful to the RAG community. I recommend acceptance.

Final justification

My updated meta-review above contains the final justification for my recommendation, taking into account the reviews, author response, and reviewer discussion.

Reviewer ovsTOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies how to optimize Retrieval-Augmented Generation systems without exhaustively evaluating every configuration. The authors build a configurable chemistry RAG pipeline and evaluate 648 configurations across three chemistry QA domains. They then train surrogate machine learning models to predict retrieval and generation metrics from RAG design parameters, such as chunk size, retrieval mode, retrieval depth, reranker, and LLM choice. The paper further uses these surrogate models to analyze parameter importance and interactions, study cross-domain transfer, and guide configuration search over a larger design space. The main contribution is an empirical demonstration that RAG configuration performance can be modeled, transferred across related domains to some extent, and used for faster RAG system optimization.

Strengths and weaknesses

Strengths

  1. The experimental pipeline is reasonably complete. The authors evaluate a configurable RAG system across three chemistry QA domains and 648 configurations per domain, covering retrieval, reranking, chunking, and LLM choices.
  2. The paper is generally easy to follow. The RAG configuration space, evaluation metrics, surrogate modeling setup, and optimization procedure are described clearly, with useful appendices for system and training details.
  3. The paper targets a practical problem in RAG deployment: exhaustive configuration search is expensive. The surrogate-based approach is simple, but useful, and the paper shows that such models can predict RAG metrics, support transfer to related domains, and guide faster configuration search.

Weaknesses

  1. The core idea is not very novel. The paper essentially applies standard surrogate modeling and hyperparameter optimization to RAG configuration tuning.
  2. The empirical scope is still limited. All main experiments are in chemistry QA, and only three domains with 50 questions each are used for the main configuration evaluation.
  3. The broader transfer claim is not fully supported. The cross-domain results are mixed across metrics, and strong transfer often requires some target-domain data.
  4. The final optimization results are somewhat mixed. Some optimized configurations improve non-target metrics, but several results show small or even negative changes on the target metrics.
Questions
  1. Could the authors better position the work against existing RAG hyperparameter optimization and AutoML-style surrogate optimization methods? My originality score would increase if the authors clearly explain what is specific to RAG configuration spaces beyond applying standard surrogate-based HPO.
  2. The main experiments use three chemistry domains with 50 questions per domain. Could the authors clarify how representative these subsets are of the full benchmark, and whether the observed trends remain stable under different question samples?
  3. The cross-domain transfer results appear mixed across metrics and domain pairs. Could the authors more clearly state which metrics and transfer directions are reliable, and which ones fail? This would help calibrate the strength of the transfer claims.
  4. The final optimization results include several small or negative deltas on the target metrics. Could the authors report win rates, confidence intervals, or a clearer comparison against simple baselines such as random search or Bayesian optimization with real evaluations?
  5. Since the evaluation relies on automatic retrieval and generation metrics, could the authors add a small human or expert validation study for the optimized configurations? Even a limited check would help confirm whether metric gains correspond to better scientific QA quality.
Limitations

The authors include a limitations section, but I think a few important limitations should be discussed more explicitly.

  1. The empirical scope is limited to three chemistry QA domains and relatively small question subsets. The paper should be more careful about claims of general RAG design transferability.
  2. The evaluation relies mainly on automatic retrieval and generation metrics. The authors should discuss whether these metrics reliably reflect scientific QA usefulness, ideally with some human or expert validation.
  3. The optimization results are mixed, with some optimized configurations showing small or negative gains on target metrics. The paper should better discuss when surrogate-guided optimization is expected to help and when it may fail.
Final justification

I appreciate the authors’ clarifications and additional analyses; I will maintain my positive score.

Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We appreciate the reviewer's useful comments and suggestions! Below, we would like to provide our comments and answers to the questions:

  1. We agree that the distinction from classical surrogate-based HPO could be made more explicit. Our novelty is not the surrogate model itself, but showing that RAG configuration spaces exhibit learnable, interpretable, and transferable structure. The existing AutoML and RAG HPO methods primarily use surrogates to accelerate search on a fixed dataset, whereas our work treats the surrogate as a model of the RAG design space. This enables (i) interpretation of higher-order interactions, (ii) modelling the joint effects of pipeline configuration and corpus characteristics, (iii) cross-domain transfer, and (iv) optimisation over previously unseen configurations. Furthermore, RAG configuration spaces differ from conventional AutoML settings. Unlike standard hyperparameter optimisation, RAG combines heterogeneous design decisions spanning document processing, retrieval, reranking, and generation, whose effects propagate across multiple pipeline stages. Furthermore, each function evaluation requires executing the complete retrieval-generation pipeline, making evaluations substantially more expensive than conventional model training benchmarks. Finally, the objective depends jointly on configuration choices and corpus characteristics, motivating the inclusion of corpus-level descriptors and cross-domain transfer, which are outside the scope of classical HPO. To better highlight these differences, we would like to provide the comparison table.
Aspect AutoML / Surrogate HPO Existing RAG HPO Our Work
Goal Optimize black-box hyperparameters Find high-performing RAG configurations for a fixed corpus Learn the RAG configuration–performance landscape
Surrogate role Guide optimization Guide search Enable prediction, interpretation, transfer, and optimization
Configuration space Model/training hyperparameters RAG pipeline parameters for a single corpus Multi-stage RAG pipeline with heterogeneous interactions
Domain modelling Fixed dataset Fixed corpus Corpus-aware modeling using corpus-level descriptors
Interpretability Typically not a goal Limited SHAP-IQ analysis of higher-order parameter interactions
Knowledge transfer Rare Typically dataset-specific Cross-domain surrogate transfer with minimal target-domain data
  1. We thank the reviewer for raising this point. We have addressed this question in our response to Reviewer m8Pr (Comment 2). Briefly, evaluating the complete RAG configuration space across multiple alternative question samples would require a prohibitively large computational effort. Therefore, rather than drawing a random subset, we selected 50 QA pairs to preserve the original distribution of question scenarios and answer types in the full SPECTRA benchmark, making the evaluation subset representative while keeping the computational cost of evaluating hundreds of RAG configurations manageable. We further analyzed the stability of the results through repeated-generation experiments and variability across benchmark scenarios, finding that the observed performance trends remain consistent and are not driven by a particular subset of questions.

  2. We thank the reviewer for this observation. We have addressed this point in our response to Reviewer m8Pr (Comment 4). Our additional analysis explicitly distinguishes successful and unsuccessful transfer cases instead of presenting a single overall conclusion. Specifically, zero-shot transfer is consistently reliable only for selected metrics and source-target domain pairs, whereas incorporating a small amount of target-domain data (10%, corresponding to 65 RAG evaluations) substantially improves robustness across metrics, although the extent of improvement still depends on the particular domain pair. These results provide a more precise characterization of the strengths and limitations of cross-domain transfer, and this analysis will be included in the camera-ready version of the manuscript.

  3. We thank the reviewer for this valuable suggestion. We performed an additional comparison against a random search baseline by randomly selecting 10 configurations from the evaluated configuration space and repeating this process multiple times. Across all three domains, random search achieved substantially lower win rates (10–30%) and consistently inferior target metrics compared with our surrogate-guided optimization. In contrast, our method successfully identified configurations that improved the target objective in all optimization runs, demonstrating that the surrogate model provides a much more reliable search strategy than uninformed sampling. We will include these results in the camera-ready version of the manuscript. We did not include a comparison with Bayesian optimization based on real evaluations because it addresses a fundamentally different optimization setting. Such methods iteratively evaluate new RAG configurations during optimization, whereas our approach operates entirely offline by optimizing a pre-trained surrogate model without requiring additional expensive RAG evaluations. Consequently, a direct comparison would primarily reflect differences between online and offline optimization paradigms rather than the effectiveness of the proposed surrogate-based framework. Moreover, following our comment 4 for Reviewer m8Pr, we note that small negative deltas after validation are expected due to surrogate prediction errors and the presence of several near-optimal configurations with very similar performance.

OA

Method Win Rate (%) Golden DOI Recall Scientific Fact Recall
Random Search 30 0.86 ± 0.07 0.84 ± 0.09
Our Optuna Method 100 0.91 ± 0.00 0.90 ± 0.00

MC

Method Win Rate (%) Golden DOI Recall Scientific Fact Recall
Random Search 30 0.83 ± 0.05 0.83 ± 0.15
Our Optuna Method 100 0.89 ± 0.00 0.94 ± 0.00

NZ

Method Win Rate (%) Golden DOI Recall Scientific Fact Recall
Random Search 10 0.85 ± 0.04 0.89 ± 0.12
Our Optuna Method 100 0.90 ± 0.00 0.98 ± 0.00
  1. We thank the reviewer for the valuable suggestion to perform a small human study of optimized configurations. While a formal human evaluation was beyond the scope of this work due to the large number of RAG configurations evaluated, we performed a qualitative expert inspection of some QA examples where the optimized configurations changed the generated answers. This analysis confirmed that the improvements reflected by the automatic metrics correspond to meaningful improvements in scientific QA quality. Even in cases where the answer remained incorrect, the optimized configuration often moved substantially closer to the reference answer by identifying the correct candidate antibiotic while failing only on the associated numerical value, indicating a partial improvement in reasoning and retrieval quality. Overall, these qualitative observations are consistent with the improvements measured by the automatic evaluation metrics. We will include representative examples of this analysis in the camera-ready version of the manuscript.
# Question (short) Ground Truth Baseline RAG Optimized RAG Result
1 MIC of tedizolid against M. tuberculosis 0.25 μg/mL 0.5 mg/L 0.25 mg/L (unit mismatch) Optimized RAG retrieved the correct MIC, whereas the baseline returned an incorrect value.
2 Tedizolid non-inferiority 95% CI −2.0 to 6.5 −10% to 10% 95% CI −2.0 to 6.5 Optimized RAG identified the correct confidence interval; the baseline confused it with the study design criterion.
3 Oxazolidinone in Gao et al. (2023) crossover study Delpazolid Contezolid Delpazolid Optimized RAG correctly identified the investigated compound, while the baseline confused it with another oxazolidinone.
4 Antibiotic with Ki = 182.26 μM and MIC = 2 μg/mL Linezolid Could not identify the antibiotic Contezolid Neither system produced the correct answer. The optimized configuration retrieved a plausible antibiotic that is quite close to linezolid.
5 Compare MIC values of vancomycin and linezolid Both are 2 μg/mL Vancomycin >256 μg/mL Vancomycin 1 μg/mL, linezolid 2 μg/mL Both systems failed. The optimized configuration retrieved a closer value for vancomycin.

Our cross-domain experiments already demonstrate that the proposed methodology transfers across distinct chemistry domains despite differences in their document collections and question distributions. Since the surrogate models learn general RAG configuration–performance relationships rather than chemistry-specific features, we expect the same methodology to be applicable to other application domains given the corresponding evaluation data. In light of the overall good impression of the reviewer and clarifications provided, we kindly ask to raise our score to 5. We believe our work will be very interesting and impactful for the NeurIPS community.

Authors · CommentOpenReview ↗

Dear Reviewer, Thank you again for your thoughtful feedback and for taking the time to review our work. Despite the positive overall assessment from the meta-reviewer, we have made every effort to address all reviewer comments through additional analyses, experiments, and clarifications. If you have a chance to review our responses, we would greatly appreciate any further comments or remaining concerns that could help us improve the manuscript.

Reviewer GQ4oOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes using surrogate machine learning models to optimize RAG system configurations without exhaustive evaluation. The authors run a configurable chemistry QA RAG pipeline over three domains, evaluate 648 configurations per domain, and train models to predict retrieval and generation metrics from configuration parameters. They show that these surrogates predict performance accurately, reveal consistent parameter-importance patterns across domains, and can partially transfer to new domains.

Strengths and weaknesses

Strengths

  1. The paper addresses a practical and important problem: efficiently tuning RAG pipelines without exhaustive evaluation over many configurations.
  2. The surrogate-modeling approach is useful because it not only predicts configuration performance but also enables faster search over a larger design space.

Weaknesses

  1. The evaluation is limited to chemistry QA, so it is unclear how well the findings generalize to other domains or more diverse RAG applications.
  2. Each domain appears to use a relatively small QA set, which may limit the reliability and stability of the reported performance trends.
Questions

Are the surrogate predictions and selected configurations stable across different QA samples, train/test splits, or random seeds?

Limitations

Yes

Final justification

AC believes that the author's rebuttal has addressed the reviewers' concerns and has provided the final recommendation: Accept.

Formatting concerns

None

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for constructive feedback. Below, we would like to provide our comments:

  1. The experimental evaluation is intentionally limited to chemistry QA, which serves as a representative application domain for validating the proposed methodology. The approach itself is domain-independent and operates on RAG configuration–performance data rather than domain-specific features. Our cross-domain experiments already provide initial evidence of generalization across distinct chemistry domains. We will clarify this scope more explicitly in the manuscript. Extending the evaluation to additional application domains is already identified as future work in the paper.

  2. We thank the reviewer for this question. We have addressed these concerns in our responses to Reviewer m8Pr (Comments 1 and 2), where we performed additional analyses beyond the original manuscript. Specifically, we evaluated surrogate robustness using a leave-one-parameter-value-out (LOPO) validation protocol, quantified the effect of generation stochasticity through repeated evaluations, and assessed variability across benchmark scenarios. In addition, the 50 QA pairs were not randomly sampled but selected to preserve the original distribution of question scenarios and answer types in the full SPECTRA benchmark, ensuring that the evaluation subset is representative while keeping the computational cost manageable. Overall, these additional experiments indicate that the surrogate predictions and the resulting configuration rankings are stable and are not driven by a particular QA sample, train/test split, or random generation effects.

As the reviewer highlighted the importance of the addressed problem and the practical significance of the proposed approach, we would kindly ask to raise our score to 4. We believe that this work would definitely be interesting for the broad NeurIPS community.

Authors · CommentOpenReview ↗

Dear Reviewer, We sincerely appreciate your positive assessment of our work and your constructive comments. We have carefully responded to all of the points you raised and included additional analyses and experiments to support our conclusions. We would be grateful if you could let us know whether our responses have addressed your concerns or whether you have any further comments or suggestions.

Reviewer m8PrOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies machine-learning-driven optimization of Retrieval-Augmented Generation systems. The authors evaluate 648 RAG configurations in each of three chemistry QA domains and train surrogate regression models to predict six retrieval and generation metrics from pipeline parameters. The learned surrogates are further used to analyze parameter effects with SHAP-IQ, investigate cross-domain transfer with corpus-level features, and guide multi-objective optimization over an expanded configuration space. The recommended configurations are subsequently evaluated using actual RAG executions. The paper also provides the experimental pipeline and configuration–performance datasets through anonymized repositories.

Strengths and weaknesses

The paper addresses a practically important problem: exhaustive RAG configuration evaluation is expensive, and surrogate modeling is a reasonable approach for reducing this cost. The study is comparatively systematic, covering multiple retrieval, chunking, reranking, and generation choices. The authors validate recommended configurations through actual RAG runs rather than relying solely on surrogate predictions. The implementation, metrics, model-selection procedure, hyperparameter grids, and hardware are also described in substantial detail.

My main concern is that the reported in-domain surrogate accuracy may overestimate generalization. The 648 configurations are randomly divided into training and test sets, although configurations differing only slightly in retrieval depth or chunk size are likely highly correlated. Thus, the strong (R^2) values may primarily reflect interpolation among neighboring grid points. Structured evaluations that hold out complete parameter values, parameter regions, or component combinations are needed before concluding that the design space has been reliably modeled. This issue also affects the reliability of the subsequent SHAP-IQ interpretations and optimization results.

The cross-domain results are informative, but the scope of the conclusions should be stated more precisely. Table 1 shows consistently strong transfer for Golden DOI Recall and Scientific Fact Recall, whereas the other metrics vary considerably across train–test pairs. In the augmented setting, 10% target-domain data is sufficient to reach (R^2>0.8) across all metrics only for certain domain pairs. The paper should therefore clearly distinguish metric-specific and domain-pair-specific transfer from more general cross-domain performance, particularly in the abstract, contribution statements, and discussion.

The improvements are not uniform across configurations and metrics: several reported configurations yield only small gains, while some show negative deltas for one or more metrics relative to the selected baseline. In addition, the expanded search space mainly increases the range and granularity of chunk size and retrieval-depth parameters while retaining the same search modes, rerankers, and LLM choices. The claim of extrapolation beyond the training distribution should therefore be qualified to reflect this fixed pipeline structure.

Overall, its originality lies mainly in systematically applying established surrogate models, SHAP-IQ, and Optuna to RAG design, rather than in a new learning or optimization method. The current evidence does not yet fully support the stronger claims about transferable and domain-agnostic RAG design.

Questions
  1. The reported in-domain R2 is based on a random split of a full factorial configuration grid. Under this protocol, nearly every parameter value—and likely most low-order parameter combinations appearing in the test set—has already been observed in training. The evaluation may therefore measure interpolation or missing-cell completion within a known grid, rather than generalization to genuinely unseen regions of the RAG design space. This is particularly important because the surrogate is subsequently used for SHAP-based interpretation and optimization outside the original grid. Could the authors report leave-one-parameter-value-out or leave-one-component-combination-out results to assess this gap?
  2. Can the authors report uncertainty across questions, scenarios, and repeated LLM generations? Please clarify temperature, random seeds, model/API versions, and whether generation is deterministic.
  3. The practical benefit of the proposed framework depends on amortizing the upfront cost of collecting configuration–performance data over repeated downstream uses. Can the authors quantify this amortization benefit and clarify the reuse boundary of a trained surrogate? For example, how many additional optimization tasks are required to reach a break-even point, and how much recalibration is needed when the corpus, model components, query distribution, or target metrics change?
  4. In Tables 10–14, several configurations selected by surrogate-guided optimization show negative deltas on Golden DOI Recall and, in some cases, Scientific Fact Recall after validation on the actual RAG system. Could the authors clarify how these configurations were selected despite underperforming the corresponding grid-search baselines on one or both optimization objectives, and discuss the sensitivity of the results to the choice of objectives and baseline-selection strategy?
Limitations

The paper acknowledges the dependence on the initial search grid, possible domain shift, and the restriction to a fixed RAG architecture. However, several important limitations require clearer discussion. First, the main experiments use only 50 QA pairs per domain, and reporting configuration-level averages obscures question- and scenario-level variability. Second, random train/test splits over a highly structured configuration grid may overestimate surrogate generalization due to correlations among nearby configurations. Third, cross-domain transfer is reliable only for selected metrics and domain pairs, while several generation metrics yield weak or negative (R^2). Fourth, the expanded search space mainly refines existing numerical parameter ranges rather than introducing unseen components or architectures, so the evidence primarily supports interpolation within a predefined design family. Finally, several configurations selected by surrogate-guided optimization show negative deltas on one or both target metrics after actual RAG validation, indicating that the conclusions should more clearly distinguish validated Pareto trade-offs from consistent performance improvement.

Final justification

Thank you for the authors’ detailed rebuttal. The AC’s meta-review indicates that the rebuttal has adequately addressed the reviewers’ main concerns and gives a final recommendation of Accept. Considering the additional analyses and clarifications provided in the rebuttal, I have updated my rating to Accept.

Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the Reviewer for thorough analysis of our work and constructive feedback! Below are the answers to the points raised in Questions section:

  1. Following the reviewer's suggestion, we conducted leave-one-parameter-value-out (LOPO) experiments for the numerical parameters (chunk_size, dense_k, and sparse_k) by iteratively holding out all configurations containing one parameter value. We did not apply LOPO to search mode, reranker, or LLM model, as this would require predicting unseen categorical values, which is not meaningful for tree-based surrogate models. These results will be included in the camera-ready version. Overall, the surrogate generalizes well to unseen values of chunk_size and sparse_k, with performance comparable to the random split. Results for dense_k are more mixed, particularly for retrieval metrics, consistent with our SHAP-IQ analysis identifying it as one of the most influential parameters. Nevertheless, the surrogate maintains strong performance across many metrics even under this stricter evaluation, supporting that it captures meaningful structure in the RAG design space rather than merely interpolating between observed configurations.

OA

Split strategy BERT Score Recall Cosine Similarity Golden DOI MRR Golden DOI Recall ROUGE-L Recall Scientific Fact Recall
Random 80/20 0.84 0.84 0.91 0.96 0.85 0.95
LOPO sparse_k 0.78 0.73 0.77 0.66 0.68 0.91
LOPO chunk_size 0.76 0.73 0.87 0.93 0.74 0.94
LOPO dense_k 0.37 0.32 0.70 0.34 0.26 0.84

MC

Split strategy BERT Score Recall Cosine Similarity Golden DOI MRR Golden DOI Recall ROUGE-L Recall Scientific Fact Recall
Random 80/20 0.89 0.87 0.92 0.97 0.86 0.94
LOPO sparse_k 0.87 0.82 0.87 0.86 0.85 0.94
LOPO chunk_size 0.80 0.74 0.82 0.94 0.74 0.92
LOPO dense_k 0.54 0.34 -2.30 -2.30 0.65 0.87

NZ

Split strategy BERT Score Recall Cosine Similarity Golden DOI MRR Golden DOI Recall ROUGE-L Recall Scientific Fact Recall
Random 80/20 0.97 0.95 0.97 0.99 0.96 0.97
LOPO sparse_k 0.95 0.92 0.88 0.85 0.90 0.95
LOPO chunk_size 0.93 0.88 0.95 0.97 0.90 0.94
LOPO dense_k 0.74 0.26 -7.02 -3.52 0.23 0.71
  1. We thank the Reviewer for this important comment. The 50 QA pairs per domain were selected to preserve the composition of the full SPECTRA benchmark, maintaining the original distribution of question scenarios and answer types, rather than being sampled randomly. This representative subset substantially reduces the computational cost of evaluating hundreds of RAG configurations, and we will clarify this in the camera-ready manuscript. All experiments were conducted using locally hosted models via Ollama with the default inference parameters of each model, which will also be reported for reproducibility. Although generation was therefore non-deterministic, repeated evaluation of the same configuration (five runs on the OA domain) showed consistently low variability across aggregated metrics, indicating that generation stochasticity has only a minor effect on configuration-level results. We also analyzed performance across individual question types, confirming that the benchmark covers a diverse range of difficulties—from near-perfect performance on direct fact retrieval to more challenging multi-hop questions. These analyses further support the robustness and representativeness of our results and will be included in the camera-ready version.
Metric Overall Aggregation Comparison Conditional Query Direct Fact Retrieval Multi-hop
BERT Score Recall 0.37 ± 0.17 0.40 ± 0.16 0.49 ± 0.19 0.28 ± 0.14 0.37 ± 0.17 0.32 ± 0.14
Cosine Similarity 0.51 ± 0.23 0.61 ± 0.22 0.71 ± 0.27 0.46 ± 0.13 0.44 ± 0.19 0.36 ± 0.18
Golden DOI MRR 0.58 ± 0.32 0.35 ± 0.27 0.69 ± 0.27 0.44 ± 0.24 1.00 ± 0.00 0.49 ± 0.28
Golden DOI Recall 0.78 ± 0.34 0.67 ± 0.41 0.83 ± 0.25 0.75 ± 0.35 1.00 ± 0.00 0.70 ± 0.42
ROUGE-L Recall 0.55 ± 0.37 0.45 ± 0.22 0.51 ± 0.23 0.72 ± 0.45 0.64 ± 0.40 0.45 ± 0.45
Scientific Fact Recall 0.93 ± 0.18 0.80 ± 0.26 0.88 ± 0.27 1.00 ± 0.00 1.00 ± 0.00 1.00 ± 0.00
  1. We agree that the main computational cost lies in collecting the initial configuration–performance dataset. Collecting the initial dataset indeed represents the main computational cost: evaluating all 648 configurations requires approximately 324 compute-hours per domain, as each configuration takes about 30 minutes on the 50-question benchmark. Once this dataset has been collected, however, optimization over the trained surrogate becomes essentially free, with a single Optuna trial requiring only about 0.03 seconds. Consequently, additional optimization objectives (e.g., different target metrics or metric combinations) can be explored without repeating the expensive RAG evaluations. More importantly, our paper already demonstrates that the surrogate can be efficiently reused across related domains. In the cross-domain adaptation experiments, we show that combining one fully evaluated source domain with only 65 additional RAG experiments in the target domain is sufficient to accurately model the target RAG behaviour, reducing the required data collection by nearly an order of magnitude compared to evaluating all 648 configurations. We will clarify that the surrogate can be directly reused when the RAG components and configuration space remain unchanged, while moderate domain shifts require only lightweight recalibration, as demonstrated by our cross-domain experiments.

  2. We agree that the selected configuration depends on both the optimization objectives and the candidate selection strategy. The reported configurations were selected by maximizing the surrogate-predicted objective, and therefore small negative deltas after validation are expected due to surrogate prediction errors and the presence of several near-optimal configurations with very similar performance. We further analyzed the sensitivity of the selection strategy and found that no single strategy consistently dominates across all domains and objectives. For example, mode-based selection generally provides a better balance between retrieval and generation metrics, whereas cheapest selection can be preferable for specific semantic objectives. Similarly, the optimal strategy differs across domains (e.g., all-domain mode for MC versus in-domain optimization for OA). These observations indicate that the reported results are sensitive to the optimization objective, reflecting genuine trade-offs rather than failures of the surrogate. A more comprehensive analysis of alternative candidate selection strategies, objective formulations, and their impact on the final validated configurations represents an interesting direction for future work, which we will highlight in the camera-ready manuscript.

We would also like to address the points raised in Limitations and Weaknesses sections:

  1. We thank the Reviewer for highlighting the need for a more precise formulation of our cross-domain conclusions. In the revised manuscript, we will limit our claims to the three chemistry domains studied and discuss transfer separately for each metric and source-target domain pair. We will explicitly clarify that zero-shot transfer is consistently reliable only for selected metrics, while 10% target-domain data is sufficient across all metrics only for certain domain pairs. These clarifications will be reflected in the abstract, contributions, and discussion.

  2. The current experiments indeed do not demonstrate extrapolation to previously unseen RAG architectures. In our study, the pipeline structure is fixed, while the surrogate generalizes within this architectural design space by modelling different parameter configurations. Changing the search mode, reranker, or LLM would define a different RAG architecture, requiring additional observations and retraining. Our goal was to demonstrate the proposed methodology on a representative RAG architecture, while the same framework can be applied to alternative architectures.

  3. We thank the Reviewer for raising this important point regarding novelty. Unlike prior studies, which primarily optimize configurations for a single dataset or application, our work investigates whether surrogate models can generalize across domains, quantifies the data required for cross-domain adaptation, and combines optimization with model interpretation through SHAP-IQ to identify the most influential RAG design choices.

Given the Reviewer’s positive feedback on the importance and quality of our work, as well as the additional analyses and experiments presented in this rebuttal, we kindly ask the Reviewer to consider raising the score to 5.

Authors · CommentOpenReview ↗

Dear Reviewer, Thank you again for your thoughtful review and for recognizing the significance of our work! We have carefully considered each of your comments and provided additional analyses, experiments, and clarifications to address the questions you raised. If you have an opportunity to review our responses, we would greatly appreciate your feedback on whether they satisfactorily address your concerns or if there are any remaining issues that we should further clarify.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…