Saved in:
Bibliographic Details
Main Authors: Struski, Łukasz, Bednarczyk, Michał B., Podolak, Igor T., Tabor, Jacek
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2503.06242
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915476065484800
author Struski, Łukasz
Bednarczyk, Michał B.
Podolak, Igor T.
Tabor, Jacek
author_facet Struski, Łukasz
Bednarczyk, Michał B.
Podolak, Igor T.
Tabor, Jacek
contents 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 the function LapSum, defined as the 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. Through extensive experiments, we demonstrate that our method outperforms state-of-the-art techniques for high-dimensional 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.
format Preprint
id arxiv_https___arxiv_org_abs_2503_06242
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LapSum -- One Method to Differentiate Them All: Ranking, Sorting and Top-k Selection
Struski, Łukasz
Bednarczyk, Michał B.
Podolak, Igor T.
Tabor, Jacek
Artificial Intelligence
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 the function LapSum, defined as the 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. Through extensive experiments, we demonstrate that our method outperforms state-of-the-art techniques for high-dimensional 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.
title LapSum -- One Method to Differentiate Them All: Ranking, Sorting and Top-k Selection
topic Artificial Intelligence
url https://arxiv.org/abs/2503.06242