SoftSort: A Continuous Relaxation for the argsort Operator
Not on the map. Why?
Abstract (arXiv)
While sorting is an important procedure in computer science, the argsort operator - which takes as input a vector and returns its sorting permutation - has a discrete image and thus zero gradients almost everywhere. This prohibits end-to-end, gradient-based learning of models that rely on the argsort operator. A natural way to overcome this problem is to replace the argsort operator with a continuous relaxation. Recent work has shown a number of ways to do this, but the relaxations proposed so far are computationally complex. In this work we propose a simple continuous relaxation for the argsort operator which has the following qualities: it can be implemented in three lines of code, achieves state-of-the-art performance, is easy to reason about mathematically - substantially simplifying proofs - and is faster than competing approaches. We open source the code to reproduce all of the experiments and results.
Key facts. Cited by 66 papers in the map (data through 7 Oct 2026). First posted on arXiv 29 Jun 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 6; 2022: 7; 2023: 8; 2024: 10; 2025: 18; 2026: 17.
66 papers.
Sort:
By area:
- 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 460
- 2021SPViT: Enabling Faster Vision Transformers via Soft Token Pruningcited by 165
- 2021Robustness of Graph Neural Networks at Scalecited by 100
- 2021GrooMeD-NMS: Grouped Mathematically Differentiable NMS for Monocular 3D Object Detectioncited by 66
- 2022On the Symmetries of Deep Learning Models and their Internal Representationscited by 63
- 2022Differentiable DAG Samplingcited by 46
- 2022HeatViT: Hardware-Efficient Adaptive Token Pruning for Vision Transformerscited by 46
- 2021Learning with Noisy Labels via Sparse Regularizationcited by 38
- 2022Unsupervised Learning of Group Invariant and Equivariant Representationscited by 38
- 2023TransFlow: Transformer as Flow Learnercited by 32
- 2023Fast, Differentiable and Sparse Top-k: a Convex Analysis Perspectivecited by 26
- 2023Learning Probabilistic Symmetrization for Architecture Agnostic Equivariancecited by 25
38 more
- 2021Permutation-Invariant Variational Autoencoder for Graph-Level Representation Learningcited by 23
- 2023Learned Thresholds Token Merging and Pruning for Vision Transformerscited by 22
- 2022Differentiable Top-k Classification Learningcited by 21
- 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 12
- 2026Learning to Evict from Key-Value Cachecited by 12
- 2025InfiGFusion: Graph-on-Logits Distillation via Efficient Gromov-Wasserstein for Model Fusioncited by 11
- 2025VisionSelector: End-to-End Learnable Visual Token Compression for Efficient Multimodal LLMscited by 11
- 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Planscited by 10
- 2023DAG Learning on the Permutahedroncited by 9
- 2022Learning to Hash Naturally Sortscited by 4
- 2024Permutation-based Inference for Variational Learning of Directed Acyclic Graphscited by 4
- 2024Generalizing Stochastic Smoothing for Differentiation and Gradient Estimationcited by 4
- 2023Differentiable Random Partition Modelscited by 3
- 2023Fast Slate Policy Optimization: Going Beyond Plackett-Lucecited by 3
- 2025Learning Classifiers That Induce Marketscited by 3
- 2024BEACON: A Bayesian Optimization Inspired Strategy for Efficient Novelty Searchcited by 2
- 2024Newton Losses: Using Curvature Information for Learning with Differentiable Algorithmscited by 2
- 2025Learning Cascade Ranking as One Networkcited by 2
- 2025Efficient Token Compression for Vision Transformer with Spatial Information Preservedcited by 2
- 2025Constrained Sliced Wasserstein Embeddingcited by 2
- 2025Differentiable Fast Top-K Selection for Large-Scale Recommendationcited by 2
- 2026SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative Gradientscited by 2
- 2021A Deep Generative Model for Reordering Adjacency Matricescited by 1
- 2024Scalable Variational Causal Discovery Unconstrained by Acyclicitycited by 1
- 2024Demystifying the Token Dynamics of Deep Selective State Space Modelscited by 1
- 2025Creating Sorted Grid Layouts with Gradient-based Optimizationcited by 1
- 2025Deep greedy unfolding: Sorting out argsorting in greedy sparse recovery algorithmscited by 1
- 2024Downstream Task Guided Masking Learning in Masked Autoencoders Using Multi-Level Optimizationcited by 0
- 2024Learning Fair and Preferable Allocations through Neural Networkcited by 0
- 2024Learning Neural Strategy-Proof Matching Mechanism from Examplescited by 0
- 2024The Differentiable Feasibility Pumpcited by 0
- 2025Permutation Learning with Only N Parameters: From SoftSort to Self-Organizing Gaussianscited by 0
- 2025XicorAttention: Time Series Transformer Using Attention with Nonlinear Correlationcited by 0
- 2025RewardRank: Optimizing True Learning-to-Rank Utilitycited by 0
- 2025Gradient-Based Join Orderingcited by 0
- 2025DM3D: Dynamic Mamba via Offset-Guided Feature Resampling for Point Cloud Understandingcited by 0
- 2025Towards Unsupervised Causal Representation Learning via Latent Additive Noise Model Causal Autoencoderscited by 0
50 most cited of 66 All 66 (JSON)
- 2026ResComEmb: Effective and Efficient Multimodal Embedding via Residual Homogeneity Compression29 Sep 2026
- 2026Learning the Structure of Triangular Transport Maps29 Sep 2026
- 2026SPD: Single Pass Decoding for Generative Reranking1 Sep 2026
- 2026Fast LapSum: Exact Differentiable Top-k at Million Scale7 Aug 2026
- 2026LaPrune: Controllable Differentiable Sparsity at Million Scale4 Aug 2026
- 2026Amortized Bayesian Causal Discovery of Extended Factor Graphs24 Jul 2026
- 2026EinSort: Sorting is All We Need for Tensorizing LLM7 Jun 2026
- 2026Learning Permutation from Structure Without Supervision25 May 2026
- 2026Learning Dynamic Evidence Routes for Vision Transformer Probing29 Apr 2026
- 2026Learn to Rank: Visual Attribution by Learning Importance Ranking7 Apr 2026
- 2026ArrowFlow: Hierarchical Machine Learning in the Space of Permutations5 Apr 2026
- 2026Learning Permutation Distributions via Reflected Diffusion on Ranks18 Mar 2026
38 more
- 2026SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative Gradients9 Mar 2026
- 2026Moment Matters: Mean and Variance Causal Graph Discovery from Heteroscedastic Observational Data27 Feb 2026
- 2026CAIRO: Decoupling Order from Scale in Regression16 Feb 2026
- 2026Learning to Evict from Key-Value Cache10 Feb 2026
- 2026Building Deep Graph Predictors with Graph Imitation Learning21 Jan 2026
- 2025Structural Incompatibility of Differentiable Sorting and Within-Vector Rank Normalization27 Dec 2025
- 2025Towards Unsupervised Causal Representation Learning via Latent Additive Noise Model Causal Autoencoders15 Dec 2025
- 2025DM3D: Dynamic Mamba via Offset-Guided Feature Resampling for Point Cloud Understanding3 Dec 2025
- 2025Gradient-Based Join Ordering18 Nov 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
- 2025RewardRank: Optimizing True Learning-to-Rank Utility19 Aug 2025
- 2025XicorAttention: Time Series Transformer Using Attention with Nonlinear Correlation3 Jun 2025
- 2025Constrained Sliced Wasserstein Embedding2 Jun 2025
- 2025Deep greedy unfolding: Sorting out argsorting in greedy sparse recovery algorithms21 May 2025
- 2025InfiGFusion: Graph-on-Logits Distillation via Efficient Gromov-Wasserstein for Model Fusion20 May 2025
- 2025Efficient Token Compression for Vision Transformer with Spatial Information Preserved30 Mar 2025
- 2025Permutation Learning with Only N Parameters: From SoftSort to Self-Organizing Gaussians17 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
- 2025Creating Sorted Grid Layouts with Gradient-based Optimization4 Mar 2025
- 2025Learning Classifiers That Induce Markets27 Feb 2025
- 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans11 Feb 2025
- 2024The Differentiable Feasibility Pump5 Nov 2024
- 2024Learning Neural Strategy-Proof Matching Mechanism from Examples25 Oct 2024
- 2024Newton Losses: Using Curvature Information for Learning with Differentiable Algorithms24 Oct 2024
- 2024Learning Fair and Preferable Allocations through Neural Network23 Oct 2024
- 2024Generalizing Stochastic Smoothing for Differentiation and Gradient Estimation10 Oct 2024
- 2024Demystifying the Token Dynamics of Deep Selective State Space Models4 Oct 2024
- 2024Scalable Variational Causal Discovery Unconstrained by Acyclicity6 Jul 2024
- 2024BEACON: A Bayesian Optimization Inspired Strategy for Efficient Novelty Search5 Jun 2024
- 2024Downstream Task Guided Masking Learning in Masked Autoencoders Using Multi-Level Optimization28 Feb 2024
- 2024Permutation-based Inference for Variational Learning of Directed Acyclic Graphs4 Feb 2024
- 2023Fast Slate Policy Optimization: Going Beyond Plackett-Luce3 Aug 2023
- 2023Learned Thresholds Token Merging and Pruning for Vision Transformers20 Jul 2023
- 2023Learning Probabilistic Symmetrization for Architecture Agnostic Equivariance5 Jun 2023
- 2023Differentiable Random Partition Models26 May 2023
- 2023TransFlow: Transformer as Flow Learner23 Apr 2023
50 newest of 66 All 66 (JSON)
- 2021SPViT: Enabling Faster Vision Transformers via Soft Token Pruningcited by 165
- 2022HeatViT: Hardware-Efficient Adaptive Token Pruning for Vision Transformerscited by 46
- 2023Learned Thresholds Token Merging and Pruning for Vision Transformerscited by 22
- 2026Learning to Evict from Key-Value Cachecited by 12
- 2025Efficient Token Compression for Vision Transformer with Spatial Information Preservedcited by 2
- 2026Learning to Evict from Key-Value Cache10 Feb 2026
- 2025Efficient Token Compression for Vision Transformer with Spatial Information Preserved30 Mar 2025
- 2023Learned Thresholds Token Merging and Pruning for Vision Transformers20 Jul 2023
- 2022HeatViT: Hardware-Efficient Adaptive Token Pruning for Vision Transformers15 Nov 2022
- 2021SPViT: Enabling Faster Vision Transformers via Soft Token Pruning27 Dec 2021
- 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 460
- 2021Robustness of Graph Neural Networks at Scalecited by 100
- 2021GrooMeD-NMS: Grouped Mathematically Differentiable NMS for Monocular 3D Object Detectioncited by 66
- 2022On the Symmetries of Deep Learning Models and their Internal Representationscited by 63
- 2022Differentiable DAG Samplingcited by 46
- 2021Learning with Noisy Labels via Sparse Regularizationcited by 38
- 2022Unsupervised Learning of Group Invariant and Equivariant Representationscited by 38
- 2023TransFlow: Transformer as Flow Learnercited by 32
- 2023Fast, Differentiable and Sparse Top-k: a Convex Analysis Perspectivecited by 26
- 2023Learning Probabilistic Symmetrization for Architecture Agnostic Equivariancecited by 25
- 2021Permutation-Invariant Variational Autoencoder for Graph-Level Representation Learningcited by 23
- 2022Differentiable Top-k Classification Learningcited by 21
12 most cited of 57 All 57 (JSON)
- 2026Learning the Structure of Triangular Transport Maps29 Sep 2026
- 2026SPD: Single Pass Decoding for Generative Reranking1 Sep 2026
- 2026Fast LapSum: Exact Differentiable Top-k at Million Scale7 Aug 2026
- 2026LaPrune: Controllable Differentiable Sparsity at Million Scale4 Aug 2026
- 2026Amortized Bayesian Causal Discovery of Extended Factor Graphs24 Jul 2026
- 2026EinSort: Sorting is All We Need for Tensorizing LLM7 Jun 2026
- 2026Learning Permutation from Structure Without Supervision25 May 2026
- 2026Learning Dynamic Evidence Routes for Vision Transformer Probing29 Apr 2026
- 2026Learn to Rank: Visual Attribution by Learning Importance Ranking7 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 57 All 57 (JSON)