Agent-FLAN: Designing Data and Methods of Effective Agent Tuning for Large Language Models

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Chen, Zehui, Liu, Kuikun, Wang, Qiuchen, Zhang, Wenwei, Liu, Jiangning, Lin, Dahua, Chen, Kai, Zhao, Feng
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911803610497024
author Chen, Zehui
Liu, Kuikun
Wang, Qiuchen
Zhang, Wenwei
Liu, Jiangning
Lin, Dahua
Chen, Kai
Zhao, Feng
author_facet Chen, Zehui
Liu, Kuikun
Wang, Qiuchen
Zhang, Wenwei
Liu, Jiangning
Lin, Dahua
Chen, Kai
Zhao, Feng
contents Open-sourced Large Language Models (LLMs) have achieved great success in various NLP tasks, however, they are still far inferior to API-based models when acting as agents. How to integrate agent ability into general LLMs becomes a crucial and urgent problem. This paper first delivers three key observations: (1) the current agent training corpus is entangled with both formats following and agent reasoning, which significantly shifts from the distribution of its pre-training data; (2) LLMs exhibit different learning speeds on the capabilities required by agent tasks; and (3) current approaches have side-effects when improving agent abilities by introducing hallucinations. Based on the above findings, we propose Agent-FLAN to effectively Fine-tune LANguage models for Agents. Through careful decomposition and redesign of the training corpus, Agent-FLAN enables Llama2-7B to outperform prior best works by 3.5\% across various agent evaluation datasets. With comprehensively constructed negative samples, Agent-FLAN greatly alleviates the hallucination issues based on our established evaluation benchmark. Besides, it consistently improves the agent capability of LLMs when scaling model sizes while slightly enhancing the general capability of LLMs. The code will be available at https://github.com/InternLM/Agent-FLAN.
format Preprint
id arxiv_https___arxiv_org_abs_2403_12881
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Agent-FLAN: Designing Data and Methods of Effective Agent Tuning for Large Language Models
Chen, Zehui
Liu, Kuikun
Wang, Qiuchen
Zhang, Wenwei
Liu, Jiangning
Lin, Dahua
Chen, Kai
Zhao, Feng
Computation and Language
Open-sourced Large Language Models (LLMs) have achieved great success in various NLP tasks, however, they are still far inferior to API-based models when acting as agents. How to integrate agent ability into general LLMs becomes a crucial and urgent problem. This paper first delivers three key observations: (1) the current agent training corpus is entangled with both formats following and agent reasoning, which significantly shifts from the distribution of its pre-training data; (2) LLMs exhibit different learning speeds on the capabilities required by agent tasks; and (3) current approaches have side-effects when improving agent abilities by introducing hallucinations. Based on the above findings, we propose Agent-FLAN to effectively Fine-tune LANguage models for Agents. Through careful decomposition and redesign of the training corpus, Agent-FLAN enables Llama2-7B to outperform prior best works by 3.5\% across various agent evaluation datasets. With comprehensively constructed negative samples, Agent-FLAN greatly alleviates the hallucination issues based on our established evaluation benchmark. Besides, it consistently improves the agent capability of LLMs when scaling model sizes while slightly enhancing the general capability of LLMs. The code will be available at https://github.com/InternLM/Agent-FLAN.
title Agent-FLAN: Designing Data and Methods of Effective Agent Tuning for Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2403.12881