Introduction
Joint Alignment (JA) is a classic computer vision problem: given a collection of images, how can they be geometrically transformed to line up perfectly? Despite its conceptual simplicity, JA is notoriously difficult due to variations in pose, lighting, and background clutter. Furthermore, optimization often falls into "trivial" traps, such as shrinking images to a single pixel to achieve a mathematical match.
Traditional deep learning approaches have attempted to solve this by using high-capacity models like Vision Transformers (ViTs) and adding numerous regularization terms to prevent model collapse. However, these terms require tedious hyperparameter tuning and make models computationally heavy. In this work, we introduce SpaceJAM, a lightweight, regularization-free approach that solves these issues while running over 10x faster than current state-of-the-art methods.
Methodology
SpaceJAM is designed to be minimalist, focusing on a better mathematical formulation rather than increased model capacity. The architecture consists of two main components: feature preprocessing and an alignment network.
Feature Preprocessing and Interpretation
The method leverages DINO-ViT features for their rich semantic information. These features are compressed using Principal Component Analysis (PCA) and then passed through a tiny Autoencoder (AE) with only ~3K parameters. This results in a 3-channel representation that is visually interpretable; for instance, specific features like a cat's face consistently map to the same color across different images.
The Alignment Network ($\psi_{align}$)
Instead of a heavy neural network, SpaceJAM utilizes a Recurrent Spatial Transformer Network (STN). The network is constrained by a Lie-algebraic framework, predicting parameters in algebras such as $se(2)$ for rigid motion or $sl(3)$ for homographies. This ensures that transformations remain mathematically well-behaved.
The core of the optimization is the Inverse-Compositional Loss. Unlike traditional methods that compare images to a central "atlas" template, this loss function aligns pairs within a batch by warping one forward and the other backward. This formulation naturally prevents the "shrinking to zero" problem without requiring explicit regularization terms.
Experimental Results
SpaceJAM was evaluated on the SPair-71K and CUB-200-2011 benchmarks. The results highlight the method's efficiency and accuracy.
Efficiency and Speed
SpaceJAM uses only 0.016M parameters, a significant reduction compared to NeuCongealing (28.7M) and ASIC (7.9M). This efficiency translates to a training time of approximately 6 minutes on a single RTX 4090, whereas competing methods often require over an hour to converge.
Alignment Accuracy
On the SPair-71K 'Cat' category, SpaceJAM achieved a [email protected] score of 60.8, outperforming ASIC (54.8) and NeuCongealing (53.3). Qualitatively, the method produces cleaner, geometrically consistent alignments compared to dense warping methods, which can distort object shapes to force a match.
Conclusion
SpaceJAM demonstrates that effective joint image alignment can be achieved through minimalist design and robust mathematical constraints. By eliminating the need for complex regularization and high-capacity architectures, it offers a fast, interpretable, and accurate solution for "in-the-wild" image alignment. Future work may explore extending the transformation family to handle highly non-rigid objects.
Summary updated