Abstract: We introduce the first work to tackle the image retrieval problem as a continuous operation. While the proposed approaches in the literature can be roughly categorized into two main groups: category- and instance-based retrieval, in this work we show that the retrieval task is much richer and more complex. Image similarity goes beyond this discrete vantage point and spans a continuous spectrum among the classical operating points of category and instance similarity. However, current retrieval models are static and incapable of exploring this rich structure of the retrieval space since they are trained and evaluated with a single operating point as a target objective. Hence, we introduce a novel retrieval model that for a given query is capable of producing a dynamic embedding that can target an arbitrary point along the continuous retrieval spectrum. Our model disentangles the visual signal of a query image into its basic components of categorical and attribute information. Furthermore, using a continuous control parameter our model learns to reconstruct a dynamic embedding of the query by mixing these components with different proportions to target a specific point along the retrieval simplex. We demonstrate our idea in a comprehensive evaluation of the proposed model and highlight the advantages of our approach against a set of well-established discrete retrieval models.
Introduction
Traditionally, image retrieval systems have been designed as static entities, optimized for a specific, discrete objective. These systems generally fall into two categories: category-based retrieval, which seeks any image within a broad class (e.g., "find a car"), and instance or attribute-based retrieval, which targets specific visual traits (e.g., "find a white, small, furry dog").
However, real-world visual similarity is rarely so binary. A user might seek a shoe that shares the general category of a query but matches specific stylistic elements like heel height or closure type. This paper argues that the space of image similarity is a rich, continuous spectrum—a "retrieval simplex"—rather than a collection of isolated operating points. Current models are fixed at a single point chosen during training; to change the balance between category and attribute similarity, one would typically need to train an entirely new model.
The Dynamic Retrieval Network (DRN)
To address the limitations of static models, we propose the Dynamic Retrieval Network (DRN). The DRN is designed to navigate the retrieval simplex dynamically at test-time using a controllable "slider" parameter. The architecture is built upon three core innovations:
1. Dual Memory Modules
The model disentangles the visual signal into two parallel paths to separate "what an object is" from "how it looks":
- Generalization Memory ($M_g$): This module captures categorical prototypes, representing information shared across a class. It utilizes a Softmax layer to attend to specific category cells.
- Specification Memory ($M_s$): This module captures attribute-based prototypes, focusing on unique visual traits. It employs a Sigmoid layer to allow for the representation of multiple, overlapping attributes.
2. Dropout Decay Layer (DDL)
Memory networks often suffer from "stagnation," where the model relies on only a few memory cells, leaving the rest of the capacity unused. We introduce the Dropout Decay Layer (DDL) to solve this. DDL begins with a high dropout rate to force the model to explore and initialize a wide variety of cells. As training progresses, the dropout rate gradually decays, allowing the model to refine these diverse representations.
3. Controllable Output Module
At inference, a specificity control parameter $\alpha \in [0, 1]$ acts as a dynamic slider. The final image embedding is a convex combination of the category and attribute representations. When $\alpha \to 0$, the model focuses on broad category similarity; when $\alpha \to 1$, it prioritizes specific instances and fine-grained attributes.
Experimental Evaluation
We evaluated two variants of our model—DRN-C (optimized for classification) and DRN-S (optimized for pairwise similarity)—across three distinct datasets:
- MNIST Attributes: A synthetic dataset adding 12 binary attributes (e.g., colors, stroke styles) to standard digits to test the "slider" effect in a controlled environment.
- UT-Zappos50K: 50,000 footwear images with various tags such as heel height and closure type.
- Shopping100K: A large-scale fashion dataset featuring 100,000 images across 16 categories and 135 semantic attributes.
Key Results and Insights
Our experiments demonstrated that the DRN consistently outperforms well-established discrete models (such as SiamNet, AttNet, and CatNet) across the entire spectrum of $\alpha$. On the complex Shopping100K dataset, the DRN-C model outperformed the best baseline (HyperNet) by approximately 4% in top-20 accuracy, showcasing its ability to handle correlated attributes more effectively than standard joint-learning approaches.
Qualitative results further validate the "smoothness" of the retrieval spectrum. As $\alpha$ increases, retrieved results transition seamlessly from "same category, different look" to "same category, identical look," and eventually to "different category, identical style." This confirms that the model successfully learns to traverse the Simplicial Retrieval Operating Points (SROP) without retraining.
Conclusion and Future Work
The DRN represents a significant shift in retrieval logic, moving from fixed models to dynamic, user-controllable embeddings. While this work primarily explores a 1D line between categories and attributes, the concept of the retrieval simplex could be expanded to include multi-dimensional compositions involving captions, poses, or scene structures. Future research will also focus on moving away from hand-annotated attributes toward self-supervised or machine-inferred traits to improve scalability.
Summary updated