Nesterov Method for Asynchronous Pipeline Parallel Optimization

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Ajanthan, Thalaiyasingam, Ramasinghe, Sameera, Zuo, Yan, Avraham, Gil, Long, Alexander
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910926314143744
author Ajanthan, Thalaiyasingam
Ramasinghe, Sameera
Zuo, Yan
Avraham, Gil
Long, Alexander
author_facet Ajanthan, Thalaiyasingam
Ramasinghe, Sameera
Zuo, Yan
Avraham, Gil
Long, Alexander
contents Pipeline Parallelism (PP) enables large neural network training on small, interconnected devices by splitting the model into multiple stages. To maximize pipeline utilization, asynchronous optimization is appealing as it offers 100% pipeline utilization by construction. However, it is inherently challenging as the weights and gradients are no longer synchronized, leading to stale (or delayed) gradients. To alleviate this, we introduce a variant of Nesterov Accelerated Gradient (NAG) for asynchronous optimization in PP. Specifically, we modify the look-ahead step in NAG to effectively address the staleness in gradients. We theoretically prove that our approach converges at a sublinear rate in the presence of fixed delay in gradients. Our experiments on large-scale language modelling tasks using decoder-only architectures with up to 1B parameters, demonstrate that our approach significantly outperforms existing asynchronous methods, even surpassing the synchronous baseline.
format Preprint
id arxiv_https___arxiv_org_abs_2505_01099
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Nesterov Method for Asynchronous Pipeline Parallel Optimization
Ajanthan, Thalaiyasingam
Ramasinghe, Sameera
Zuo, Yan
Avraham, Gil
Long, Alexander
Machine Learning
Distributed, Parallel, and Cluster Computing
Pipeline Parallelism (PP) enables large neural network training on small, interconnected devices by splitting the model into multiple stages. To maximize pipeline utilization, asynchronous optimization is appealing as it offers 100% pipeline utilization by construction. However, it is inherently challenging as the weights and gradients are no longer synchronized, leading to stale (or delayed) gradients. To alleviate this, we introduce a variant of Nesterov Accelerated Gradient (NAG) for asynchronous optimization in PP. Specifically, we modify the look-ahead step in NAG to effectively address the staleness in gradients. We theoretically prove that our approach converges at a sublinear rate in the presence of fixed delay in gradients. Our experiments on large-scale language modelling tasks using decoder-only architectures with up to 1B parameters, demonstrate that our approach significantly outperforms existing asynchronous methods, even surpassing the synchronous baseline.
title Nesterov Method for Asynchronous Pipeline Parallel Optimization
topic Machine Learning
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2505.01099