SMART: Self-supervised Multi-task pretrAining with contRol Transformers

Yanchao Sun, Shuang Ma, Ratnesh Madaan, Rogerio Bonatti, Furong Huang, Ashish Kapoor

In the domains of vision and language, the "foundation model" revolution is well underway. Models like BERT, GPT, and CLIP are pretrained on massive, unlabeled datasets to learn general representations that can be easily finetuned for specific downstream tasks. However, in the realm of sequential decision-making—such as robotics and continuous control—achieving a similar unified pretraining framework has proven exceptionally difficult.

A recent paper from researchers at the University of Maryland and Microsoft, titled SMART: Self-supervised Multi-task pretrAining with contRol Transformers, proposes a novel way to bridge this gap. The authors introduce a self-supervised framework that allows a "Control Transformer" to learn the fundamental physics of movement and control across multiple tasks, creating a versatile, resilient backbone for robotic agents.

The Challenge of Pretraining for Control

Pretraining representations for sequential decision-making is notoriously difficult due to three primary hurdles:

  1. Data Distribution Shift: In control tasks, the data collected depends entirely on the "policy" (the behavior) of the agent. If the agent's behavior changes between the pretraining phase and deployment, the model often fails to generalize.
  2. Task Discrepancy: Unlike natural language, where grammar and vocabulary are largely universal, different control tasks (e.g., making a robot walk versus spinning a mechanical finger) feature completely different action spaces, state dimensions, and goals.
  3. The Reward Trap: Traditional Reinforcement Learning (RL) relies heavily on reward signals. However, in real-world "offline" datasets, rewards are often sparse, noisy, or entirely absent, making reward-dependent pretraining brittle.

To overcome these challenges, the authors sought to create a representation that is versatile across tasks, generalizable to unseen environments, and resilient to low-quality training data.

The SMART Framework and Control Transformer

At the core of the SMART framework is the Control Transformer (CT). Unlike the well-known Decision Transformer, which explicitly incorporates reward signals into its input sequence, the CT is purposefully reward-agnostic. It processes only sequences of observations and actions.

The SMART pretraining and finetuning pipeline

By ignoring rewards during pretraining, SMART avoids overfitting to a specific task's goal. Instead, it learns how the environment works—the underlying dynamics of the world—rather than just how to maximize a specific score. During the finetuning phase, task-specific heads (and optional reward signals for RL) can be attached to the pretrained Control Transformer to solve downstream tasks efficiently.

Control-Centric Pretraining Objectives

To train the Control Transformer without explicit labels or rewards, the authors designed a novel Control-Centric Objective composed of three distinct self-supervised tasks:

The three control-centric pretraining objectives of SMART
  1. Forward Dynamics Prediction: The model predicts the next state given the current state and action. This teaches the transformer the "physics" and forward progression of the environment.
  2. Inverse Dynamics Prediction: The model infers which action was taken to transition from one state to the next. This instills an understanding of "local" controllability and action consequences.
  3. Random Masked Hindsight Control: Acting as a "BERT for robots," this objective masks out random actions and observations within a long sequence and tasks the model with reconstructing them. This forces the model to capture long-term temporal dependencies, effectively answering: "What sequence of actions is required to reach this future state?"

Experimental Setup and Key Insights

The researchers evaluated SMART using the DeepMind Control (DMC) Suite, a standard benchmark for continuous control. They pretrained the model on five distinct tasks (e.g., Cheetah-run, Walker-run) and evaluated it on both the seen tasks and five entirely unseen tasks (e.g., Pendulum-swingup, Finger-spin) to test zero-shot generalization.

Superior Efficiency and Generalization

SMART significantly outperformed training from scratch and other state-of-the-art pretraining methods (like ACL or ATC) in both Imitation Learning (IL) and Reinforcement Learning (RL) scenarios. When transferred to entirely new domains not present in the pretraining set, SMART provided a robust "warm start," leading to vastly accelerated learning compared to baseline models. The "Masked Hindsight" objective proved essential here, as it allowed the model to understand the global structure of a trajectory rather than just predicting the immediate next step.

Resilience to "Trash" Data

One of the most compelling findings was SMART's performance on low-quality data. The authors tested pretraining on "Exploratory" data (from an agent actively learning) versus "Random" data (completely random, low-quality movements). While most reward-dependent models collapse on random data due to a lack of meaningful signal, SMART maintained high performance. Because it only seeks to model the underlying dynamics of the body it controls, it can extract valuable representations even from suboptimal, random interactions.

Limitations and Future Directions

While SMART represents a significant step forward, the authors note a few areas for future exploration:

  • Model Capacity: Increasing the model's width (embedding size) eventually degraded performance, likely because the model began memorizing noise in high-dimensional visual inputs rather than learning generalizable features.
  • Visual Complexity: Although SMART handles RGB image inputs, future iterations could benefit from stronger spatial attention mechanisms to navigate highly cluttered or visually complex environments.
  • Scaling: The ultimate test for SMART will be scaling these control-centric objectives to massive, heterogeneous datasets collected from diverse real-world robot fleets, mirroring the scaling trajectory of Large Language Models.

Summary updated

BibTeX
@inproceedings{sun2023smart,
  author = {Yanchao Sun and Shuang Ma and Ratnesh Madaan and Rogerio Bonatti and Furong Huang and Ashish Kapoor},
  title = {{SMART: Self-supervised Multi-task pretrAining with contRol Transformers}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=9piH3Hg8QEf},
}
Figure