# 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 page](https://neurips.cc/virtual/2026/poster/155514) · [Open on the map](../papers.html#p155514)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Retrieval-Augmented Generation](../pgroup/64.md) · Type: new method · Keywords: RAG system optimization, surrogate modeling, configuration search, performance prediction, transfer learning, efficient optimization

Areas: [Retrieval-Augmented Generation](../areas/rag.md) › Retrieval-Augmented Generation › Retrieval-augmented generation; [Evaluation & Benchmarks](../areas/evaluation.md) › Model Capability Diagnostics › Evaluation Methodologies

## Summary
We propose using surrogate models to predict RAG performance and efficiently optimize configurations across chemistry QA domains, enabling rapid discovery of high-performing designs.

## Explained to a 5-year-old
People build helpful chatbots that answer questions by looking up information. Trying every way to set up these chatbots takes a lot of time and money. We created a smart tool that learns how different settings affect the chatbot's answers. This tool can guess the best settings without trying them all. It helps make better chatbots faster and cheaper.

## Explained to a 5-year-old, longer
When you ask a chatbot a question, it often looks up information from the internet. There are many ways to set up how it looks up and how it answers. Trying every possible setting can take a long time and a lot of computer power. Researchers wanted a faster way to find the best settings. They built a big collection of different chatbot setups and recorded how well each worked. Then they taught a computer program to notice patterns in the results. This program can predict how a new setting will perform without actually running it. It also shows which parts of the setup work best together. Using this prediction tool, they can test thousands of new setups in just a few seconds. The best new setups give better answers and use less time. This makes it easier to create helpful chatbots for many topics. It also saves money because you don’t need to run every experiment fully.

## For a technical reader
We present a systematic approach to optimize Retrieval-Augmented Generation (RAG) pipelines by treating configuration performance as a prediction problem. A configurable RAG framework is used to generate a large dataset of configuration-metric pairs across multiple chemistry QA domains. We train surrogate models on this data to capture parameter interactions and predict performance, enabling rapid evaluation of thousands of configurations. The models also support transfer learning, achieving high accuracy on unseen domains with limited target data. This results in significant speedups for RAG optimization, delivering up to +0.09 gains in key metrics while reducing computational cost.

## Problem
Optimizing Retrieval-Augmented Generation (RAG) systems involves many interacting design choices, and evaluating each configuration through full pipeline execution is costly.

## Method
A flexible RAG pipeline is built to systematically vary design choices and collect performance data across many configurations. Predictive surrogate models are then trained on this data to approximate how configuration parameters affect evaluation metrics.

## Results
The surrogate models achieve high predictive accuracy (R² ≥ 0.84) and reveal consistent interaction patterns; they transfer to new domains with as little as 10% of target data and enable rapid optimization over tens of thousands of configurations, yielding up to +0.09 improvements in retrieval and generation metrics.

## Contributions
We demonstrate that RAG design spaces are structured and transferable, propose a data-driven approach to predict and optimize configurations via surrogate models, and release large-scale configuration datasets and evaluation metrics for the community.

## Practical relevance
This work enables rapid, cost-effective optimization of RAG systems, reducing the time and resources needed to achieve high performance in real-world applications.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155514)
