Faster sorting algorithms discovered using deep reinforcement learning

Author:

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

Abstract

AbstractFundamental algorithms such as sorting or hashing are used trillions of times on any given day1. As demand for computation grows, it has become critical for these algorithms to be as performant as possible. Whereas remarkable progress has been achieved in the past2, making further improvements on the efficiency of these routines has proved challenging for both human scientists and computational approaches. Here we show how artificial intelligence can go beyond the current state of the art by discovering hitherto unknown routines. To realize this, we formulated the task of finding a better sorting routine as a single-player game. We then trained a new deep reinforcement learning agent, AlphaDev, to play this game. AlphaDev discovered small sorting algorithms from scratch that outperformed previously known human benchmarks. These algorithms have been integrated into the LLVM standard C++ sort library3. This change to this part of the sort library represents the replacement of a component with an algorithm that has been automatically discovered using reinforcement learning. We also present results in extra domains, showcasing the generality of the approach.

Publisher

Springer Science and Business Media LLC

Subject

Multidisciplinary

Reference72 articles.

1. Amazon. Amazon S3—two trillion objects, 1.1 million requests/second. AWS https://aws.amazon.com/blogs/aws/amazon-s3-two-trillion-objects-11-million-requests-second/ (2013).

2. Cormen, T. H. et al. Introduction to Algorithms (MIT Press, 2022).

3. Gelmi, M. Introduce branchless sorting functions for sort3, sort4 and sort5. LLVM.org https://reviews.llvm.org/D118029 (2022).

4. Bansal, S. & Aiken, A. Automatic generation of peephole superoptimizers. ACM SIGARCH Comput. Arch. News 34, 394–403 (2006).

5. Alur, R. et al. Syntax-Guided Synthesis (IEEE, 2013).

Cited by 15 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3