Energy-based Models are Zero-Shot Planners for Compositional Scene Rearrangement

Nikolaos Gkanatsios, Ayush Jain, Zhou Xian, Yunchu Zhang, Christopher G Atkeson, Katerina Fragkiadaki

Abstract

Language is compositional; an instruction can express multiple relation constraints to hold among objects in a scene that a robot is tasked to rearrange. Our focus in this work is an instructable scene-rearranging framework that generalizes to longer instructions and to spatial concept compositions never seen at training time. We propose to represent language-instructed spatial concepts with energy functions over relative object arrangements. A language parser maps instructions to corresponding energy functions and an open-vocabulary visual-language model grounds their arguments to relevant objects in the scene. We generate goal scene configurations by gradient descent on the sum of energy functions, one per language predicate in the instruction. Local vision-based policies then re-locate objects to the inferred goal locations. We test our model on established instruction-guided manipulation benchmarks, as well as benchmarks of compositional instructions we introduce. We show our model can execute highly compositional instructions zero-shot in simulation and in the real world. It outperforms language-to-action reactive policies and Large Language Model planners by a large margin, especially for long instructions that involve compositions of multiple spatial concepts. Simulation and real-world robot execution videos, as well as our code and datasets are publicly available on our website: https://ebmplanner.github.io

Introduction

Instructing a robot to perform complex scene rearrangements, such as "put the red bowl to the right of the yellow cube, to the left of the red cylinder, and above the blue cylinder," presents a significant challenge for contemporary AI. Existing approaches typically fall into two categories: end-to-end reactive policies (e.g., CLIPort) and Large Language Model (LLM) planners (e.g., InnerMonologue). While reactive policies perform well on their training distributions, they often fail to generalize to novel instructions or unseen environments. Conversely, LLM planners struggle with continuous geometric reasoning, frequently failing to find valid physical regions that satisfy multiple overlapping spatial constraints.

This paper introduces SREM (Scene Rearrangement via Energy Minimization), a modular framework designed to robustly compose multiple spatial constraints in a continuous geometric space. By decoupling perception, spatial reasoning, and execution, SREM achieves zero-shot generalization to novel instructions and objects without requiring explicit training on every possible combination.

The SREM Framework

SREM utilizes a modular pipeline to translate language instructions into physical actions:

  1. Semantic Parsing and Grounding: A parser decomposes the instruction into spatial predicates. Objects are grounded using an open-vocabulary visual-language model (BEAUTY-DETR), which extracts 2D bounding boxes from the scene.
  2. Energy-Based Model Library: The system maintains a library of EBMs representing various spatial concepts (e.g., "left of," "behind," "circle"). These models operate on abstract object representations—specifically bounding box coordinates and sizes—rather than raw pixels.
  3. Zero-Shot Goal Generation: For compositional instructions, SREM sums the energy functions of the relevant predicates. It then employs Langevin dynamics (gradient descent) on the object coordinates to find a configuration that minimizes the total energy, effectively satisfying all constraints simultaneously.
Figure 2: Visualization of the energy minimization process over time (t=5, 10, 50), showing the iterative transition from an initial configuration to a low-energy goal state that satisfies the spatial constraints.
  1. Low-Level Execution: Once a goal configuration is determined, a vision-based pick-and-place policy, such as Transporter Networks, executes the physical movements required to reach the target state.

Experimental Evaluation and Results

The authors evaluated SREM on several benchmarks, including new PyBullet tasks designed for compositional reasoning and established benchmarks like CLIPort.

Key Results

  • Compositional Reasoning: In the complex comp-group task, SREM achieved 88.7% task progress, significantly outperforming the LLMplanner baseline (75.3%).
  • Out-of-Distribution Robustness: SREM maintained 93.0% accuracy on spatial relations with unseen colors, whereas the end-to-end CLIPort model's performance dropped to 9.0%.
  • Real-World Transfer: SREM successfully transferred to a real-world Franka Emika robot without fine-tuning, achieving 85.6% accuracy on compositional one-step tasks and 94.0% on shape-based arrangements (e.g., circles) using novel objects.
Figure 3: Another example of SREM's zero-shot planning capability, illustrating how the system optimizes object placements to satisfy a different set of compositional spatial instructions.

Discussion and Conclusion

A key insight of this work is that framing spatial constraints as energy functions allows for natural handling of geometric intersections, a task where sequential text-based logic often fails. Furthermore, by planning in an abstract coordinate space, SREM decouples spatial reasoning from visual appearance, enabling robust generalization.

However, SREM currently lacks an understanding of physical dynamics and temporal sequencing (e.g., the order of operations in stacking). Future work involves integrating differentiable physics simulators or learned dynamics models to incorporate constraints like gravity and stability into the energy minimization process. Additionally, moving beyond coarse bounding box representations to finer-grained models (e.g., keypoints) could extend SREM's utility to articulated or deformable objects.

Summary updated

Abstract

Language is compositional; an instruction can express multiple relation constraints to hold among objects in a scene that a robot is tasked to rearrange. Our focus in this work is an instructable scene-rearranging framework that generalizes to longer instructions and to spatial concept compositions never seen at training time. We propose to represent language-instructed spatial concepts with energy functions over relative object arrangements. A language parser maps instructions to corresponding energy functions and an open-vocabulary visual-language model grounds their arguments to relevant objects in the scene. We generate goal scene configurations by gradient descent on the sum of energy functions, one per language predicate in the instruction. Local vision-based policies then re-locate objects to the inferred goal locations. We test our model on established instruction-guided manipulation benchmarks, as well as benchmarks of compositional instructions we introduce. We show our model can execute highly compositional instructions zero-shot in simulation and in the real world. It outperforms language-to-action reactive policies and Large Language Model planners by a large margin, especially for long instructions that involve compositions of multiple spatial concepts. Simulation and real-world robot execution videos, as well as our code and datasets are publicly available on our website: https://ebmplanner.github.io
BibTeX
@inproceedings{gkanatsios2023energy,
  author = {Nikolaos Gkanatsios and Ayush Jain and Zhou Xian and Yunchu Zhang and Christopher G Atkeson and Katerina Fragkiadaki},
  title = {{Energy-based Models are Zero-Shot Planners for Compositional Scene Rearrangement}},
  booktitle = {LTAMP @ RSS},
  year = {2023},
  url = {https://openreview.net/forum?id=RHF3KqNSOZl},
}
Figure