potentialpaper

Differentiable Top-k: From One-Hot to k-Hot

Klas Wijk, Ricardo Vinuesa, Hossein Azizpour

DiffSys @ EurIPS 2025

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. The one-hot representation, argmax operator, and its differentiable relaxation, softmax, are ubiquitous in machine learning. These building blocks lie at the heart of everything from the cross-entropy loss and attention mechanism to differentiable sampling. Their kk-hot counterparts, however, are not as universal. In this paper, we consolidate the literature on differentiable top-kk, showing how the kk-capped simplex connects relaxed top-kk operators and π\pips sampling to form an intuitive generalization of one-hot sampling. In addition, we propose sigmoid top-kk, a scalable relaxation of the top-kk operator that is fully differentiable and defined for continuous kk. We validate our approach empirically and demonstrate its computational efficiency.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
20 Sep 2025ICLR 2026submittedICLR 2026Rejected—[1]
10 Oct 2025DiffSys @ EurIPS 2025submittedDiffSys @ EurIPS 2025Accepted—[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…