paper-with-me

Papers

Deconstructing What Makes a Good Optimizer for Language Models

2024-07-10 · Rosie Zhao, Depen Morwani, David Brandfonbrener, Nikhil Vyas, Sham Kakade

Training language models becomes increasingly expensive with scale, prompting numerous attempts to improve optimization efficiency. Despite these efforts, the Adam optimizer remains the most widely used, due to a prevailing view that it is the most effective approach. We aim to compare several optimization algorithms, including SGD, Adafactor, Adam, and Lion, in the context of autoregressive language modeling across a range of model sizes, hyperparameters, and architecture variants. Our findings indicate that, except for SGD, these algorithms all perform comparably both in their optimal performance and also in terms of how they fare across a wide range of hyperparameter choices. Our results suggest to practitioners that the choice of optimizer can be guided by practical considerations like memory constraints and ease of implementation, as no single algorithm emerged as a clear winner in terms of performance or stability to hyperparameter misspecification. Given our findings, we further dissect these approaches, examining two simplified versions of Adam: a) signed momentum (Signum) which we see recovers both the performance and hyperparameter stability of Adam and b) Adalayer, a layerwise variant of Adam which we introduce to study Adam's preconditioning. Examining Adalayer leads us to the conclusion that the largest impact of Adam's preconditioning is restricted to the last layer and LayerNorm parameters, and, perhaps surprisingly, the remaining layers can be trained with SGD.

📄 PDF Abstract BibTeX arXiv:2407.07972

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Adafactor Adafactor is a stochastic optimization method based on Adam that reduces memory usage while retaining the empirical benefits of…
SGD Stochastic Gradient Descent is an iterative optimization technique that uses minibatches of data to form an expectation of the gradient, rather than the full gradient using…
Adam 설명 없음
Lion The Lion optimizer is discovered by symbolic program search. It is more memory-efficient than most adaptive optimizers as it only needs to momentum. The update of Lion is produced…

Similar Papers 제목 키워드 기반

Deconstructing NLG Evaluation: Evaluation Practices, Assumptions, and Their Implications

2022-05-13 · NAACL 2022 7 · Kaitlyn Zhou, Su Lin Blodgett, Adam Trischler, Hal Daumé III 외

There are many ways to express similar things in text, which makes evaluating natural language generation (NLG) systems difficult. Compounding this difficulty is the need to assess varying quality criteria depending on t…

nlg evaluationText Generation

What Makes an LLM a Good Optimizer? A Trajectory Analysis of LLM-Guided Evolutionary Search

2026-04-21 · Xinhao Zhang, Xi Chen, François Portet, Maxime Peyrard arxiv

Recent work has demonstrated the promise of orchestrating large language models (LLMs) within evolutionary and agentic optimization systems. However, the mechanisms driving these optimization gains remain poorly understo…

SiLK -- Simple Learned Keypoints

2023-04-12 · Pierre Gleize, Weiyao Wang, Matt Feiszli

Keypoint detection & descriptors are foundational tech-nologies for computer vision tasks like image matching, 3D reconstruction and visual odometry. Hand-engineered methods like Harris corners, SIFT, and HOG descriptors…

3D ReconstructionCamera Pose EstimationDiversityHomography Estimation+4

SiLK: Simple Learned Keypoints

2023-01-01 · ICCV 2023 1 · Pierre Gleize, Weiyao Wang, Matt Feiszli

Keypoint detection & descriptors are foundational technologies for computer vision tasks like image matching, 3D reconstruction and visual odometry. Hand-engineered methods like Harris corners, SIFT, and HOG descript…

3D ReconstructionCamera Pose EstimationDiversityHomography Estimation+4

Q-Steer: Action-Value Guidance for Molecular Policy Optimization

2026-07-29 · Xinyu Wang, Jinbo Bi, Minghu Song arxiv

Oracle-limited molecular optimization gives reward only after a complete molecule is generated, while each rollout requires many local next-token decisions. This delayed-feedback interface makes molecular policy optimiza…