[논문 리뷰] FlexMoRE: A Flexible Mixture of Rank-heterogeneous Experts for Efficient Federatedly-trained Large Language Models
FlexMoRE는 rank-heterogeneous low-rank adapters를 연합 Mixture-of-Experts 프레임워크에 도입하여, 저랭크 전문가가 전체 규모의 전문가와 대등하거나 이를 능가하면서 메모리를 대폭 절감하고, 작업 의존적 최적 랭크를 보임을 보여준다.
Recent advances in mixture-of-experts architectures have shown that individual experts models can be trained federatedly, i.e., in isolation from other experts by using a common base model to facilitate coordination. However, we hypothesize that full-sized experts may not be necessary for all domains and that instead low-rank adapters may be sufficient. Here, we introduce FlexMoRE, a Flexible Mixture of Rank-heterogenous Experts, which may be either full-sized experts or adapters of a suitable rank. We systematically investigate the trade-off between expert rank and downstream task performance by evaluating $6$ experts with ranks $2^0$ to $2^{14}$ resulting in experiments covering 150 mixtures (96 with 2 experts, 54 with 7 experts) that are evaluated across $120$ tasks. For our experiments, we build on FlexOlmo and turn its pre-trained experts into low-rank versions. Our regression analysis from expert rank to downstream task performance reveals that the best-performing rank is substantially higher for reasoning-heavy benchmarks than for knowledge-heavy benchmarks. These findings on rank sensitivity come with direct implications for memory efficiency: Using optimal ranks, FlexMoRE yields improved downstream task performance (average score $47.18$) compared to the baseline FlexOlmo-style mixture of full-sized experts (average score $45.46$) at less than one third the parameters ($10.75$B for FlexMoRE vs. $33.27$B for FlexOlmo). All code will be made available.
연구 동기 및 목표
- 데이터를 중앙에서 공유하지 않고 도메인-specific LLM의 분산식, 데이터 거버넌스 친화적 학습을 동기부여한다.
- 전체 크기 전문가와 함께 로우랭크 어댑터를 MoE 전문가로 도입하여 메모리와 계산을 줄인다.
- 다양한 작업과 도메인에서 전문가 랭크가 성능에 미치는 영향을 체계적으로 연구한다.
제안 방법
- 같은 라우팅 프레임워크 내에서 전체 크기와 로우랭크 MoE 전문가를 모두 허용하도록 FlexOlmo를 FlexMoRE로 확장한다.
- 기반 전문가(W_i - W_0)와의 차이의 잘라진 SVD를 사용한 포스트-호(adapt) PHLoRA 적응으로 로우랭크 전문가를 도출한다.
- 도메인 정보 기반 라우터 f(x)를 통해 라우팅하고, 로우랭크 어댑터를 전체 크기 기반 전문가에 부착한다.
- 출력은 y = sum over top-k routing probabilities times (M_n + B_n A_n)로 계산하며, B와 A는 LoRA 구성요소에서 온다.
- 랭크 민감도 s(r) = α + β log2 r로, 랭크가 증가함에 따른 성능 이익을 평가한다.
- 120개 작업과 다수의 전문가 수에 걸쳐 랭크-이질적 및 랭크-균질 실험을 수행한다.
실험 결과
연구 질문
- RQ1연합 MoE 설정에서 전체 크기 전문가를 로우랭크 어댑터로 대체하면 다운스트림 성능에 어떤 영향을 미치는가?
- RQ2LoRA 랭크와 추론 중심 벤치마크 대 지식 중심 벤치마크 간 성능 관계는 어떤가?
- RQ3데이터 거버넌스 제약하에서 랭크-이질적 전문가의 혼합이 균질 구성 및 중앙 집중식 전체 크기 기준선을 능가할 수 있는가?
- RQ4MC9 대 평균 성능 간의 실용적 모범 사례는 무엇인가?
주요 결과
- 저랭크 전문가가 여러 도메인 전문가에 대해 전체 크기 기준선과 맞먹거나 능가할 수 있으며, 경우에 따라 평균 7.13%의 개선을 달성한다.
- 이질적 FlexMoRE 구성(혼합 랭크)은 균질 구성 및 FlexOlmo 기준선보다 일관되게 우수하다.
- MC9 기반 랭크 선택이 평균 기반 선택보다 더 강한 평균 성능과 메모리 효율을 제공하며, 활성 전문가의 수가 적거나 많을 때 특히 그렇다.
- 최적의 전문가 랭크는 작업 의존적이다. 추론 중심 벤치마크는 더 높은 랭크에서 정점에 달하고, 지식 중심 벤치마크는 더 일찍 피크한다.
- 구성 전반에 걸쳐 FlexMoRE는 메모리 발자국을 극적으로 감소시키는 동시에 전체 크기 기준선 대비 성능 향상을 제공한다(예: 특정 전문가에서 최대 99.96% 감소).
- 최적의 랭크는 일반적으로 지식 task에서 낮은 랭크에서 피크하고, 추론 task에서 더 높은 랭크에서 피크하는 경향이 있다(예: MMLU는 낮고, BBH는 높다).
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.