arXiv:2412.03092cs.CLcs.AI2024-12ICML被引 16

通过追踪文本响应演化,提升大模型系统优化效率。

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

  • 基于响应随迭代的演变轨迹进行渐进式调整
  • 在提示、解法和代码优化上分别提升7.8%、20.72%、29.17%
  • 收敛更快,适合需要高效调优的大模型应用

大语言模型(LLMs)在自然语言处理与工具交互中显著提升了复杂任务能力,但针对特定任务的优化仍依赖人工干预,如提示工程和超参数调优。现有自动优化方法(如TextGrad)多依赖即时反馈,类似传统数值梯度下降中的瞬时导数,当调整量过小或波动不规则时,易导致优化缓慢甚至停滞。为此,本文提出REVOLVE,通过追踪LLM系统中“响应”(Response)在迭代过程中的演化轨迹,实现更稳定有效的优化。该方法在每一步做出有思考的渐进调整,实验表明,REVOLVE在提示优化上提升7.8%,解法精炼提升20.72%,代码优化提升29.17%,且收敛迭代次数更少,显著节省计算资源。此外,该工作揭示了将经典优化理论融入大模型系统的潜力,为跨领域融合提供新方向。

原文摘要 · Abstract (English)

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.

大模型优化文本生成自适应算法

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。