TarGF: Learning Target Gradient Field to Rearrange Objects without Explicit Goal Specification

Mingdong Wu, fangwei zhong, Yulong Xia, Hao Dong

The Challenge of Object Rearrangement

Object rearrangement is a fundamental robotics task—think of a robot tidying a messy desk or a warehouse bot sorting parcels. Traditionally, this requires an explicit goal specification (e.g., "Put the stapler at coordinates X, Y").

However, in the real world, "tidy" is a distribution, not a single point. There are infinite ways to arrange a room that look "right." Defining a mathematical reward function for "tidiness" is notoriously difficult (a problem known as reward engineering), and collecting step-by-step expert demonstrations for every possible mess is prohibitively expensive (limiting imitation learning).

Object rearrangement from an initial state to a target distribution without explicit goals.

To tackle this, researchers have introduced a method to learn to rearrange objects toward a normative distribution using only a set of "success" examples, without knowing the underlying reward or the specific final coordinates.

Methodology: The Target Gradient Field (TarGF)

The core innovation of this work is the Target Gradient Field (TarGF). Instead of learning a traditional value function, the authors use Denoising Score-Matching (DSM)—a technique popularized by diffusion models—to learn the score function (the gradient of the log-density) of the target distribution.

Overview of TarGF: Learning the gradient field via score-matching and applying it to control objects.

1. Learning the Field

The model is trained on examples of "good" layouts. By adding noise to these examples and learning to "denoise" them, the network learns a vector field where every point in space points toward a higher-density (tidier) region.

2. Two Ways to Use TarGF

Once the gradient field is learned, it can be deployed for control in two distinct ways:

  • Model-based Planning: The gradient field acts as a "reference velocity." This is plugged into a collision-avoidance algorithm (like the ORCA planner) to ensure objects move toward the goal without hitting each other.
  • Model-free Reinforcement Learning: The TarGF is used in two ways here. First, it provides a reward signal based on the "likelihood change" between states (using a first-order Taylor expansion). Second, it acts as a "suggested action" in a residual policy. The RL agent doesn't have to learn from scratch; it just learns to "correct" the gradient field's suggestions to account for complex physics.

Experimental Setup and Results

The authors evaluated TarGF on two main benchmarks:

  1. Ball Rearrangement: A synthetic environment with 21 balls. Tasks included Circling (forming a ring), Clustering (grouping by color), and Circling + Clustering (a hybrid task). This allowed for precise numerical analysis of "pseudo-likelihood."
  2. Room Rearrangement: Based on the 3D-FRONT dataset, which contains thousands of professionally designed 3D rooms. The agent had to rearrange furniture in shuffled rooms to match the "style" of the dataset.

Key Insights

  • The Gradient as Guidance: Most RL struggles with "sparse rewards" (you only get a point when you're finished). TarGF provides dense, "object-wise" guidance at every single step, telling the agent exactly which way to nudge each chair or ball.
  • Standing on the Shoulders of Giants: By using the gradient field as a base policy and learning a "residual" on top of it, the RL agent avoids the "cold start" problem. It starts with a decent idea of where to go and only needs to learn how to handle the environment's constraints.
  • Distribution over Goals: Unlike goal-conditioned RL, which might try to reach an "invalid" goal (like two objects overlapping), TarGF naturally guides objects toward high-probability regions of the distribution, which inherently respect physical boundaries if the training data is clean.

Performance Highlights

  • Efficiency and Quality: In ball tasks, TarGF reached higher "tidiness" scores much faster than baselines like GAIL (Generative Adversarial Imitation Learning) or RCE (Recursive Classification of Examples).
  • Safety: The method achieved significantly lower Averaged Collision Numbers (ACN). In Room Rearrangement, TarGF had nearly half the collisions of the strongest goal-based baseline.
  • Scalability: A model trained on 21 balls could be "zero-shot" transferred to environments with 30 balls without further training, maintaining high performance. This suggests the learned "tidiness" rules are local and relational rather than fixed to specific object counts.

Limitations and Future Directions

While TarGF presents a significant step forward, it has a few limitations:

  • Planar Constraints: Currently, the work focuses on 2D "top-down" rearrangement (moving objects on a floor). It does not yet handle 3D manipulation like stacking or rotating objects in 3D space.
  • State vs. Vision: The model relies on knowing the exact coordinates and bounding boxes of objects (state-based). Moving to Visual Observation (pixels-to-actions) is a critical next step for real-world deployment.
  • Simplified Dynamics: The agent controls velocities directly. In more realistic settings, robots control torques or forces, which would require a more complex hierarchical policy to bridge the gap between the "gradient field" and the robot's motors.

Summary updated

BibTeX
@inproceedings{wu2022targf,
  author = {Mingdong Wu and fangwei zhong and Yulong Xia and Hao Dong},
  title = {{TarGF: Learning Target Gradient Field to Rearrange Objects without Explicit Goal Specification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=Euv1nXN98P3},
}
Figure