arXiv:2610.11085cs.LGOct 2026

Manuscript Offprint

arXiv:2610.11085

DaCe-DT: Data-Centric Offline Multi-Task Reinforcement Learning via Adaptive Prompts and Trajectory Correction for Heterogeneous Tasks

Xinfei Wang, Shanchen Pang, Chenhao Zhang, Shudong Wang, Wenhao Ji, Haiyuan Gui, Meng Han, Xiaojian Liao

Abstract

Offline multi-task reinforcement learning (Offline MTRL) heavily depends on the quality and distribution of pre-collected data. However, existing methods mainly focus on algorithmic optimization, with less emphasis on data-level improvements to enhance learning ability and generalization performance. This paper, from a data perspective, reveals three key bottlenecks that limit Offline MTRL performance: (i) ineffective utilization of prompts length under diverse task complexities, and (ii) semantic irrelevance of randomly sampled prompt segments, (iii) misleading supervision induced by fragmented and discontinuous trajectories. To address these challenges, we propose DaCe-DT, a robust offline MTRL framework designed to be insensitive to heterogeneous task complexities and data quality, featuring length-gated prompt masking (LGPM), retrieval-augmented prompt construction (RAPC), and value-adaptive return calibration (VARC). Together, these mechanisms enable DaCe-DT to deliver data-centric prompt adaptation and trajectory refinement, resulting in robust multi-task generalization and stable policy learning amid heterogeneous offline data and tasks. Experimental results on Meta-World show that DaCe-DT consistently outperforms state-of-the-art methods, achieving an average improvement of 11.73% on optimal datasets and an improvement of 13.34% on suboptimal datasets, demonstrating its effectiveness in learning stably from imperfect data and improving overall multi-task performance.

1 Introduction

Offline reinforcement learning (RL) [17] enables agents to learn effective policies from static, pre-collected datasets without any active environment interactions. This property offers significant advantages in safety-critical or data-intensive domains such as robotics [15], autonomous driving [19], and healthcare [6] by reducing exploration risks and data collection costs. However, traditional offline RL methods typically learn each task in isolation and struggle to generalize their learned knowledge to new tasks. When faced with a novel task [23], a standard offline RL policy must be retrained from scratch, limiting its scalability in complex multi-task environments. On the other hand, multi-task reinforcement learning (MTRL) addresses cross-task generalization by training a single model on multiple tasks jointly, encouraging the reuse of learned skills and improving data efficiency. Combining these two paradigms, offline multi-task reinforcement learning (Offline MTRL) leverages diverse offline datasets for knowledge transfer without additional interaction, and has attracted growing attention for learning a single versatile policy across tasks.

Recent advances in sequence modeling provide a promising pathway for offline RL[21, 28, 27]. In particular, the Decision Transformer (DT) [2] formulates offline RL as return-conditioned conditional sequence generation over trajectories, achieving impressive results in single-task settings. Building

Submitted to 40th Conference on Neural Information Processing Systems (NeurIPS 2026). Do not distribute.

on this idea, prompt-based Decision Transformers[25] extend DT to multi-task settings by prepending task-specific context prompt (e.g., example transitions or a task descriptor) to the input sequence, enabling task inference and task-conditioned behavior. A growing body of work has explored prompt-based DT variants for offline MTRL. These methods address multi-task challenges from different angles: Prompt-DT[25] and Prompt-tuning DT[12] enrich task-relevant context and background evidence through prompt construction; HarmoDT [11] mitigates cross-task gradient conflicts via mask-/subnetwork-based designs; and M3DT [13] improves capacity and scalability by leveraging a Mixture-of-Experts (MoE) mechanism to support a larger number of tasks. Despite their successes, most existing efforts predominantly emphasize architectural or algorithmic modifications, while largely overlooking a fundamental data-centric challenge: how to exploit static offline data under pronounced heterogeneity across (and within) tasks. By revisiting these representative works through a data-centric lens, we identify three key bottlenecks that constrain learnability and generalization, motivating our three core observations.

First, data quality is highly heterogeneous across tasks and even across training mini-batches, and the uniform prompt length limits the model's generalization and learning efficiency. For example, the default length of the current work is 5. On Coffee-Push task, using an empirically tuned “optimal” fixed length (30) improves the single-task success rate by 60% over the state-of-the-art baseline. Further, with our adaptive prompting strategy, the success rate on Coffee-push further increases to 100%; meanwhile, across all 50 tasks, our approach improves the overall average success rate by 9.60% over the state of the art. (see Observation I, §3.1)

Second, randomly sampled prompt segments disregard their semantic relevance to the current decision state, limiting effective utilization of heterogeneous offline data. As shown in Fig. 1(c)–(d), RAPC improves the final success rate by 8.4% over random selection and 9.6% over fixed selection, while increasing the mean prompt-trajectory similarity from 0.462 and 0.361 to 0.741, respectively. These results show that a static, context-agnostic prompt cannot capture the behavioral evidence most aligned with the current policy state, leaving informative high-quality trajectory segments in the offline dataset underexploited. (see Observation II, §3.2)

Third, existing return-conditioned sequence modeling methods for offline MTRL still lack reliable trajectory stitching capability. Although value learning has been effective for stitching in single-task offline RL [26], extending it to offline MTRL is non-trivial. For example, MTIQL [8] relies on task-specific value functions and stitching modules, introducing considerable overhead and making it difficult to directly apply to prompt-based sequence models without explicit task IDs. Moreover, direct value-based correction under heterogeneous task data may induce biased reachable-return estimates, causing OOD conditioning and false stitching points. (see Observation III, §3.3)

To address these data-centric bottlenecks in Offline MTRL, we propose DaCe-DT, a unified framework that explicitly adapts context construction and trajectory composition to heterogeneous offline data. DaCe-DT integrates three key mechanisms: (1) Length-Gated Prompt Masking (LGPM), which learns a task-specific effective prompt length via a differentiable gating parameter, adaptively suppressing redundant or insufficient context for each task; (2) Retrieval-Augmented Prompt Construction (RAPC), which replaces the static prompt at each step with the most semantically relevant high-return trajectory segment, retrieved via the model's own GPT-2 embedding layer; and (3) Value-Adaptive Return Calibration (VARC), which trains a task-conditioned value function with per-task adaptive expectile parameters to calibrate achievable returns at inference, enabling reliable trajectory stitching while avoiding OOD conditioning.

Beyond RTG calibration, VARC also provides return-level guidance for prompt retrieval by identifying high-quality trajectory segments consistent with the current return target. In DaCe-DT, RAPC retrieves semantically relevant high-return segments, VARC filters them according to achievable-return consistency, and LGPM trims the retrieved prompt to the task-specific effective length. This coordinated design unifies adaptive context construction and reliable trajectory stitching. On the Meta-World benchmark [29], DaCe-DT improves over the state-of-the-art HarmoDT [11] by 11.73% on the optimal dataset and by 13.34% on the suboptimal dataset.

In summary, our contributions are as follows:

• We identify, from a data-centric perspective, three key bottlenecks constraining Offline MTRL performance: prompt length mismatch, semantic irrelevance of randomly sampled prompts, and trajectory fragmentation.

Figure

Figure 1: (a) Fixed-length prompt sweep on Reach and Coffee-Push (MT50) shows each task's "optimal" K. (b) On Coffee-Push, dynamic prompting outperforms fixed K=5 and empirically tuned K=30. (c) Comparison of different prompt selection mechanisms in PromptDT on MT30 (curves are smoothed). (d) Cosine similarity between selected prompts and the current inference trajectory under different prompt selection methods.

• We propose three data-centric mechanisms—LGPM, RAPC, and VARC—to address prompt length mismatch, semantic irrelevance, and trajectory fragmentation, respectively.

• We conduct extensive experiments on multiple task combinations of the Meta-World benchmark, demonstrating consistent improvements over state-of-the-art methods across datasets of varying quality.

References (29)