Emergence of Abstract State Representations in Embodied Sequence Modeling

Tian Yun, Zilai Zeng, Kunal Handa, Ashish V. Thapliyal, Bo Pang, Ellie Pavlick, Chen Sun

TL;DR

Researchers have discovered that Transformer models trained for embodied tasks (like navigating a grid world) don't just memorize action sequences; they actually build internal "world models." By testing a "blindfolded" agent, the study proves that these models implicitly reconstruct their environment's state, and that natural language instructions are the secret sauce that helps these abstract representations emerge.

What Problem Does This Paper Address?

In the world of AI, "sequence modeling"—the same tech behind ChatGPT—is being applied to robotics and decision-making. We treat an agent's actions as tokens in a sequence, just like words in a sentence. While these models perform impressively, a nagging question remains: Are they actually understanding the world, or are they just "stochastic parrots" of action sequences?

If a model only learns "surface statistics" (e.g., "after turning left, I usually move forward"), it will fail the moment the environment changes slightly. To be truly robust, an agent needs abstract state representations—an internal map of where it is and what the world looks like. This paper investigates whether these internal maps emerge naturally from training on navigation tasks.

Methods

The researchers used the BabyAI environment, a grid world where agents follow language instructions (like "go to the red ball").

To see if the model was truly "thinking," they designed two main setups:

  1. Regular Setup: The model sees the current grid at every step.
  2. "Blindfolded" (Missing-State) Setup: The model only sees the initial layout and the language instruction. It must predict all subsequent actions without seeing the updated grid.

To peek inside the Transformer's "brain," they used Probing. They froze the trained Transformer and trained a tiny, separate neural network (a probe) to try and reconstruct the current board layout using only the Transformer's internal activations. If the probe can accurately draw the board, it proves the Transformer was tracking that information all along.

Figure 2: An overview of our model architecture. Our Transformer-based sequence model trains on a sequence of states, actions and language instruction tokens, with the objective of predicting next action tokens given past experiences and the language instruction.

Datasets

  • BabyAI: A standard platform for grounded language learning.
  • GoToLocal: A simple level with one room and one goal.
  • MiniBossLevel: A complex level with four rooms, locked doors, and multi-step tasks (e.g., "pick up the key, then open the door").
  • Training Data: 1 million successful trajectories generated by a bot for each environment.

Key Insights and Ideas

  • The "Blindfolded" Success: Even when the model couldn't see the intermediate states, it could still navigate effectively. This suggests it was "hallucinating" or tracking the state of the world internally to decide its next move.
  • Language is the Catalyst: One of the most striking findings was that language instructions are essential for learning object properties. Without the instruction "go to the red ball," the model struggled to internally represent the colors and types of objects on the board. Language provides the "grounding" that links abstract symbols to spatial reality.
  • Layer-wise Specialization: The researchers found that different layers of the Transformer focus on different things. In the blindfolded model, deeper layers actually got better at reconstructing the global state (like the agent's location), whereas, in models that could see the board, deeper layers focused more on the immediate policy (what to do next).
Figure 3: An overview of our probing pipeline. We train a 2-layer MLP probe to reconstruct intermediate states from the internal activations in our model.

Key Results

  • High-Fidelity Reconstruction: In the GoToLocal environment, the probe could predict the agent's location with 99.5% accuracy from the blindfolded model's activations.
  • Competitive Performance: The blindfolded model achieved success rates nearly as high as the model that could see the board at every step, proving that its internal world model was "good enough" for navigation.
  • Instruction Impact: Removing language instructions during training caused the accuracy of reconstructing object colors to plummet (e.g., from 67.4% mAP down to 21.4%).

Limitations and Future Work

  • Grid World Simplicity: While BabyAI is a great testbed, it is a discrete, symbolic grid. Real-world environments are continuous and noisy. The authors acknowledge that future work needs to test these findings in more complex, photorealistic simulations.
  • Instruction Dependency: The current architecture relies heavily on language instructions. Exploring how these representations emerge in purely visual or goal-directed tasks without text is a promising next step.
  • Scaling: The study focuses on relatively small Transformers (6 layers). How these internal world models scale or change in massive models like GPT-4 remains an open question.

For a deeper dive, you can find the project webpage and resources at abstract-state-seqmodel.github.io.

Summary updated

BibTeX
@inproceedings{yun2023emergence,
  author = {Tian Yun and Zilai Zeng and Kunal Handa and Ashish V. Thapliyal and Bo Pang and Ellie Pavlick and Chen Sun},
  title = {{Emergence of Abstract State Representations in Embodied Sequence Modeling}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=FKNtgr0qQy},
}
Figure