Saved in:
Bibliographic Details
Main Authors: Conway, Alexander, Dey, Debadeepta, Hackmann, Stefan, Hausknecht, Matthew, Schmidt, Michael, Steadman, Mark, Volynets, Nick
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.20266
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918034954780672
author Conway, Alexander
Dey, Debadeepta
Hackmann, Stefan
Hausknecht, Matthew
Schmidt, Michael
Steadman, Mark
Volynets, Nick
author_facet Conway, Alexander
Dey, Debadeepta
Hackmann, Stefan
Hausknecht, Matthew
Schmidt, Michael
Steadman, Mark
Volynets, Nick
contents Retrieval-Augmented Generation (RAG) pipelines are central to applying large language models (LLMs) to proprietary or dynamic data. However, building effective RAG flows is complex, requiring careful selection among vector databases, embedding models, text splitters, retrievers, and synthesizing LLMs. The challenge deepens with the rise of agentic paradigms. Modules like verifiers, rewriters, and rerankers-each with intricate hyperparameter dependencies have to be carefully tuned. Balancing tradeoffs between latency, accuracy, and cost becomes increasingly difficult in performance-sensitive applications. We introduce syftr, a framework that performs efficient multi-objective search over a broad space of agentic and non-agentic RAG configurations. Using Bayesian Optimization, syftr discovers Pareto-optimal flows that jointly optimize task accuracy and cost. A novel early-stopping mechanism further improves efficiency by pruning clearly suboptimal candidates. Across multiple RAG benchmarks, syftr finds flows which are on average approximately 9 times cheaper while preserving most of the accuracy of the most accurate flows on the Pareto-frontier. Furthermore, syftr's ability to design and optimize allows integrating new modules, making it even easier and faster to realize high-performing generative AI pipelines.
format Preprint
id arxiv_https___arxiv_org_abs_2505_20266
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle syftr: Pareto-Optimal Generative AI
Conway, Alexander
Dey, Debadeepta
Hackmann, Stefan
Hausknecht, Matthew
Schmidt, Michael
Steadman, Mark
Volynets, Nick
Artificial Intelligence
Machine Learning
Retrieval-Augmented Generation (RAG) pipelines are central to applying large language models (LLMs) to proprietary or dynamic data. However, building effective RAG flows is complex, requiring careful selection among vector databases, embedding models, text splitters, retrievers, and synthesizing LLMs. The challenge deepens with the rise of agentic paradigms. Modules like verifiers, rewriters, and rerankers-each with intricate hyperparameter dependencies have to be carefully tuned. Balancing tradeoffs between latency, accuracy, and cost becomes increasingly difficult in performance-sensitive applications. We introduce syftr, a framework that performs efficient multi-objective search over a broad space of agentic and non-agentic RAG configurations. Using Bayesian Optimization, syftr discovers Pareto-optimal flows that jointly optimize task accuracy and cost. A novel early-stopping mechanism further improves efficiency by pruning clearly suboptimal candidates. Across multiple RAG benchmarks, syftr finds flows which are on average approximately 9 times cheaper while preserving most of the accuracy of the most accurate flows on the Pareto-frontier. Furthermore, syftr's ability to design and optimize allows integrating new modules, making it even easier and faster to realize high-performing generative AI pipelines.
title syftr: Pareto-Optimal Generative AI
topic Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2505.20266