Fast, Differentiable and Sparse Top-k: a Convex Analysis Perspective
Michael E. Sander, Joan Puigcerver, Josip Djolonga, Gabriel Peyr\'e, and Mathieu Blondel

TL;DR
This paper introduces a new class of differentiable, sparse top-k operators based on convex analysis, enabling end-to-end training of neural networks with sparse top-k selections.
Contribution
It proposes a convex analysis framework for fully differentiable and sparse top-k operators, including new algorithms for efficient computation on hardware accelerators.
Findings
Effective weight pruning in neural networks
Improved fine-tuning of vision transformers
Enhanced routing in sparse mixture of experts
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsSparse and Compressive Sensing Techniques · Stochastic Gradient Optimization Techniques · Advanced Neural Network Applications
