Quadtree Generating Networks: Efficient Hierarchical Scene Parsing with Sparse Convolutions

Kashyap Chitta, José M. Alvarez, Martial Hebert

TL;DR

Quadtree Generating Networks (QGNs) drastically reduce the memory and computational footprint of semantic segmentation by replacing dense pixel grids with hierarchical quadtrees. By focusing heavy computation only on complex regions like object boundaries, QGNs achieve a 4x reduction in memory usage compared to state-of-the-art dilated networks while maintaining competitive accuracy.

Introduction: The Memory Wall in Scene Parsing

Semantic segmentation—the task of assigning a category to every single pixel in an image—is notoriously "memory-hungry." Modern architectures, like Fully Convolutional Networks (FCNs), rely on dense feature maps. As image resolution increases, the memory and compute requirements grow quadratically.

This "memory wall" forces researchers to make painful trade-offs: they must either use lower-resolution images, smaller batch sizes (often just 1-2 images per GPU), or shallower networks. The authors identify a fundamental inefficiency: in a typical scene, large regions (like a clear blue sky or a flat road surface) are semantically uniform. Standard networks waste massive amounts of computation processing these "boring" regions at the same high resolution as complex object boundaries.

Methods: Quadtree Generating Networks

The authors introduce Quadtree Generating Networks (QGNs). Instead of outputting a dense $H \times W$ grid, the network generates a quadtree—a tree data structure where each internal node has exactly four children.

Hierarchical quadtree decomposition of a pixel grid into leaf and composite nodes.

Key components include:

  • The Quadtree Representation: If a region in an image contains only one class, it becomes a "leaf" node. If it contains multiple classes, it is labeled as a "composite" class and is subdivided into four smaller quadrants.
  • Sparse Convolutions: The decoder uses sparse convolutional layers that only perform computations at "active" sites (the composite nodes). This allows the network to skip processing for uniform regions at higher resolutions.
  • T-Pyramids: To train the network, the authors convert standard ground-truth masks into "Tree-pyramids." This allows them to calculate a level-wise loss, comparing the network's predicted tree structure against the ideal hierarchical decomposition of the labels.
  • Flexible Propagation: At inference, the network can decide which nodes to "split" based on its own confidence. This enables "anytime inference," where a user can trade off accuracy for speed without retraining the model.

Key Results and Efficiency

The researchers evaluated QGNs on three major benchmarks: Cityscapes, SUN-RGBD, and ADE20k.

Efficiency comparison: QGN achieves significant memory and TFLOP reductions while maintaining competitive mIoU.
  • Efficiency: On Cityscapes, QGNs reduced memory consumption by over 4x compared to a large dilated ResNet-101 (e.g., comparing DRN-D-105 at 15.15GB to QGN at 3.66GB), with only a marginal drop in mIoU.
  • Performance vs. Memory: When compared to networks with similar memory footprints (like DRN-C-42), QGNs provided a significant mIoU improvement (73.0 vs 70.9), proving that sparse, hierarchical processing is more effective than simply shrinking a dense network.
  • Scalability: The approach proved robust across different scales and class counts, maintaining high compression ratios (95%+) even on the complex 150-class ADE20k dataset.

Conclusion

The core insight of QGN is that high-resolution features are only necessary at class boundaries. By using a quadtree, the network naturally allocates its "computational budget" to the edges of objects. While the current Predicted Composite (PC) propagation scheme presents some training stability challenges, the hierarchical approach offers a promising path toward high-resolution scene parsing on resource-constrained devices. Future work may involve integrating QGNs with self-attention mechanisms to further mitigate their high memory costs.

Summary updated

BibTeX
@misc{chitta2019quadtree,
  author = {Kashyap Chitta and José M. Alvarez and Martial Hebert},
  title = {{Quadtree Generating Networks: Efficient Hierarchical Scene Parsing with Sparse Convolutions}},
  year = {2019},
  eprint = {1907.11821},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.11821},
}
Figure