Manuscript Offprint

arXiv:2610.29550

Hyperspherical Simplex Representations for Backward-Compatible Retrieval

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Simone Ricci ∗^{*} †^{\dagger}

Media Integration and Communication Center (MICC)

Dipartimento di Ingegneria dell'Informazione

University of Florence

simone.ricci@unifi.it

Niccolò Biondi ∗^{*}

Multimedia & Human Understanding (MHUG)

Department of Information Engineering and Computer Science

University of Trento

niccolo.biondi@unitn.it

Federico Pernici

Media Integration and Communication Center (MICC)

Dipartimento di Ingegneria dell'Informazione

University of Florence

federico.pernici@unifi.it

Alberto Del Bimbo

Media Integration and Communication Center (MICC)

Dipartimento di Ingegneria dell'Informazione

University of Florence

alberto.delbimbo@unifi.it

Website Code

Abstract

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

∗^{*}The first two authors contributed equally to this work.

†^{\dagger}Corresponding author: Simone Ricci (simone.ricci@unifi.it).

results on standard compatibility benchmarks, including scenarios with expanded class sets, more expressive architectures, and independently trained models from public repositories.

1 Introduction

Training modern AI models has become increasingly expensive, limiting accessibility to a few well-resourced organizations (Radford et al., 2021; Dubey et al., 2024; Jiang et al., 2023; Anthropic, 2024; Yang et al., 2025; Xu et al., 2026; Team et al., 2026). Despite reductions in model parameters and computing costs (Dubey et al., 2024), training from scratch, fine-tuning, and inference remain economically challenging (Wang et al., 2025; OpenAI, 2024). As a result, models are increasingly released through public repositories (Marcel & Rodriguez, 2010; Wolf et al., 2019; Wightman, 2019) or provided as services through APIs, simplifying application development and enabling widespread adoption across domains.

As these models become more integrated into real-world systems, the need to update them is also growing. This demand is driven by several factors (Raffel, 2023; Yadav et al., 2025), including evolving training strategies (Biondi et al., 2026; 2024; Echterhoff et al., 2024; Shen et al., 2020), advancements in model architectures (Touvron et al., 2023; Kaplan et al., 2020), the availability of higher-quality datasets (Gunasekar et al., 2023), the expansion of training classes, or extended training periods (Biderman et al., 2023; Raffel, 2023). Such updates not only improve performance but also bring the rapid progress of the field into deployed models, simplifying their adoption despite the continued growth in the scale and complexity of models, datasets, and infrastructures (Bommasani et al., 2021; Sorscher et al., 2022).

However, a significant drawback of model updates is that they can compromise compatibility with earlier versions, altering the behavior of applications or services built upon them (Raffel, 2023). For example, image retrieval services might experience unexpected changes in image rankings following a model update, forcing users to adapt when previously top-ranked images no longer appear first (Shen et al., 2020). Similarly, end users, such as drivers of semi-autonomous cars, often develop a mental model of the machine learning system's capabilities (Bansal et al., 2019a). When updates modify system behavior, users must adjust their mental model of the system's functionality, a task that can be challenging, dissatisfying, and even unsafe (Bansal et al., 2019b; Templeton, 2019). Recent observations have highlighted similar issues with large language models (LLMs) (Echterhoff et al., 2024; Goswami et al., 2026), raising concerns about AI safety and alignment. This is particularly critical when decisions and textual outputs from these agents are translated into actions (Amodei et al., 2016; Ngo et al., 2024). In such settings, it is essential that the predictions of the updated model mimic those of the old model for any correct classification (Milani Fard et al., 2016; Yan et al., 2021; Ricci et al., 2026b).

Updating a model while ensuring compatibility with its earlier versions has been explored along three complementary dimensions: 1) Weights-level, which explores the merging of model parameters under the assumption of linear mode connectivity, to unify multiple versions into a single, robust model (Frankle et al., 2020; Wortsman et al., 2022; Ainsworth et al., 2023); 2) Representation-level, which seeks to learn backward-compatible representations that are comparable across model updates, so they can be used interchangeably over time (Shen et al., 2020; Meng et al., 2021; Biondi et al., 2026); and 3) Classifier decision-level, which ensures that the updated model preserves the correct predictions of the old model, preventing negative flips (Milani Fard et al., 2016; Yan et al., 2021; Zhao et al., 2024). They target distinct notions of compatibility and accordingly differ in their objectives, mechanisms, and evaluation criteria.

Among these paradigms, we focus on representation-level compatibility, which is particularly relevant to retrieval systems, where feature representations produced by different model versions must remain directly comparable. Backward-compatibility training, introduced by Shen et al. (2020) to avoid image re-indexing of the gallery set, has been established as a standard training paradigm to achieve backward-compatibility between model representations. However, most existing studies on backward-compatibility require training a new model using the old model as a reference (Shen et al., 2020; Meng et al., 2021; Duggal et al., 2021; Pan et al., 2023; Zhou et al., 2023). This approach has become increasingly challenging due to restricted access to old model architectures and weights—often limited by proprietary constraints and non-disclosure policies—as well as the high computational costs associated with training large-scale modern AI models. Recent studies

(Biondi et al., 2023a; 2024; 2026) have addressed this limitation by learning compatible representations without explicitly using the previous model as a reference. However, these approaches require all parties to agree in advance on a shared, pre-allocated fixed classifier (Pernici et al., 2019; 2021a; Zhu et al., 2021).

In this paper, we show that hyperspherical simplex representations derived from the softmax outputs or logits of independently trained 1^{1} models provide backward-compatible retrieval. Our formulation leverages the simplex geometry induced during training by the softmax function and one-hot encoded class labels as a model-agnostic reference, yielding hyperspherical simplex representations that are aligned across model updates. Since their simplex geometries evolve with the introduction of new classes, we propose a deterministic linear transformation that compensates for the resulting angular misalignment between the prototypes of existing classes and their earlier counterparts, thereby preserving their alignment. We theoretically analyze the formal backward-compatibility definition and identify geometric conditions under which its inequalities (Shen et al., 2020) hold in expectation, given explicit assumptions on the feature distributions and their concentration across updates. We then show that these conditions are satisfied by aligned regular-simplex representations, and therefore by the proposed hyperspherical simplex representations, which exhibit this geometry. Although the proposed hyperspherical simplex representations satisfy the geometric conditions established in our analysis, their dimensionality increases linearly with the number of training classes, resulting in substantial storage costs for large-scale galleries. To mitigate this limitation, we adopt a top-k sparsification strategy motivated by the rank-preserving property of the softmax function and the top-k calibration of the softmax cross-entropy loss (Lapin et al., 2016; Yang & Koyejo, 2020), which reduces gallery storage with negligible changes in retrieval accuracy and without degrading compatibility.

Our main contributions are the following:

  1. We introduce a novel approach for backward-compatible retrieval based on hyperspherical simplex representations derived from softmax outputs and logits.

  2. We provide a theoretical analysis of the formal definition of backward-compatibility, identifying geometric conditions under which its inequalities are satisfied in expectation, given explicit distributional and concentration assumptions. We show that hyperspherical simplex representations derived from softmax outputs and logits satisfy these geometric conditions.

  3. We propose a top-k sparsification method for hyperspherical simplex representations, motivated by the rank-preserving property of the softmax function and the top-k calibration of the softmax cross-entropy loss, to reduce representation storage.

  4. We achieve competitive results on standard compatibility benchmarks, obtaining substantial improvements in scenarios involving a large number of model updates, without using additional compatibility-specific losses, learned mappings, or modifications to the model architecture. We provide empirical evidence that representations derived from softmax outputs and logits substantially improve backward-compatibility, even between independently pretrained models obtained from a public repository.

The remainder of the paper is organized as follows. In Sec. 2, we review related work on backward-compatibility. In Sec. 3, we derive hyperspherical simplex representations from softmax outputs and logits and analyze their backward-compatibility under stated theoretical assumptions. In Sec. 4, we present extensive experiments and compare our proposed method with state-of-the-art alternatives. Finally, in Sec. 5, we draw conclusions and discuss the limitations of this work.

References (100)

Couldn't load all references. Reload the page to try again.