Skip to main content
archive Search
Submit Donate Log in

Press Enter to search · Advanced search

Computer Science > Artificial Intelligence

arXiv:2402.11359 (cs)
[Submitted on 17 Feb 2024 (v1), last revised 30 Jul 2024 (this version, v4)]

Title:Offline Training of Language Model Agents with Functions as Learnable Weights

Authors:Shaokun Zhang, Jieyu Zhang, Jiale Liu, Linxin Song, Chi Wang, Ranjay Krishna, Qingyun Wu
View a PDF of the paper titled Offline Training of Language Model Agents with Functions as Learnable Weights, by Shaokun Zhang and 6 other authors
View PDF HTML (experimental)
Abstract:Researchers and practitioners have recently reframed powerful Large Language Models (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.
Comments: 22 pages, 10 figures
Subjects: Artificial Intelligence (cs.AI); Computation and Language (cs.CL)
Cite as: arXiv:2402.11359 [cs.AI]
  (or arXiv:2402.11359v4 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2402.11359
arXiv-issued DOI via DataCite

Submission history

From: Shaokun Zhang [view email]
[v1] Sat, 17 Feb 2024 18:31:21 UTC (816 KB)
[v2] Fri, 3 May 2024 06:26:33 UTC (1,009 KB)
[v3] Fri, 7 Jun 2024 23:49:18 UTC (822 KB)
[v4] Tue, 30 Jul 2024 18:22:00 UTC (854 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled Offline Training of Language Model Agents with Functions as Learnable Weights, by Shaokun Zhang and 6 other authors
  • View PDF
  • HTML (experimental)
  • TeX Source
view license

Additional Features

  • Audio Summary

Current browse context:

cs.AI
< prev   |   next >
new | recent | 2024-02
Change to browse by:
cs
cs.CL

References & Citations

  • SciX
  • Google Scholar
  • Semantic Scholar
Loading...

BibTeX formatted citation

Data provided by:

Bookmark

BibSonomy Reddit

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
We gratefully acknowledge support from our major funders, member institutions, , and all contributors.
About · Help · Contact · Subscribe · Copyright · Privacy · Accessibility · Operational Status (opens in new tab)
Major funding support from
Simons Foundation (opens in new tab) Simons Foundation International (opens in new tab) Schmidt Sciences (opens in new tab)