BASP: LLM 학습을 위한 통신 효율적인 배치 인식 시퀀스 병렬 처리
BASP: Communication-Efficient Batch-Aware Sequence Parallelism for LLM Training
한국어 초록
대규모 언어 모델(LLM)에서 긴 컨텍스트 추론(long-context reasoning)의 중요성이 점차 커지고 있으나, 방대한 메모리 및 통신 요구량으로 인해 긴 시퀀스에 대한 학습(training)은 여전히 까다로운 과제로 남아 있습니다. 시퀀스 병렬 처리(Sequence parallelism)는 긴 시퀀스 LLM 학습의 병목 현상을 해결하기 위한 필수적인 기법으로 부상했습니다. 그러나 기존 시퀀스 병렬 처리 방식들은 배치를 고려하지 않으며(batch-agnostic) 모든 배치 크기에 걸쳐 균일한 시퀀스 분할을 적용하여 비효율적인 통신을 초래한다는 점을 발견했습니다. 본 논문에서는 통신 오버헤드를 줄이기 위해 배치 구조를 활용하는 시퀀스 병렬 처리 접근 방식인 BASP(Batch-Aware Sequence Parallelism)를 소개합니다. BASP는 마이크로 배치(micro-batch) 크기에 따라 GPU를 서로소인 시퀀스 병렬 그룹으로 분할함으로써 배치 구조를 활용합니다. 이러한 설계를 통해 all-to-all 통신 그룹 크기를 줄여 통신을 국소화하고 학습 효율성을 향상시킵니다. NVIDIA A100 클러스터에서의 실험 결과에 따르면, BASP는 동일한 모델 정확도와 메모리 사용량을 유지하면서도 표준 시퀀스 병렬 베이스라인 대비 Llama 및 Qwen 모델에서 엔드투엔드 학습 시간을 최대 1.17 - 1.31배 개선함을 보여줍니다.
원문 초록
Long-context reasoning for large language models (LLMs) is becoming increasingly important, but training over long sequences remains challenging due to massive memory and communication requirements. Sequence parallelism has emerged as an essential technique for addressing bottlenecks in long sequence LLM training. However, we observe that existing sequence parallelism methods are batch-agnostic and apply uniform sequence partitioning across all batch sizes, resulting in inefficient communication. In this paper, we introduce Batch- Aware Sequence Parallelism (BASP), a sequence parallelism approach that leverages batch structure to reduce communication overhead. BASP exploits batch structure by partitioning GPUs into disjoint sequence-parallel groups according to the micro- batch size. This design reduces the all-to-all communication group size, thereby localizing communication and improving training efficiency. Experimental results on an NVIDIA A100 cluster show that BASP improves end-to-end training time by up to 1.17 - 1.31x in Llama and Qwen models compared to standard sequence parallel baselines, while preserving identical model accuracy and memory usage.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2609.03151v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.