Pith. sign in

SoftSort: A Continuous Relaxation for the argsort Operator

1 Pith paper cite this work. Polarity classification is still indexing.

1 Pith paper citing it
abstract

While sorting is an important procedure in computer science, the argsort operator - which takes as input a vector and returns its sorting permutation - has a discrete image and thus zero gradients almost everywhere. This prohibits end-to-end, gradient-based learning of models that rely on the argsort operator. A natural way to overcome this problem is to replace the argsort operator with a continuous relaxation. Recent work has shown a number of ways to do this, but the relaxations proposed so far are computationally complex. In this work we propose a simple continuous relaxation for the argsort operator which has the following qualities: it can be implemented in three lines of code, achieves state-of-the-art performance, is easy to reason about mathematically - substantially simplifying proofs - and is faster than competing approaches. We open source the code to reproduce all of the experiments and results.

fields

cs.LG 1

years

2026 1

verdicts

ACCEPT 1

representative citing papers

LaPrune: Controllable Differentiable Sparsity at Million Scale

cs.LG · 2026-08-04 · accept · novelty 6.0

A differentiable top-k mask layer that enforces an exact selection budget and uses a normalized hardness parameter to interpolate from equal-weight masks to hard binary masks, with saturation theory and million-scale results.

citing papers explorer

Showing 1 of 1 citing paper.

  • LaPrune: Controllable Differentiable Sparsity at Million Scale cs.LG · 2026-08-04 · accept · none · ref 14 · internal anchor

    A differentiable top-k mask layer that enforces an exact selection budget and uses a normalized hardness parameter to interpolate from equal-weight masks to hard binary masks, with saturation theory and million-scale results.