In the world of Reinforcement Learning (RL), "offline" is the ultimate challenge. Instead of learning by trial and error in a live environment, the agent must learn from a fixed, pre-collected dataset—essentially learning to drive by watching dashcam footage. While model-based methods (which learn a "simulator" of the world) are promising, they often crumble over long horizons due to compounding errors.
A new paper, "Scalable Offline Model-Based RL with Action Chunks (MAC)," introduces a clever way to bypass this "curse of horizon." By changing how models predict the future and how policies choose actions, the authors have set a new bar for long-horizon offline RL.
The Compounding Error Dilemma
The core of model-based RL is Value Expansion: the agent uses its learned model to "imagine" future trajectories and estimate their value.
There is a classic dilemma here:
- The Bias Problem: To get an accurate value estimate, you need to look far into the future (long rollouts). Short rollouts lead to "bootstrapping bias," where errors in the value function accumulate.
- The Compounding Error Problem: Standard models predict the next state based on the current state and one action. If you want to look 100 steps ahead, you have to call the model 100 times. Even a tiny error in step 1 gets amplified in step 2, and by step 100, the "imagined" state is completely disconnected from reality.
Most offline RL algorithms struggle to scale to tasks requiring hundreds or thousands of steps because they cannot resolve this trade-off.
The MAC Recipe
The authors propose two primary innovations to break this cycle:
1. Action-Chunk Dynamics
Instead of a single-step model, MAC learns an Action-Chunk Model. It takes the current state and a sequence of $n$ actions (an "action chunk") and directly predicts the state $n$ steps later.
By "jumping" $n$ steps at a time, the number of recursive model calls is reduced by a factor of $n$. This drastically mitigates compounding errors, allowing the agent to imagine much further into the future with higher fidelity. The paper demonstrates that while learning a multi-step model is technically harder, the reduction in compounding error far outweighs the increased difficulty of the learning task.
2. Flow Rejection Sampling
In offline RL, you cannot simply "maximize reward" because the optimizer will find "adversarial" actions—actions the model thinks are good only because it hasn't seen them before (out-of-distribution).
MAC solves this by training an expressive Flow Matching behavioral policy to capture the multi-modal distribution of action chunks in the dataset. Instead of traditional policy gradients, MAC samples candidate action chunks from this behavioral policy and simply picks the one that yields the highest value according to the learned value function. This ensures the agent stays "near the data" while still being goal-oriented.
Key Results on OGBench
The researchers evaluated MAC on OGBench, a suite of highly challenging, large-scale robotic tasks with datasets containing up to 100 million transitions. These include high-dimensional humanoid navigation, complex object manipulation, and combinatorial puzzle-solving.
- Long-Horizon Dominance: On the most difficult OGBench tasks (like
puzzle-4x5), MAC achieved a 99% success rate, while almost all other model-based baselines (like MOPO or MOBILE) completely failed at 0%. - Outperforming Model-Free: Even compared to state-of-the-art model-free methods like SHARSA, MAC performed better on complex manipulation tasks like
cube-octuple. - Scaling: MAC is one of the few model-based algorithms shown to effectively consume and benefit from 100M-scale datasets, showing a clear path toward foundation models for decision-making.
Limitations and Future Work
While MAC excels at manipulation and puzzle tasks, it still lags behind some model-free methods in "contact-rich" locomotion (like the Humanoid Maze). The authors attribute this to the erratic nature of contact dynamics, which are notoriously hard for any multi-step model to predict accurately. Additionally, training flow models and performing rejection sampling is computationally heavier than simple MLP-based RL.
Future work may integrate more advanced generative models (like latent diffusion) into the dynamics model to further close the gap in locomotion tasks and improve computational efficiency.
Summary updated