Syftr: Pareto-Optimal Generative AI
Abstract
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 hyperparam- eter 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 $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 also allows integrating new modules, making it even easier and faster to realize high-performing generative AI pipelines. syftr is fully open source: \url{https://github.com/datarobot/syftr}
Cite
Text
Conway et al. "Syftr: Pareto-Optimal Generative AI." Proceedings of the Fourth International Conference on Automated Machine Learning, 2025. doi:10.48550/arXiv.2505.20266Markdown
[Conway et al. "Syftr: Pareto-Optimal Generative AI." Proceedings of the Fourth International Conference on Automated Machine Learning, 2025.](https://mlanthology.org/automl/2025/conway2025automl-syftr/) doi:10.48550/arXiv.2505.20266BibTeX
@inproceedings{conway2025automl-syftr,
title = {{Syftr: Pareto-Optimal Generative AI}},
author = {Conway, Alexander and Dey, Debadeepta and Hackmann, Stefan and Hausknecht, Matthew and Schmidt, Michael Douglas and Steadman, Mark Lewis and Volynets, Nick},
booktitle = {Proceedings of the Fourth International Conference on Automated Machine Learning},
year = {2025},
pages = {6/1-33},
doi = {10.48550/arXiv.2505.20266},
volume = {293},
url = {https://mlanthology.org/automl/2025/conway2025automl-syftr/}
}