EdgeXpert: 전문가 혼합(MoE) 및 추측 디코딩을 통한 메모리 효율적 LLM 추론 엣지 디바이스
EdgeXpert: An Edge Device for Memory-Efficient LLM Inference with Mixture-of-Experts and Speculative Decoding
한국어 초록
대규모 언어 모델(LLM)의 온디바이스 배포는 개인화된 엣지 애플리케이션을 위해 필수가 되었습니다. 주요 병목 현상은 순전파 신경망(FFN) 레이어의 외부 메모리 접근(EMA)입니다. 추측 디코딩(speculative decoding)과 전문가 혼합(MoE)은 유망한 해결책입니다. 추측 디코딩은 단계당 여러 토큰을 생성하여 디코딩 단계 수를 줄이고, MoE는 희소한 전문가 활성화를 통해 단계당 비용을 최소화합니다. 그러나 이 두 기법을 결합할 때 비호환성이 발생합니다. 본 논문에서는 이러한 비호환성을 해결하는 소프트웨어-하드웨어 통합 설계 LLM 가속기인 EdgeXpert를 제안합니다. 프리필(prefill) 단계에서 프롬프트 단위 전문가 재사용은 라우팅을 토큰별 독립적인 전문가 선택이 아닌 프롬프트 수준의 전문가 재사용으로 재구성합니다. 이는 경량 인코더를 사용하여 중요한 토큰을 식별하고, 이들로부터 공유 전문가 세트를 구성하며, 중요도가 낮은 토큰은 축소된 전문가 예산으로 라우팅하여 전문가 EMA를 낮춥니다. 디코드 단계에서 깊이 인식 전문가 결합(depth-aware expert coalescing)은 동일 깊이 후보 토큰 간의 문맥적 유사성과 상호 배타성을 활용합니다. 필요한 모든 채널의 합집합을 로드하는 대신, EdgeXpert는 두드러진 채널만을 로드하고 추가적인 메모리 접근 없이 연산 보정(computational calibration)을 적용하여 정확도를 복원합니다. 삼성 28nm 공정 및 800MHz에서 합성된 EdgeXpert는 기존 연구 대비 기준선(baseline)에 근접한 정확도를 유지하면서 최대 56.3%의 지연 시간 감소와 44.1%의 에너지 감소를 달성합니다.
원문 초록
On-device deployment of Large Language Models (LLMs) has become essential for personalized edge applications. A primary bottleneck is external memory access (EMA) in feed-forward network (FFN) layers. Speculative decoding and mixture-of-experts (MoE) are promising solutions. Speculative decoding reduces the number of decoding stages by generating multiple tokens per stage, and MoE minimizes per-stage cost through sparse expert activation. However, there is an incompatibility when combining these two techniques. We propose EdgeXpert, a software-hardware co-designed LLM accelerator that resolves this incompatibility. In the prefill stage, the prompt-wise expert reuse reformulates routing as prompt-level expert reuse rather than independent per-token expert selection. It identifies important tokens using a lightweight encoder, constructs a shared expert set from them, and routes less important tokens with a reduced expert budget to lower expert EMA. In the decode stage, depth-aware expert coalescing exploits the contextual similarity and mutual exclusivity of same-depth candidate tokens. Rather than loading the union of all required channels, EdgeXpert loads only salient channels and applies computational calibration to recover accuracy without additional memory access. Synthesized in Samsung 28nm technology at 800 MHz, EdgeXpert achieves up to 56.3% latency reduction and 44.1% energy reduction compared to prior works, while maintaining near-baseline accuracy.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.05303v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.