mlsanityData to 14 Oct 2026

Shadow loss: Memory-linear deep metric learning for efficient training

arXiv 2311.14012 ↗First posted 23 Nov 2023cs.CVcited by 0

Not on the map. Why?

Abstract (arXiv)

Deep metric learning objectives (e.g., triplet loss) require storing and comparing high-dimensional embeddings, making the per-batch loss buffer scale as O(S· D), where S is the number of samples in a batch and D is the feature dimension, thus limiting training on memory-constrained hardware. We propose Shadow Loss, a proxy-free, parameter-free objective that measures similarity via scalar projections onto the anchor direction, reducing the loss-specific buffer from O(S· D) to O(S) while preserving the triplet structure. We analyze gradients, provide a Lipschitz continuity bound, and show that Shadow Loss penalizes trivial collapse for stable optimization. Across fine-grained retrieval (CUB-200, CARS196), large-scale product retrieval (Stanford Online Products, In-Shop Clothes), and standard/medical benchmarks (CIFAR-10/100, Tiny-ImageNet, HAM-10K, ODIR-5K), Shadow Loss consistently outperforms recent objectives (Triplet, Soft-Margin Triplet, Angular Triplet, SoftTriple, Multi-Similarity). It also converges in ≈ 1.5-2× fewer epochs under identical backbones and mining. Furthermore, it improves representation separability as measured by higher silhouette scores. The design is architecture-agnostic and vectorized for efficient implementation. By decoupling discriminative power from embedding dimensionality and reusing batch dot-products, Shadow Loss enables memory-linear training and faster convergence, making deep metric learning practical on both edge and large-scale systems.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 15 of its 28 references that are in the map. First posted on arXiv 23 Nov 2023.

Builds on

15 of 28 references.

References · 15

  1. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
  2. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
  3. 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,349
  4. 2014Going Deeper with Convolutionscited by 4,241
  5. 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,849
  6. 2017In Defense of the Triplet Loss for Person Re-Identificationcited by 786
  7. 2019Multi-Similarity Loss with General Pair Weighting for Deep Metric Learningcited by 368
  8. 2017Sampling Matters in Deep Embedding Learningcited by 285
  9. 2017No Fuss Distance Metric Learning using Proxiescited by 226
  10. 2019SoftTriple Loss: Deep Metric Learning Without Triplet Samplingcited by 163
  11. 2019Ranked List Loss for Deep Metric Learningcited by 77
  12. 2020A Benchmark for Studying Diabetic Retinopathy: Segmentation, Grading, and Transferabilitycited by 49
3 more
  1. 2015Learning Local Image Descriptors with Deep Siamese and Triplet Convolutional Networks by Minimising Global Loss Functionscited by 33
  2. 2019A Theoretically Sound Upper Bound on the Triplet Loss for Improving the Efficiency of Deep Distance Metric Learningcited by 25
  3. 2019The Group Loss for Deep Metric Learningcited by 20

Built on by

Not cited yet.