Towards Optimal Fine Grained Retrieval via Decorrelated Centralized Loss with Normalize-Scale Layer

Xiawu Zheng, Rongrong Ji, Xiaoshuai Sun, Baochang Zhang, Yongjian Wu, Feiyue Huang

Abstract

Fine-Grained Image Retrieval (FGIR) requires distinguishing between highly similar sub-categories, a task often hindered by the limitations of local mini-batch losses. This paper proposes a novel framework utilizing a Decorrelated Global Centralized Ranking Loss (DGCRL) and a Normalize-Scale (N-S) layer. By projecting features onto a hypersphere and maintaining class center orthogonality through Gram-Schmidt optimization, the method achieves significant accuracy gains and faster convergence compared to traditional triplet-based approaches.

Introduction

Fine-Grained Image Retrieval (FGIR) is a challenging computer vision task that involves identifying specific sub-categories, such as bird species or car models. Traditional deep metric learning approaches often rely on pairwise or triplet losses. However, these methods face two primary bottlenecks: the "Local Structure Challenge," where mini-batch comparisons lack a global view of the embedding space, and the "Slow Training Challenge," often caused by Mean Square Error (MSE) losses getting stuck in local optima and a discrepancy between training objectives and retrieval metrics.

Proposed Method: DGCRL and N-S Layer

To address these challenges, the authors introduce a unified framework that shifts the focus from local image-to-image comparisons to global image-to-center relationships.

Overview of the proposed framework featuring the N-S layer and DGCRL.

Normalize-Scale (N-S) Layer

The N-S layer applies $L_2$ normalization to extracted features followed by a scaling factor ($\alpha$), effectively projecting them onto a hypersphere. This mathematical transformation ensures that maximizing the dot product during training is equivalent to minimizing Euclidean distance during retrieval, bridging the gap between training and deployment.

Decorrelated Global Centralized Ranking Loss (DGCRL)

The DGCRL compares images against global class centers rather than other images in a batch. This approach reduces computational complexity from $O(N^2)$ to $O(N)$. To prevent class centers from collapsing or overlapping, the framework incorporates Gram-Schmidt optimization. This process ensures that class centers remain decorrelated (orthogonal), maximizing the utilization of the high-dimensional embedding space.

Experimental Results

The method was evaluated on the CUB-200-2011 and CARS196 datasets. On the CARS196 benchmark, the proposed approach achieved a 75.9% Recall@1, representing a 12% improvement over previous state-of-the-art methods like CRL-WSL. Furthermore, the model demonstrated exceptional efficiency, reaching peak performance in just 20 epochs—a 5x speedup over traditional triplet-based methods.

Hyperparameter Analysis

The performance of the framework is sensitive to the scaling factor $\alpha$. As shown in the experimental analysis, choosing an appropriate $\alpha$ is crucial for effective class separation.

Impact of the scaling factor alpha on Recall@1 and training accuracy.

If $\alpha$ is set too low, the model experiences a "degeneration" problem, failing to distinguish between classes effectively. Conversely, higher values of $\alpha$ lead to faster convergence and higher final accuracy, although the benefit plateaus beyond a certain threshold.

Conclusion

By moving beyond local triplets to a global, centralized ranking loss with decorrelated centers, this work sets a new standard for fine-grained retrieval. The combination of the N-S layer and Gram-Schmidt optimization provides a robust and efficient path toward optimal feature embedding in highly similar category spaces. Future work may explore dynamic center adjustments for even larger-scale applications.

Summary updated

BibTeX
@inproceedings{zheng2019towards,
  author = {Xiawu Zheng and Rongrong Ji and Xiaoshuai Sun and Baochang Zhang and Yongjian Wu and Feiyue Huang},
  title = {{Towards Optimal Fine Grained Retrieval via Decorrelated Centralized Loss with Normalize-Scale Layer}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33019291},
}
Figure