Language Model Augmented Decision Transformer for Multi-Task Offline Reinforcement Learning
Organizations: State University of New York at Binghamton · San Diego State University · LinkedIn · Lehigh University
Abstract
Offline multi-task reinforcement learning (MTRL) aims to learn a unified policy from heterogeneous offline datasets that generalizes across tasks. However, existing offline MTRL methods often struggle with two fundamental issues: severe per-task data scarcity and limited cross-task generalization. In this paper, we propose Language-Model Augmented Decision Transformer (LaMA-DT), a unified sequence-modeling framework that leverages a single large language model (LLM) for both trajectory augmentation and multi-task policy learning. LaMA-DT uses natural-language task descriptions to guide task-aligned trajectory augmentation through a set of supervised generation and alignment objectives, and incorporates a scoring-and-filtering mechanism to retain high-quality augmented trajectories. The same LLM is then repurposed as a language-conditioned Decision Transformer and fine-tuned on a mixture of real and augmented data. Experiments on Meta-World and MuJoCo multi-task benchmarks demonstrate that LaMA-DT consistently outperforms competitive baselines, particularly in low-data regimes, showing that language-guided data augmentation substantially improves cross-task generalization.
Figures & tables
| Task | CDS | MTBC | MTIQL | MTDIFF | MTDT | Prompt-DT | HarmoDT | LaMA-DT | |
|---|---|---|---|---|---|---|---|---|---|
| MW | ML5 | 50.7 3.3 | 46.2 2.8 | 61.1 4.5 | 76.0 2.8 | 74.5 4.4 | 76.8 3.0 | 78.9 3.8 | 83.4 2.9 |
| ML30 | 32.9 2.5 | 34.5 1.7 | 43.3 2.2 | 57.5 1.5 | 55.2 2.1 | 58.7 1.3 | 63.4 1.6 | 69.8 1.7 | |
| MuJoCo | Cheetah-vel | -134.5 15.8 | -148.4 11.2 | -142.0 14.4 | -186.2 8.2 | -170.1 17.9 | -127.6 10.9 | -86.6 7.7 | -73.5 12.5 |
| Cheetah-dir | 428.9 17.5 | 429.7 6.6 | 454.1 21.3 | 536.8 10.7 | 678.5 24.3 | 705.6 8.3 | 926.3 10.4 | 937.8 9.6 | |
| Ant-dir | 131.0 10.6 | 153.8 15.9 | 120.6 9.9 | 248.0 16.2 | 235.7 15.4 | 302.5 17.1 | 315.6 5.5 | 328.5 8.4 | |
| Method | ML30 | Cheetah-dir | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Sub-Optimal | Near-Optimal | Sub-Optimal | Near-Optimal | |||||||||
| 1% | 5% | 10% | 1% | 5% | 10% | 1% | 5% | 10% | 1% | 5% | 10% | |
| MTDT | 10.9 3.0 | 19.2 2.4 | 25.6 2.3 | 12.5 2.0 | 24.1 2.3 | 35.6 1.9 | 113.4 20.2 | 274.5 18.0 | 386.3 21.9 | 145.2 23.1 | 320.5 19.6 | 435.6 20.4 |
| Prompt-DT | 12.8 1.4 | 24.3 0.9 | 36.8 1.1 | 15.3 1.5 | 28.5 0.7 | 41.2 0.8 | 191.3 17.1 | 378.9 18.3 | 507.4 15.3 | 256.3 16.2 | 474.0 12.8 | 544.7 15.7 |
| HarmoDT | 12.1 1.6 | 27.0 1.4 | 42.6 1.5 | 22.4 1.1 | 36.1 0.9 | 46.8 0.9 | 185.2 12.3 | 452.2 17.5 | 526.8 13.9 | 260.7 11.2 | 540.3 9.8 | 592.0 10.3 |
| LaMA-DT | 15.7 1.7 | 39.1 1.5 | 51.8 1.7 | 38.4 1.2 | 52.6 0.9 | 61.5 1.0 | 225.9 12.7 | 521.5 14.0 | 654.4 9.2 | 450.6 15.1 | 720.8 9.4 | 803.9 8.9 |
| Task | w/o | w/o | w/o | w/o | w/o | w/o |
|---|---|---|---|---|---|---|
| ML30 | 61.7 1.3 | 60.5 2.1 | 56.4 2.8 | 66.3 1.6 | 63.8 2.0 | 65.0 2.3 |
| Cheetah-dir | 842.3 14.3 | 862.4 10.2 | 765.9 11.7 | 910.2 16.8 | 902.6 15.4 | 922.5 26.3 |
| Ant-dir | 259.0 7.0 | 281.3 8.5 | 247.3 9.6 | 310.8 12.3 | 313.9 10.4 | 322.4 16.2 |
| Source | Dyn. MSE | State KL vs. real | L2 Dist. from Dataset | Valid Coverage |
|---|---|---|---|---|
| Real expert (reference) | 0.0000 | 0.00 | — | 100% |
| MTDIFF ( He et al., 2023 ) | 0.0107 | 0.51 | 0.4552 | 102% |
| LaMA-DT (unfiltered) | 0.0089 | 0.42 | 0.4831 | 99% |
| LaMA-DT (filtered) | 0.0031 | 0.18 | 0.4376 | 109% |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Cheetah-dir | Cheetah-vel | Ant-dir | Meta-World ML30 | |
|---|---|---|---|---|
| Episodes / task | 50 | 50 | 50 | 50 |
| RTG target ( forward task) | 760 | per-task ref. velocity | per-task ref. dir. | 4,500 |
| RTG normalization | yes | yes | yes | yes |
| Provenance at test time | real | real | real | real |
| Parameter | Value |
|---|---|
| Backbone & tokenization | |
| Base LLM backbone | Llama 3.2 1B (frozen) |
| Number of layers / attention heads | 16 / 32 |
| Hidden size | 2048 |
| Activation (FFN) | SiLU |
| Numeric MLPs (state / action / return) | 1 layer, Tanh, |
| Temperature | ML30 | Cheetah-dir |
|---|---|---|
| 0.0 | 63.0 1.1 | 896.8 10.8 |
| 0.2 | 67.3 1.3 | 917.3 16.7 |
| 0.4 (default) | 69.8 1.7 | 937.8 9.6 |
| 0.8 | 59.6 2.2 | 874.9 15.0 |
| Method | ML30 | Cheetah-dir | ||
|---|---|---|---|---|
| NO | SO | NO | SO | |
| MTDT | 70.9 1.6 | 55.2 2.1 | 678.5 24.3 | 598.1 22.9 |
| PDT | 72.1 0.9 | 58.7 1.3 | 705.6 8.3 | 636.7 11.2 |
| HarmoDT | 82.7 1.2 | 63.4 1.6 | 926.3 10.4 | 872.4 13.8 |
| LaMA-DT | 88.6 1.5 | 69.8 1.7 | 937.8 9.6 | 912.3 14.9 |
| Backbone | Params | Average Return |
|---|---|---|
| GPT-2 | 124M | 386.2 |
| Qwen2.5-0.5B | 494M | 888.0 |
| Qwen2.5-1.5B | 1.5B | 917.0 |
| Llama 3.2 1B (default) | 1.24B | 937.8 |
| Description variant | ML30 (succ. %) | Cheetah-dir (return) |
|---|---|---|
| Full template (default) | 69.8 | 937.8 |
| Minimal (task name only) | 55.5 | 892.2 |
| Drop-expertise field | 63.0 | 920.3 |
| Noisy (typos + grammar errors) | 49.6 | 801.7 |
| Shortened paraphrase | 67.9 | 912.0 |
| Learnable task-ID embedding | 61.0 | 913.4 |
| Meta-World | MuJoCo | ||||
|---|---|---|---|---|---|
| Method | ML30 (un) | C-vel | C-dir | Ant-dir | Average |
| MTDT | 35.9 4.1 | -184.2 8.1 | 429.4 19.5 | 155.2 9.5 | 109.1 |
| PDT | 43.5 2.7 | -140.2 10.9 | 577.2 8.5 | 213.6 20.4 | 173.5 |
| LaMA-DT | 52.3 3.2 | -94.1 7.6 | 668.0 16.1 | 237.5 7.6 | 216.0 |
| Method | Cheetah-dir | ML30 |
|---|---|---|
| Full LaMA-DT | 521.5 | 39.1 |
| w/o augmentation | 359.6 | 29.8 |
| w/o shared-LoRA initialization | 514.9 | 37.0 |
Multi-Task RL
Multi-task reinforcement learning trains agents to solve related tasks by sharing policies, representations, or experience.
See all 90 papers