English

syftr: Pareto-Optimal Generative AI

Artificial Intelligence 2025-05-27 v1 Machine Learning

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 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.

Keywords

Cite

@article{arxiv.2505.20266,
  title  = {syftr: Pareto-Optimal Generative AI},
  author = {Alexander Conway and Debadeepta Dey and Stefan Hackmann and Matthew Hausknecht and Michael Schmidt and Mark Steadman and Nick Volynets},
  journal= {arXiv preprint arXiv:2505.20266},
  year   = {2025}
}

Comments

International Conference on Automated Machine Learning (AutoML) 2025

R2 v1 2026-07-01T02:40:26.470Z