arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.15495cs.CLcs.AI
收藏

TL-Training:一种基于任务特征的大型语言模型工具使用训练框架

TL-Training: A Task-Feature-Based Framework for Training Large Language Models in Tool Use

Fudan University(复旦大学);Lenovo Research(联想研究);ByteDance Seed(字节跳动种子);Shanghai Key Lab of Intelligent Information Processing(上海智能信息处理重点实验室);Shanghai AI Laboratory(上海人工智能实验室)

Junjie Ye, Yilong Wu, Sixian Li, Yuming Yang, Zhiheng Xi, Tao Gui, Qi Zhang, Xuanjing Huang, Peng Wang, Zhongchao Shi, Jianping Fan, Zhengyin Du

AI总结:

针对标准SFT方法忽视工具使用任务特定特征导致性能瓶颈的问题,提出基于任务特征的TL-Training框架,通过优化训练数据、动态调整标记权重及定制奖励机制,仅用1217个数据点训练的模型在工具使用性能上匹配或超越开源和闭源LLM。

摘要:

大型语言模型(LLMs)通过利用工具与环境交互取得显著进展,这是迈向通用人工智能的关键一步。然而,依赖大规模数据集的标准监督微调(SFT)方法常忽视工具使用中的任务特定特征,导致性能瓶颈。为解决此问题,我们分析了三种现有LLMs并发现关键见解:训练数据可能无意中阻碍工具使用行为,标记重要性分布不均,工具调用错误仅属于少量类别。基于这些发现,我们提出TL-Training,一种基于任务特征的框架,可减轻次优训练数据的影响,在SFT期间动态调整标记权重以优先处理关键标记,并纳入针对错误类别的稳健奖励机制,通过近端策略优化进行优化。我们通过训练CodeLLaMA-2-7B并在四个开源测试集上评估来验证TL-Training。结果表明,仅使用1217个训练数据点,我们方法训练的LLM在工具使用性能上匹配或超越开源和闭源LLM。此外,我们的方法增强了嘈杂环境中的稳健性并提升了通用任务性能,为LLMs的工具使用训练提供了可扩展且高效的范式。代码和数据可在https://github.com/Junjie-Ye/TL-Training获取。

英文摘要:

Large language models (LLMs) achieve remarkable advancements by leveraging tools to interact with environments, a critical step toward generalized AI. However, the standard supervised fine-tuning (SFT) approach, which relies on large-scale datasets, often overlooks task-specific characteristics in tool use, leading to performance bottlenecks. To address this issue, we analyze three existing LLMs and uncover key insights: training data can inadvertently impede tool-use behavior, token importance is distributed unevenly, and errors in tool calls fall into a small set of categories. Building on these findings, we propose~\emph{TL-Training}, a task-feature-based framework that mitigates the effects of suboptimal training data, dynamically adjusts token weights to prioritize key tokens during SFT, and incorporates a robust reward mechanism tailored to error categories, optimized through proximal policy optimization. We validate TL-Training by training CodeLLaMA-2-7B and evaluating it on four open-source test sets. Our results demonstrate that the LLM trained by our method matches or surpasses both open- and closed-source LLMs in tool-use performance using only 1,217 training data points. Additionally, our method enhances robustness in noisy environments and improves general task performance, offering a scalable and efficient paradigm for tool-use training in LLMs. Code and data are available at https://github.com/Junjie-Ye/TL-Training.

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

↑