SPACE: Unsupervised Object-Oriented Scene Representation via Spatial Attention and Decomposition

Zhixuan Lin, Yi-Fu Wu, Skand Vishwanath Peri, Weihao Sun, Gautam Singh, Fei Deng, Jindong Jiang, Sungjin Ahn

Introduction

In computer vision, achieving a "structured representation" involves breaking a scene down into its constituent parts—such as distinct objects and the background—without relying on supervised labels. This unsupervised learning task is incredibly difficult because real-world scenes feature occlusions, varying numbers of objects, and complex, amorphous backgrounds.

Existing methods generally fall into two camps, each with significant drawbacks:

  1. Scene-Mixture Models (e.g., IODINE, GENESIS): These treat the whole image as a sum of layers. They excel at segmenting complex backgrounds but struggle to extract explicit geometric features, like an object's exact position or scale.
  2. Spatial-Attention Models (e.g., AIR, SPAIR): These use "glimpses" or bounding boxes to locate objects. While they provide excellent geometric data, they usually fail on complex backgrounds and suffer from a "scalability wall" because they process objects sequentially.

The SPACE (Spatially Parallel Attention and Component Extraction) model bridges this gap. It provides a "best of both worlds" generative latent variable approach that is geometrically precise, handles complex backgrounds, and scales efficiently to scenes with dozens of objects.

The SPACE Architecture

SPACE introduces a unified probabilistic framework that treats foreground and background differently but integrates them into a single generative process.

SPACE Architecture Diagram
  • Parallel Foreground Processing: Unlike previous models that search for objects sequentially, SPACE divides the image into a grid ($H \times W$ cells). Each cell acts as an independent object detector in parallel. For each cell, the model predicts the presence of an object ($z^{pres}$), its exact location and scale ($z^{where}$), its depth to handle occlusion ($z^{depth}$), and its appearance ($z^{what}$).
  • Background Decomposition: Areas not claimed by the foreground are handled by a background module that segments the scene into $K$ components using a mixture model. This allows the model to learn that a continuous entity, like a wall or a river, is a single component despite having a complex shape.
  • Boundary Loss: To prevent the model from "cheating" by splitting one large object into several smaller bounding boxes, the authors introduce an auxiliary loss that penalizes object masks overlapping with the edges of their predicted bounding boxes.

Key Insights

  • Parallelism is the Key to Scalability: The most significant insight is that sequential processing (the "repeat" in Attend-Infer-Repeat models) isn't strictly necessary for high-quality detection. By using a grid and a mean-field approximation, SPACE processes all potential object locations simultaneously, leading to massive speedups.
  • Structural Hybridization: "Foreground" and "background" are not just semantic labels; they require different mathematical treatments. Objects are best described by bounding boxes (spatial attention), while backgrounds are better suited to flexible segments (mixture models).
  • Implicit vs. Explicit Geometry: By using Spatial Transformer Networks (STN) for the foreground, the model forces latent variables to represent physical properties (position and scale). This explicit geometry is far more useful for downstream tasks like robotics or reinforcement learning than the "blurry" masks produced by pure mixture models.

Results & Performance

The model was evaluated primarily on synthetic 3D-Rooms (both "Small" with 4–8 objects and "Large" with 18–24 objects) and Atari Games (e.g., Space Invaders, River Raid), which feature many small moving objects against complex backgrounds.

Visual Comparison on 3D-Rooms
  • Speed and Scalability: SPACE maintains nearly constant training latency regardless of the number of objects. In contrast, the latency of sequential baselines like SPAIR grows significantly as the grid size increases.
  • Decomposition Quality: On complex scenes like the River Raid Atari game, SPACE perfectly segments the moving river in the background while simultaneously tracking all small player and enemy sprites. Previous models often confused the background for foreground objects.
  • Quantitative Accuracy: In the challenging "Large 3D-Room" environment containing up to 24 objects, SPACE achieved an Average Precision (AP) of ~0.89. This performance is comparable to or better than sequential models, but achieved at a fraction of the computational cost.

Limitations and Future Work

While SPACE represents a major step forward for unsupervised scene representation, the authors note a few areas for improvement:

  • Sequential Background: While the foreground is processed in parallel, the background module still uses an LSTM to process components sequentially. Replacing this with a parallel background module is a logical next step.
  • Synthetic to Natural: The model was tested on synthetic and game data. Transitioning to "in the wild" natural images remains a significant challenge, as natural backgrounds are far more chaotic than Atari rivers or MuJoCo walls.
  • Downstream Tasks: The authors suggest that these structured representations are highly suitable for object-oriented reinforcement learning, paving the way for future applications in agent-based environments.

Summary updated

BibTeX
@inproceedings{lin2020space,
  author = {Zhixuan Lin and Yi-Fu Wu and Skand Vishwanath Peri and Weihao Sun and Gautam Singh and Fei Deng and Jindong Jiang and Sungjin Ahn},
  title = {{SPACE: Unsupervised Object-Oriented Scene Representation via Spatial Attention and Decomposition}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=FjZN46EnxuR},
}
Figure