Skip to main content
QUICK REVIEW

[Paper Review] Efficient large-scale image retrieval with deep feature orthogonality and Hybrid-Swin-Transformers

Christof Henkel|arXiv (Cornell University)|Oct 7, 2021
Advanced Image and Video Retrieval TechniquesComputer Science5 citations
TL;DR

This paper presents an end-to-end deep learning pipeline for large-scale image retrieval and landmark recognition, combining deep orthogonal fusion of local and global features (DOLG) with a novel Hybrid-Swin-Transformer architecture. The method uses sub-center arcface with dynamic margins and a soft discriminative re-ranking strategy, achieving state-of-the-art performance by winning both tracks of the 2021 Google Landmark Competition.

ABSTRACT

We present an efficient end-to-end pipeline for largescale landmark recognition and retrieval. We show how to combine and enhance concepts from recent research in image retrieval and introduce two architectures especially suited for large-scale landmark identification. A model with deep orthogonal fusion of local and global features (DOLG) using an EfficientNet backbone as well as a novel Hybrid-Swin-Transformer is discussed and details how to train both architectures efficiently using a step-wise approach and a sub-center arcface loss with dynamic margins are provided. Furthermore, we elaborate a novel discriminative re-ranking methodology for image retrieval. The superiority of our approach was demonstrated by winning the recognition and retrieval track of the Google Landmark Competition 2021.

Motivation & Objective

  • To address the challenges of long-tailed class distributions, intra-class variability, and noisy labels in large-scale landmark recognition and retrieval.
  • To improve feature representation by fusing local and global features through deep orthogonal fusion in a single-stage model.
  • To enhance model generalization and robustness using sub-center arcface with dynamic margins for better handling of class imbalance.
  • To develop a novel soft discriminative re-ranking method that improves retrieval accuracy by leveraging label consistency between query and index images.
  • To achieve state-of-the-art performance under strict inference time and resource constraints in a code-based competition setting.

Proposed method

  • Proposes a DOLG-EfficientNet-B5 architecture that fuses 1024D local features from dilated convolutions with global features via orthogonal fusion after spatial self-attention.
  • Introduces a novel Hybrid-Swin-Transformer model that combines EfficientNet backbone with Swin Transformer blocks for improved local and global feature learning.
  • Employs sub-center arcface with dynamic margins to improve discrimination under long-tailed and noisy data distributions.
  • Uses a step-wise training strategy with mixed-precision training on 8x V100 GPUs and data augmentation via albumentations (shift, scale, rotate, cutout).
  • Applies a soft discriminative re-ranking procedure: adds top-3 cosine similarity to train set for matching labels (up-ranking), and subtracts 0.1× top-3 similarity for non-matching labels (down-ranking).
  • Aggregates predictions from 8 models (DOLG, Hybrid-Swin, pure EfficientNet) by averaging descriptors per model type and concatenating to form 1536D vectors for final inference.

Experimental results

Research questions

  • RQ1Can deep orthogonal fusion of local and global features improve performance in large-scale landmark retrieval under class imbalance and intra-class variability?
  • RQ2How effective is the proposed Hybrid-Swin-Transformer architecture in combining CNN and transformer strengths for landmark recognition?
  • RQ3Does sub-center arcface with dynamic margins outperform standard arcface in long-tailed, noisy datasets like GLDv2?
  • RQ4Can a soft discriminative re-ranking strategy significantly improve mAP in retrieval tasks without relying on hard thresholds?
  • RQ5To what extent can a single-stage, end-to-end model outperform two-stage pipelines in large-scale instance-level recognition?

Key findings

  • The DOLG-EfficientNet-B5 model achieved a private mAP of 0.478 and public mAP of 0.464 on the retrieval track, outperforming other models in the ensemble.
  • The Hybrid-Swin-Transformer model (EfficientNet-B6-Swin-Base-384) achieved a private mAP of 0.487 and public mAP of 0.462, demonstrating the effectiveness of hybrid CNN-Transformer designs.
  • The final ensemble model achieved a private mAP of 0.537 and public mAP of 0.518 on the retrieval track, securing first place in the competition.
  • The recognition ensemble achieved a private GAP of 0.513 and public GAP of 0.534, ranking first in the recognition track.
  • The soft discriminative re-ranking procedure significantly improved retrieval performance by enhancing label consistency and reducing false positives.
  • The combination of sub-center arcface with dynamic margins and deep orthogonal fusion led to improved generalization on noisy, long-tailed data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.