Hephaestus: Improving Fundamental Agent Capabilities of Large Language Models through Continual Pre-Training
这篇论文提出了Hephaestus-Forge,一个大规模预训练语料库,用于提升大型语言模型在API函数调用、内在推理和规划以及适应环境反馈方面的基本能力。
更新于 2025-02-12。作者:Yuchen Zhuang、Jingfeng Yang、Haoming Jiang、Xin Liu、Kewei Cheng、Sanket Lokegaonkar、Yifan Gao、Qing Ping、Tianyi Liu、Binxuan Huang、Zheng Li、Zhengyang Wang、Pei Chen、Ruijie Wang、Rongzhi Zhang、Nasser Zalmout、Priyanka Nigam、Bing Yin、Chao Zhang。
中文摘要
由于面向代理的预训练数据稀缺,基于LLM的自主代理通常依赖于复杂的提示或广泛的微调,这往往无法引入新能力同时保持强大的泛化能力。我们引入了Hephaestus-Forge,这是第一个旨在增强LLM代理在API函数调用、内在推理和规划以及适应环境反馈等基本能力的大规模预训练语料库。Hephaestus-Forge包含103B个针对代理的数据,涵盖76,537个API,包括用于介绍API函数知识的工具文档和用于加强内在推理的功能调用轨迹。为了探索有效的训练协议,我们研究了扩展定律,以确定数据混合比的最优配方。通过在Hephaestus-Forge上持续预训练,Hephaestus在三个代理基准测试中优于中小规模的开源LLM,并与商业LLM相媲美,证明了我们的预训练语料库在增强基本代理能力和LLM对新任务或环境的泛化方面的有效性。
英文摘要
Due to the scarcity of agent-oriented pre-training data, LLM-based autonomous agents typically rely on complex prompting or extensive fine-tuning, which often fails to introduce new capabilities while preserving strong generalizability. We introduce Hephaestus-Forge, the first large-scale pre-training corpus designed to enhance the fundamental capabilities of LLM agents in API function calling, intrinsic reasoning and planning, and adapting to environmental feedback. Hephaestus-Forge comprises 103B agent-specific data encompassing 76,537 APIs, including both tool documentation to introduce knowledge of API functions and function calling trajectories to strengthen intrinsic reasoning. To explore effective training protocols, we investigate scaling laws to identify the optimal recipe in data mixing ratios. By continual pre-training on Hephaestus-Forge, Hephaestus outperforms small- to medium-scale open-source LLMs and rivals commercial LLMs on three agent benchmarks, demonstrating the effectiveness of our pre-training corpus in enhancing fundamental agentic capabilities and generalization of LLMs to new tasks or environments.
解读
一句话总结
这篇论文提出了Hephaestus-Forge,一个大规模预训练语料库,用于提升大型语言模型在API函数调用、内在推理和规划以及适应环境反馈方面的基本能力。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:由于缺乏针对代理的预训练数据,基于LLM的自主代理通常依赖于复杂的提示或广泛的微调,这往往无法引入新能力同时保持强大的泛化能力。
- 现有方案不足:现有的代理框架主要关注指令微调,而不是从根本上增强模型知识或能力,例如API函数调用。
- 研究目标:设计Hephaestus-Forge,一个大规模预训练语料库,以增强LLM代理在API函数调用、内在推理和规划以及适应环境反馈方面的基本能力。
问题2:论文的核心创新点是什么?
- 技术创新:构建了Hephaestus-Forge,一个包含工具文档和函数调用轨迹的大规模预训练语料库,以增强LLM代理的基本能力。
- 方法改进:通过实验确定了数据混合比的最佳比例,优化了预训练过程。
- 优势:通过在Hephaestus-Forge上持续预训练,Hephaestus在三个代理基准测试中优于中小规模的开源LLM,并可与商业LLM相媲美。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在三个代理基准测试(API-Bank、API-Bench、NexusRaven)和MMLU基准测试上评估了Hephaestus。
- 性能提升:Hephaestus在所有基准测试中均优于基线模型,表明预训练语料库在增强LLM的基本能力和泛化能力方面有效。
- 对比结果:与LLaMA-3-8B系列基线模型相比,Hephaestus在所有基准测试中均表现出显著的优势。
问题4:这个研究的实际应用价值是什么?
- 应用场景:Hephaestus可以应用于需要API调用、内在推理和适应环境反馈的复杂任务,如自动化、智能助手和机器人。
- 实施建议:在Hephaestus-Forge上进行持续预训练,以提升LLM代理的基本能力。
- 局限与展望:目前的研究主要针对中小规模模型,未来将扩展到更大规模的模型。此外,研究将探索更有效的数据增强和预训练策略。