Fast Differentiable Sorting and Ranking

The sorting operation is one of the most commonly used building blocks in computer programming. In machine learning, it is often used for robust statistics. However, seen as a function, it is piecewise linear and as a result includes many kinks where it is non-differentiable. More problematic is the related ranking operator, often used for order statistics and ranking metrics. It is a piecewise constant function, meaning that its derivatives are null or undefined. While numerous works have proposed differentiable proxies to sorting and ranking, they do not achieve the $O(n \log n)$ time complexity one would expect from sorting and ranking operations. In this paper, we propose the first differentiable sorting and ranking operators with $O(n \log n)$ time and $O(n)$ space complexity. Our proposal in addition enjoys exact computation and differentiation. We achieve this feat by constructing differentiable operators as projections onto the permutahedron, the convex hull of permutations, and using a reduction to isotonic optimization. Empirically, we confirm that our approach is an order of magnitude faster than existing approaches and showcase two novel applications: differentiable Spearman's rank correlation coefficient and least trimmed squares.

The Proof andMeasurement of…The Proof and Measurement of Association Between Two Things.Robust Estimation of aLocation ParameterRobust Estimation of a Location ParameterLeast Median of SquaresRegressionLeast Median of Squares RegressionOn the limited memoryBFGS method for large…On the limited memory BFGS method for large scale optimizationScikit-learn: MachineLearning in PythonScikit-learn: Machine Learning in PythonRanking via SinkhornPropagationRanking via Sinkhorn PropagationAdam: A Method forStochastic OptimizationAdam: A Method for Stochastic OptimizationTensorFlow: A System forLarge-Scale Machine…TensorFlow: A System for Large-Scale Machine LearningDifferentiable Learningof Submodular ModelsDifferentiable Learning of Submodular ModelsStochastic Optimizationof Sorting Networks via…Stochastic Optimization of Sorting Networks via Continuous RelaxationsDifferentiable Rankingand Sorting using…Differentiable Ranking and Sorting using Optimal TransportLearning withFenchel-Young LossesLearning with Fenchel-Young LossesGradient Estimation withStochastic Softmax…Gradient Estimation with Stochastic Softmax TricksA mathematical model forautomatic…A mathematical model for automatic differentiation in machine learningTowards Safe PolicyImprovement for…Towards Safe Policy Improvement for Non-Stationary MDPsIndex tracking withdifferentiate asset…Index tracking with differentiate asset selectionSelf-Supervised Learningof Audio Representation…Self-Supervised Learning of Audio Representations From Permutations With Differentiable RankingAction Sequencing UsingVisual PermutationsAction Sequencing Using Visual PermutationsDifferentiableAgent-Based Simulation…Differentiable Agent-Based Simulation for Gradient-Guided Simulation-Based OptimizationDifferentiable PatchSelection for Image…Differentiable Patch Selection for Image RecognitionCombining evolutionaryand assay-labelled data…Combining evolutionary and assay-labelled data for protein fitness predictionLongitudinalSelf-supervision to…Longitudinal Self-supervision to Disentangle Inter-patient Variability from Disease ProgressionMeta-Calibration:Meta-Learning of Model…Meta-Calibration: Meta-Learning of Model Calibration Using Differentiable Expected Calibration ErrorFlexSelect: FlexibleToken Selection for…FlexSelect: Flexible Token Selection for Efficient Long Video UnderstandingFast DifferentiableSorting and RankingFast Differentiable Sorting and RankingEarlier referencesFocus paperCiting papersOlderNewer

Click a node to pin it, click the empty canvas to go back to this paper, or hover to preview. Open a node’s page from its title.