Differentiable Ranks and Sorting using Optimal Transport
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
Citing papers per year: 2021: 15; 2022: 20; 2023: 23; 2024: 22; 2025: 19; 2026: 14.
113 papers.
Sort:
By area:
- 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 471
- 2025LeJEPA: Provable and Scalable Self-Supervised Learning Without the Heuristicscited by 254
- 2021Learning Optimal Conformal Classifierscited by 112
- 2022Equivariance with Learned Canonicalization Functionscited by 109
- 2022Optimal Transport Tools (OTT): A JAX Toolbox for all things Wassersteincited by 101
- 2024Inference-Aware Fine-Tuning for Best-of-N Sampling in Large Language Modelscited by 89
- 2025Pass@K Policy Optimization: Solving Harder Reinforcement Learning Problemscited by 87
- 2021Differentiable Patch Selection for Image Recognitioncited by 68
- 2022Deep Differentiable Logic Gate Networkscited by 67
- 2021GrooMeD-NMS: Grouped Mathematically Differentiable NMS for Monocular 3D Object Detectioncited by 66
- 2022Training Uncertainty-Aware Classifiers with Conformalized Deep Learningcited by 64
- 2023Zero-TPrune: Zero-Shot Token Pruning through Leveraging of the Attention Graph in Pre-Trained Transformerscited by 62
38 more
- 2021Efficient Video Transformers with Spatial-Temporal Token Selectioncited by 59
- 2022RankSim: Ranking Similarity Regularization for Deep Imbalanced Regressioncited by 52
- 2025Enhancing Time Series Forecasting through Selective Representation Spaces: A Patch Perspectivecited by 39
- 2022SIMPLE: A Gradient Estimator for k-Subset Samplingcited by 34
- 2024Adaptive Slot Attention: Object Discovery with Dynamic Slot Numbercited by 34
- 2021Differentiable Sorting Networks for Scalable Sorting and Ranking Supervisioncited by 31
- 2022A Unified Framework for Implicit Sinkhorn Differentiationcited by 28
- 2023Scalable Optimal Transport Methods in Machine Learning: A Contemporary Surveycited by 27
- 2023A Large-Scale Study of Probabilistic Calibration in Neural Network Regressioncited by 27
- 2024Provably Robust Conformal Prediction with Improved Efficiencycited by 27
- 2023Fast, Differentiable and Sparse Top-k: a Convex Analysis Perspectivecited by 26
- 2024Distributional Preference Alignment of LLMs via Optimal Transportcited by 26
- 2022Monotonic Differentiable Sorting Networkscited by 25
- 2022Faster Unbalanced Optimal Transport: Translation invariant Sinkhorn and 1-D Frank-Wolfecited by 22
- 2025Multivariate Conformal Prediction using Optimal Transportcited by 22
- 2021Learning with Algorithmic Supervision via Continuous Relaxationscited by 21
- 2022Differentiable Top-k Classification Learningcited by 21
- 2024An Information Theoretic Perspective on Conformal Predictioncited by 21
- 2021Structured Reordering for Modeling Latent Alignments in Sequence Transductioncited by 17
- 2022Few-Shot Calibration of Set Predictors via Meta-Learned Cross-Validation-Based Conformal Predictioncited by 17
- 2024LinSATNet: The Positive Linear Satisfiability Neural Networkscited by 16
- 2023BOtied: Multi-objective Bayesian optimization with tied multivariate rankscited by 15
- 2021Self-Supervised Learning of Audio Representations from Permutations with Differentiable Rankingcited by 14
- 2021Learning Revenue-Maximizing Auctions With Differentiable Matchingcited by 14
- 2022Rethinking Initialization of the Sinkhorn Algorithmcited by 14
- 2022Optimizing generalized Gini indices for fairness in rankingscited by 13
- 2023Learning by Sorting: Self-supervised Learning with Group Ordering Constraintscited by 13
- 2025LapSum -- One Method to Differentiate Them All: Ranking, Sorting and Top-k Selectioncited by 13
- 2021NURBS-Diff: A Differentiable Programming Module for NURBScited by 11
- 2024Conformal Risk Minimization with Variance Reductioncited by 11
- 2021Combinatorial Optimization for Panoptic Segmentation: A Fully Differentiable Approachcited by 10
- 2024Progressive Entropic Optimal Transport Solverscited by 10
- 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Planscited by 10
- 2022Approximating 1-Wasserstein Distance with Treescited by 9
- 2022The derivatives of Sinkhorn-Knopp convergecited by 9
- 2021Differentiable Agent-Based Simulation for Gradient-Guided Simulation-Based Optimizationcited by 8
- 2022Spartan: Differentiable Sparsity via Regularized Transportationcited by 8
- 2025Multivariate Conformal Selectioncited by 8
50 most cited of 113 All 113 (JSON)
- 2026SLP-ProbHard: Probabilistic Hard-Constrained Learning via Structural Latent Parameterization27 Sep 2026
- 2026Witnesses Explain Anomalies3 Sep 2026
- 2026Fast Whole-Brain, Geometry-Aware Functional Alignment for Cross-Subject Decoding12 Jul 2026
- 2026SoftMoE: Soft Differentiable Routing for Mixture-of-Experts in LLMs16 Jun 2026
- 2026Convergence of empirical subgradients for optimal transport-based objectives27 May 2026
- 2026Learning Permutation from Structure Without Supervision25 May 2026
- 2026Super-Level-Set Regression: Conditional Quantiles via Volume Minimization7 May 2026
- 2026Learning Dynamic Evidence Routes for Vision Transformer Probing29 Apr 2026
- 2026Metric-agnostic Learning-to-Rank via Boosting and Rank Approximation16 Apr 2026
- 2026Static and Dynamic Approaches to Computing Barycenters of Probability Measures on Graphs27 Mar 2026
- 2026Learning Permutation Distributions via Reflected Diffusion on Ranks18 Mar 2026
- 2026SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative Gradients9 Mar 2026
38 more
- 2026CAIRO: Decoupling Order from Scale in Regression16 Feb 2026
- 2026Differentiable Knapsack and Top-k Operators via Dynamic Programming29 Jan 2026
- 2025Structural Incompatibility of Differentiable Sorting and Within-Vector Rank Normalization27 Dec 2025
- 2025DM3D: Dynamic Mamba via Offset-Guided Feature Resampling for Point Cloud Understanding3 Dec 2025
- 2025LeJEPA: Provable and Scalable Self-Supervised Learning Without the Heuristics11 Nov 2025
- 2025Neural Index Policies for Restless Multi-Action Bandits with Heterogeneous Budgets24 Oct 2025
- 2025Enhancing Time Series Forecasting through Selective Representation Spaces: A Patch Perspective16 Oct 2025
- 2025Conformal Prediction for Signal Temporal Logic Inference29 Sep 2025
- 2025Deceptive Risk Minimization: Out-of-Distribution Generalization by Deceiving Distribution Shift Detectors15 Sep 2025
- 2025Phase transition of the Sinkhorn-Knopp algorithm13 Jul 2025
- 2025Schr"odinger Bridge Matching for Tree-Structured Costs and Entropic Wasserstein Barycentres20 Jun 2025
- 2025Learning Distributions over Permutations and Rankings with Factorized Representations30 May 2025
- 2025Deep greedy unfolding: Sorting out argsorting in greedy sparse recovery algorithms21 May 2025
- 2025Pass@K Policy Optimization: Solving Harder Reinforcement Learning Problems21 May 2025
- 2025Multivariate Conformal Selection1 May 2025
- 2025Many-to-Many Matching via Sparsity Controlled Optimal Transport31 Mar 2025
- 2025Learning Cascade Ranking as One Network12 Mar 2025
- 2025LapSum -- One Method to Differentiate Them All: Ranking, Sorting and Top-k Selection8 Mar 2025
- 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans11 Feb 2025
- 2025Multivariate Conformal Prediction using Optimal Transport5 Feb 2025
- 2025CS-Net:Contribution-based Sampling Network for Point Cloud Simplification18 Jan 2025
- 2024Inference-Aware Fine-Tuning for Best-of-N Sampling in Large Language Models18 Dec 2024
- 2024Discovering Data Structures: Nearest Neighbor Search and Beyond5 Nov 2024
- 2024EXAGREE: Mitigating Explanation Disagreement with Stakeholder-Aligned Models4 Nov 2024
- 2024Conformal Risk Minimization with Variance Reduction3 Nov 2024
- 2024Newton Losses: Using Curvature Information for Learning with Differentiable Algorithms24 Oct 2024
- 2024Permutation Picture of Graph Combinatorial Optimization Problems22 Oct 2024
- 2024C-Adapter: Adapting Deep Classifiers for Efficient Conformal Prediction Sets12 Oct 2024
- 2024Generalizing Stochastic Smoothing for Differentiation and Gradient Estimation10 Oct 2024
- 2024SymmetricDiffusers: Learning Discrete Diffusion on Finite Symmetric Groups3 Oct 2024
- 2024GLinSAT: The General Linear Satisfiability Neural Network Layer By Accelerated Gradient Descent26 Sep 2024
- 2024LinSATNet: The Positive Linear Satisfiability Neural Networks18 Jul 2024
- 2024Adaptive Slot Attention: Object Discovery with Dynamic Slot Number13 Jun 2024
- 2024Differentiable Cost-Parameterized Monge Map Estimators12 Jun 2024
- 2024Distributional Preference Alignment of LLMs via Optimal Transport9 Jun 2024
- 2024Progressive Entropic Optimal Transport Solvers7 Jun 2024
- 2024Segment, Shuffle, and Stitch: A Simple Layer for Improving Time-Series Representations30 May 2024
- 2024CHAMP: Conformalized 3D Human Multi-Hypothesis Pose Estimators27 May 2024
50 newest of 113 All 113 (JSON)
- 2024Distributional Preference Alignment of LLMs via Optimal Transportcited by 26
- 2025Multivariate Conformal Selectioncited by 8
- 2025Multivariate Conformal Selection1 May 2025
- 2024Distributional Preference Alignment of LLMs via Optimal Transport9 Jun 2024
- 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 471
- 2025LeJEPA: Provable and Scalable Self-Supervised Learning Without the Heuristicscited by 254
- 2021Learning Optimal Conformal Classifierscited by 112
- 2022Equivariance with Learned Canonicalization Functionscited by 109
- 2022Optimal Transport Tools (OTT): A JAX Toolbox for all things Wassersteincited by 101
- 2021Differentiable Patch Selection for Image Recognitioncited by 68
- 2022Deep Differentiable Logic Gate Networkscited by 67
- 2021GrooMeD-NMS: Grouped Mathematically Differentiable NMS for Monocular 3D Object Detectioncited by 66
- 2022Training Uncertainty-Aware Classifiers with Conformalized Deep Learningcited by 64
- 2021Efficient Video Transformers with Spatial-Temporal Token Selectioncited by 59
- 2022RankSim: Ranking Similarity Regularization for Deep Imbalanced Regressioncited by 52
- 2025Enhancing Time Series Forecasting through Selective Representation Spaces: A Patch Perspectivecited by 39
12 most cited of 104 All 104 (JSON)
- 2026SLP-ProbHard: Probabilistic Hard-Constrained Learning via Structural Latent Parameterization27 Sep 2026
- 2026Witnesses Explain Anomalies3 Sep 2026
- 2026Fast Whole-Brain, Geometry-Aware Functional Alignment for Cross-Subject Decoding12 Jul 2026
- 2026Convergence of empirical subgradients for optimal transport-based objectives27 May 2026
- 2026Learning Permutation from Structure Without Supervision25 May 2026
- 2026Super-Level-Set Regression: Conditional Quantiles via Volume Minimization7 May 2026
- 2026Learning Dynamic Evidence Routes for Vision Transformer Probing29 Apr 2026
- 2026Metric-agnostic Learning-to-Rank via Boosting and Rank Approximation16 Apr 2026
- 2026Static and Dynamic Approaches to Computing Barycenters of Probability Measures on Graphs27 Mar 2026
- 2026Learning Permutation Distributions via Reflected Diffusion on Ranks18 Mar 2026
- 2026SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative Gradients9 Mar 2026
- 2026CAIRO: Decoupling Order from Scale in Regression16 Feb 2026
12 newest of 104 All 104 (JSON)