Post-Cutoff.com
  1. Home
  2. Timeline
  3. 2023
  4. AlphaDev discovers faster small-sort routines, merged into…

AlphaDev discovers faster small-sort routines, merged into LLVM's C++ standard library

★★★scienceGoogle DeepMindconfidence: high

AlphaDev (Nature, 7 Jun 2023) treated writing assembly as a game and found sort3/sort4/sort5 routines shorter than human versions; they were merged into LLVM libc++. Critics argued the gains were small tricks a compiler or GPT-4 could also find.

Key facts

Science result

Field
computer-science / algorithms / program synthesis
Problem
Optimal assembly for fixed-size sorting
Result
RL-discovered sort3–sort5 routines with fewer instructions than human-written libc++ code, adopted upstream.
AI system
AlphaDev
Human role
Autonomous search; humans integrated code into LLVM
Verification
Peer-reviewed in Nature; code merged into LLVM
Status
disputed

What happened

AlphaDev found instruction sequences for sorting 3–5 elements that saved instructions over decades-old library code. LLVM maintainers accepted them.

Why it matters

It was AI-discovered code shipping in core infrastructure, though experts argued about how novel the discovery really was.

Changelog

  • 2026-09-29: created

Related events

  1. AlphaTensor discovers faster matrix multiplication algorithms, beating Strassen's 1969 record for 4×4 mod 2 ★★★★

Sources (3)

id: 2023-06-07-alphadev-sorting · updated 2026-09-29 · open in the interactive timeline