Skip to content
/ EPO Public

Official code release of paper EPO: Hierarchical LLM Agents with Environment Preference Optimization

License

Notifications You must be signed in to change notification settings

kevinz8866/EPO

Repository files navigation

EPO: Hierarchical LLM Agents with Environment Preference Optimization

Qi Zhao*, Haotian Fu*, Chen Sun, George Konidaris

EMNLP 2024

Long-horizon decision-making tasks present significant challenges for LLM-based agents due to the need for extensive planning over multiple steps. In this paper, we propose a hierarchical framework that decomposes complex tasks into manageable subgoals, utilizing separate LLMs for subgoal prediction and low-level action generation. To address the challenge of creating training signals for unannotated datasets, we develop a reward model that leverages multimodal environment feedback to automatically generate reward signals. We introduce Environment Preference Optimization (EPO), a novel method that generates preference signals from the environment's feedback and uses them to train LLM-based agents. Extensive experiments on ALFRED demonstrate the state-of-the-art performance of our framework, achieving first place on the ALFRED public leaderboard and showcasing its potential to improve long-horizon decision-making in diverse environments.

Contents

Setup

Fist setup ALFRED first following E.T.

The setup this repo using commands below:

git clone https://github.com/kevinz8866/EPO
cd EPO
pip install -r requirements.txt

Agent Framework

Please check out the example configurations in /configs.

The launch command is

python -m run --cfg configs/example_policy.yaml

Please note that implementation for modules such as agent exploration, ALFRED interaction, etc are not currently included.

EPO

A demonstration is available in /epo_demo.

This EPO trainer demo is modified from the DPO Trainer implemented by huggingface.

Our Paper

Our paper is available on Arxiv. If you find our work useful, please consider citing us.

@article{zhao2024epo,
  title   = {EPO: Hierarchical LLM Agents with Environment Preference Optimization},
  author  = {Qi Zhao and Haotian Fu and Chen Sun and George Konidaris},
  journal = {The 2024 Conference on Empirical Methods in Natural Language Processing (EMNLP)},
  year    = {2024}
}

License

This project is released under the MIT license.

About

Official code release of paper EPO: Hierarchical LLM Agents with Environment Preference Optimization

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages