Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
60 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
8 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Offline Training of Language Model Agents with Functions as Learnable Weights (2402.11359v4)

Published 17 Feb 2024 in cs.AI and cs.CL

Abstract: Researchers and practitioners have recently reframed powerful LLMs as agents, enabling them to automate complex tasks largely via the use of specialized functions. To facilitate the development of LLM agents, we present a novel paradigm of training LLM agents without modifying the LLM weights, which is particularly useful when the LLMs are difficult or inaccessible for modifications. Inspired by how humans continuously forge tools to adapt to real-world tasks, rather than change our biological structure to fit a static set of tools, we propose to progressively forge agent's functions to better solve the downstream tasks instead of modifying the LLM weights. By treating the functions as learnable `agent parameters' and leveraging the fundamental idea of model training in artificial intelligence, we develop AgentOptimizer that employs the LLM to update agents' functions and devise an agent training algorithm with two strategies, roll-back, and early-stop, to streamline the training process. With extensive experiments, we showcase that the agent training paradigm could significantly improve the performance of representative LLM agents in various downstream tasks. We also study the behavior of the agent training regarding aspects like the learning curve and domain transferability.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Shaokun Zhang (15 papers)
  2. Jieyu Zhang (63 papers)
  3. Jiale Liu (18 papers)
  4. Linxin Song (18 papers)
  5. Chi Wang (93 papers)
  6. Ranjay Krishna (116 papers)
  7. Qingyun Wu (47 papers)
Citations (6)