Reproduce “Fast, Differentiable and Sparse Top-k: a Convex Analysis Perspective” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Michael E. Sander, Joan Puigcerver, Josip Djolonga, Gabriel Peyré, Mathieu Blondel

Researchers developed a class of top-k operators that are both differentiable and sparse, achieved through a generalized convex analysis framework and p-norm regularization. These operators, which produce exact zeros for non-selected values and are continuously differentiable or differentiable almost everywhere, improved training dynamics and performance across weight pruning, top-k loss functions, and sparse Mixture of Experts models.

Key insights

  • Convex analysis can be extended with a generalized nonlinearity and p-norm regularization to create top-k operators that simultaneously achieve full differentiability and exact sparsity.
  • Specific choices of p-norm regularization (e.g., p=4/3) enable continuous differentiability everywhere for top-k operators, which is crucial for robust gradient-based optimization.
  • The core isotonic optimization problem can be solved efficiently on parallel hardware via Dykstra's algorithm, making these theoretically advanced operators practically viable for large-scale deep learning models.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.