Tagger: Deep Unsupervised Perceptual Grouping

Klaus Greff, Antti Rasmus, Mathias Berglund, Tele Hotloo Hao, Jürgen Schmidhuber, Harri Valpola

Abstract We present a framework for efficient perceptual inference that explicitly reasons about the segmentation of its inputs and features. Rather than being trained for any specific segmentation, our framework learns the grouping process in an unsupervised manner or alongside any supervised task. By enriching the representations of a neural network, we enable it to group the representations of different objects in an iterative manner. By allowing the system to amortize the iterative inference of the groupings, we achieve very fast convergence. In contrast to many other recently proposed methods for addressing multi-object scenes, our system does not assume the inputs to be images and can therefore directly handle other modalities. For multi-digit classification of very cluttered images that require texture segmentation, our method offers improved classification performance over convolutional networks despite being fully connected. Furthermore, we observe that our system greatly improves on the semi-supervised result of a baseline Ladder network on our dataset, indicating that segmentation can also improve sample efficiency.

Introduction: The Challenge of Perceptual Grouping

Humans possess a remarkable ability called perceptual grouping: we effortlessly see a scene not as a soup of pixels, but as a collection of distinct objects with specific properties. Most standard deep learning models, however, process an entire image as a single "clump." This leads to "interference," where features from different objects get mixed up, making tasks like multi-object classification or reasoning in cluttered scenes extremely difficult.

Perceptual grouping involves decomposing a scene into its constituent objects, such as separating a car from its background and foreground occlusions.

While supervised segmentation exists, it requires massive amounts of pixel-level labels. The authors of "Tagger" aim to bridge this gap by creating a system that learns to "discover" objects and their boundaries automatically (unsupervised) or alongside a main task (semi-supervised), using grouping as a tool to improve overall performance and sample efficiency.

The Iterative Amortized Grouping (TAG) Framework

The core of the paper is the Iterative Amortized Grouping (TAG) framework. This approach treats segmentation as an iterative denoising process through the following steps:

  1. Group Representation: The network maintains $K$ separate "slots" or groups. Each group $k$ has its own estimate of what it is seeing (a reconstruction $z_k$) and a mask ($m_k$) representing which parts of the input it is responsible for.
  2. Iterative Refinement: Instead of a single pass, the model runs for several iterations. In each step, it looks at the current reconstructions and masks, calculates the "modeling error" (what it missed), and updates its estimates.
  3. Amortized Inference: Usually, iterative grouping requires complex optimization algorithms (like Expectation-Maximization). TAG "amortizes" this by training a neural network (the Parametric Mapping) to learn the update rules. It essentially learns a shortcut to the grouping solution.
The TAG framework uses an iterative process where a parametric mapping updates group estimates and masks over several steps to achieve segmentation.

The authors specifically use a Ladder Network as the parametric mapping. This architecture is well-suited for the task because it naturally handles hierarchical features and denoising. The model is trained to reconstruct a clean image from a noisy version. To minimize the reconstruction error in a scene with multiple objects, the network is forced to learn how to separate them into different groups.

Experimental Evaluation

The researchers evaluated Tagger on three primary datasets designed to test grouping under heavy clutter:

  • Shapes: Simple 20x20 binary images containing three overlapping geometric shapes (triangles, squares, etc.).
  • TextureMNIST1: A single MNIST digit placed on a background with a distracting sinusoidal texture.
  • TextureMNIST2: A more challenging version with two overlapping MNIST digits on a textured background. This dataset was specifically designed to test the model's ability to handle heavy clutter and overlap.

Key Results and Insights

  • Beating CNNs on Clutter: On the difficult TextureMNIST2 task, the fully connected Tagger achieved a 7.9% error rate, significantly better than a strong ConvNet baseline at 12.6%. This is particularly impressive because the Tagger model used is fully connected and lacks the spatial priors (like translation invariance) inherent in CNNs.
  • Semi-Supervised Dominance: When trained with only 1,000 labeled examples on TextureMNIST2, Tagger achieved 24.9% error. In contrast, the ConvNet failed completely, performing at near-chance levels (79.1% error). This indicates that the emergent segmentation acts as a powerful regularizer, improving sample efficiency.
  • Domain Agnosticism: Because the model can be fully connected, it is not restricted to images. It can learn to group any type of data modality, such as audio or tactile sensations, where traditional convolutional architectures might not apply.
  • Fast Convergence: The model typically converges to a high-quality segmentation within just 5 iterations, making the "iterative" part of the process computationally efficient.

Conclusion

Tagger demonstrates that perceptual grouping can emerge from unsupervised denoising objectives. By explicitly reasoning about groups and amortizing the inference process, the model avoids feature interference and achieves superior performance in cluttered, low-label regimes. Future work may explore hierarchical grouping (groups within groups) and extending the framework to temporal data like video, where motion provides additional cues for object discovery.

Summary updated

BibTeX
@inproceedings{greff2016tagger,
  author = {Klaus Greff and Antti Rasmus and Mathias Berglund and Tele Hotloo Hao and Jürgen Schmidhuber and Harri Valpola},
  title = {{Tagger: Deep Unsupervised Perceptual Grouping}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=ryWdxKbdWr},
}
Figure