A Survey on the Optimization of Large Language Model-based Agents

LLM SFT RLHF Agent Agent Planning Tool Learning Agent Memory
2025年03月16日
随着大规模语言模型(LLM)的快速发展,基于LLM的智能体已在多个领域得到广泛应用,成为自主决策和交互任务中的关键组成部分。然而,当前的研究通常依赖于对基础LLM进行提示设计或微调策略,这在复杂的智能体相关环境中往往导致效果有限或性能次优。尽管LLM优化技术能够在许多通用任务中提升模型性能,但在诸如长期规划、动态环境交互和复杂决策等关键智能体功能方面,缺乏专门的优化手段。虽然近期许多研究探索了各种优化基于LLM的智能体以应对复杂任务的策略,但从整体视角对这些方法进行系统总结和比较的研究仍然不足。在本综述中,我们全面回顾了基于LLM的智能体优化方法,并将其分为参数驱动和非参数驱动两类方法。首先,我们聚焦于参数驱动优化,涵盖基于微调的优化、基于强化学习的优化以及混合策略,分析了轨迹数据构建、微调技术、奖励函数设计和优化算法等关键方面。此外,我们还简要讨论了通过提示工程和外部知识检索优化智能体行为的非参数驱动策略。最后,我们总结了用于评估和调优的数据集与基准,回顾了基于LLM的智能体的关键应用,并探讨了主要挑战及未来有前景的发展方向。我们的相关参考资源库可在以下链接获取:https://github.com/YoungDubbyDu/LLM-Agent-Optimization。
With the rapid development of Large Language Models (LLMs), LLM-based agents have been widely adopted in various fields, becoming essential for autonomous decision-making and interactive tasks. However, current work typically relies on prompt design or fine-tuning strategies applied to vanilla LLMs, which often leads to limited effectiveness or suboptimal performance in complex agent-related environments. Although LLM optimization techniques can improve model performance across many general tasks, they lack specialized optimization towards critical agent functionalities such as long-term planning, dynamic environmental interaction, and complex decision-making. Although numerous recent studies have explored various strategies to optimize LLM-based agents for complex agent tasks, a systematic review summarizing and comparing these methods from a holistic perspective is still lacking. In this survey, we provide a comprehensive review of LLM-based agent optimization approaches, categorizing them into parameter-driven and parameter-free methods. We first focus on parameter-driven optimization, covering fine-tuning-based optimization, reinforcement learning-based optimization, and hybrid strategies, analyzing key aspects such as trajectory data construction, fine-tuning techniques, reward function design, and optimization algorithms. Additionally, we briefly discuss parameter-free strategies that optimize agent behavior through prompt engineering and external knowledge retrieval. Finally, we summarize the datasets and benchmarks used for evaluation and tuning, review key applications of LLM-based agents, and discuss major challenges and promising future directions. Our repository for related references is available at https://github.com/YoungDubbyDu/LLM-Agent-Optimization.
许愿