syftr用智能搜索自动找到低成本高精度的AI生成方案。
syftr: Pareto-Optimal Generative AI
- 用贝叶斯优化在多种配置中找最优组合
- 平均成本降9倍,准确率损失很小
- 支持新模块快速集成,适合想高效搭建AI系统的开发者
检索增强生成(RAG)管道是将大语言模型(LLMs)应用于私有或动态数据的核心。但构建高效的RAG流程复杂,需在向量数据库、嵌入模型、文本切分器、检索器和合成语言模型间精心选择。随着代理范式的兴起,验证器、重写器、重排序器等模块及其复杂的超参数依赖更增加了调优难度。在对性能敏感的应用中,平衡延迟、准确率与成本愈发困难。我们提出 syftr,一个在广泛代理与非代理RAG配置空间中进行高效多目标搜索的框架。通过贝叶斯优化,syftr发现同时优化任务准确率与成本的帕累托最优流程。一种新颖的早期停止机制进一步提升效率,剔除明显次优候选。在多个RAG基准上,syftr找到的流程平均约便宜9倍,同时保留了帕累托前沿最准确流程的大部分准确率。此外,syftr的设计与优化能力可轻松集成新模块,使构建高性能生成式AI管道更简单、更快。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。