# Poster 29018

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/29018

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello, my name is Muhammad Muhammad and I will be presenting my work exploiting distribution constraints for scalable and efficient image retrieval. Modern image retrieval setups have two key problems. The first one is that of data set specific models. State-of-the-art image retrieval methods train large models for each data set and this is an approach that is not scalable. Now the second problem is that state -of-the-art
Home retrieval setups use very huge embedding sizes. We know that the retrieval speed is directly proportional to the embedding size, hence this approach is not efficient. So how are these problems usually addressed in existing approaches? The problem of dataset specific models is usually addressed using off-the-shelf foundation models like Dino and Clip.
Now deforestation models, they lack in performance. They're not as good as data set specific models. Usually to tackle huge embeddings, we perform dimensionality reductions with PC or autoencoders. Now this is, these dimensionality reduction approaches are not specifically tuned for retrieval.
Another problem with auto-encoders is that they require training separate models for each dimension size. We need a solution that is more scalable and more efficient. The following are key insights. On scalable side, we found that the foundation models, they do capture the necessary uncertainties for effective retrieval. But the underlying distribution of their embedded space can negatively impact the cosine similarity searches. We need to improve the underlying distribution.
And on the efficiency side, we find that the dimensionality reduction technique like PC and autoencoders, they either focus on information maximization or the reconstruction quality. Now none of these approaches are specifically tuned for cosine similarity searches. We propose a two-step solution. In our training step one, we take up the foundational model of frozen foundation models and pass it through something that we call autoencoders with strong variant constraint or AESVC.
These auto -encoders essentially take the image embedded from the foundation model, pass it through a latent space and then reconstruct the image embedded. Then we have three constraints that we apply on the latent space. These are mean centering, strict variance constraint and an orthogonal constraint.
With these constraints, the performance of the foundation model improves much more than the standard of the foundation model.
In a train step two we take this end range or improved embedding, the latent embedding set, and use it for dimensionality reduction. For dimensionality reduction we pass the same foundation models to end embedding to an MLP called SS2D which we call single shot similarity space distillation. The whole idea of SS2D is that you create a similarity space between this green embedding and this brown embedding and you try to minimize the KL dive.
which is between the two the brown embedding is the enriched embedding and the green embedding is essentially a reduced dimension embedding and you're trying to make sure that the embedding with the smaller dimension has a similarity space that is similar to the complete to the enriched embedding or the pseudo similarity space is similar to the teacher similarity space another thing to note here is that we have
nested embedding this entire SS2D is a silly consists of nested embeddings with for each small sub embedding we create a similar similarity space and do a KL divergence between the teacher and the all of these nested similarity spaces now with this with this hack we are able to use we're able to get one embedding from SS2D that's essentially adaptive that is at inference time we can decide the size of this embedding
Now at infrastructure first, in FreshTime we actually do not need AESWC, we can directly pass the foundation model embedding to SS2D to get an adaptive embedding. Now if you look at our results, you can see that the default performance of the foundation model that is shown in blue, that is PCA, it is shown in blue and once we apply AESWC on top of PCA, we improve the performance much more.
Now this improved embedding of AESPC is then used as a guide to train SS2D and that's the green curve that you see. And you can see that the x-axis is a representation of KICA FLOPS or the retrieval speed required. That's directly related to the embedding size and on y -axis you see the retrieval precision or MAP at 4, mean average precision. And you can see that the foundation model, the default foundation model with PCA.
You know, it is actually much below than what we get with SS2D.
