This is the official repository of the paper "Hyperspherical Simplex Representations for Backward-Compatible Retrieval" by Simone Ricci*, Niccolò Biondi*, Federico Pernici and Alberto Del Bimbo (*equal contribution).
Training modern AI models has become increasingly expensive, and updating deployed models can alter their internal feature representations, affecting applications built upon them. In retrieval systems, such updates often require a complete gallery re-indexing, which is computationally expensive at scale. Existing backward-compatibility methods enable direct comparison between representations produced by updated and earlier models, avoiding re-indexing. However, they typically require compatibility-specific training, learned mapping functions, or modifications to the model architecture, and often depend explicitly on the previous model. In this paper, we propose hyperspherical simplex representations derived from softmax outputs and logits for backward-compatible retrieval across independently trained models. These representations leverage the simplex structure induced by softmax cross-entropy training with one-hot labels, which provides a common geometric reference across model updates. Since this reference depends on the number of classes, introducing new ones during an update expands the simplex, thereby misaligning the prototypes of existing classes with their earlier counterparts. We therefore derive a deterministic linear transformation to restore their alignment. We further provide a theoretical analysis of the formal backward-compatibility definition, identifying two geometric conditions under which its inequalities hold in expectation, assuming von Mises–Fisher class distributions whose concentration increases across updates. Aligned regular-simplex representations satisfy these conditions, providing a theoretical basis for the proposed representations under the stated assumptions. Without using additional compatibility-specific losses, learned mappings, or modifications to the model architecture, the proposed representations achieve competitive results on standard compatibility benchmarks, including scenarios with expanded class sets, more expressive architectures, and independently trained models from public repositories.
Softmax outputs lie on the probability simplex
-
PSP (Probability Simplex Projection): center the softmax outputs and project them onto the hypersphere, with
$\mathbf P_{k,k}=\mathbf I-\tfrac{1}{C^k}\mathbf J$ . LSP (Logits Simplex Projection):$\ell_2$ -normalize the logits, which align with the same prototype directions.
-
Angular correction: when an update adds classes (
$C^t>C^k$ ), the simplex expands and every existing prototype rotates by
The deterministic map
-
Retrieve against the unchanged old gallery with cosine similarity. Optionally keep only the top-
$k$ entries of each feature to reduce storage.
No compatibility losses, no learned mappings, no architecture changes, and no access to the old model during training.
Theorem 3.6. Assume that (i) the features of each class follow
Corollary 3.7. A regular simplex centered at the origin has
- Many updates: on CIFAR-100 with 50 updates, PSP / LSP keep AC = 0.39 / 0.36, against at most 0.11 for prior compatibility methods.
- ImageNet-1K, 5 updates: PSP is compatible on every update pair (AC = 1.00), against at most 0.20 for prior methods.
- Public models: five independently pretrained torchvision models (AlexNet → ResNet-50 → RegNetX → ResNet-152 → MaxViT-T) are compatible on 10 / 10 update pairs with PSP, and on 0 / 10 with encoder features.
- Scalable: top-256 sparsification reduces gallery storage by about 159× on Google Landmarks v2, with unchanged results.
The code will be released soon....
@article{ricci2026hyperspherical,
title = {Hyperspherical Simplex Representations for Backward-Compatible Retrieval},
author = {Ricci, Simone and Biondi, Niccol{\`o} and Pernici, Federico and Del Bimbo, Alberto},
journal = {arXiv preprint arXiv:2610.29550},
year = {2026}
}- Simone Ricci*
- Niccolò Biondi*
- Federico Pernici
- Alberto Del Bimbo
*Equal contribution. Media Integration and Communication Center (MICC), University of Florence.
The animal icons in the animation are from Font Awesome Free (CC BY 4.0).
For questions, please contact Simone Ricci at simone.ricci@unifi.it.
