Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

FireAct: Toward Language Agent Fine-tuning

About

Recent efforts have augmented language models (LMs) with external tools or environments, leading to the development of language agents that can reason and act. However, most of these agents rely on few-shot prompting techniques with off-the-shelf LMs. In this paper, we investigate and argue for the overlooked direction of fine-tuning LMs to obtain language agents. Using a setup of question answering (QA) with a Google search API, we explore a variety of base LMs, prompting methods, fine-tuning data, and QA tasks, and find language agents are consistently improved after fine-tuning their backbone LMs. For example, fine-tuning Llama2-7B with 500 agent trajectories generated by GPT-4 leads to a 77% HotpotQA performance increase. Furthermore, we propose FireAct, a novel approach to fine-tuning LMs with trajectories from multiple tasks and prompting methods, and show having more diverse fine-tuning data can further improve agents. Along with other findings regarding scaling effects, robustness, generalization, efficiency and cost, our work establishes comprehensive benefits of fine-tuning LMs for agents, and provides an initial set of experimental designs, insights, as well as open questions toward language agent fine-tuning.

Baian Chen, Chang Shu, Ehsan Shareghi, Nigel Collier, Karthik Narasimhan, Shunyu Yao• 2023

Related benchmarks

TaskDatasetResultRank
Multi-task Language UnderstandingMMLU
Accuracy65.8
881
Interactive Decision-makingAlfWorld
Overall Success Rate79.28
295
Multi-hop Question AnsweringHotpotQA--
294
Commonsense ReasoningStrategyQA
Accuracy72.9
208
Multi-hop Question AnsweringBamboogle
Accuracy50.4
62
Embodied Agent TaskALFWorld Unseen
Success Rate50.7
40
Web navigationWebshop--
32
Interactive ReasoningScienceWorld Seen
Success Rate57.21
31
Question AnsweringHotpotQA v1.1 (test)
Easy Score50.82
26
Science Question AnsweringScienceQA v1.0 (test)
Accuracy (G1-4)72.5
26
Showing 10 of 27 rows

Other info

Code

Follow for update