# Agent-FLAN **Repository Path**: internlm/Agent-FLAN ## Basic Information - **Project Name**: Agent-FLAN - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-05 - **Last Updated**: 2024-09-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Agent-FLAN: Designing Data and Methods of Effective Agent Tuning for Large Language Models [](https://arxiv.org/abs/2403.12881) [](./LICENSE) [](https://openxlab.org.cn/models/detail/OpenLMLab/Agent-FLAN-7b) ## โจ Introduction [[๐ค HuggingFace](https://huggingface.co/internlm/Agent-FLAN-7b)] [[๐งฐ OpenXLab](https://openxlab.org.cn/models/detail/OpenLMLab/Agent-FLAN-7b)] [[๐ Paper](https://arxiv.org/abs/2403.12881)] [[๐ Project Page](https://internlm.github.io/Agent-FLAN/)] > 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. ## ๐ What's New - **[2024.3.21]** Paper available on [ArXiv](https://arxiv.org/abs/2403.12881). ๐ฅ๐ฅ๐ฅ - **[2024.3.20]** Release the dataset and model checkpoint for Agent-FLAN. ๐๐๐ ## โ๏ธ Agent-FLAN Agent-FLAN series are finetuned on AgentInstruct and Toolbench by applying the data generation pipeline proposed in Agent-FLAN paper, which holds strong abilities on various agent tasks and tool utilization~
Comparison of recent agent tuning approaches on Held-In, Held-Out tasks. Performances are normalized with GPT-4 results for better visualization. * denotes our re-implementation for a fair comparison.