用一个AI系统优化各类文本参数,效果媲美专业工具。
optimize_anything: A Universal API for Optimizing any Text Parameter

- 将优化问题转为文本改进任务,用LLM搜索求解。
- 在6个任务中达顶尖表现,最高提升3倍准确率。
- 适合需要通用优化方案的研究者与工程师。
当优化问题被表述为通过评分函数评估的文本产物改进时,单一基于大语言模型的优化系统能够实现单任务搜索、多任务搜索中的跨问题迁移,并泛化到未见输入,在六个不同任务中取得领先结果。该系统发现的智能体架构使Gemini Flash在ARC-AGI任务上的准确率从32.5%提升至89.5%(近三倍),找到的调度算法降低40%云成本,生成的CUDA内核有87%达到或超过PyTorch性能,且优于已报告的AlphaEvolve圆打包解决方案(n=26)。三个领域的消融实验表明,提供可操作的辅助信息比仅依赖评分反馈能更快收敛并获得更高最终得分;在相同每问题预算下,多任务搜索因跨任务迁移优于独立优化,且收益随相关任务数量增加而提升。我们首次证明,基于LLM的文本优化是一种通用问题求解范式,将原本需领域专用算法的任务统一于单一框架。代码开源,支持多种后端,详见https://github.com/gepa-ai/gepa。
原文摘要 · Abstract (English)
Can a single LLM-based optimization system match specialized tools across fundamentally different domains? We show that when optimization problems are formulated as improving a text artifact evaluated by a scoring function, a single AI-based optimization system-supporting single-task search, multi-task search with cross-problem transfer, and generalization to unseen inputs-achieves state-of-the-art results across six diverse tasks. Our system discovers agent architectures that nearly triple Gemini Flash's ARC-AGI accuracy (32.5% to 89.5%), finds scheduling algorithms that cut cloud costs by 40%, generates CUDA kernels where 87% match or beat PyTorch, and outperforms AlphaEvolve's reported circle packing solution (n=26). Ablations across three domains reveal that actionable side information yields faster convergence and substantially higher final scores than score-only feedback, and that multi-task search outperforms independent optimization given equivalent per-problem budget through cross-task transfer, with benefits scaling with the number of related tasks. Together, we show for the first time that text optimization with LLM-based search is a general-purpose problem-solving paradigm, unifying tasks traditionally requiring domain-specific algorithms under a single framework. We open-source optimize\_anything with support for multiple backends as part of the GEPA project at https://github.com/gepa-ai/gepa .
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。