Generalized Neural Sorting Networks with Error-Free Differentiable Swap Functions

Jungtaek Kim, Jeongbeen Yoon, Minsu Cho
10/1/2023
7 citations
transformer-attention

No official code found. Best implementation: jungtaekkim/error-free-differentiable-swap-functions (6 stars, Python, MIT, last commit 2024-05-07).

Abstract

Sorting is a fundamental operation of all computer systems, having been a long-standing significant research topic. Beyond the problem formulation of traditional sorting algorithms, we consider sorting problems for more abstract yet expressive inputs, e.g., multi-digit images and image fragments, through a neural sorting network.

Show full abstract

To learn a mapping from a high-dimensional input to an ordinal variable, the differentiability of sorting networks needs to be guaranteed. In this paper we define a softening error by a differentiable swap function, and develop an error-free swap function that holds a non-decreasing condition and differentiability. Furthermore, a permutation-equivariant Transformer network with multi-head attention is adopted to capture dependency between given inputs and also leverage its model capacity with self-attention. Experiments on diverse sorting benchmarks show that our methods perform better than or comparable to baseline methods.

View on arXivView PDF

Code Implementations(1)

MIT

Official repository of "Generalized Neural Sorting Networks with Error-Free Differentiable Swap Functions," which has been presented at ICLR 2024

60PythonMar 24, 20242 years agoMIT

Similar Papers

Cite this paper

@article{kim2023generalized,
  title  = {Generalized Neural Sorting Networks with Error-Free Differentiable Swap Functions},
  author = {Jungtaek Kim and Jeongbeen Yoon and Minsu Cho},
  year   = {2023},
  eprint = {2310.07174},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.07174},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.07174.svg)](https://codeofpaper.com/paper/2310.07174)

Discussion