mlsanityData to 7 Oct 2026

Optimizing Retrieval-Augmented Generation: Analysis of Hyperparameter Impact on Performance and Efficiency

arXiv 2505.08445 ↗First posted 13 May 2025cs.LG cs.AI cs.CLcited by 2

On the map: Retrieval-augmented generation → RAG pipeline design and evaluation

Abstract (arXiv)

Large language models achieve high task performance yet often hallucinate or rely on outdated knowledge. Retrieval-augmented generation (RAG) addresses these gaps by coupling generation with external search. We analyse how hyperparameters influence speed and quality in RAG systems, covering Chroma and Faiss vector stores, chunking policies, cross-encoder re-ranking, and temperature, and we evaluate six metrics: faithfulness, answer correctness, answer relevancy, context precision, context recall, and answer similarity. Chroma processes queries 13% faster, whereas Faiss yields higher retrieval precision, revealing a clear speed-accuracy trade-off. Naive fixed-length chunking with small windows and minimal overlap outperforms semantic segmentation while remaining the quickest option. Re-ranking provides modest gains in retrieval quality yet increases runtime by roughly a factor of 5, so its usefulness depends on latency constraints. These results help practitioners balance computational cost and accuracy when tuning RAG systems for transparent, up-to-date responses. Finally, we re-evaluate the top configurations with a corrective RAG workflow and show that their advantages persist when the model can iteratively request additional evidence. We obtain a near-perfect context precision (99%), which demonstrates that RAG systems can achieve extremely high retrieval accuracy with the right combination of hyperparameters, with significant implications for applications where retrieval quality directly impacts downstream task performance, such as clinical decision support in healthcare.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 19 of its 23 references that are in the map. First posted on arXiv 13 May 2025.

Builds on

19 of 23 references.

Closest ancestors · 8

Same direction, newest first

  1. 2024Evaluation of Retrieval-Augmented Generation: A Survey13 May
  2. 2024Corrective Retrieval Augmented Generation29 Jan
  3. 2024MultiHop-RAG: Benchmarking Retrieval-Augmented Generation for Multi-Hop Queries27 Jan
  4. 2024The Power of Noise: Redefining Retrieval for RAG Systems26 Jan
  5. 2024Seven Failure Points When Engineering a Retrieval Augmented Generation System11 Jan
  6. 2023ARES: An Automated Evaluation Framework for Retrieval-Augmented Generation Systems16 Nov
  7. 2023Ragas: Automated Evaluation of Retrieval Augmented Generation26 Sep
  8. 2022FiD-Light: Efficient and Effective Retrieval-Augmented Text Generation28 Sep

Other references · 11

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  3. 2017Billion-scale similarity search with GPUscited by 2,477
  4. 2022Survey of Hallucination in Natural Language Generationcited by 2,056
  5. 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,582
  6. 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 695
  7. 2024LLM Evaluators Recognize and Favor Their Own Generationscited by 651
  8. 2024The Faiss librarycited by 370
  9. 2023Benchmarking Large Language Models in Retrieval-Augmented Generationcited by 307
  10. 2024Long Context RAG Performance of Large Language Modelscited by 23
  11. 2023Prediction of Arabic Legal Rulings using Large Language Modelscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Toward Optimal Search and Retrieval for RAG
  2. 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontiers
  3. 2024Introducing a new hyper-parameter for RAG: Context Window Utilization
  4. 2025Enhancing Retrieval-Augmented Generation: A Study of Best Practices
  5. 2026Mapping the RAG Landscape: A Four Axis Taxonomy of Efficiency, Defense, Interactivity, and Reasoning
  6. 2026A Systems-Level Analysis of Sensitivity, Robustness, and Stability in Retrieval-Augmented Generation
  7. 2025Dynamic Context Selection for Retrieval-Augmented Generation: Mitigating Distractors and Positional Bias
  8. 2025Investigating the Robustness of Retrieval-Augmented Generation at the Query Level