arXiv:2611.04031cs.CLNov 2026

Manuscript Offprint

arXiv:2611.04031

Language Model Augmented Decision Transformer for Multi-Task Offline Reinforcement Learning

Xinbo Zhao, Yuhang Liu, Xin Zhang, Lei Le, Zhaohan Xi, Yu Yang, Yingxue Zhang

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.

1 INTRODUCTION

Offline reinforcement learning (RL) (Levine et al., 2020) enables agents to learn high-quality decision policies directly from static datasets. To extend offline RL to more realistic applications, it is important to handle multi-task settings, where an agent must solve multiple related tasks that share state and action spaces but differ in goals, rewards, or context. This motivates offline multi-task RL (MTRL) (Yu et al., 2020b), which learns from heterogeneous offline datasets and aims to produce a single policy that can perform well across tasks. In practice, offline MTRL is limited by two tightly coupled challenges. First, per-task data is often scarce: each task may have only a small and fragmented dataset, since collecting trajectories for many tasks is expensive and often infeasible. Second, cross-task generalization is difficult: tasks vary in objectives, dynamics, and observation distributions, leading to substantial distribution shifts that hinder learning a single policy across tasks, especially when limited state-action coverage further amplifies these shifts.

Existing offline MTRL methods offer partial solutions, but typically target only one challenge or rely on strong data assumptions. For improving data use across tasks, CDS (Yu et al., 2021) transfers transitions from auxiliary tasks to a target task based on estimated usefulness. While effective when abundant and closely related auxiliary data are available, CDS struggles with cross-task generalization, as it requires training a separate model for each target task and degrades when auxiliary data are scarce or poorly matched. SRTD (Yoo et al., 2022) learns a shared latent skill space and performs data augmentation via imagined rollouts; however, learning a stable and transferable latent representation generally requires sufficient task-specific data. When per-task datasets are limited, the learned latent space becomes unreliable, reducing the effectiveness of the generated rollouts. A separate line of work builds on Decision Transformers (DTs) (Chen et al., 2021) and adapts them to multi-task learning to improve generalization through shared sequence modeling. For example, HarmoDT (Hu et al., 2024) improves parameter sharing by reducing gradient conflicts across tasks, and SoCo-DT (Wang et al., 2025) refines sharing via Fisher-information-guided soft masks. However, these DT-based MTRL methods still typically rely on having enough trajectories per task to learn transferable sequence representations; when each task has limited data, performance can drop sharply due to insufficient coverage and overfitting to narrow task-specific patterns. These gaps naturally raise a question: In offline MTRL under low-data regimes (i.e., with scarce task-specific data), how can we expand effective data coverage while achieving robust cross-task generalization?

A key observation is that, although per-task trajectories are limited, high-level task descriptions are almost always available. Such descriptions convey information such as the task name, goal, object identity, or expertise level, which can be succinctly expressed in natural language. This motivates our approach: use natural language as a task-specification medium to guide trajectory augmentation via large language models (LLMs), thereby improving multi-task policy learning in data-scarce scenarios. However, since LLMs are not pretrained on trajectory data, realizing this idea requires ensuring that augmented trajectories both remain faithful to limited real data while expanding state-action coverage, and stay aligned with task descriptions to prevent cross-task drift.

In this paper, we propose Language-Model Augmented Decision Transformer (LaMA-DT) for offline MTRL, which employs a single LLM for both trajectory augmentation and multi-task policy learning. To enable high-quality, task-aligned trajectory generation, the LLM is first fine-tuned across tasks using four carefully designed supervised objectives that jointly capture environmental dynamics and temporal dependencies in sequential decision-making. To further ensure semantic alignment between natural-language task descriptions and generated trajectories, LaMA-DT incorporates two additional task–trajectory alignment objectives. All six objectives are jointly optimized under a dedicated multi-objective fine-tuning strategy tailored for LLM-based trajectory learning. To ensure that only high-quality augmented trajectories are used for policy learning, we introduce a likelihood-based scoring-and-filtering mechanism that evaluates generated trajectories across all objectives and discards low-quality or task-misaligned samples. Finally, the same LLM is repurposed as a DT—a natural choice for sequence modeling—conditioned on natural-language task descriptions and fine-tuned on a mixture of real and high-quality augmented trajectories, resulting in robust cross-task generalization. Key contributions are summarized as follows:

  • We propose LaMA-DT, an LLM-based offline MTRL framework that unifies trajectory augmentation and multi-task policy learning. It addresses data scarcity by leveraging natural-language task descriptions to guide task-aligned trajectory augmentation via a set of objectives that capture task-specific data distributions and enforce semantic alignment.
  • To enable cross-task generalization in offline MTRL, LaMA-DT introduces an LLM-based policy learning mechanism that combines scored and filtered high-quality augmented trajectories with original data, conditioned on task descriptions, to fine-tune a DT initialized from the same LLM, yielding improved cross-task generalization.
  • LaMA-DT demonstrates consistent improvements over competitive baselines on Meta-World and MuJoCo multi-task benchmarks, with particularly strong gains in low-data regimes, highlighting that effective data augmentation substantially enhances multi-task learning performance¹.

References (80)