mlsanityData to 14 Oct 2026

Differentiable Ranks and Sorting using Optimal Transport

arXiv 1905.11885 ↗First posted 28 May 2019cs.LG stat.MLcited by 113

Not on the map. Why?

Abstract (arXiv)

Sorting an array is a fundamental routine in machine learning, one that is used to compute rank-based statistics, cumulative distribution functions (CDFs), quantiles, or to select closest neighbors and labels. The sorting function is however piece-wise constant (the sorting permutation of a vector does not change if the entries of that vector are infinitesimally perturbed) and therefore has no gradient information to back-propagate. We propose a framework to sort elements that is algorithmically differentiable. We leverage the fact that sorting can be seen as a particular instance of the optimal transport (OT) problem on ℝ, from input values to a predefined array of sorted values (e.g. 1,2,dots,n if the input array has n elements). Building upon this link , we propose generalized CDFs and quantile operators by varying the size and weights of the target presorted array. Because this amounts to using the so-called Kantorovich formulation of OT, we call these quantities K-sorts, K-CDFs and K-quantiles. We recover differentiable algorithms by adding to the OT problem an entropic regularization, and approximate it using a few Sinkhorn iterations. We call these operators S-sorts, S-CDFs and S-quantiles, and use them in various learning settings: we benchmark them against the recently proposed neuralsort [Grover et al. 2019], propose applications to quantile regression and introduce differentiable formulations of the top-k accuracy that deliver state-of-the art performance.

Key facts. Cited by 113 papers in the map (data through 14 Oct 2026). First posted on arXiv 28 May 2019.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 15; 2022: 20; 2023: 23; 2024: 22; 2025: 19; 2026: 14.

113 papers.

Sort:

By area:

  1. 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 471
  2. 2025LeJEPA: Provable and Scalable Self-Supervised Learning Without the Heuristicscited by 254
  3. 2021Learning Optimal Conformal Classifierscited by 112
  4. 2022Equivariance with Learned Canonicalization Functionscited by 109
  5. 2022Optimal Transport Tools (OTT): A JAX Toolbox for all things Wassersteincited by 101
  6. 2024Inference-Aware Fine-Tuning for Best-of-N Sampling in Large Language Modelscited by 89
  7. 2025Pass@K Policy Optimization: Solving Harder Reinforcement Learning Problemscited by 87
  8. 2021Differentiable Patch Selection for Image Recognitioncited by 68
  9. 2022Deep Differentiable Logic Gate Networkscited by 67
  10. 2021GrooMeD-NMS: Grouped Mathematically Differentiable NMS for Monocular 3D Object Detectioncited by 66
  11. 2022Training Uncertainty-Aware Classifiers with Conformalized Deep Learningcited by 64
  12. 2023Zero-TPrune: Zero-Shot Token Pruning through Leveraging of the Attention Graph in Pre-Trained Transformerscited by 62
38 more
  1. 2021Efficient Video Transformers with Spatial-Temporal Token Selectioncited by 59
  2. 2022RankSim: Ranking Similarity Regularization for Deep Imbalanced Regressioncited by 52
  3. 2025Enhancing Time Series Forecasting through Selective Representation Spaces: A Patch Perspectivecited by 39
  4. 2022SIMPLE: A Gradient Estimator for k-Subset Samplingcited by 34
  5. 2024Adaptive Slot Attention: Object Discovery with Dynamic Slot Numbercited by 34
  6. 2021Differentiable Sorting Networks for Scalable Sorting and Ranking Supervisioncited by 31
  7. 2022A Unified Framework for Implicit Sinkhorn Differentiationcited by 28
  8. 2023Scalable Optimal Transport Methods in Machine Learning: A Contemporary Surveycited by 27
  9. 2023A Large-Scale Study of Probabilistic Calibration in Neural Network Regressioncited by 27
  10. 2024Provably Robust Conformal Prediction with Improved Efficiencycited by 27
  11. 2023Fast, Differentiable and Sparse Top-k: a Convex Analysis Perspectivecited by 26
  12. 2024Distributional Preference Alignment of LLMs via Optimal Transportcited by 26
  13. 2022Monotonic Differentiable Sorting Networkscited by 25
  14. 2022Faster Unbalanced Optimal Transport: Translation invariant Sinkhorn and 1-D Frank-Wolfecited by 22
  15. 2025Multivariate Conformal Prediction using Optimal Transportcited by 22
  16. 2021Learning with Algorithmic Supervision via Continuous Relaxationscited by 21
  17. 2022Differentiable Top-k Classification Learningcited by 21
  18. 2024An Information Theoretic Perspective on Conformal Predictioncited by 21
  19. 2021Structured Reordering for Modeling Latent Alignments in Sequence Transductioncited by 17
  20. 2022Few-Shot Calibration of Set Predictors via Meta-Learned Cross-Validation-Based Conformal Predictioncited by 17
  21. 2024LinSATNet: The Positive Linear Satisfiability Neural Networkscited by 16
  22. 2023BOtied: Multi-objective Bayesian optimization with tied multivariate rankscited by 15
  23. 2021Self-Supervised Learning of Audio Representations from Permutations with Differentiable Rankingcited by 14
  24. 2021Learning Revenue-Maximizing Auctions With Differentiable Matchingcited by 14
  25. 2022Rethinking Initialization of the Sinkhorn Algorithmcited by 14
  26. 2022Optimizing generalized Gini indices for fairness in rankingscited by 13
  27. 2023Learning by Sorting: Self-supervised Learning with Group Ordering Constraintscited by 13
  28. 2025LapSum -- One Method to Differentiate Them All: Ranking, Sorting and Top-k Selectioncited by 13
  29. 2021NURBS-Diff: A Differentiable Programming Module for NURBScited by 11
  30. 2024Conformal Risk Minimization with Variance Reductioncited by 11
  31. 2021Combinatorial Optimization for Panoptic Segmentation: A Fully Differentiable Approachcited by 10
  32. 2024Progressive Entropic Optimal Transport Solverscited by 10
  33. 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Planscited by 10
  34. 2022Approximating 1-Wasserstein Distance with Treescited by 9
  35. 2022The derivatives of Sinkhorn-Knopp convergecited by 9
  36. 2021Differentiable Agent-Based Simulation for Gradient-Guided Simulation-Based Optimizationcited by 8
  37. 2022Spartan: Differentiable Sparsity via Regularized Transportationcited by 8
  38. 2025Multivariate Conformal Selectioncited by 8

50 most cited of 113 All 113 (JSON)