mlsanityData to 7 Oct 2026

Smooth Loss Functions for Deep Top-k Classification

arXiv 1802.07595 ↗First posted 21 Feb 2018cs.LGcited by 46

Not on the map. Why?

Abstract (arXiv)

The top-k error is a common measure of performance in machine learning and computer vision. In practice, top-k classification is typically performed with deep neural networks trained with the cross-entropy loss. Theoretical results indeed suggest that cross-entropy is an optimal learning objective for such a task in the limit of infinite data. In the context of limited and noisy data however, the use of a loss function that is specifically designed for top-k classification can bring significant improvements. Our empirical evidence suggests that the loss function must be smooth and have non-sparse gradients in order to work well with deep neural networks. Consequently, we introduce a family of smoothed loss functions that are suited to top-k optimization via deep learning. The widely used cross-entropy is a special case of our family. Evaluating our smooth loss functions is computationally challenging: a na"ive algorithm would require O(binomnk) operations, where n is the number of classes. Thanks to a connection to polynomial algebra and a divide-and-conquer approach, we provide an algorithm with a time complexity of O(k n). Furthermore, we present a novel approximation to obtain fast and stable algorithms on GPUs with single floating point precision. We compare the performance of the cross-entropy loss and our margin-based losses in various regimes of noise and data size, for the predominant use case of k=5. Our investigation reveals that our loss is more robust to noise and overfitting than cross-entropy.

Key facts. Cited by 46 papers in the map (data through 7 Oct 2026). First posted on arXiv 21 Feb 2018.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 5; 2022: 9; 2023: 15; 2024: 6; 2025: 6; 2026: 5.

46 papers.

Sort:

By area:

  1. 2021Self-Regulated Learning for Egocentric Video Activity Anticipationcited by 32
  2. 2021Set-valued classification -- overview via a unified frameworkcited by 27
  3. 2023Diagnose Like a Pathologist: Transformer-Enabled Hierarchical Attention-Guided Multiple Instance Learning for Whole Slide Image Classificationcited by 27
  4. 2022Rank-based Decomposable Losses in Machine Learning: A Surveycited by 26
  5. 2023Fast, Differentiable and Sparse Top-k: a Convex Analysis Perspectivecited by 26
  6. 2023PowerBEV: A Powerful Yet Lightweight Framework for Instance Prediction in Bird's-Eye Viewcited by 24
  7. 2024Cardinality-Aware Set Prediction and Top-k Classificationcited by 23
  8. 2022Differentiable Top-k Classification Learningcited by 21
  9. 2022An Embedding Framework for the Design and Analysis of Consistent Polyhedral Surrogatescited by 14
  10. 2023Backpropagation of Unrolled Solvers with Folded Optimizationcited by 13
  11. 2025UniGuardian: A Unified Defense for Detecting Prompt Injection, Backdoor Attacks and Adversarial Attacks in Large Language Modelscited by 12
  12. 2025LapSum -- One Method to Differentiate Them All: Ranking, Sorting and Top-k Selectioncited by 12
34 more
  1. 2022Stochastic smoothing of the top-K calibrated hinge loss for deep imbalanced classificationcited by 10
  2. 2022Optimizing Partial Area Under the Top-k Curve: Theory and Practicecited by 9
  3. 2022Unified Recurrence Modeling for Video Action Anticipationcited by 7
  4. 2023OOD Aware Supervised Contrastive Learningcited by 7
  5. 2023Dual-Encoders for Extreme Multi-Label Classificationcited by 7
  6. 2021Higher Order Recurrent Space-Time Transformer for Video Action Predictioncited by 6
  7. 2021Relaxing Local Robustnesscited by 6
  8. 2024Probabilistic Decomposed Linear Dynamical Systems for Robust Discovery of Latent Neural Dynamicscited by 6
  9. 2024Top-k Classification and Cardinality-Aware Predictioncited by 5
  10. 2022Contrastive Classification and Representation Learning with Probabilistic Interpretationcited by 4
  11. 2023VS-TransGRU: A Novel Transformer-GRU-based Framework Enhanced by Visual-Semantic Fusion for Egocentric Action Anticipationcited by 4
  12. 2023Generalized Neural Sorting Networks with Error-Free Differentiable Swap Functionscited by 4
  13. 2025Applications of Entropy in Data Analysis and Machine Learning: A Reviewcited by 3
  14. 2026SoftMoE: Soft Differentiable Routing for Mixture-of-Experts in LLMscited by 3
  15. 2022Bridging the Gap: Differentially Private Equivariant Deep Learning for Medical Image Analysiscited by 2
  16. 2023Slim U-Net: Efficient Anatomical Feature Preserving U-net Architecture for Ultrasound Image Segmentationcited by 2
  17. 2023Smooth and Stepwise Self-Distillation for Object Detectioncited by 2
  18. 2023Kidney abnormality segmentation in thorax-abdomen CT scanscited by 2
  19. 2023Locally Differentially Private Gradient Tracking for Distributed Online Learning over Directed Graphscited by 2
  20. 2024ParCon: Noise-Robust Collaborative Perception via Multi-module Parallel Connectioncited by 2
  21. 2025Differentiable Fast Top-K Selection for Large-Scale Recommendationcited by 2
  22. 2026BlockPilot: Instance-Adaptive Policy Learning for Diffusion-based Speculative Decodingcited by 2
  23. 2021Classification Under Ambiguity: When Is Average-K Better Than Top-K?cited by 1
  24. 2022Provable Robust Saliency-based Explanationscited by 1
  25. 2023Analyzing and Enhancing the Backward-Pass Convergence of Unrolled Optimizationcited by 1
  26. 2024Universally Harmonizing Differential Privacy Mechanisms for Federated Learning: Boosting Accuracy and Convergencecited by 1
  27. 2023A two-head loss function for deep Average-K classificationcited by 0
  28. 2023When Measures are Unreliable: Imperceptible Adversarial Perturbations toward Top-k Multi-Label Learningcited by 0
  29. 2024Learning to Rank for Maps at Airbnbcited by 0
  30. 2025Pathological Prior-Guided Multiple Instance Learning For Mitigating Catastrophic Forgetting in Breast Cancer Whole Slide Image Classificationcited by 0
  31. 2025Scalable and Precise Patch Robustness Certification for Deep Learning Models with Top-k Predictionscited by 0
  32. 2026MB-DSMIL-CL-PL: Scalable Weakly Supervised Ovarian Cancer Subtype Classification and Localisation Using Contrastive and Prototype Learning with Frozen Patch Featurescited by 0
  33. 2026ConquerNet: Convolution-Smoothed Quantile ReLU Neural Networks with Minimax Guaranteescited by 0
  34. 2026Information Specialization and Constrained Synthesis in Multi-Agent LLM Forecasting: A Prospective Live-Study of the 2026 FIFA World Cupcited by 0