AI summary · arXiv: 2305.14342v1 · cs.LG

Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training

Hong Liu, Zhiyuan Li, David Hall, Percy Liang, Tengyu Ma

Original paper · DOI Submitted to arXiv on 23 May. 2023 License: CC BY 4.0

The essentials

  • The paper proposes a new optimizer called Sophia
  • Sophia is a scalable second-order optimizer that uses a light-weight estimate of the diagonal Hessian as the pre-conditioner
  • The update is the moving average of the gradients divided by the moving average of the estimated Hessian, followed by element-wise clipping
  • Sophia only estimates the diagonal Hessian every handful of iterations, which has negligible average per-step time and memory overhead
  • The authors evaluate Sophia on auto-regressive language modeling with GPT-2 models ranging from 125M to 770M parameters
  • Results show that Sophia achieves a 2x speed-up compared to AdamW and Lion while also having better scaling laws than AdamW
  • In addition to its performance benefits, Sophia adapts to different components' curvature in parameters for language modeling tasks, which can be highly heterogeneous
  • The run-time bound does not depend on the condition number of loss
  • The experimental setup involves training autoregressive models on OpenWebText using decoder-only architecture with context length set to 1024
  • The authors use five prompts for evaluation purposes
  • Overall, this paper presents an efficient optimizer that can significantly reduce training time and cost for language model pre-training while also adapting to different curvatures in parameters for language modeling tasks.

Key points written by AI: they may contain errors, check them against the paper.

AI-generated keywords: Sophia

Read further

  • Comprehensive Summary
  • Layman's Summary
  • Blog article
  • Original abstract
The paper proposes a new optimizer called Sophia, which is a scalable second-order optimizer that uses a light-weight estimate of the diagonal Hessian as the pre-conditioner. The update is the moving average of the gradients divided by the moving average of the estimated Hessian, followed by element-wise clipping. The clipping controls the worst-case update size and tames the negative impact of non-convexity and rapid change of Hessian along the trajectory. Sophia only estimates the diagonal Hessian every handful of iterations, which has negligible average per-step time and memory overhead. The authors evaluate Sophia on auto-regressive language modeling with GPT-2 models ranging from 125M to 770M parameters. They compare Sophia with AdamW and Lion in terms of number of steps, total compute, and wall-clock time across all model sizes. Results show that Sophia achieves a 2x speed-up compared to AdamW and Lion while also having better scaling laws than AdamW. In addition to its performance benefits, Sophia adapts to different components' curvature in parameters for language modeling tasks, which can be highly heterogeneous. The run-time bound does not depend on the condition number of loss. The experimental setup involves training autoregressive models on OpenWebText using decoder-only architecture with context length set to 1024. The authors use five prompts for evaluation purposes. Overall, this paper presents an efficient optimizer that can significantly reduce training time and cost for language model pre-training while also adapting to different curvatures in parameters for language modeling tasks.

Was this synthesis useful?

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Ask questions about this paper to our AI assistant

Compare with the PDF

You can also chat with multiple papers at once here.

Figures and plots

Ask about a figure by number or use its question button to request visual analysis. Up to two figures and four image panels per question. Values read from plots are approximate; check the original data.

AI assistant instructions?

Tools for this paper

Explain it differently 3 free rewrites left today
Save to a collection Group papers in collections to compare them, chat with them and export them. Create a free account Log in

Advanced tools Premium

For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium

Zotero
Citation alerts
Journal club Premium+ Slides to present it
For journalists Premium+ Press kit and hype check

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.