Ranger21: a synergistic deep learning optimizer

Less Wright, Nestor Demeure
6/25/2021
128 citations
cs.LG

Official code: lessw2020/Ranger21 (339 stars, Python, Apache-2.0, last commit 2026-03-17). 1 more implementation below.

Abstract

As optimizers are critical to the performances of neural networks, every year a large number of papers innovating on the subject are published. However, while most of these publications provide incremental improvements to existing algorithms, they tend to be presented as new optimizers rather than composable algorithms.

Show full abstract

Thus, many worthwhile improvements are rarely seen out of their initial publication. Taking advantage of this untapped potential, we introduce Ranger21, a new optimizer which combines AdamW with eight components, carefully selected after reviewing and testing ideas from the literature. We found that the resulting optimizer provides significantly improved validation accuracy and training speed, smoother training curves, and is even able to train a ResNet50 on ImageNet2012 without Batch Normalization layers. A problem on which AdamW stays systematically stuck in a bad initial state.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
lessw2020/Ranger21Official339PythonApache-2.02026-03-17
nestordemeure/flaxOptimizersCommunity29PythonApache-2.02021-08-06
lessw2020/Ranger21Official100%
Apache-2.0

Ranger deep learning optimizer rewrite to use newest components

33947PythonApr 5, 20218 months agoApache-2.0
JAXApache-2.0

A collection of optimizers, some arcane others well known, for Flax.

291PythonNov 2, 20205 years agoApache-2.0
flaxoptimizers

Similar Papers

Cite this paper

@article{wright2021ranger,
  title  = {Ranger21: a synergistic deep learning optimizer},
  author = {Less Wright and Nestor Demeure},
  year   = {2021},
  eprint = {2106.13731},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.13731}
}

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/2106.13731.svg)](https://codeofpaper.com/paper/2106.13731)

Discussion