atlas

Research map / Learning theory and algorithms / Prediction and decision losses

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

ICML 2025 · Learning theory and algorithms › Prediction and decision losses · approach: Approximate nearest neighbor indexing

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LapSum, a closed-form differentiable soft ranking, sorting, top-k, and permutation method built on the inverse of a sum of Laplace CDFs, giving O(n log n) time and O(n) memory with forward and backward passes.

Problem

Sorting, ranking, top-k selection and permutations are piecewise constant and non-differentiable; existing differentiable relaxations are often computationally expensive (time/memory), lack closed forms, or do not yield probabilities, limiting use on large n and k.

Approach

Use the sum of Laplace CDFs as a soft counting function; its inverse has a closed-form expression computable in O(n log n) (sorted input, prefix-style recurrences), so soft top-k probabilities, soft ranks, soft sorts and doubly stochastic permutations follow with analytic derivatives computable in O(n log n) via left/right vector products.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Lap-Top-k instead of SinkhornSortResNet18 · CIFAR-100, P_j=[0.,0.,0.,0.,1.]ACC@1: 55.62 -> 58.07Helped
Use Lap-Top-k instead of DiffSortNetsResNet18 · CIFAR-100, P_j=[.2,.2,.2,.2,.2]ACC@1: 62.00 -> 64.53Helped
Use Lap-Top-k instead of SinkhornSortResNeXt-101 · ImageNet-1K, P_j=[0.,0,0,0,1.]ACC@1: 85.65 -> 85.47Hurt
Use Lap-Top-k instead of SinkhornSortResNeXt-101 · ImageNet-21K-P, P_j=[0.,0,0,0,1.]ACC@1: 36.93 -> 37.93Helped
Use Lap-Top-k instead of SinkhornSortResNeXt-101 · ImageNet-1K, P_j=[.5,0,0,0,.5]ACC@5: 97.97 -> 97.93Hurt
Use Lap-Top-k instead of DiffSortNetsResNeXt-101 · ImageNet-21K-P, P_j=[.5,0,0,0,.5]ACC@5: 70.88 -> 71.05Helped
Use kNN+Lap-Top-k instead of kNN+NeuralSort2-layer CNN · MNISTaccuracy: 99.5 -> 99.4Hurt
Use kNN+Lap-Top-k instead of kNN+SOFT Top-kResNet18 · CIFAR-10accuracy: 92.6 -> 92.2Hurt
Use Lap instead of the strongest reported comparatorLarge-MNIST soft-permutation method · Large-MNIST, n=3permutation accuracy: 93.0 -> 94.2Helped
Use Lap instead of the strongest reported comparatorLarge-MNIST soft-permutation method · Large-MNIST, n=5permutation accuracy: 83.7 -> 85.3Helped
Use Lap instead of the strongest reported comparatorLarge-MNIST soft-permutation method · Large-MNIST, n=7permutation accuracy: 74.1 -> 74.1No clear effect
Use Lap instead of the strongest reported comparatorLarge-MNIST soft-permutation method · Large-MNIST, n=9permutation accuracy: 64.9 -> 63.1Hurt

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-100 ImageNet-1K ImageNet-21K-P MNIST CIFAR-10 Large-MNIST

Benchmarks: CIFAR-100 ImageNet-1K ImageNet-21K-P MNIST CIFAR-10 Large-MNIST

Metrics: ACC@1 ACC@5 permutation accuracy runtime peak memory approximation error of k

Baselines: Smooth top-k NeuralSort SoftSort SinkhornSort DiffSortNets Gumbel-Sinkhorn Optimal Transport Fast Differentiable Sparse Top-k (Dykstra)

Builds on: Fast differentiable top-k (Cuturi-style soft top-k / Petersen et al. difftopk) NeuralSort Sinkhorn sorting Gumbel-Sinkhorn

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy