While Retrieval Augmented Generation (RAG) has emerged as a popular technique for improving Large Language Model (LLM) systems, it introduces a large number of choices, parameters and hyperparameters that must be made or tuned. This includes the LLM, embedding, and ranker models themselves, as well as hyperparameters governing individual RAG components. Yet, collectively optimizing the entire configuration in a RAG or LLM system remains under-explored - especially in multi-objective settings - due to intractably large solution spaces, noisy objective evaluations, and the high cost of evaluations. In this work, we introduce the first approach for multi-objective parameter optimization of cost, latency, safety and alignment over entire LLM and RAG systems. We find that Bayesian optimization methods significantly outperform baseline approaches, obtaining a superior Pareto front on two new RAG benchmark tasks. We conclude our work with important considerations for practitioners who are designing multi-objective RAG systems, highlighting nuances such as how optimal configurations may not generalize across tasks and objectives.
CDS4RAG: Cyclic Dual-Sequential Hyperparameter Optimization for RAG
School of Computer Science and Engineering, UESTC, Chengdu, China(电子科技大学计算机科学与工程学院,成都,中国);IDEAS Lab, University of Birmingham, Birmingham, UK(伯明翰大学IDEAS实验室,英国布里斯托尔)
First Token Probability Guided RAG for Telecom Question Answering
Shenzhen Research Institute of Big Data(深圳大数据研究院);School of Science and Engineering, The Chinese University of Hong Kong (Shenzhen)(香港中文大学(深圳)理工学院);School of Computer Science and Engineering, Sun Yat-sen University(中山大学计算机科学与工程学院)
RAG Deserves an Index: Why Ingest-Time Compilation Beats Query-Time Interpretation
Endgame Labs, Inc.(终局实验室公司);Asia AI Institute(亚洲人工智能研究院);Musashino University(武藏野大学);Faculty of Data Science, Musashino University(武藏野大学数据科学学院);AIx, Inc.(AIx公司)
Imperial College London(伦敦帝国学院);Hasso Plattner Institute / University of Potsdam(霍普夫纳研究所/波茨坦大学);Telecom Paris, Institut Polytechnique de Paris(电信巴黎学院,巴黎理工学院);Soda, Inria Saclay(Soda,法国国家信息与自动化技术研究院萨克利实验室)