ZeroLock: 모듈식 업데이트 분리를 통한 동시적 메모리 효율적 LLM 학습
ZeroLock: Concurrent Memory-Efficient LLM Training via Modular Update Decoupling
한국어 초록
엣지(edge) 환경에서의 대규모 언어 모델(LLM) 미세조정(fine-tuning)은 프라이버시를 보존하면서 모델을 특정 시나리오 데이터에 적응시킵니다. 기존 연구들은 엣지 기기의 제한된 메모리와 컴퓨팅 자원 문제를 해결하기 위해 파이프라인 병렬화(pipeline parallelism)를 제안했으나, 일반적으로 역전파(BP) 학습에 의존하여 업데이트 잠금(update locking)이라는 근본적인 한계를 지니며 극심한 처리량 및 메모리 병목 현상을 겪을 수 있습니다. 본 연구에서는 국소 목적함수 구성(local objective construction)을 통해 모델 업데이트를 독립적인 청크 업데이트로 분리하는 BP-free 알고리즘인 ZeroLock을 제안합니다. 이는 BP의 업데이트 잠금을 해제하여 알고리즘 수준에서 처리량을 향상시키고 활성화(activation) 저장을 줄임으로써 메모리 사용량을 낮출 수 있습니다. 우리가 아는 한, 본 논문은 국소 목적함수를 전역 목적함수에 매핑함으로써 일반적인 모델 청크 분할 하에서 이러한 국소 목적함수 구성 기반 접근법에 대한 최초의 이론적 프레임워크를 제공합니다. 또한 ZeroLock이 BP와 폴리로가리듬(polylogarithmic) 인자 차이만 있는 $\tilde{\mathcal{O}}(1/\sqrt{T})$의 수렴 속도를 가짐을 증명합니다. 나아가 효율적이고 강건한 구현을 위해 조기 전달(early forwarding) 및 장애 복구와 같은 기술을 통합하여 ZeroLock을 위한 시스템을 설계하고 실제 프로토타입을 구축했습니다. 프로토타입 대상 실험 결과, BP 기반 베이스라인 대비 ZeroLock은 메모리를 26.5% 줄이고 처리량을 4.9% 향상시키는 것으로 나타났습니다.
원문 초록
Large language model (LLM) fine-tuning at the edge adapts the model to scenario-specific data while preserving privacy. Although existing studies proposed pipeline parallelism to address the limited memory and computing resources of edge devices, they commonly rely on backpropagation (BP) training, which has a fundamental limitation of update locking and could experience severe throughput and memory bottlenecks. In this work, we propose a BP-free algorithm, called ZeroLock, that decouples the model updates into independent chunk updates by local objective construction. It breaks the update locking of BP and hence can improve throughput at the algorithm level and lower memory usage by reducing activation storage. To the best of our knowledge, we provide the first theoretical framework for such local objective construction-based approaches under general model chunk division by mapping local objectives to the global objective. We prove that ZeroLock has a convergence rate of $\tilde{\mathcal{O}}(1/\sqrt{T})$, which differs from BP only by polylogarithmic factors. We design a system for ZeroLock and build real-world prototypes, incorporating techniques such as early forwarding and failure recovery for efficient and robust implementation. Experiments on the prototype show that compared to BP-based baselines, ZeroLock reduces the memory by 26.5% and improves throughput by 4.9%.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.07974v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.