Abstract
In this paper we pursue the task of aligning an ensemble of images in an unsupervised manner. This task has been commonly referred to as “congealing” in literature. A form of congealing, using a least-squares criteria, has been recently demonstrated to have desirable properties over conventional congealing. Least-squares congealing can be viewed as an extension of the Lucas & Kanade (LK) image alignment algorithm. It is well understood that the alignment performance for the LK algorithm, when aligning a single image with another, is theoretically and empirically equivalent for additive and compositional warps. In this paper we: (i) demonstrate that this equivalence does not hold for the extended case of congealing, (ii) characterize the inherent drawbacks associated with least-squares congealing when dealing with large numbers of images, and (iii) propose a novel method for circumventing these limitations through the application of an inverse-compositional strategy that maintains the attractive properties of the original method while being able to handle very large numbers of images.
Introduction
"Congealing" is the unsupervised process of aligning an ensemble of images, such as faces or handwritten digits, without manual labels. While traditional entropy-based cost functions are slow and sensitive to hyperparameters, recent shifts toward Least-Squares Congealing (LSC)—an extension of the Lucas-Kanade (LK) algorithm—offered faster convergence and better stability.
However, LSC faces a significant challenge when scaling to large datasets: object loss. If an image in the stack is an outlier or poorly initialized, the mathematical updates can warp it so aggressively that the object of interest disappears from the field of view. This paper identifies the root cause of this failure—the breakdown of the classic equivalence between additive and compositional image alignment when applied to groups—and proposes a robust solution.
Methods
The authors bridge the gap between classic image-to-image alignment and ensemble alignment through three key contributions:
- Breaking the Equivalence: They prove that while additive and compositional warp updates are equivalent when aligning just two images, they are not equivalent for ensembles ($N > 2$). Additive updates lead to inconsistent geometric distortions across the stack.
- Compositional Updates: By modifying LSC to use compositional warps, geometric changes (like scaling) are applied consistently across all images in the stack, preventing the distortions seen in additive methods.
- Inverse-Compositional Formulation: To solve the "object loss" problem, the authors flip the alignment strategy. Instead of warping the entire stack to match a single "held-out" image, they warp the held-out image to match the stack using an inverse-compositional strategy. This keeps the stack images (the "template") stable and prevents outliers from being warped out of frame.
Results and Discussion
The approach was evaluated on the MultiPIE face dataset and the MNIST handwritten digit database. On MultiPIE, researchers tested alignment accuracy against ground-truth landmarks under random perturbations. On MNIST, they demonstrated the ability to congeal 6,000 samples of each digit, producing sharp class templates entirely unsupervised.
Key findings include:
- Robustness to Scale: While the "Forward Compositional" method's performance drops significantly as the number of images increases (particularly beyond $N=30$), the Inverse-Compositional method maintains high accuracy even with 500+ images.
- Texture Preservation: By aligning the stack to a held-out image rather than a simple average, the method avoids the "blurring" problem where fine details are lost during iteration.
Conclusion
This work demonstrates that the choice of warp update and alignment direction is critical for scaling congealing to large datasets. By adopting an inverse-compositional strategy, the authors enable the simultaneous alignment of thousands of images without the risk of object loss. Future work may address the computational intensity—currently around 16 hours for 500 images—through parallelization and more efficient memory management, as well as extending the framework to non-rigid deformations.
Summary updated