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

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Differentiable Top-k Classification Learning cites SoftSort: A Continuous Relaxation for the argsort Operator
  • Differentiable Top-k Classification Learning cites Monotonic Differentiable Sorting Networks
  • SoftMoE: Soft Differentiable Routing for Mixture-of-Experts in LLMs cites Cardinality-Aware Set Prediction and Top-k Classification
  • Learning with Noisy Labels via Sparse Regularization cites SoftSort: A Continuous Relaxation for the argsort Operator
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. SoftMoE: Soft Differentiable Routing for Mixture-of-Experts in LLMsMikołaj Zasada, Łukasz Struski, Jacek Tabor, Marcin KurdzielICML 2026 · 2 citations

Builds on9

  1. SoftSort: A Continuous Relaxation for the argsort OperatorSebastian Prillo, Julian Martin EisenschlosICML 2020 · 94 citations
  2. Learning with Noisy Labels via Sparse RegularizationXiong Zhou, Xianming Liu, Chenyang Wang, Deming Zhai et al.ICCV 2021 · 77 citations
  3. Differentiable Top-k Classification LearningFelix Petersen, Hilde Kuehne, Christian Borgelt, Oliver DeussenICML 2022 · 48 citations
  4. Monotonic Differentiable Sorting NetworksFelix Petersen, Christian Borgelt, Hilde Kuehne, Oliver DeussenICLR 2022 · 32 citations
  5. Cardinality-Aware Set Prediction and Top-kk ClassificationCorinna Cortes, Anqi Mao, Christopher Mohri, Mehryar Mohri et al.NeurIPS 2024 · 29 citations

Related papers

  1. Differentiable Top-k with Optimal TransportYujia Xie, Hanjun Dai, Minshuo Chen, Bo Dai et al.NeurIPS 2020 · 124 citations
  2. Fast Differentiable Sorting and RankingMathieu Blondel, Olivier Teboul, Quentin Berthet, Josip DjolongaICML 2020 · 285 citations
  3. Scalable Subset Sampling with Neural Conditional Poisson NetworksAdeel Pervez, Phillip Lippe, Efstratios GavvesICLR 2023
  4. Adaptive Sampling for Efficient Softmax ApproximationTavor Z. Baharav, Ryan Kang, Colin Sullivan, Mo Tiwari et al.NeurIPS 2024 · 7 citations
  5. Listwise Learning to Rank Based on Approximate Rank IndicatorsThibaut Thonet, Yagmur Gizem Cinar, Éric Gaussier, Minghan Li et al.AAAI 2022 · 12 citations
Dusk over the sea between two cliffs drawn in fine vertical lines