计算机科学 > 机器学习
[提交于 2024年2月8日]
标题:The Fine-Grained Complexity of Gradient Computation for Training Large Language Models
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Large language models (LLMs) have made fundamental contributions over the last a few years. To train an LLM, one needs to alternatingly run `forward' computations and `backward' computations. The forward computation can be viewed as attention function evaluation, and the backward computation can be viewed as a gradient computation. In previous work by [Alman and Song, NeurIPS 2023], it was proved that the forward step can be performed in almost-linear time in certain parameter regimes, but that there is no truly sub-quadratic time algorithm in the remaining parameter regimes unless the popular hypothesis SETH is false. In this work, we show nearly identical results for the harder-seeming problem of computing the gradient of loss function of one layer attention network, and thus for the entire process of LLM training. This completely characterizes the fine-grained complexity of every step of LLM training.
提交历史
来自:Zhao Song[v1] 2024年2月8日 星期四 00:00:00 UTC