Lune

ICML2025Top-tier venue

LapSum - One Method to Differentiate Them All: Ranking, Sorting and Top-k Selection

Lukasz Struski, Michal B. Bednarczyk, Igor T. Podolak, Jacek Tabor

2025Year
1Top-tier citations

Abstract

We present a novel technique for constructing differentiable order-type operations, including soft ranking, soft top-k selection, and soft permutations. Our approach leverages an efficient closed-form formula for the inverse of a function LapSum, defined as a sum of Laplace distributions. This formulation ensures low computational and memory complexity in selecting the highest activations, enabling losses and gradients to be computed in O(n log n) time. Moreover, LapSum can easily be parallelized, both with respect to time and memory. Through extensive experiments, we demonstrate that our method outperforms state-of-the-art techniques for highdimensional vectors and large k values. Furthermore, we provide efficient implementations for both CPU and CUDA environments, underscoring the practicality and scalability of our method for large-scale ranking and differentiable ordering problems.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext acf4e8c7-c380-4c27-93ab-658aeffd11af

Cited by top-tier papers1

Ask how each one uses it

Builds on9

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines