ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2503.06242
57
0

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

8 March 2025
Łukasz Struski
Michał B. Bednarczyk
Igor T. Podolak
Jacek Tabor
    BDL
ArXivPDFHTML
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 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(nlog⁡n)O(n\log{}n)O(nlogn) time. Through extensive experiments, we demonstrate that our method outperforms state-of-the-art techniques for high-dimensional vectors and large kkk 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.

View on arXiv
@article{struski2025_2503.06242,
  title={ LapSum -- One Method to Differentiate Them All: Ranking, Sorting and Top-k Selection },
  author={ Łukasz Struski and Michał B. Bednarczyk and Igor T. Podolak and Jacek Tabor },
  journal={arXiv preprint arXiv:2503.06242},
  year={ 2025 }
}
Comments on this paper