Multi-Plane Program Induction with 3D Box Priors

Yikai Li, Jiayuan Mao, Xiuming Zhang, William T. Freeman, Joshua B. Tenenbaum, Noah Snavely, Jiajun Wu

Introduction

Humans possess an innate ability to perceive the 3D structure and repeating patterns of a scene from a single 2D image. Whether looking down a hallway or at a building facade, we instantly grasp the spatial layout and the logical arrangement of windows, tiles, or lights. In contrast, computer vision systems often struggle to bridge the gap between low-level geometry and high-level structural regularity.

Box Program Induction (BPI) addresses this challenge by transforming a single 2D image into a structured 3D representation. By combining geometric "box priors" with symbolic programs, BPI enables perspective-aware image editing, such as infinite corridor extrapolation or facade restoration, with significantly higher structural consistency than traditional deep learning approaches.

Methodology: The BPI Framework

The core of BPI is the assumption that many real-world scenes—such as indoor rooms or outdoor buildings—can be modeled as the inner or outer view of a 3D box. The pipeline integrates neural networks for feature detection with symbolic reasoning for pattern inference.

Visual Cue Detection and Plane Segmentation

The process begins by detecting mid-level visual features, specifically vanishing points and wireframe lines, using pre-trained neural networks. These cues guide the generation of candidate plane segmentations (e.g., walls, floor, ceiling).

Visualization of the 3D box prior and plane segmentation within a corridor scene.

Rectification and Program Induction

For each candidate plane, the system performs "rectification"—un-warping the surface to remove perspective distortion. Once the surface is flat, BPI searches for a symbolic program within a Domain-Specific Language (DSL) that best describes the repeating patterns. This "program induction" identifies the lattice structure of elements like windows or ceiling tiles.

A snippet of the Domain-Specific Language (DSL) used to represent repeating patterns on rectified planes.

The Regularity-Geometry Loop

A key innovation of BPI is the joint optimization of geometry and regularity. The "correct" 3D orientation of a plane is determined by which pose results in the most regular 2D program after rectification. If the 3D geometry is off, the patterns will not align into a simple, logical grid.

Key Results and Applications

The researchers evaluated BPI on two new datasets: Corridor Boxes and Building Boxes. These datasets consist of "in-the-wild" images with manual ground-truth annotations for plane segmentation.

  • Segmentation Accuracy: BPI significantly outperformed existing baselines. On the Corridor dataset, BPI achieved an Intersection over Union (IoU) of 0.84, compared to 0.52 for PlaneRCNN.
  • View Synthesis and Extrapolation: In human preference studies for view synthesis, BPI was preferred over the state-of-the-art SynSin model between 94% and 100% of the time. Users noted that BPI maintained the scene's "lattice structure" much more effectively during camera movement.
  • Program-Guided PatchMatch: By integrating inferred programs into the PatchMatch algorithm, BPI allows for high-fidelity inpainting that respects both 3D perspective and 2D repeating logic.

Conclusion and Future Work

BPI demonstrates the power of "hybrid intelligence," combining the bottom-up strengths of deep learning with the top-down logic of symbolic reasoning. While currently limited to box-like geometries and sensitive to initial vanishing point detection, it paves the way for more sophisticated scene understanding. Future research will focus on expanding the grammar to handle non-box geometries and more complex, irregular scene elements.

Summary updated

BibTeX
@inproceedings{li2020multi,
  author = {Yikai Li and Jiayuan Mao and Xiuming Zhang and William T. Freeman and Joshua B. Tenenbaum and Noah Snavely and Jiajun Wu},
  title = {{Multi-Plane Program Induction with 3D Box Priors}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=6UTMun_8uXk},
}
Figure