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

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

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.

Introduction

Robots are increasingly expected to follow natural language instructions that involve complex spatial relationships, such as "Put the strawberry to the right of the apple and in front of the green bowl." Traditional approaches to this problem typically fall into two categories: end-to-end reactive policies and Large Language Model (LLM) symbolic planners. While reactive policies excel at basic object manipulation, they often fail to generalize to long, multi-step instructions or novel object combinations. Conversely, LLM planners, while capable of high-level reasoning, often lack the "geometric common sense" required to satisfy multiple simultaneous spatial constraints without violating previous ones.

The core challenge lies in compositionality: enabling a robot to combine simple concepts (e.g., "left of," "inside") to solve complex, multi-constraint tasks without explicit training on every possible combination. We introduce SREM (Scene Rearrangement via Energy Minimization), a framework that treats spatial language concepts as energy functions to achieve robust zero-shot planning.

The SREM Framework

SREM is a modular framework that decomposes the rearrangement task into four distinct stages:

  1. Semantic Parsing: A Sequence-to-Tree model translates natural language instructions into a structured program of spatial predicates (e.g., BinaryEBM(left_of, apple, bowl)).
  2. Visual Grounding: An open-vocabulary detector, such as MDETR, identifies and localizes the objects mentioned in the instruction within the current scene.
  3. Goal Generation via EBMs: Every spatial concept is represented as an Energy-Based Model (EBM). An EBM assigns a low scalar value (energy) to configurations that satisfy the concept and a high value to those that do not. To handle multiple constraints, SREM simply sums the energy functions of all predicates in the instruction. The model then employs gradient descent (specifically Langevin Dynamics) to find the object coordinates $(x, y)$ that minimize this total energy, effectively "imagining" a goal state.
  4. Low-Level Execution: Once the goal coordinates are determined, a vision-based pick-and-place policy, such as Transporter Networks, executes the physical movements required to reach the target configuration.
SREM generates goal configurations by minimizing the sum of energy functions corresponding to spatial predicates in a natural language instruction.

Key Insights

Compositionality is Additive

The most significant insight of SREM is that representing constraints as energy functions allows "AND" logic to be implemented through simple addition. Minimizing the sum of energies naturally finds the intersection of all spatial constraints, allowing the model to solve complex instructions that baffle step-by-step planners.

Abstraction Generalizes

By performing planning in an abstract visual space—using bounding boxes and centroids rather than raw pixels—the model achieves remarkable robustness. This abstraction allows the system to remain indifferent to object colors or background textures, focusing solely on the geometric relationships defined by the instruction.

The energy minimization process iteratively refines object bounding boxes to satisfy spatial constraints.

Experimental Results

SREM was evaluated on established CLIPort benchmarks and new compositional benchmarks introduced by the authors, including comp-one-step and shapes. Key findings include:

  • Performance Gains: On the comp-one-step benchmark, SREM achieved a Task Progress (TP) of approximately 90%, vastly outperforming the state-of-the-art CLIPort, which managed only 13%.
  • Zero-Shot Capability: Models trained only on single-predicate examples successfully executed complex instructions involving multiple constraints without further training.
  • Robustness: SREM maintained high performance (~86% TP) when faced with novel object classes, demonstrating the benefits of decoupling perception from action.
  • Real-World Deployment: The model was successfully deployed on a Franka Emika robot arm, where it rearranged real-world objects using goal configurations "imagined" entirely from simulation-based training.

Conclusion and Future Work

SREM demonstrates that Energy-Based Models provide a powerful, compositional substrate for robot planning. While the current framework excels at geometric arrangement, future work will focus on integrating temporal constraints (order of operations) and physics-based priors to ensure that planned configurations are not only geometrically sound but also physically stable. Integrating differentiable physics simulators as additional energy constraints represents a promising path toward even more complex real-world manipulation tasks.

Summary updated

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 as Zero-Shot Planners for Compositional Scene Rearrangement}},
  booktitle = {LTAMP @ RSS},
  year = {2023},
  url = {https://openreview.net/forum?id=RHF3KqNSOZl},
}
Figure