Skip to content

LaMA-DT: One LLM for Trajectory Augmentation and Multi-Task Offline RL

THE ARGUMENT

LaMA-DT's real claim is not that a language model replaces data collection, but that when per-task trajectories are scarce while task descriptions are cheap and available, using natural language as the task-specification channel and letting a single LLM both generate and act buys better cross-task generalization — provided you invest in alignment objectives and a scoring filter, otherwise you get trajectories that are physically plausible and semantically off-target.

On this page

You have a robot arm that must learn several tasks, each recorded as only a few successful trajectories, and your team has to choose: pay for another collection round, or let an off-the-shelf large language model fill in the missing data. The default instinct is that generated data cannot be trusted and money should go to collection. This paper tests that instinct directly. It has one large language model write extra trajectories from a plain-language task description, score and discard the bad ones, then repurpose that same model into a policy that reads the description and emits actions. It compares against seven baselines on two multi-task benchmarks, Meta-World and MuJoCo, and reports the biggest advantage where data is thinnest. Below: how the pipeline works, which numbers actually come from the paper, and where the method stops helping.

The real problem is not model size, it is trajectories per task

The paper frames offline multi-task reinforcement learning (MTRL) as follows: you are given a set of tasks, each with its own small offline dataset of recorded trajectories; tasks share a state space and an action space but may differ in reward function or transition dynamics; the goal is a single policy that performs well across the whole task set [1]. In plain terms: not one model per task, but one model that reads a task description and gets to work. The world is shared; the objectives are not.

Two difficulties are tightly coupled. First, per-task data is scarce: collecting trajectories for many tasks is expensive and often infeasible, so each task ends up with a small and fragmented dataset. Second, cross-task generalization is hard: tasks differ in objectives, dynamics and observation distributions, producing substantial distribution shift, and limited state-action coverage amplifies that shift further [1]. The two feed each other — less data means weaker transferable representations, and weaker representations mean more reliance on each task's own data.

The paper reviews prior families with specific criticisms. CDS transfers transitions from auxiliary tasks to a target task based on estimated usefulness; it works when auxiliary data is abundant and closely related, but it requires training a separate model per target task and degrades when auxiliary data is scarce or poorly matched. SRTD learns a shared latent skill space and augments data with imagined rollouts, but a stable transferable latent representation generally needs sufficient task-specific data; with little per-task data the latent space becomes unreliable and the generated rollouts suffer. Decision-Transformer-based methods — HarmoDT reduces gradient conflicts across tasks, SoCo-DT refines sharing with Fisher-information-guided soft masks — still assume enough trajectories per task to learn transferable sequence representations, and can drop sharply or overfit to narrow task-specific patterns when data is limited [1].

The paper's key observation: trajectories are scarce, but high-level task descriptions are almost always available — task name, goal, relevant objects, environmental conditions, typical performance. All of that can be written as one sentence of natural language. So language becomes the medium for specifying a task, and a large language model generates additional task-aligned trajectories to expand effective coverage [1]. This is worth taking seriously because it does not assume you have more data; it assumes you have a sentence describing the task, which in most real projects you do.

Three stages: teach the model to write trajectories, filter them, then let it act

LaMA-DT uses one large language model for two jobs: trajectory generator first, policy second, with a scoring-and-filtering step stitching them together. The paper describes three stages [1]:

  • Stage I, multi-objective fine-tuning: six objectives in total — four trajectory-generation objectives and two task-trajectory alignment objectives — trained as objective-specific LoRA adapters plus one shared LoRA adapter. LoRA is a fine-tuning method that trains a small set of extra parameters while leaving the base weights untouched, so one backbone can carry several skill plug-ins.
  • Stage II, data preparation: candidate trajectories are generated per task with O3 (forward generation), scored by aggregated multi-objective likelihood, and only the top-K are retained and merged with the original offline data. Likelihood here just means how plausible the model considers a given trajectory.
  • Stage III, multi-task policy learning: the same LLM plus the shared LoRA adapter is repurposed as a prompt-conditioned Decision Transformer and fine-tuned on a mixture of real and high-quality augmented data, conditioned on task description p_i and a provenance token z_prov. A Decision Transformer treats reinforcement learning as sequence prediction: feed in history, state and return-to-go, and autoregressively predict the next action.

Task descriptions are not free-form; the paper uses a fixed template whose placeholders are deterministically filled from task metadata [1]:

This is the [task_name], and its goal is to [task_goal].
The environment is [environment_description].
and episodes run up to [max_episode_length] steps.
The trajectories show [expertise_level] performance.

Two engineering details are worth recording. First, the provenance token z_prov: during policy training the model can tell whether a trajectory was really collected or model-generated, which keeps a lineage channel in the mixed dataset instead of pretending synthetic data is fully equivalent to real data. Second, the appendix discusses few-shot adaptation to unseen tasks (B.5) and the relationship between adapter count and computational cost (F.7) — meaning the cost of this method sits in adapters and generation volume, not in architectural surgery.

What each of the six training objectives does, with the paper's own prompts

The paper designs four trajectory-generation objectives O1-O4 to capture environmental dynamics, temporal dependencies in sequential decision-making, and task-specific data distributions; then adds two task-trajectory alignment objectives O5-O6 that explicitly bind generated trajectories to their natural-language descriptions. All six are optimized jointly under a dedicated multi-objective fine-tuning strategy [1]. The prompts below are quoted from the paper.

IDObjectivePrompt as given in the paperWhat it is for
O1Dynamics predictionPredict the next state given the current state and action (s,a).Ground the model physically so it does not violate joint limits or gravity
O2Trajectory interpolationFill in the missing part of the trajectory given the start state and action (s0,a0) and the final state sT.Preserve local temporal consistency and reduce long-horizon error accumulation
O3Trajectory forward generationGenerate the whole trajectory until termination given the start state and action (s0,a0).Capture long-horizon dependencies; this is the objective actually used in Stage II to produce candidates
O4Trajectory backward generationReconstruct the trajectory backwards from the final state sT.Reason back from the goal so trajectories do not drift off-task
O5Trajectory explanationExplain the following trajectory in natural language.Distinguish trajectories by purpose rather than by motion similarity
O6Description-based rolloutGiven task description p_i, initial state s0 and expected return r, generate a trajectory that fulfills p_iTurn semantic understanding into conditional planning

Why add O5 and O6 at all? The paper's reason is blunt: O1-O4 rely mainly on limited task-specific trajectories as supervision and never explicitly enforce alignment between generated trajectories and the intended description p_i. The model can therefore produce coherent, physically plausible trajectories that simply ignore the task description — the paper calls this task-trajectory drift. That is especially damaging in multi-task settings, where different tasks often share similar state-action distributions while differing fundamentally in their goals, so similarity of motion tells you nothing about whether the right task was performed [1].

Scoring and filtering: what makes a generated trajectory admissible

Generation is not acceptance. The paper introduces a likelihood-based scoring-and-filtering mechanism that evaluates generated trajectories across all objectives and discards low-quality or task-misaligned samples, keeping only the top-K [1]. The appendix describes this scorer as a budget-cheap reranker: it does not require training a separate judge model, because it reuses the existing multi-objective likelihood.

Filtering also needs evidence that what survives actually resembles real data. Appendix E.6 defines four augmentation-quality metrics and how to compute them, with the directions as stated in the paper [1]:

  • Dyn. MSE: one-step dynamics fidelity, lower is better (down), measuring whether generated transitions obey the environment's next-state evolution.
  • State KL vs. real: KL divergence between generated and real state distributions, lower is better (down).
  • L2 Dist. from Dataset: L2 distance from generated samples to the dataset, used to see how far generated content drifts from real data.
  • Valid Coverage: how much of the state-action space the augmented data actually covers, higher is better (up).

These four pull against each other. Optimize only Dyn. MSE and State KL and the model collapses toward copying existing data, so coverage does not grow; optimize only Valid Coverage and you get physically invalid artifacts. LaMA-DT ranks candidates by the joint likelihood over six objectives, which is essentially a trade-off between looking real and spreading out. The paper checks this in its ablation study (Q5) and augmentation-quality analysis (Q6) [1].

Which seven baselines it is compared against on Meta-World and MuJoCo

Experiments cover two multi-task benchmarks: Meta-World and MuJoCo, with environment details, dataset construction and task families in Appendices C.1 and C.2 [1]. There are seven baselines, spanning data sharing, behavior cloning, offline RL and Decision Transformer lines:

  • CDS (Conservative Data Sharing): shares transitions across tasks by estimated usefulness.
  • MTBC (Multi-Task Behavior Cloning): the plain imitation baseline.
  • MTIQL (Multi-Task Implicit Q-Learning): offline RL's IQL moved to the multi-task setting.
  • MTDIFF: a diffusion-based multi-task policy method.
  • MTDT (Multi-Task Decision Transformer): the multi-task version of DT.
  • Prompt-DT (PDT): a prompt-conditioned Decision Transformer.
  • HarmoDT: improves parameter sharing by reducing gradient conflicts across tasks.

The reported conclusion is that LaMA-DT consistently outperforms these competitive baselines on both benchmarks, with particularly strong gains in low-data regimes (examined separately under Q2), indicating that language-guided data augmentation substantially improves cross-task generalization [1]. Beyond the main results, the paper studies robustness to data quality (Q3), the effect of augmentation ratio (Q4), ablations (Q5) and augmentation quality (Q6), plus appendix experiments on training dynamics, sensitivity to generation temperature, dataset expertise, LLM backbone choice, robustness to task-description variations, generalization to unseen tasks, and low-data component analysis with computational cost [1].

One caveat matters for anyone citing this: the excerpt this analysis is based on cuts off before the numeric results tables. The directional claims above are the paper's own summary, not figures I transcribed. Any statement of the form 'it gained N points on Meta-World' has to be checked against the original tables; this write-up deliberately gives no percentages without a source.

Where this method stops helping

First, it depends on task descriptions. The whole chain — generation, alignment, conditioned policy — is conditioned on p_i. If descriptions are vague, or the task boundary is still moving, the alignment objectives O5-O6 have no reliable supervision signal and drift risk falls back to the level of O1-O4 alone. Appendix F.5 runs robustness experiments on paraphrased task descriptions, which shows the authors know this is the fragile link; robustness is not immunity [1].

Second, it depends on serializing states, actions and rewards into tokens a language model can consume. Appendix E.1 covers the backbone, LoRA and numeric tokenization. That imposes a hidden constraint: with high-dimensional states or continuous high-precision action vectors, serialization and reconstruction lose precision, and dynamics fidelity (Dyn. MSE) is the first metric to suffer.

Third, evaluation covers only Meta-World and MuJoCo, both simulated multi-task benchmarks in a shared-state-action-space setting. Real robots, tasks whose state spaces do not match, or very large task counts are not evidenced here. This is not an accusation of a flaw; it is a reminder not to extrapolate a consistent simulated gain into a production claim.

Fourth, the cost sits in generation and adapters. Stage II generates candidates per task and then scores and ranks them; Stage I maintains one LoRA per objective plus a shared one, and Appendix F.7 discusses adapter count versus computational cost. You save on collection and pay in inference and fine-tuning compute — the two sides of the same coin.

The last boundary is the easiest to overlook: augmented data is still the model's re-expression of your data. Even when scoring filters out clearly misaligned samples, the survivors carry the backbone's priors. The provenance token z_prov is itself an admission that synthetic and real data should not be treated as the same thing. If your downstream task is highly sensitive to out-of-distribution behavior, mixing in a small fraction first and watching a held-out real validation set beats a wholesale replacement.

References

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

Read next

All articles

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…