StructFormer: Learning Spatial Structure for Language-Guided Semantic Rearrangement of Novel Objects

Weiyu Liu, Chris Paxton, Tucker Hermans, Dieter Fox

TL;DR

StructFormer is a novel transformer-based framework that enables robots to rearrange previously unseen objects into complex, semantically meaningful structures—like circles, lines, or table settings—guided by high-level language. By leveraging the multi-object reasoning capabilities of transformers and a "virtual structure frame," the system outperforms traditional pairwise approaches in both precision and semantic understanding.

What Problem Does This Paper Address?

Rearrangement is a fundamental task for assistive robots, whether they are setting a dinner table or organizing a warehouse. While previous research has successfully tackled "pairwise" relations (e.g., "put the cup to the right of the bowl"), creating complex multi-object structures remains a significant challenge.

The difficulty lies in three areas:

  1. Semantic Mapping: Translating a vague command like "build a circle" into precise 3D coordinates.
  2. Multi-Object Constraints: Ensuring that moving one object doesn't violate the global structure or cause collisions with others.
  3. Generalization: The robot must handle "novel" objects—items it has never seen before—using only partial-view point clouds from its sensors.

Methods

The authors propose StructFormer, a two-part architecture built on the Transformer model, which is uniquely suited for reasoning over sets of objects due to its attention mechanism.

  • Object Selection Network: This module uses a transformer encoder to process word embeddings from the language command alongside point clouds of all objects in the scene. It performs relational inference (e.g., "find all objects smaller than the blue pan") to decide which items need to be moved.
  • Language Conditioned Pose Generator: This is an encoder-decoder transformer. The encoder builds a global context of the scene and the goal. The decoder then autoregressively predicts the 6-DoF (degree of freedom) pose offsets for each selected object.
  • The Virtual Structure Frame: A key innovation is that the model doesn't just predict world coordinates. It first predicts a "virtual frame" (a central anchor for the structure) and then places objects relative to that frame. This provides a geometric anchor that significantly improves alignment and symmetry.
  • Continuous Rotation Representation: To avoid the mathematical "jump" issues (discontinuities) found in quaternions or Euler angles, the authors use a 6D continuous rotation representation based on a Gram-Schmidt-like process.

Datasets

The researchers introduced a massive new dataset to train and evaluate the system:

  • 100,000+ Rearrangement Sequences: Procedurally generated in the PyBullet physics simulator.
  • 335 Novel Objects: Sourced from the ACRONYM dataset, covering 35 distinct household classes (mugs, bowls, tools, etc.).
  • Four Structure Types: Circles, lines, towers, and table settings.
  • Rendering: Used NVISII for photorealistic image and depth map generation to bridge the gap between simulation and reality.

Key Insights and Ideas

  • Beyond Pairwise: Most robotics models look at Object A relative to Object B. StructFormer looks at the entire set at once. This allows it to understand that the "middle" of a circle depends on the size and number of all objects involved.
  • Attention is All You Need (for Geometry): The transformer’s attention mechanism naturally captures the "spatial syntax" of a scene. It allows the language tokens to "attend" to specific geometric features of the objects (like height or color).
  • The Power of Anchoring: Predicting a virtual structure frame acts as a "mental model" of the goal. It’s much easier for a network to learn "place these 5 items 10cm from a center point" than to learn the absolute coordinates for 5 items in a chaotic world.

Key Results

StructFormer was tested against several baselines, including a "Binary" model (pairwise reasoning) and a "No Structure" model (predicting absolute world poses).

  • Superior Precision: StructFormer achieved significantly lower translational and rotational errors. For example, in circle arrangements, it had a mean error of 3.54 cm, compared to 11.40 cm for the binary baseline.
  • Semantic Reasoning: The model successfully identified objects based on complex relational queries, such as "objects that have the same material as the blue bottle."
  • Real-World Generalization: The system was deployed on a physical Franka Panda robot. Despite being trained entirely in simulation, it successfully rearranged real-world household items into lines and circles using noisy, partial-view point clouds from an arm-mounted camera.

Limitations and Future Work

  • Structured Language: The current model uses a structured language template (e.g., "rearrange [property] objects into [structure]"). Future versions aim to handle completely unconstrained, natural human speech.
  • Clutter Management: The system assumes there is enough clear space to build the structure. It does not yet reason about moving "distractor" objects out of the way to make room.
  • Fixed Sequencing: The robot currently moves objects in a predefined order. The authors suggest that integrating a task-and-motion planner could allow the robot to decide the most efficient order of operations based on the current scene layout.

Summary updated

BibTeX
@inproceedings{liu2022structformer,
  author = {Weiyu Liu and Chris Paxton and Tucker Hermans and Dieter Fox},
  title = {{StructFormer: Learning Spatial Structure for Language-Guided Semantic Rearrangement of Novel Objects}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2022},
  url = {https://openreview.net/forum?id=G3INHfj1aj},
}
Figure