Skip to content

ICML'2024: HarmoDT: Harmony Multi-Task Decision Transformer for Offline Reinforcement Learning

License

Notifications You must be signed in to change notification settings

charleshsc/HarmoDT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HarmoDT: Harmony Multi-Task Decision Transformer for Offline Reinforcement Learning

Version License

Shengchao Hu1,2*, Ziqing Fan1,2*, Li Shen3,4, Ya Zhang1,2, Yanfeng Wang1,2, Dacheng Tao5

1 Shanghai Jiao Tong University, 2 Shanghai AI Laboratory, 3 Sun Yat-sen University, 4 JD Explore Academy, 5 Nanyang Technological University.

Contents

Overview

The purpose of offline multi-task reinforcement learning (MTRL) is to develop a unified policy applicable to diverse tasks without the need for online environmental interaction. Recent advancements approach this through sequence modeling, leveraging the Transformer architecture's scalability and the benefits of parameter sharing to exploit task similarities. However, variations in task content and complexity pose significant challenges in policy formulation, necessitating judicious parameter sharing and management of conflicting gradients for optimal policy performance.

In this work, we introduce the Harmony Multi-Task Decision Transformer (HarmoDT), a novel solution designed to identify an optimal harmony subspace of parameters for each task. We approach this as a bi-level optimization problem, employing a meta-learning framework that leverages gradient-based techniques. The upper level of this framework is dedicated to learning a task-specific mask that delineates the harmony subspace, while the inner level focuses on updating parameters to enhance the overall performance of the unified policy. Empirical evaluations on a series of benchmarks demonstrate the superiority of HarmoDT, verifying the effectiveness of our approach.

Quick Start

Download the dataset MT50 via this Google Drive link.

When your environment is ready, you could run the following script:

python main.py --seed 123 --data_path ./MT50 --prefix_name MT5 # MT30, MT50

Citation

If you find this work is relevant with your research or applications, please feel free to cite our work!

@inproceedings{HarmoDT,
    title={HarmoDT: Harmony Multi-Task Decision Transformer for Offline Reinforcement Learning},
    author={Hu, Shengchao and Fan, Ziqing and Shen, Li and Zhang, Ya and Wang, Yanfeng and Tao, Dacheng},
    booktitle={International Conference on Machine Learning},
    year={2024},
}

Acknowledgments

This repo benefits from DT and MTDiff. Thanks for their wonderful works!

About

ICML'2024: HarmoDT: Harmony Multi-Task Decision Transformer for Offline Reinforcement Learning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages