Stationary Representations: Optimally Approximating Compatibility and Implications for Improved Model Replacements

Niccolò Biondi, Federico Pernici, Simone Ricci, Alberto Del Bimbo

Introduction

Updating large-scale image retrieval systems often necessitates a costly "re-indexing" process, where millions of gallery images must be reprocessed whenever a new, superior model is deployed. This paper proposes the use of stationary representations—embeddings aligned to a fixed geometric classifier—to enable seamless, backward-compatible model updates. By fixing the classification layer as a $d$-simplex, the authors demonstrate that models can be replaced or fine-tuned without requiring gallery re-processing. The introduction of a Higher-Order Compatibility (HOC) loss further ensures fine-grained alignment between successive model iterations.

The Challenge of Backward Compatibility

In domains such as face recognition and web-scale image search, Deep Neural Networks (DNNs) map images into high-dimensional embedding spaces. However, when a model is updated—due to new architectures or expanded training data—the resulting embedding space typically shifts, rendering new query vectors incompatible with existing gallery vectors. Traditionally, this "re-indexing nightmare" requires re-extracting features for the entire database, a task that is computationally prohibitive and often impossible due to privacy-related data deletion. This work addresses the challenge of Backward Compatibility, seeking a way to update models asynchronously while ensuring "new" queries remain compatible with "old" gallery data.

Methodology: Stationary Representations

The core of the proposed solution is the concept of Stationary Representations.

  1. Fixed $d$-Simplex Classifier: Unlike standard training where the final classification layer is learnable, the authors fix it using a $d$-simplex geometry. This places class prototypes at maximally separated points on a hypersphere. Since these targets are stationary, different models naturally align their features toward the same fixed coordinates, creating a "universal language" for embeddings.
  2. IAM-CL2R Framework: The "Improved Asynchronous Model Compatible Lifelong Learning Representation" framework allows for continuous fine-tuning on new tasks and the integration of superior third-party pre-trained models without breaking system compatibility.
  3. Higher-Order Compatibility (HOC) Loss: To achieve near-perfect alignment, the authors introduce HOC loss. This loss combines standard cross-entropy with a contrastive (infoNCE) component, forcing the model to capture intricate dependencies between old and new representation spaces.
The stationary representation framework enables seamless model replacement across sequential tasks without re-indexing the gallery.

Theoretical insights provided in the paper suggest that trainable classifiers are fundamentally incapable of satisfying formal compatibility requirements. Thus, a fixed geometric reference is essential for optimal approximation of the compatibility constraints (keeping same-class items close and different-class items distant).

Experimental Evaluation

The approach was validated through a rigorous pipeline using ImageNet32 for pre-training and CIFAR100R for sequential fine-tuning across 7 and 31 tasks. Open-set retrieval performance was measured using CIFAR10 as the gallery and query sets, testing the models' ability to generalize to unseen classes throughout the update lifecycle.

Key Results

The proposed d-Simplex-HOC method demonstrated a clear advantage over state-of-the-art techniques:

  • Superior Compatibility: In a 31-task sequence, it achieved an Average Compatibility (AC) of 0.65, whereas baseline methods like BCT and CVS saw compatibility collapse toward zero.
  • Architecture Agnostic Updates: The system successfully handled "hot-swapping" between different architectures (e.g., ResNet18 to SENet18 to RegNetY). Unlike competing methods, d-Simplex-HOC showed improved accuracy as more powerful models were introduced.
  • Efficient Delivery: High retrieval accuracy was maintained throughout the model lifecycle without any gallery re-processing.
Heatmap comparison of retrieval accuracy across model versions. d-Simplex-HOC (d) maintains high performance (yellow) for all query-gallery pairs, unlike baselines (a-c).

Conclusion and Limitations

Stationary representations offer a mathematically grounded and practical solution to the model update problem in large-scale retrieval systems. While highly effective, the approach requires pre-allocating a fixed number of classes ($K$) within the $d$-simplex, which may pose challenges for systems with an unknown or rapidly growing number of classes. Future work will focus on scaling these geometric representations to web-scale datasets and optimizing the computational overhead associated with the HOC loss.

Summary updated

BibTeX
@inproceedings{biondi2024stationary,
  author = {Niccolò Biondi and Federico Pernici and Simone Ricci and Alberto Del Bimbo},
  title = {{Stationary Representations: Optimally Approximating Compatibility and Implications for Improved Model Replacements}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure