MAGE: Multi-scale Autoregressive Generation for Offline Reinforcement Learning

Chenxing Lin, Xinhui Gao, Haipeng Zhang, Xinran Li, Haitao Wang, Songzhu Mei, Chenglu Wen, Weiquan Liu, Siqi Shen, Cheng Wang

Introduction

Offline Reinforcement Learning (RL) presents the unique challenge of learning a high-performing policy entirely from a fixed dataset, without any further interaction with the environment. While generative models have shown significant promise in this domain due to their ability to model complex trajectory distributions, they frequently stumble when faced with long-horizon tasks characterized by sparse rewards—such as a robot needing to execute a lengthy sequence of precise movements to receive a single "success" signal.

Existing generation-based approaches typically suffer from two main flaws:

  1. Local Bias: Standard autoregressive models, like the Decision Transformer, generate trajectories step-by-step. Over long sequences, this often results in losing sight of the "big picture" or overarching goal.
  2. Global Incoherence: Diffusion-based models (like the Decision Diffuser) can generate locally plausible trajectory segments, but these segments often fail to stitch together into a globally coherent, executable plan.

While some hierarchical methods attempt to solve this by decomposing problems into sub-goals and actions, these rigid two-layer structures are difficult to optimize and fail to capture the continuous, multi-scale nature of real-world behavior. To address these limitations, researchers have introduced MAGE (Multi-scale Autoregressive GEneration), a novel offline RL framework that generates trajectories in a "top-down," coarse-to-fine manner.

The MAGE Architecture

Inspired by visual autoregressive models, MAGE introduces a hierarchical approach that models temporal dependencies at multiple scales. Its architecture is built on three core pillars:

  • Multi-scale Trajectory Autoencoder (MTAE): This component utilizes a VQ-VAE-style architecture to encode continuous trajectories into a hierarchy of discrete latent "tokens." Coarse-scale tokens capture long-term dependencies (the macroscopic plan), while fine-scale tokens encapsulate short-term details (the microscopic movements).
  • Multi-scale Transformer: Instead of predicting the next state sequentially in time, this transformer autoregressively generates the entire trajectory representation across different scales. It first establishes a macroscopic outline and then progressively refines it through iterative rounds of generation.
  • Condition-guided Refinement: To ensure the generated plan is executable from the agent's current state, MAGE employs a condition-guided decoder with an adapter module. This module modulates the internal representations based on the current state and the target return, ensuring the plan remains grounded in the agent's reality.

Finally, a Latent Inverse Dynamics Model is used to determine the specific action to take based on the generated multi-scale latent representation, translating the plan into concrete steps.

Comparison of MAGE with Decision Transformer and Decision Diffuser.

Experimental Evaluation

The authors evaluated MAGE against 15 baseline algorithms across five diverse offline RL benchmarks, ranging from standard locomotion to highly complex manipulation and navigation tasks:

  • Adroit: High-dimensional dexterous robotic hand manipulation (e.g., Pen, Door, Hammer).
  • Franka Kitchen: Sequential household tasks requiring multiple steps.
  • Maze2D, Multi2D, & AntMaze: Navigation tasks requiring long-range planning in complex layouts.
  • MuJoCo (Gym): Standard locomotion tasks with dense rewards.
  • OGBench: Extremely long-horizon and sparse-reward maze environments.

Key Results

MAGE achieved state-of-the-art results on nearly all long-horizon, sparse-reward benchmarks evaluated:

  • Superior Performance: On the challenging Adroit benchmark, MAGE achieved an average score of 66.9, significantly outperforming the next best baseline (IQL at 53.4) and nearly doubling the performance of some hierarchical diffusion methods. In Franka Kitchen, it reached an average score of 88.8, compared to 72.5 for the best baseline.
  • Qualitative Success: In complex maze games requiring the collection of multiple items before reaching a goal, MAGE consistently found the items and reached the goal without exhibiting failure modes like walking through walls, which plagued baseline models.
  • Inference Efficiency: Unlike diffusion models that require many iterative denoising steps, MAGE’s autoregressive scale-wise generation is highly efficient. It proved to be approximately 50x faster than Hierarchical Diffuser (HD) and 80x faster than Decision Diffuser (DD), maintaining a low inference time of ~27ms per step.

Key Insights and Future Directions

The success of MAGE highlights several crucial insights for offline RL. First, a top-down generation approach—sketching the trajectory first and refining it later—maintains global coherence far better than step-by-step models. Second, modeling inverse dynamics in the latent space is more effective than predicting actions directly from raw states or fully decoded trajectories. Finally, ablation studies confirmed that performance improves as the number of temporal scales increases, proving that multi-resolution modeling is vital for capturing complex behaviors.

While MAGE sets a new standard, the authors note a natural trade-off: committing to a global plan at a coarse scale can sometimes limit the flexibility of fine-scale refinements. Addressing this in "ultra-long" scenarios remains an open research problem. Future work may also explore extending this multi-scale mechanism to multi-agent reinforcement learning, where coordinating intricate patterns between multiple actors relies heavily on capturing structure at various temporal resolutions.

Summary updated

BibTeX
@inproceedings{lin2026mage,
  author = {Chenxing Lin and Xinhui Gao and Haipeng Zhang and Xinran Li and Haitao Wang and Songzhu Mei and Chenglu Wen and Weiquan Liu and Siqi Shen and Cheng Wang},
  title = {{MAGE: Multi-scale Autoregressive Generation for Offline Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=32BLpC50V0},
}
Figure