AlphaDev: faster small sorting routines in LLVM libc++

Daniel J. Mankowitz, Andrea Michi, Anton Zhernov, Marco Gelmi, Marco Selvi, Cosmin Paduraru, Edouard Leurent, Shariq Iqbal, Jean-Baptiste Lespiau, Alex Ahern, Thomas Köppe, Kevin Millikin, Stephen Gaffney, Sophie Elster, Jackson Broshear, Chris Gamble, Kieran Milan, Robert Tung, Minjae Hwang, Taylan Cemgil, Mohammadamin Barekatain, Yujia Li, Amol Mandhane, Thomas Hubert, Julian Schrittwieser, Demis Hassabis, Pushmeet Kohli, Martin Riedmiller, Oriol Vinyals, David Silver

DeepMind reports AI-discovered assembly sorting routines translated to C++ and incorporated in LLVM libc++. Its tests report up to 70% improvement for length-five inputs and about 1.7% for inputs exceeding 250,000 elements.

What was already known

The comparison is against the tested library routines on the paper’s hardware and inputs, rather than the asymptotic comparison-sorting lower bound.

How the result developed

  1. 7 Jun 2023 · Manuscript date [1]

    Daniel J. Mankowitz and colleagues reported the AI-assisted result in this manuscript.

  2. 7 Jun 2023 · Research discussion [2]

    Daniel J. Mankowitz, Andrea Michi · AlphaDev discovers faster sorting algorithms

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

AI involvementAI-centered
ImportanceNotable
Technical verificationPartial
Human understandingExplained

AI involvement

The researchers designed a game in which the model searched for short assembly programs that sort correctly. The paper describes the fixed sort solutions for sort 3, sort 4 and sort 5 discovered by AlphaDev, which the researchers translated to C++ and submitted to LLVM libc++.

Importance

A deployed improvement to a widely used algorithmic primitive has substantive reach despite being a constant-factor optimization.

Technical verification

Only the stated computational, numerical, conditional or component checks are documented for this scope; the full claimed endpoint has not received a documented complete rigorous check in the reviewed evidence. Speedups depend on implementation, processor and data. This does not beat the comparison-sorting asymptotic lower bound. Later human routines can outperform particular AlphaDev kernels. AIProofWatch has not rerun the benchmarks.

Peer review

Published research; this is not independent reproduction of the speedups.

Human understanding

Named human researchers explain or reconstruct the scoped central mechanism in the cited paper/account; credit for that explanation is separate from technical checking. Reinforcement learning searched low-level programs; humans translated and integrated the selected routines into the library.

Human work and later research

  • AlphaDev discovers faster sorting algorithms [2]Daniel J. Mankowitz, Andrea Michi · 2023-06-07 · Google DeepMind · Online · research blog post
  • Faster sorting algorithms discovered using deep reinforcement learningDaniel J. Mankowitz, Andrea Michi, Anton Zhernov, Marco Gelmi, Marco Selvi, Cosmin Paduraru, Edouard Leurent, Shariq Iqbal, Jean-Baptiste Lespiau, Alex Ahern, Thomas Köppe, Kevin Millikin, Stephen Gaffney, Sophie Elster, Jackson Broshear, Chris Gamble, Kieran Milan, Robert Tung, Minjae Hwang, Taylan Cemgil, Mohammadamin Barekatain, Yujia Li, Amol Mandhane, Thomas Hubert, Julian Schrittwieser, Demis Hassabis, Pushmeet Kohli, Martin Riedmiller, Oriol Vinyals, David Silver · 2023-06-07 · nature.com · Online · paper

Other useful sources

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

Public-discussion audit found this substantive scoped contribution missing. Source statement, baseline, attribution and importance reviewed; no full proof audit. Historical addition without subscriber alerts.