SceneScore: Learning a Cost Function for Object Arrangement

Ivan Kapelyukh, Edward Johns

TL;DR

SceneScore introduces an implicit, energy-based framework for robotic object rearrangement that learns what makes an arrangement "desirable" solely from static images. By parameterizing a continuous cost function over an object-centric graph neural network (GNN), the system can place missing items, generalize to unseen objects using CLIP embeddings, and seamlessly incorporate physical constraints like collision avoidance at inference time using gradient-based optimization.

What Problem Does This Paper Address?

Teaching robots to tidy rooms, set dining tables, or organize workspaces requires them to know what a "good" arrangement looks like. Most prior methods take an explicit approach: given a set of objects, a model directly predicts target coordinates (for instance, via regression or a VAE).

However, explicit predictors suffer from significant limitations:

  1. Multi-modality & Ambiguity: There are often multiple valid ways to arrange objects (e.g., placing cutlery on either side of a plate). Explicit models struggle to capture these multi-modal distributions cleanly.
  2. Inflexibility under Constraints: In cluttered environments, directly predicted target poses frequently collide with obstacles or violate robot reachability limits. Explicit models cannot easily incorporate new physical constraints at test time without retraining or resorting to inefficient rejection sampling.

Methods

Instead of directly outputting target coordinates, SceneScore learns an implicit cost function $E_\theta(x|s)$, where desirable, human-like arrangements have low energy (cost) and disorganized arrangements have high energy.

Image 
  │
  ├─► Mask R-CNN ──► Segmentation Masks ──► 2D Pose Estimation (x, y, θ) ──► Edge Features (Relative Poses)
  │                                                                                   │
  └─► Rectified Object Crops ──► Frozen CLIP + MLP + Scale Descriptor ──► Node Features (Semantics)
                                                                                      │
                                                                                      ▼
                                                                           GNN Energy Model E_θ(x|s)
                                                                                      │
                                  Langevin Dynamics (Sampling) ◄──────────────────────┘

The approach consists of four core components:

  • Object-Centric Graph Representation: Scenes are modeled as fully connected graphs where nodes represent objects and edges represent pairwise relative poses (displacement and planar orientation). Node features combine visual semantics from a frozen CLIP model (projected via a 2-layer MLP) and scale descriptors (width and height). Separating pose into edge features ensures the cost function evaluates spatial relations conditionally while keeping object identities fixed.
  • Energy-Based Model (EBM) Architecture: A Graph Neural Network (GNN) computes messages over node and relative edge features, aggregates them with global add pooling, and outputs a single scalar cost $E_\theta(x|s)$.
  • Contrastive Maximum Likelihood Training: The model is trained offline without human supervision or physical interaction. Training utilizes an InfoNCE-style contrastive loss where high probability is assigned to training examples, and negative "counter-examples" generated via Langevin Dynamics are pushed toward higher energy.
  • Inference & Constraint Composition: At test time, arrangements are generated by sampling initial poses from a uniform distribution and minimizing the learned energy using Langevin Dynamics (noisy gradient descent). Additional differentiable objectives—such as a hinge loss penalizing bounding-box/mask collisions—can be summed directly into the energy function at inference time, enabling gradient-based constrained optimization.

Datasets

The authors evaluated SceneScore primarily in simulation across several targeted tasks:

  • Dining Table Missing-Object Placement: 48 training and 16 test scenes containing plates, forks, and knives in circular, multi-modal arrangements.
  • Semantic Ordering Benchmark: 16 training and 16 test scenes per scenario designed to test visual generalization:
  • Class-Size: Grouped by class (fork vs. knife), then ordered by size.
  • All-Size: Ordered strictly by size regardless of class.
  • Unseen-Class: Evaluated on an unseen object class (spoons placed alongside forks).
  • Cluttered Living Room (TV & Speakers): 36 training arrangements requiring symmetric, linear alignment of audio-visual equipment, tested against 9-object and 12-object cluttered scenes containing non-movable obstacles.
  • Real-World Demonstration: A proof-of-concept tabletop setup arranging a mug relative to a book and a pen/pencil.

Key Insights and Ideas

  • Relative Over Absolute Geometry: Placing relative transformations on graph edges rather than absolute coordinates on nodes proved essential. Human notions of tidiness depend heavily on how objects relate to one another (e.g., knife parallel to plate) rather than where they sit in absolute room coordinates.
  • Implicit Composition Beats Rejection Sampling: When clutter is introduced, explicit generative models (like VAEs) must repeatedly sample poses and discard collisions. SceneScore simply adds a collision hinge-loss gradient directly to the energy gradient, allowing target poses to fluidly navigate around obstacles during optimization.
  • Semantic Generalization via Vision-Language Models: By leveraging rectified CLIP visual embeddings alongside scale descriptors, the cost function learns abstract arrangement rules (e.g., "arrange cutlery by length") that transfer zero-shot to completely unseen object categories like spoons.

Key Results

  • Missing Object Pose Estimation: SceneScore significantly outperformed baselines on the dining table task, achieving a position error of 4.4 cm and orientation error of 9.7°, compared to NeatNet (21.7 cm, 146.6°), a Nearest-Neighbor baseline (7.9 cm, 16.9°), and an absolute-pose ablation (6.5 cm, 14.8°).
  • Novel Object Ordering: In semantic ordering experiments, SceneScore achieved an overall mean position error of 3.22 cm across all splits (including 4.76 cm on unseen classes), substantially outperforming NeatNet-R (12.27 cm mean error).
  • Optimization Under Clutter: When drawing from a budget of 5,000 samples in the living room collision-avoidance task, NeatNet's valid sample yield plummeted near zero as clutter increased. SceneScore consistently produced around 1,500 valid samples in 9-object scenes and ~1,000 valid samples in 12-object scenes.

Limitations and Future Work

  • Planar Tabletop Assumption: The current formulation assumes top-down, planar rearrangements ($x, y$ coordinates and a single yaw angle $\theta$). It does not yet accommodate full 3D manipulation, such as stacking objects vertically or placing items onto shelving units.
  • Simulation-Heavy Evaluation: Although validated with a small real-world demo, quantitative benchmarks relied on simulated tabletop scenes with rendered images.
  • Scaling to In-the-Wild Data: The authors point toward training generalist EBM cost functions directly on large-scale, uncurated web photography of human-organized environments (e.g., tidy desks, pantry shelves, interior design datasets).

Summary updated

BibTeX
@inproceedings{kapelyukh2023scenescore,
  author = {Ivan Kapelyukh and Edward Johns},
  title = {{SceneScore: Learning a Cost Function for Object Arrangement}},
  booktitle = {LEAP @ CoRL},
  year = {2023},
  url = {https://openreview.net/forum?id=DVKEwUfKQA},
}
Figure