Unsupervised Object Detection with Theoretical Guarantees

Marian Longa, Joao F. Henriques

Abstract

Unsupervised object detection aims to localize objects in images without human-provided labels. While empirical progress has been significant, existing methods lack theoretical identifiability—the assurance that learned latent variables correspond to true physical properties. This paper introduces a translationally equivariant autoencoder that provides the first provable theoretical guarantees on object detection accuracy. We demonstrate that detected positions are bounded by a quantifiable error determined by the network's architecture and object characteristics.

Introduction

Unsupervised object detection is a fundamental challenge in computer vision. While state-of-the-art models like Segment Anything (SAM) or CutLER demonstrate impressive empirical performance, they operate as "black boxes" without guarantees on when or why they might fail. In high-stakes domains such as medical imaging or autonomous driving, reliability is paramount. This research addresses the lack of identifiability by designing a system where the relationship between learned latent variables and true object coordinates is mathematically guaranteed.

Methodology

The proposed method utilizes an autoencoder architecture designed for strict translational equivariance. If an object shifts in the input image, the internal representation must shift proportionally.

The translationally equivariant autoencoder architecture, featuring an encoder with Soft Argmax and a Gaussian rendering decoder.

The pipeline consists of:

  1. The Encoder ($\psi$): A Convolutional Neural Network (CNN) generates embedding maps ($e_1, ..., e_n$). A Soft Argmax function then converts these maps into scalar coordinates ($z$), representing the object's position.
  2. The Decoder ($\phi$): The coordinates are used for Gaussian rendering to create fuzzy representations ($\hat{e}_1, ..., \hat{e}_n$). A second CNN then reconstructs the predicted image ($\hat{x}$) from these rendered Gaussians and positional encodings.

Theoretical Framework

The core contribution is Theorem 4.1, which establishes a mathematical bound ($\Delta$) for the maximum position error. This bound is a function of the encoder's receptive field ($s_\psi$), the decoder's receptive field ($s_\phi$), the object size ($s_o$), and the Gaussian rendering width ($\sigma_G$).

A key insight derived from this framework is the "Error Triangle" (Corollary 4.4). Contrary to intuition, both very small and very large objects result in lower position errors. Medium-sized objects incur the highest errors because they possess the most "wiggle room" to fit within the receptive fields while still allowing for perfect reconstruction.

The "Error Triangle" illustrates that position error $\Delta$ peaks for medium-sized objects and decreases for very small or very large objects.

Experimental Validation

The theory was validated across synthetic data, CLEVR benchmarks, and real-world video (traffic and pool games).

  • Synthetic Validation: Experimental errors matched theoretical bounds with pixel-level precision.
  • Reliability: On CLEVR data, the proposed method maintained a 100% success rate in staying within theoretical bounds, whereas empirical models like CutLER and SAM frequently exceeded them.
  • Real-World Application: The model successfully tracked cars and pool balls without labels. As a generative model, it allows for "re-rendering" scenes by adjusting latent variables, such as moving a car to a different lane.

Conclusion

This work provides a "recipe" for designing reliable unsupervised detection systems. By selecting receptive field sizes based on expected object dimensions, engineers can minimize potential error. While currently dependent on object motion and successful reconstruction, this framework paves the way for extending theoretical guarantees to other properties like rotation, scale, and class identity.

Summary updated

BibTeX
@inproceedings{longa2024unsupervised,
  author = {Marian Longa and Joao F. Henriques},
  title = {{Unsupervised Object Detection with Theoretical Guarantees}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=x33oWJQyH0},
}
Figure