Learning to Align from Scratch

Gary B. Huang, Marwan A. Mattar, Honglak Lee, Erik G. Learned-MillerNeurIPS 2012

This paper introduces "Deep Congealing," a novel framework that successfully merges unsupervised joint image alignment with deep feature learning. By incorporating a unique group sparsity penalty to generate topographically organized filters, the authors achieve state-of-the-art face verification results on the challenging Labeled Faces in the Wild (LFW) dataset—crucially, without requiring any manually labeled facial landmarks.

The Problem: Intra-class Variability and Alignment

In computer vision, "intra-class variability" refers to the differences in pose, lighting, and expression within the same category of objects. This variability remains a major hurdle for tasks such as face verification. To mitigate this, researchers typically "align" images to a canonical pose before performing classification or verification.

Examples of face images demonstrating intra-class variability, such as differences in pose, lighting, and expression.

Traditionally, alignment has relied on supervised methods, where humans manually annotate "fiducial points" (e.g., the corners of the eyes or the tip of the nose). This process is highly labor-intensive and fails to generalize easily to new object classes. Alternatively, unsupervised alignment (specifically a technique known as "congealing") eliminates the need for manual labels. However, previous congealing methods relied heavily on hand-crafted features like SIFT. These hand-crafted features often produce a "jagged" optimization landscape, causing alignment algorithms to frequently get stuck in local minima.

Methodology: Deep Congealing and Topographic Filters

The authors propose a hybrid approach that discards hand-crafted descriptors in favor of features learned directly from data using Convolutional Restricted Boltzmann Machines (CRBMs) and Deep Belief Networks (DBNs).

The framework is built on three core technical contributions:

  1. Deep Congealing: The authors integrate deep learning directly into the congealing framework. Instead of minimizing the entropy of raw pixel intensities or SIFT values across an image set, the algorithm minimizes the entropy of pooling unit activations within a deep network.
  2. Topographic Filter Learning: This is the critical innovation of the paper. While standard deep learning models learn independent filters, the authors introduce a group sparsity penalty (a sum of $L^2$ norms, which acts effectively as an $L^1$ norm on groups) to the learning objective. This penalty forces the model to organize its filters into a linear topography where neighboring filters are visually and functionally similar.
  3. Smooth Optimization: Because neighboring filters in the topographic map are similar, small transformations in the input image (such as a slight rotation or translation) cause the feature activations to change smoothly rather than abruptly. This creates a much smoother landscape for the alignment algorithm's hill-climbing optimization, preventing it from getting trapped in local minima.

Key Insights and Datasets

The method was primarily evaluated on the Labeled Faces in the Wild (LFW) dataset, the standard benchmark for unconstrained face verification. The authors also utilized Kyoto Images (a set of natural images) for "self-taught learning," demonstrating that features learned on general, non-face images can still effectively assist in aligning specific objects like faces.

Several key insights emerged from the research:

  • Data-Driven Features Win: Features tuned to the specific statistical properties of the dataset being aligned consistently outperform generic, hand-crafted descriptors.
  • Topography Matters for Alignment: In unsupervised alignment, the structure of the feature space is just as important as the features themselves. By enforcing a topographic map, the authors essentially "interpolated" the feature space, making the alignment process highly robust to small spatial errors.
  • Hierarchy of Alignment: Different layers of the deep network capture different statistics. Combining alignment "scores" from multiple layers yielded better results than relying on any single layer, suggesting that lower layers handle fine-grained, local alignment while higher layers manage abstract, structural alignment.

Results

The Deep Congealing method demonstrated exceptional performance on the LFW face verification task:

  • Deep Congealing (Combined Layers): 83.1% accuracy
  • Commercial Supervised Method (LFW-a): 82.3% accuracy
  • Supervised Fiducial Alignment: 80.5% accuracy
  • SIFT Congealing (Previous Unsupervised SOTA): 75.8% accuracy

Notably, this unsupervised method not only outperformed a well-known supervised landmark-based system but also slightly exceeded the performance of a high-end commercial supervised system, all without utilizing a single manually labeled landmark.

Limitations and Future Work

While highly effective, the current framework focuses primarily on similarity transformations (rotation, translation, and scaling). It does not yet handle complex non-rigid deformations—such as a person smiling or squinting—as deeply as specialized, model-based face trackers. Additionally, training a DBN with group sparsity followed by iterative congealing carries a higher computational overhead than simple, feed-forward landmark detection.

Future work could explore how well this "from scratch" alignment approach generalizes to highly deformable objects or categories with even more extreme intra-class variance, such as different breeds of animals.

Summary updated

BibTeX
@inproceedings{huang2012learning,
  author = {Gary B. Huang and Marwan A. Mattar and Honglak Lee and Erik G. Learned-Miller},
  title = {{Learning to Align from Scratch}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2012},
}
Figure