arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.03092cs.CLcs.AIcs.LG
收藏

REVOLVE:通过追踪文本优化中的响应演化来优化AI系统

REVOLVE: Optimizing AI Systems by Tracking Response Evolution in Textual Optimization

Hong Kong University of Science and Technology(香港科技大学);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Brown University(布朗大学);University of Michigan - Ann Arbor(密歇根大学安娜堡分校);Hong Kong Polytechnic University(香港理工大学);Intel Lab(英特尔实验室)

Peiyan Zhang, Haibo Jin, Leyang Hu, Xinnuo Li, Liying Kang, Man Luo, Yangqiu Song, Haohan Wang

AI总结:

REVOLVE通过追踪LLM系统响应在迭代中的演化,实现稳定有效的优化,在提示优化、解决方案细化和代码优化上分别提升7.8%、20.72%和29.17%,并减少迭代次数。

摘要:

近年来,大型语言模型(LLM)的进步显著增强了基于LLM的系统通过自然语言处理和工具交互执行复杂任务的能力。然而,针对特定任务优化这些基于LLM的系统仍然具有挑战性,通常需要人工干预,如提示工程和超参数调优。现有的自动优化方法,如基于文本反馈的技术(例如TextGrad),倾向于关注即时反馈,类似于传统数值梯度下降中使用即时导数。然而,当响应反馈所做的调整过小或波动不规则时,仅依赖此类反馈可能会受到限制,可能减慢甚至停滞优化过程。为了克服这些挑战,需要更具适应性的方法,尤其是在系统响应演化缓慢或不可预测的情况下。在本文中,我们引入了REVOLVE,一种追踪LLM系统中响应在迭代间如何“演化”的优化方法。通过关注响应随时间的演化,REVOLVE通过每一步进行深思熟虑、渐进式的调整,实现更稳定和有效的优化。实验结果表明,REVOLVE优于竞争性基线,在提示优化上实现了7.8%的提升,在解决方案细化上实现了20.72%的提升,在代码优化上实现了29.17%的提升。此外,REVOLVE在更少的迭代中收敛,从而显著节省计算资源。除了其实用贡献外,REVOLVE还突出了一个有前景的方向,即利用成熟优化原理中的丰富知识来增强LLM系统,这为这一混合领域的进一步发展铺平了道路。

英文摘要:

Recent advancements in large language models (LLMs) have significantly enhanced the ability of LLM-based systems to perform complex tasks through natural language processing and tool interaction. However, optimizing these LLM-based systems for specific tasks remains challenging, often requiring manual interventions like prompt engineering and hyperparameter tuning. Existing automatic optimization methods, such as textual feedback-based techniques (e.g., TextGrad), tend to focus on immediate feedback, analogous to using immediate derivatives in traditional numerical gradient descent. However, relying solely on such feedback can be limited when the adjustments made in response to this feedback are either too small or fluctuate irregularly, potentially slowing down or even stalling the optimization process. To overcome these challenges, more adaptive methods are needed, especially in situations where the system's response is evolving slowly or unpredictably. In this paper, we introduce REVOLVE, an optimization method that tracks how "R"esponses "EVOLVE" across iterations in LLM systems. By focusing on the evolution of responses over time, REVOLVE enables more stable and effective optimization by making thoughtful, progressive adjustments at each step. Experimental results demonstrate that REVOLVE outperforms competitive baselines, achieving a 7.8% improvement in prompt optimization, a 20.72% gain in solution refinement, and a 29.17% increase in code optimization. Additionally, REVOLVE converges in fewer iterations, resulting in significant computational savings. Beyond its practical contributions, REVOLVE highlights a promising direction, where the rich knowledge from established optimization principles can be leveraged to enhance LLM systems, which paves the way for further advancements in this hybrid domain.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑