Fast, Differentiable and Sparse Top-k: a Convex Analysis Perspective
Not on the map. Why?
Abstract (arXiv)
The top-k operator returns a sparse vector, where the non-zero values correspond to the k largest values of the input. Unfortunately, because it is a discontinuous function, it is difficult to incorporate in neural networks trained end-to-end with backpropagation. Recent works have considered differentiable relaxations, based either on regularization or perturbation techniques. However, to date, no approach is fully differentiable and sparse. In this paper, we propose new differentiable and sparse top-k operators. We view the top-k operator as a linear program over the permutahedron, the convex hull of permutations. We then introduce a p-norm regularization term to smooth out the operator, and show that its computation can be reduced to isotonic optimization. Our framework is significantly more general than the existing one and allows for example to express top-k operators that select values in magnitude. On the algorithmic side, in addition to pool adjacent violator (PAV) algorithms, we propose a new GPU/TPU-friendly Dykstra algorithm to solve isotonic optimization problems. We successfully use our operators to prune weights in neural networks, to fine-tune vision transformers, and as a router in sparse mixture of experts.
Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). Builds on 36 of its 61 references that are in the map. First posted on arXiv 2 Feb 2023.
Builds on
36 of 61 references.
References · 36
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,277
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
- 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 916
- 2021Scaling Vision with Sparse Mixture of Expertscited by 740
- 2022Mixture-of-Experts with Expert Choice Routingcited by 611
- 2020What is the State of Neural Network Pruning?cited by 578
- 2019The State of Sparsity in Deep Neural Networkscited by 471
- 2021BASE Layers: Simplifying Training of Large, Sparse Modelscited by 315
- 2021Efficient and Modular Implicit Differentiationcited by 199
24 more
- 2020Fast Differentiable Sorting and Rankingcited by 196
- 2022A Review of Sparse Expert Models in Deep Learningcited by 147
- 2016Sequence-to-Sequence Learning as Beam-Search Optimizationcited by 126
- 2019Learning with Fenchel-Young Lossescited by 117
- 2021DSelect-k: Differentiable Selection in the Mixture of Experts with Applications to Multi-Task Learningcited by 114
- 2019Differentiable Ranks and Sorting using Optimal Transportcited by 113
- 2019Stochastic Optimization of Sorting Networks via Continuous Relaxationscited by 111
- 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributionscited by 97
- 2021Differentiable Patch Selection for Image Recognitioncited by 68
- 2020SoftSort: A Continuous Relaxation for the argsort Operatorcited by 66
- 2019Optimizing Rank-based Metrics with Blackbox Differentiationcited by 58
- 2018Smooth Loss Functions for Deep Top-k Classificationcited by 46
- 2015Loss Functions for Top-k Error: Analysis and Insightscited by 38
- 2022Sparsity-Constrained Optimal Transportcited by 32
- 2021Differentiable Sorting Networks for Scalable Sorting and Ranking Supervisioncited by 31
- 2015Top-k Multiclass SVMcited by 28
- 2019The Limited Multi-Label Projection Layercited by 21
- 2019Structured Prediction with Projection Oraclescited by 21
- 2022Differentiable Top-k Classification Learningcited by 21
- 2014Memory Bounded Deep Convolutional Networkscited by 17
- 2018Sparse and Constrained Attention for Neural Machine Translationcited by 13
- 2017Dykstra's Algorithm, ADMM, and Coordinate Descent: Connections, Insights, and Extensionscited by 12
- 2022Multi-Vector Retrieval as Sparse Alignmentcited by 12
- 2013Reflection methods for user-friendly submodular optimizationcited by 11
Built on by
Citing papers per year: 2023: 3; 2024: 6; 2025: 11; 2026: 6.
26 papers.
Sort:
By area:
- 2024Routers in Vision Mixture of Experts: An Empirical Studycited by 22
- 2023Differentiable Clustering with Perturbed Spanning Forestscited by 14
- 2025LapSum -- One Method to Differentiate Them All: Ranking, Sorting and Top-k Selectioncited by 12
- 2023High-Similarity-Pass Attention for Single Image Super-Resolutioncited by 11
- 2023A path-norm toolkit for modern networks: consequences, promises and challengescited by 10
- 2025Foundations of Top-k Decoding For Language Modelscited by 10
- 2024Universal generalization guarantees for Wasserstein distributionally robust modelscited by 5
- 2024Generalizing Stochastic Smoothing for Differentiation and Gradient Estimationcited by 4
- 2025Geometric Algorithms for Neural Combinatorial Optimization with Constraintscited by 4
- 2025How Many Tokens Do 3D Point Cloud Transformer Architectures Really Need?cited by 4
- 2024Fibottention: Inceptive Visual Representation Learning with Diverse Attention Across Headscited by 3
- 2024Soft Condorcet Optimization for Ranking of General Agentscited by 3
14 more
- 2025Joint Learning of Energy-based Models and their Partition Functioncited by 3
- 2025Dynamic Sparse Training of Diagonally Sparse Networkscited by 3
- 2025Learning Cascade Ranking as One Networkcited by 2
- 2025Differentiable Fast Top-K Selection for Large-Scale Recommendationcited by 2
- 2026SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative Gradientscited by 2
- 2024Separate, Dynamic and Differentiable (SMART) Pruner for Block/Output Channel Pruning on Computer Vision Taskscited by 1
- 2025Decision-aware training of spatiotemporal forecasting models to select a top K subset of sites for interventioncited by 1
- 2025Deep greedy unfolding: Sorting out argsorting in greedy sparse recovery algorithmscited by 1
- 2025Weaver: Kronecker Product Approximations of Spatiotemporal Attention for Traffic Network Forecastingcited by 1
- 2026Differentiable Knapsack and Top-k Operators via Dynamic Programmingcited by 1
- 2026Accurate and Efficient Multi-Channel Time Series Forecasting via Sparse Attention Mechanismcited by 0
- 2026Teacher-Guided Routing for Sparse Vision Mixture-of-Expertscited by 0
- 2026LaPrune: Controllable Differentiable Sparsity at Million Scalecited by 0
- 2026Fast LapSum: Exact Differentiable Top-k at Million Scalecited by 0
- 2026Fast LapSum: Exact Differentiable Top-k at Million Scale7 Aug 2026
- 2026LaPrune: Controllable Differentiable Sparsity at Million Scale4 Aug 2026
- 2026Teacher-Guided Routing for Sparse Vision Mixture-of-Experts23 Apr 2026
- 2026Accurate and Efficient Multi-Channel Time Series Forecasting via Sparse Attention Mechanism19 Mar 2026
- 2026SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative Gradients9 Mar 2026
- 2026Differentiable Knapsack and Top-k Operators via Dynamic Programming29 Jan 2026
- 2025Weaver: Kronecker Product Approximations of Spatiotemporal Attention for Traffic Network Forecasting12 Nov 2025
- 2025How Many Tokens Do 3D Point Cloud Transformer Architectures Really Need?7 Nov 2025
- 2025Geometric Algorithms for Neural Combinatorial Optimization with Constraints28 Oct 2025
- 2025Differentiable Fast Top-K Selection for Large-Scale Recommendation13 Oct 2025
- 2025Dynamic Sparse Training of Diagonally Sparse Networks13 Jun 2025
- 2025Foundations of Top-k Decoding For Language Models25 May 2025
14 more
- 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
- 2025Decision-aware training of spatiotemporal forecasting models to select a top K subset of sites for intervention7 Mar 2025
- 2025Joint Learning of Energy-based Models and their Partition Function30 Jan 2025
- 2024Soft Condorcet Optimization for Ranking of General Agents31 Oct 2024
- 2024Generalizing Stochastic Smoothing for Differentiation and Gradient Estimation10 Oct 2024
- 2024Fibottention: Inceptive Visual Representation Learning with Diverse Attention Across Heads27 Jun 2024
- 2024Separate, Dynamic and Differentiable (SMART) Pruner for Block/Output Channel Pruning on Computer Vision Tasks29 Mar 2024
- 2024Universal generalization guarantees for Wasserstein distributionally robust models19 Feb 2024
- 2024Routers in Vision Mixture of Experts: An Empirical Study29 Jan 2024
- 2023A path-norm toolkit for modern networks: consequences, promises and challenges2 Oct 2023
- 2023Differentiable Clustering with Perturbed Spanning Forests25 May 2023
- 2023High-Similarity-Pass Attention for Single Image Super-Resolution25 May 2023
- 2024Routers in Vision Mixture of Experts: An Empirical Studycited by 22
- 2026Teacher-Guided Routing for Sparse Vision Mixture-of-Expertscited by 0
- 2026Teacher-Guided Routing for Sparse Vision Mixture-of-Experts23 Apr 2026
- 2024Routers in Vision Mixture of Experts: An Empirical Study29 Jan 2024
- 2023Differentiable Clustering with Perturbed Spanning Forestscited by 14
- 2025LapSum -- One Method to Differentiate Them All: Ranking, Sorting and Top-k Selectioncited by 12
- 2023High-Similarity-Pass Attention for Single Image Super-Resolutioncited by 11
- 2023A path-norm toolkit for modern networks: consequences, promises and challengescited by 10
- 2025Foundations of Top-k Decoding For Language Modelscited by 10
- 2024Universal generalization guarantees for Wasserstein distributionally robust modelscited by 5
- 2024Generalizing Stochastic Smoothing for Differentiation and Gradient Estimationcited by 4
- 2025Geometric Algorithms for Neural Combinatorial Optimization with Constraintscited by 4
- 2025How Many Tokens Do 3D Point Cloud Transformer Architectures Really Need?cited by 4
- 2024Fibottention: Inceptive Visual Representation Learning with Diverse Attention Across Headscited by 3
- 2024Soft Condorcet Optimization for Ranking of General Agentscited by 3
- 2025Joint Learning of Energy-based Models and their Partition Functioncited by 3
12 most cited of 24 All 24 (JSON)
- 2026Fast LapSum: Exact Differentiable Top-k at Million Scale7 Aug 2026
- 2026LaPrune: Controllable Differentiable Sparsity at Million Scale4 Aug 2026
- 2026Accurate and Efficient Multi-Channel Time Series Forecasting via Sparse Attention Mechanism19 Mar 2026
- 2026SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative Gradients9 Mar 2026
- 2026Differentiable Knapsack and Top-k Operators via Dynamic Programming29 Jan 2026
- 2025Weaver: Kronecker Product Approximations of Spatiotemporal Attention for Traffic Network Forecasting12 Nov 2025
- 2025How Many Tokens Do 3D Point Cloud Transformer Architectures Really Need?7 Nov 2025
- 2025Geometric Algorithms for Neural Combinatorial Optimization with Constraints28 Oct 2025
- 2025Differentiable Fast Top-K Selection for Large-Scale Recommendation13 Oct 2025
- 2025Dynamic Sparse Training of Diagonally Sparse Networks13 Jun 2025
- 2025Foundations of Top-k Decoding For Language Models25 May 2025
- 2025Deep greedy unfolding: Sorting out argsorting in greedy sparse recovery algorithms21 May 2025
12 newest of 24 All 24 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Matrix-Free Least Squares Solvers: Values, Gradients, and What to Do With Them
- 2024Searching for Efficient Linear Layers over a Continuous Space of Structured Matrices
- 2025DTop-p MoE: Sparsity-Controlled Dynamic Top-p MoE for Foundation Model Pre-training
- 2023Statistical Perspective of Top-K Sparse Softmax Gating Mixture of Experts
- 2026SoftServe: A Scalable Quasi-Newton Method for Deep Learning
- 2025Differentiable Entropy Regularization: A Complexity-Aware Approach for Neural Optimization
- 2023Operator Learning Meets Numerical Analysis: Improving Neural Networks through Iterative Methods
- 2025SparseLoRA: Accelerating LLM Fine-Tuning with Contextual Sparsity