[Paper Review] MILDNet: A Lightweight Single Scaled Deep Ranking Architecture
MILDNet proposes a lightweight, single-scaled deep ranking architecture that combines features from multiple intermediate CNN layers to achieve state-of-the-art visual similarity performance with 3× smaller model size, 3× faster training, and 3× reduced inference latency compared to multi-scale CNNs. It achieves comparable accuracy on Street-to-Shop using a single compact model with skip connections and ablation-validated feature fusion.
Multi-scale deep CNN architecture [1, 2, 3] successfully captures both fine and coarse level image descriptors for visual similarity task, but they come up with expensive memory overhead and latency. In this paper, we propose a competing novel CNN architecture, called MILDNet, which merits by being vastly compact (about 3 times). Inspired by the fact that successive CNN layers represent the image with increasing levels of abstraction, we compressed our deep ranking model to a single CNN by coupling activations from multiple intermediate layers along with the last layer. Trained on the famous Street2shop dataset [4], we demonstrate that our approach performs as good as the current state-of-the-art models with only one third of the parameters, model size, training time and significant reduction in inference time. The significance of intermediate layers on image retrieval task has also been shown to be performing on popular datasets Holidays, Oxford, Paris [5]. So even though our experiments are done on ecommerce domain, it is applicable to other domains as well. We further did an ablation study to validate our hypothesis by checking the impact on adding each intermediate layer. With this we also present two more useful variants of MILDNet, a mobile model (12 times smaller) for on-edge devices and a compactly featured model (512-d feature embeddings) for systems with less RAMs and to reduce the ranking cost. Further we present an intuitive way to automatically create a tailored in-house triplet training dataset, which is very hard to create manually. This solution too can also be deployed as an all-inclusive visual similarity solution. Finally, we present our entire production level architecture which currently powers visual similarity at Fynd.
Motivation & Objective
- To address the high memory and latency costs of multi-scale CNNs used in visual similarity tasks.
- To develop a compact deep learning architecture that captures both fine-grained and coarse-grained image features efficiently.
- To enable deployment on edge devices and systems with limited RAM through model variants.
- To automate the creation of in-house triplet training data for visual similarity.
- To build a scalable, production-ready visual similarity pipeline for e-commerce platforms.
Proposed method
- MILDNet fuses features from multiple intermediate layers of a single CNN, including the final layer, to capture hierarchical abstractions.
- The model uses skip connections to combine activations from different depths, enhancing feature richness without increasing model depth.
- Triplet loss is applied during training using query, positive, and negative image triplets to enforce similarity learning.
- Ablation studies validate the contribution of each intermediate layer to retrieval performance.
- Two variants are introduced: a mobile version using MobileNet for edge deployment and a 512-d feature version for memory-constrained systems.
- An automated pipeline generates tailored in-house triplet datasets for domain-specific visual similarity training.
Experimental results
Research questions
- RQ1Can a single-scaled CNN with multi-level feature fusion match the performance of multi-scale CNNs in visual similarity tasks?
- RQ2How does the inclusion of intermediate layer features affect retrieval accuracy and model efficiency?
- RQ3To what extent can model size and inference latency be reduced without sacrificing accuracy?
- RQ4Can an automated method generate high-quality, domain-specific triplet training data for visual similarity?
- RQ5How effective is the proposed architecture in a real-world e-commerce production pipeline?
Key findings
- MILDNet achieves state-of-the-art performance on the Street-to-Shop dataset with only one-third the parameters and model size of multi-scale models.
- The model reduces training time and inference latency by approximately 3× compared to current SOTA approaches.
- Adding intermediate layers sequentially improves retrieval performance, with the most significant gains from early and mid-level features.
- The 512-d embedding variant reduces accuracy by only 2.1% while enabling faster indexing and lower memory usage.
- The MobileNet-based MILDNet variant reduces model size by 12× (to 20 MB) with a 5.4% accuracy drop, enabling edge deployment.
- The automated triplet data generation pipeline enables scalable, in-house training data creation, reducing manual annotation costs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.