Retroformer: Retrospective Large Language Agents with Policy Gradient Optimization. Yao, W., Heinecke, S., Niebles, J. C., Liu, Z., Feng, Y., Xue, L., Murthy, R., Chen, Z., Zhang, J., Arpit, D., Xu, R., Mui, P., Wang, H., Xiong, C., & Savarese, S. 2023. cite arxiv:2308.02151
Paper abstract bibtex Recent months have seen the emergence of a powerful new trend in which large language models (LLMs) are augmented to become autonomous language agents capable of performing objective oriented multi-step tasks on their own, rather than merely responding to queries from human users. Most existing language agents, however, are not optimized using environment-specific rewards. Although some agents enable iterative refinement through verbal feedback, they do not reason and plan in ways that are compatible with gradient-based learning from rewards. This paper introduces a principled framework for reinforcing large language agents by learning a retrospective model, which automatically tunes the language agent prompts from environment feedback through policy gradient. Specifically, our proposed agent architecture learns from rewards across multiple environments and tasks, for fine-tuning a pre-trained language model which refines the language agent prompt by summarizing the root cause of prior failed attempts and proposing action plans. Experimental results on various tasks demonstrate that the language agents improve over time and that our approach considerably outperforms baselines that do not properly leverage gradients from the environment. This demonstrates that using policy gradient optimization to improve language agents, for which we believe our work is one of the first, seems promising and can be applied to optimize other models in the agent architecture to enhance agent performances over time.
@misc{yao2023retroformer,
abstract = {Recent months have seen the emergence of a powerful new trend in which large
language models (LLMs) are augmented to become autonomous language agents
capable of performing objective oriented multi-step tasks on their own, rather
than merely responding to queries from human users. Most existing language
agents, however, are not optimized using environment-specific rewards. Although
some agents enable iterative refinement through verbal feedback, they do not
reason and plan in ways that are compatible with gradient-based learning from
rewards. This paper introduces a principled framework for reinforcing large
language agents by learning a retrospective model, which automatically tunes
the language agent prompts from environment feedback through policy gradient.
Specifically, our proposed agent architecture learns from rewards across
multiple environments and tasks, for fine-tuning a pre-trained language model
which refines the language agent prompt by summarizing the root cause of prior
failed attempts and proposing action plans. Experimental results on various
tasks demonstrate that the language agents improve over time and that our
approach considerably outperforms baselines that do not properly leverage
gradients from the environment. This demonstrates that using policy gradient
optimization to improve language agents, for which we believe our work is one
of the first, seems promising and can be applied to optimize other models in
the agent architecture to enhance agent performances over time.},
added-at = {2023-08-17T15:24:17.000+0200},
author = {Yao, Weiran and Heinecke, Shelby and Niebles, Juan Carlos and Liu, Zhiwei and Feng, Yihao and Xue, Le and Murthy, Rithesh and Chen, Zeyuan and Zhang, Jianguo and Arpit, Devansh and Xu, Ran and Mui, Phil and Wang, Huan and Xiong, Caiming and Savarese, Silvio},
biburl = {https://www.bibsonomy.org/bibtex/2e42096dde65568ce7b949259c4fe83fd/vincentqb},
description = {Retroformer: Retrospective Large Language Agents with Policy Gradient Optimization},
interhash = {e2986a9c8fa6a42c7c52aa4dbd55fa20},
intrahash = {e42096dde65568ce7b949259c4fe83fd},
keywords = {rl},
note = {cite arxiv:2308.02151},
timestamp = {2023-08-17T15:24:17.000+0200},
title = {Retroformer: Retrospective Large Language Agents with Policy Gradient
Optimization},
url = {http://arxiv.org/abs/2308.02151},
year = 2023
}
Downloads: 0
{"_id":"eSDanTz5hgy3tZrBb","bibbaseid":"yao-heinecke-niebles-liu-feng-xue-murthy-chen-etal-retroformerretrospectivelargelanguageagentswithpolicygradientoptimization-2023","author_short":["Yao, W.","Heinecke, S.","Niebles, J. C.","Liu, Z.","Feng, Y.","Xue, L.","Murthy, R.","Chen, Z.","Zhang, J.","Arpit, D.","Xu, R.","Mui, P.","Wang, H.","Xiong, C.","Savarese, S."],"bibdata":{"bibtype":"misc","type":"misc","abstract":"Recent months have seen the emergence of a powerful new trend in which large language models (LLMs) are augmented to become autonomous language agents capable of performing objective oriented multi-step tasks on their own, rather than merely responding to queries from human users. Most existing language agents, however, are not optimized using environment-specific rewards. Although some agents enable iterative refinement through verbal feedback, they do not reason and plan in ways that are compatible with gradient-based learning from rewards. This paper introduces a principled framework for reinforcing large language agents by learning a retrospective model, which automatically tunes the language agent prompts from environment feedback through policy gradient. Specifically, our proposed agent architecture learns from rewards across multiple environments and tasks, for fine-tuning a pre-trained language model which refines the language agent prompt by summarizing the root cause of prior failed attempts and proposing action plans. Experimental results on various tasks demonstrate that the language agents improve over time and that our approach considerably outperforms baselines that do not properly leverage gradients from the environment. This demonstrates that using policy gradient optimization to improve language agents, for which we believe our work is one of the first, seems promising and can be applied to optimize other models in the agent architecture to enhance agent performances over time.","added-at":"2023-08-17T15:24:17.000+0200","author":[{"propositions":[],"lastnames":["Yao"],"firstnames":["Weiran"],"suffixes":[]},{"propositions":[],"lastnames":["Heinecke"],"firstnames":["Shelby"],"suffixes":[]},{"propositions":[],"lastnames":["Niebles"],"firstnames":["Juan","Carlos"],"suffixes":[]},{"propositions":[],"lastnames":["Liu"],"firstnames":["Zhiwei"],"suffixes":[]},{"propositions":[],"lastnames":["Feng"],"firstnames":["Yihao"],"suffixes":[]},{"propositions":[],"lastnames":["Xue"],"firstnames":["Le"],"suffixes":[]},{"propositions":[],"lastnames":["Murthy"],"firstnames":["Rithesh"],"suffixes":[]},{"propositions":[],"lastnames":["Chen"],"firstnames":["Zeyuan"],"suffixes":[]},{"propositions":[],"lastnames":["Zhang"],"firstnames":["Jianguo"],"suffixes":[]},{"propositions":[],"lastnames":["Arpit"],"firstnames":["Devansh"],"suffixes":[]},{"propositions":[],"lastnames":["Xu"],"firstnames":["Ran"],"suffixes":[]},{"propositions":[],"lastnames":["Mui"],"firstnames":["Phil"],"suffixes":[]},{"propositions":[],"lastnames":["Wang"],"firstnames":["Huan"],"suffixes":[]},{"propositions":[],"lastnames":["Xiong"],"firstnames":["Caiming"],"suffixes":[]},{"propositions":[],"lastnames":["Savarese"],"firstnames":["Silvio"],"suffixes":[]}],"biburl":"https://www.bibsonomy.org/bibtex/2e42096dde65568ce7b949259c4fe83fd/vincentqb","description":"Retroformer: Retrospective Large Language Agents with Policy Gradient Optimization","interhash":"e2986a9c8fa6a42c7c52aa4dbd55fa20","intrahash":"e42096dde65568ce7b949259c4fe83fd","keywords":"rl","note":"cite arxiv:2308.02151","timestamp":"2023-08-17T15:24:17.000+0200","title":"Retroformer: Retrospective Large Language Agents with Policy Gradient Optimization","url":"http://arxiv.org/abs/2308.02151","year":"2023","bibtex":"@misc{yao2023retroformer,\n abstract = {Recent months have seen the emergence of a powerful new trend in which large\r\nlanguage models (LLMs) are augmented to become autonomous language agents\r\ncapable of performing objective oriented multi-step tasks on their own, rather\r\nthan merely responding to queries from human users. Most existing language\r\nagents, however, are not optimized using environment-specific rewards. Although\r\nsome agents enable iterative refinement through verbal feedback, they do not\r\nreason and plan in ways that are compatible with gradient-based learning from\r\nrewards. This paper introduces a principled framework for reinforcing large\r\nlanguage agents by learning a retrospective model, which automatically tunes\r\nthe language agent prompts from environment feedback through policy gradient.\r\nSpecifically, our proposed agent architecture learns from rewards across\r\nmultiple environments and tasks, for fine-tuning a pre-trained language model\r\nwhich refines the language agent prompt by summarizing the root cause of prior\r\nfailed attempts and proposing action plans. Experimental results on various\r\ntasks demonstrate that the language agents improve over time and that our\r\napproach considerably outperforms baselines that do not properly leverage\r\ngradients from the environment. This demonstrates that using policy gradient\r\noptimization to improve language agents, for which we believe our work is one\r\nof the first, seems promising and can be applied to optimize other models in\r\nthe agent architecture to enhance agent performances over time.},\n added-at = {2023-08-17T15:24:17.000+0200},\n author = {Yao, Weiran and Heinecke, Shelby and Niebles, Juan Carlos and Liu, Zhiwei and Feng, Yihao and Xue, Le and Murthy, Rithesh and Chen, Zeyuan and Zhang, Jianguo and Arpit, Devansh and Xu, Ran and Mui, Phil and Wang, Huan and Xiong, Caiming and Savarese, Silvio},\n biburl = {https://www.bibsonomy.org/bibtex/2e42096dde65568ce7b949259c4fe83fd/vincentqb},\n description = {Retroformer: Retrospective Large Language Agents with Policy Gradient Optimization},\n interhash = {e2986a9c8fa6a42c7c52aa4dbd55fa20},\n intrahash = {e42096dde65568ce7b949259c4fe83fd},\n keywords = {rl},\n note = {cite arxiv:2308.02151},\n timestamp = {2023-08-17T15:24:17.000+0200},\n title = {Retroformer: Retrospective Large Language Agents with Policy Gradient\r\n Optimization},\n url = {http://arxiv.org/abs/2308.02151},\n year = 2023\n}\n\n","author_short":["Yao, W.","Heinecke, S.","Niebles, J. C.","Liu, Z.","Feng, Y.","Xue, L.","Murthy, R.","Chen, Z.","Zhang, J.","Arpit, D.","Xu, R.","Mui, P.","Wang, H.","Xiong, C.","Savarese, S."],"key":"yao2023retroformer","id":"yao2023retroformer","bibbaseid":"yao-heinecke-niebles-liu-feng-xue-murthy-chen-etal-retroformerretrospectivelargelanguageagentswithpolicygradientoptimization-2023","role":"author","urls":{"Paper":"http://arxiv.org/abs/2308.02151"},"keyword":["rl"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"misc","biburl":"http://www.bibsonomy.org/bib/author/zhang?items=1000","dataSources":["6yXn8CtuzyEbCSr2m"],"keywords":["rl"],"search_terms":["retroformer","retrospective","large","language","agents","policy","gradient","optimization","yao","heinecke","niebles","liu","feng","xue","murthy","chen","zhang","arpit","xu","mui","wang","xiong","savarese"],"title":"Retroformer: Retrospective Large Language Agents with Policy Gradient Optimization","year":2023}