mlsanityData to 7 Oct 2026

Fast, Differentiable and Sparse Top-k: a Convex Analysis Perspective

arXiv 2302.01425 ↗First posted 2 Feb 2023cs.LG stat.MLcited by 26

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

  1. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
  2. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
  3. 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,277
  4. 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
  5. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
  6. 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 916
  7. 2021Scaling Vision with Sparse Mixture of Expertscited by 740
  8. 2022Mixture-of-Experts with Expert Choice Routingcited by 611
  9. 2020What is the State of Neural Network Pruning?cited by 578
  10. 2019The State of Sparsity in Deep Neural Networkscited by 471
  11. 2021BASE Layers: Simplifying Training of Large, Sparse Modelscited by 315
  12. 2021Efficient and Modular Implicit Differentiationcited by 199
24 more
  1. 2020Fast Differentiable Sorting and Rankingcited by 196
  2. 2022A Review of Sparse Expert Models in Deep Learningcited by 147
  3. 2016Sequence-to-Sequence Learning as Beam-Search Optimizationcited by 126
  4. 2019Learning with Fenchel-Young Lossescited by 117
  5. 2021DSelect-k: Differentiable Selection in the Mixture of Experts with Applications to Multi-Task Learningcited by 114
  6. 2019Differentiable Ranks and Sorting using Optimal Transportcited by 113
  7. 2019Stochastic Optimization of Sorting Networks via Continuous Relaxationscited by 111
  8. 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributionscited by 97
  9. 2021Differentiable Patch Selection for Image Recognitioncited by 68
  10. 2020SoftSort: A Continuous Relaxation for the argsort Operatorcited by 66
  11. 2019Optimizing Rank-based Metrics with Blackbox Differentiationcited by 58
  12. 2018Smooth Loss Functions for Deep Top-k Classificationcited by 46
  13. 2015Loss Functions for Top-k Error: Analysis and Insightscited by 38
  14. 2022Sparsity-Constrained Optimal Transportcited by 32
  15. 2021Differentiable Sorting Networks for Scalable Sorting and Ranking Supervisioncited by 31
  16. 2015Top-k Multiclass SVMcited by 28
  17. 2019The Limited Multi-Label Projection Layercited by 21
  18. 2019Structured Prediction with Projection Oraclescited by 21
  19. 2022Differentiable Top-k Classification Learningcited by 21
  20. 2014Memory Bounded Deep Convolutional Networkscited by 17
  21. 2018Sparse and Constrained Attention for Neural Machine Translationcited by 13
  22. 2017Dykstra's Algorithm, ADMM, and Coordinate Descent: Connections, Insights, and Extensionscited by 12
  23. 2022Multi-Vector Retrieval as Sparse Alignmentcited by 12
  24. 2013Reflection methods for user-friendly submodular optimizationcited by 11

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 3; 2024: 6; 2025: 11; 2026: 6.

26 papers.

Sort:

By area:

  1. 2024Routers in Vision Mixture of Experts: An Empirical Studycited by 22
  2. 2023Differentiable Clustering with Perturbed Spanning Forestscited by 14
  3. 2025LapSum -- One Method to Differentiate Them All: Ranking, Sorting and Top-k Selectioncited by 12
  4. 2023High-Similarity-Pass Attention for Single Image Super-Resolutioncited by 11
  5. 2023A path-norm toolkit for modern networks: consequences, promises and challengescited by 10
  6. 2025Foundations of Top-k Decoding For Language Modelscited by 10
  7. 2024Universal generalization guarantees for Wasserstein distributionally robust modelscited by 5
  8. 2024Generalizing Stochastic Smoothing for Differentiation and Gradient Estimationcited by 4
  9. 2025Geometric Algorithms for Neural Combinatorial Optimization with Constraintscited by 4
  10. 2025How Many Tokens Do 3D Point Cloud Transformer Architectures Really Need?cited by 4
  11. 2024Fibottention: Inceptive Visual Representation Learning with Diverse Attention Across Headscited by 3
  12. 2024Soft Condorcet Optimization for Ranking of General Agentscited by 3
14 more
  1. 2025Joint Learning of Energy-based Models and their Partition Functioncited by 3
  2. 2025Dynamic Sparse Training of Diagonally Sparse Networkscited by 3
  3. 2025Learning Cascade Ranking as One Networkcited by 2
  4. 2025Differentiable Fast Top-K Selection for Large-Scale Recommendationcited by 2
  5. 2026SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative Gradientscited by 2
  6. 2024Separate, Dynamic and Differentiable (SMART) Pruner for Block/Output Channel Pruning on Computer Vision Taskscited by 1
  7. 2025Decision-aware training of spatiotemporal forecasting models to select a top K subset of sites for interventioncited by 1
  8. 2025Deep greedy unfolding: Sorting out argsorting in greedy sparse recovery algorithmscited by 1
  9. 2025Weaver: Kronecker Product Approximations of Spatiotemporal Attention for Traffic Network Forecastingcited by 1
  10. 2026Differentiable Knapsack and Top-k Operators via Dynamic Programmingcited by 1
  11. 2026Accurate and Efficient Multi-Channel Time Series Forecasting via Sparse Attention Mechanismcited by 0
  12. 2026Teacher-Guided Routing for Sparse Vision Mixture-of-Expertscited by 0
  13. 2026LaPrune: Controllable Differentiable Sparsity at Million Scalecited by 0
  14. 2026Fast LapSum: Exact Differentiable Top-k at Million Scalecited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Matrix-Free Least Squares Solvers: Values, Gradients, and What to Do With Them
  2. 2024Searching for Efficient Linear Layers over a Continuous Space of Structured Matrices
  3. 2025DTop-p MoE: Sparsity-Controlled Dynamic Top-p MoE for Foundation Model Pre-training
  4. 2023Statistical Perspective of Top-K Sparse Softmax Gating Mixture of Experts
  5. 2026SoftServe: A Scalable Quasi-Newton Method for Deep Learning
  6. 2025Differentiable Entropy Regularization: A Complexity-Aware Approach for Neural Optimization
  7. 2023Operator Learning Meets Numerical Analysis: Improving Neural Networks through Iterative Methods
  8. 2025SparseLoRA: Accelerating LLM Fine-Tuning with Contextual Sparsity