RoutePack: MoE 강화학습을 위한 전문가 배치 및 어텐션 인식 데이터 패킹
RoutePack: Expert Placement and Attention-Aware Data Packing for MoE Reinforcement Learning
한국어 초록
강화학습(RL)을 위한 전문가 혼합(MoE) 모델 학습(training)은 두 가지 부하 분산 문제를 결합합니다. 시퀀스 구성은 각 데이터 병렬 마이크로배치의 밀집 어텐션(attention) 연산량을 결정하는 반면, 토큰(token) 라우팅은 전문가 병렬 랭크에서의 희소 전문가 연산량을 결정합니다. 둘 중 하나만 최적화하면 병목 현상이 다른 쪽으로 옮겨갈 수 있습니다. MoE RL에서는 롤아웃(rollout) 시점의 라우팅 재생을 통해 학습 단계 이전에 모든 샘플의 시퀀스 길이와 층(layer)별 전문가 수요가 노출됩니다. 본 논문에서는 옵티마이저(optimizer) 단계 윈도우에 걸쳐 상태 일관적인 층별 전문가 재라우팅과 어텐션 및 전문가를 함께 고려하는 데이터 패킹을 조율하는 계층적 플래너인 RoutePack을 제안합니다. RoutePack은 먼저 집계된 라우팅 수요를 바탕으로 각 MoE 층에서 독립적으로 전문가를 배치합니다. 그런 다음 샘플들을 검증된 최소 또는 알려진 최선의 실행 가능한 토큰 제한 실행 행 수로 패킹하고, 투영된 EDP 샤드 인식 목적 함수를 통해 이들의 DP 레이아웃을 최적화합니다. 이 목적 함수는 윈도우 정규화된 선형-이차 어텐션 프록시와 층별 물리적 EP 랭크 피크를 결합하여 가장 느린 EDP 샤드의 누적 비용을 최소화합니다. 병렬 포퓰레이션 어닐링(population annealing)은 샘플 커버리지, 용량, 비어 있지 않은 셀, 동일한 마이크로배치 수 및 통신자 토폴로지를 유지하면서 고정 행 실행 가능 레이아웃을 탐색합니다. 상태 일관적 구체화(materialization)는 마이크로배치 수준의 전문가 복제 없이 논리적 top-k 라우팅과 기존 MoE 커널을 보존합니다. Ling-3.0-Tiny 및 Ling-3.0-Flash에 걸쳐 전문가 재라우팅은 트레이너 측정 평균 토큰 처리량을 각각 3.80% 및 10.50% 향상시켰으며, 라우팅 인식 패킹은 여기에 각각 4.86% 및 3.98%를 추가로 향상시켰습니다. 전반적으로 RoutePack은 기준선(baseline) 대비 처리량을 각각 8.85% 및 14.89% 향상시킵니다.
원문 초록
Training Mixture-of-Experts (MoE) models for reinforcement learning (RL) couples two load-balancing problems: sequence composition determines dense attention work in each data-parallel microbatch, while token routing determines sparse expert work on expert-parallel ranks. Optimizing either alone can shift the bottleneck to the other. In MoE RL, rollout-time routing replay exposes every sample's sequence length and layer-wise expert demand before its training step. We present RoutePack, a hierarchical planner that coordinates state-consistent, layer-wise expert rerouting with joint attention- and expert-aware data packing over an optimizer-step window. RoutePack first places experts independently at each MoE layer using aggregate routing demand. It then packs samples into the smallest certified, or best-known feasible, number of token-capped execution rows and optimizes their DP layout with a projected EDP-shard-aware objective. The objective combines a window-normalized linear-quadratic attention proxy with per-layer physical EP-rank peaks and minimizes the accumulated cost of the slowest EDP shard. Parallel population annealing searches fixed-row feasible layouts while preserving sample coverage, capacity, nonempty cells, equal microbatch counts, and communicator topology. State-consistent materialization preserves logical top-k routing and existing MoE kernels without microbatch-level expert replication. Across Ling-3.0-Tiny and Ling-3.0-Flash, expert rerouting improves mean trainer-measured token throughput by 3.80% and 10.50%, while routing-aware packing adds another 4.86% and 3.98%, respectively. Overall, RoutePack improves throughput by 8.85% and 14.89% over the baseline.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.12146v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.