Stochastic Optimization of Sorting Networks via Continuous Relaxations
Not on the map. Why?
Abstract (arXiv)
Sorting input objects is an important step in many machine learning pipelines. However, the sorting operator is non-differentiable with respect to its inputs, which prohibits end-to-end gradient-based optimization. In this work, we propose NeuralSort, a general-purpose continuous relaxation of the output of the sorting operator from permutation matrices to the set of unimodal row-stochastic matrices, where every row sums to one and has a distinct arg max. This relaxation permits straight-through optimization of any computational graph involve a sorting operation. Further, we use this relaxation to enable gradient-based stochastic optimization over the combinatorially large space of permutations by deriving a reparameterized gradient estimator for the Plackett-Luce family of distributions over permutations. We demonstrate the usefulness of our framework on three tasks that require learning semantic orderings of high-dimensional objects, including a fully differentiable, parameterized extension of the k-nearest neighbors algorithm.
Key facts. Cited by 111 papers in the map (data through 14 Oct 2026). First posted on arXiv 21 Mar 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 18; 2022: 19; 2023: 19; 2024: 16; 2025: 21; 2026: 18.
111 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
- 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributionscited by 98
- 2021A Review of the Gumbel-max Trick and its Extensions for Discrete Stochasticity in Machine Learningcited by 82
- 2022Ordered Subgraph Aggregation Networkscited by 57
- 2022Unsupervised Learning of Group Invariant and Equivariant Representationscited by 39
- 2021Single Image Depth Estimation: An Overviewcited by 35
- 2022SIMPLE: A Gradient Estimator for k-Subset Samplingcited by 34
- 2021Differentiable Sorting Networks for Scalable Sorting and Ranking Supervisioncited by 31
- 2021Neural Auction: End-to-End Learning of Auction Mechanisms for E-Commerce Advertisingcited by 31
- 2022Generalized Differentiable RANSACcited by 30
- 2023A Large-Scale Study of Probabilistic Calibration in Neural Network Regressioncited by 27
38 more
- 2023Ensuring User-side Fairness in Dynamic Recommender Systemscited by 27
- 2023Fast, Differentiable and Sparse Top-k: a Convex Analysis Perspectivecited by 26
- 2023Learning Probabilistic Symmetrization for Architecture Agnostic Equivariancecited by 26
- 2022Monotonic Differentiable Sorting Networkscited by 25
- 2021Permutation-Invariant Variational Autoencoder for Graph-Level Representation Learningcited by 23
- 2022Large-scale Stochastic Optimization of NDCG Surrogates for Deep Learning with Provable Convergencecited by 22
- 2021Learning with Algorithmic Supervision via Continuous Relaxationscited by 21
- 2022Differentiable Top-k Classification Learningcited by 21
- 2023ProtoGate: Prototype-based Neural Networks with Global-to-local Feature Selection for Tabular Biomedical Datacited by 18
- 2021Structured Reordering for Modeling Latent Alignments in Sequence Transductioncited by 17
- 2024Softened Symbol Grounding for Neuro-symbolic Systemscited by 16
- 2021Discovering Non-monotonic Autoregressive Orderings with Variational Inferencecited by 15
- 2021Self-Supervised Learning of Audio Representations from Permutations with Differentiable Rankingcited by 14
- 2021Learning Revenue-Maximizing Auctions With Differentiable Matchingcited by 14
- 2026Learning to Evict from Key-Value Cachecited 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
- 2022Adaptive Perturbation-Based Gradient Estimation for Discrete Latent Variable Modelscited by 12
- 2023Performative Recommendation: Diversifying Content via Strategic Incentivescited by 12
- 2025VisionSelector: End-to-End Learnable Visual Token Compression for Efficient Multimodal LLMscited by 11
- 2021Unbiased Gradient Estimation with Balanced Assignments for Mixtures of Expertscited by 10
- 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Planscited by 10
- 2025Breaking the Top-K Barrier: Advancing Top-K Ranking Metrics Optimization in Recommender Systemscited by 9
- 2021Differentiable Agent-Based Simulation for Gradient-Guided Simulation-Based Optimizationcited by 8
- 2024Permutative Preference Alignment from Listwise Ranking of Human Judgmentscited by 7
- 2021Set-to-Sequence Methods in Machine Learning: a Reviewcited by 6
- 2022Relevance-based Margin for Contrastively-trained Video Retrieval Modelscited by 6
- 2022Differentiable Mathematical Programming for Object-Centric Representation Learningcited by 6
- 2023Beam Tree Recursive Cellscited by 6
- 2023Polynomial Width is Sufficient for Set Representation with High-dimensional Featurescited by 6
- 2023Deciphering Raw Data in Neuro-Symbolic Learning with Provable Guaranteescited by 6
- 2023Adaptive Neural Ranking Framework: Toward Maximized Business Goal for Cascade Ranking Systemscited by 6
- 2023PAC-Bayes Generalization Certificates for Learned Inductive Conformal Predictioncited by 6
- 2024Probabilistic Calibration by Design for Neural Network Regressioncited by 6
- 2024SymmetricDiffusers: Learning Discrete Diffusion on Finite Symmetric Groupscited by 6
- 2022Learning Group Importance using the Differentiable Hypergeometric Distributioncited by 5
- 2023Kissing to Find a Match: Efficient Low-Rank Permutation Representationcited by 5
50 most cited of 111 All 111 (JSON)
- 2026Fast LapSum: Exact Differentiable Top-k at Million Scale7 Aug 2026
- 2026LaPrune: Controllable Differentiable Sparsity at Million Scale4 Aug 2026
- 2026Exposure-Based Reinforcement Learning to Rank21 Jul 2026
- 2026EinSort: Sorting is All We Need for Tensorizing LLM7 Jun 2026
- 2026Learning Permutation from Structure Without Supervision25 May 2026
- 2026Learning Unbiased Permutations via Flow Matching16 May 2026
- 2026Contextual Plackett-Luce: An Efficient Neural Model for Probabilistic Sequence Selection under Ambiguity9 May 2026
- 2026Super-Level-Set Regression: Conditional Quantiles via Volume Minimization7 May 2026
- 2026Learning Dynamic Evidence Routes for Vision Transformer Probing29 Apr 2026
- 2026SWAN: World-Aware Adaptive Multimodal Networks for Runtime Variations28 Apr 2026
- 2026Driving Engagement in Daily Fantasy Sports with a Scalable and Urgency-Aware Ranking Engine15 Apr 2026
- 2026ArrowFlow: Hierarchical Machine Learning in the Space of Permutations5 Apr 2026
38 more
- 2026Learning Permutation Distributions via Reflected Diffusion on Ranks18 Mar 2026
- 2026SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative Gradients9 Mar 2026
- 2026Learning to Evict from Key-Value Cache10 Feb 2026
- 2026Shiva-DiT: Residual-Based Differentiable Top-k Selection for Efficient Diffusion Transformers5 Feb 2026
- 2026Class Adaptive Conformal Training14 Jan 2026
- 2026Reward Learning through Ranking Mean Squared Error14 Jan 2026
- 2025Structural Incompatibility of Differentiable Sorting and Within-Vector Rank Normalization27 Dec 2025
- 2025You Only Train Once: Differentiable Subset Selection for Omics Data19 Dec 2025
- 2025DM3D: Dynamic Mamba via Offset-Guided Feature Resampling for Point Cloud Understanding3 Dec 2025
- 2025Gradient-Based Join Ordering18 Nov 2025
- 2025Comprehension of Multilingual Expressions Referring to Target Objects in Visual Inputs14 Nov 2025
- 2025Factorization-in-Loop: Proximal Fill-in Minimization for Sparse Matrix Reordering12 Nov 2025
- 2025LeJEPA: Provable and Scalable Self-Supervised Learning Without the Heuristics11 Nov 2025
- 2025Geometric Algorithms for Neural Combinatorial Optimization with Constraints28 Oct 2025
- 2025VisionSelector: End-to-End Learnable Visual Token Compression for Efficient Multimodal LLMs18 Oct 2025
- 2025Differentiable Fast Top-K Selection for Large-Scale Recommendation13 Oct 2025
- 2025Black-Box Combinatorial Optimization with Order-Invariant Reinforcement Learning2 Oct 2025
- 2025Differentiable Entropy Regularization: A Complexity-Aware Approach for Neural Optimization3 Sep 2025
- 2025RewardRank: Optimizing True Learning-to-Rank Utility19 Aug 2025
- 2025Breaking the Top-K Barrier: Advancing Top-K Ranking Metrics Optimization in Recommender Systems4 Aug 2025
- 2025XicorAttention: Time Series Transformer Using Attention with Nonlinear Correlation3 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
- 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
- 2025Deep Generative Models with Hard Linear Equality Constraints8 Feb 2025
- 2024Scaling Laws for Online Advertisement Retrieval20 Nov 2024
- 2024Discovering Data Structures: Nearest Neighbor Search and Beyond5 Nov 2024
- 2024EXAGREE: Mitigating Explanation Disagreement with Stakeholder-Aligned Models4 Nov 2024
- 2024Newton Losses: Using Curvature Information for Learning with Differentiable Algorithms24 Oct 2024
- 2024Holistic Utility Preference Learning for Listwise Alignment17 Oct 2024
- 2024Generalizing Stochastic Smoothing for Differentiation and Gradient Estimation10 Oct 2024
- 2024Permutative Preference Alignment from Listwise Ranking of Human Judgments6 Oct 2024
- 2024SymmetricDiffusers: Learning Discrete Diffusion on Finite Symmetric Groups3 Oct 2024
- 2024Learning to Solve Combinatorial Optimization under Positive Linear Constraints via Non-Autoregressive Neural Networks6 Sep 2024
- 2024Revisiting Score Function Estimators for k-Subset Sampling22 Jul 2024
- 2024Performative Debias with Fair-exposure Optimization Driven by Strategic Agents in Recommender Systems25 Jun 2024
50 newest of 111 All 111 (JSON)
- 2026Learning to Evict from Key-Value Cachecited by 14
- 2026Learning to Evict from Key-Value Cache10 Feb 2026
- 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 471
- 2025LeJEPA: Provable and Scalable Self-Supervised Learning Without the Heuristicscited by 254
- 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributionscited by 98
- 2021A Review of the Gumbel-max Trick and its Extensions for Discrete Stochasticity in Machine Learningcited by 82
- 2022Ordered Subgraph Aggregation Networkscited by 57
- 2022Unsupervised Learning of Group Invariant and Equivariant Representationscited by 39
- 2021Single Image Depth Estimation: An Overviewcited by 35
- 2022SIMPLE: A Gradient Estimator for k-Subset Samplingcited by 34
- 2021Differentiable Sorting Networks for Scalable Sorting and Ranking Supervisioncited by 31
- 2021Neural Auction: End-to-End Learning of Auction Mechanisms for E-Commerce Advertisingcited by 31
- 2022Generalized Differentiable RANSACcited by 30
- 2023A Large-Scale Study of Probabilistic Calibration in Neural Network Regressioncited by 27
12 most cited of 98 All 98 (JSON)
- 2026Fast LapSum: Exact Differentiable Top-k at Million Scale7 Aug 2026
- 2026LaPrune: Controllable Differentiable Sparsity at Million Scale4 Aug 2026
- 2026EinSort: Sorting is All We Need for Tensorizing LLM7 Jun 2026
- 2026Learning Permutation from Structure Without Supervision25 May 2026
- 2026Contextual Plackett-Luce: An Efficient Neural Model for Probabilistic Sequence Selection under Ambiguity9 May 2026
- 2026Super-Level-Set Regression: Conditional Quantiles via Volume Minimization7 May 2026
- 2026Learning Dynamic Evidence Routes for Vision Transformer Probing29 Apr 2026
- 2026SWAN: World-Aware Adaptive Multimodal Networks for Runtime Variations28 Apr 2026
- 2026Driving Engagement in Daily Fantasy Sports with a Scalable and Urgency-Aware Ranking Engine15 Apr 2026
- 2026ArrowFlow: Hierarchical Machine Learning in the Space of Permutations5 Apr 2026
- 2026Learning Permutation Distributions via Reflected Diffusion on Ranks18 Mar 2026
- 2026SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative Gradients9 Mar 2026
12 newest of 98 All 98 (JSON)