arXiv:2608.08730v1 cs.LG

LLM 추론을 위한 WebGPU 디스패치 오버헤드 측정 및 감소

Measuring and Reducing WebGPU Dispatch Overhead for LLM Inference

Jędrzej Maczan

제출 2026-08-09

한국어 초록

대규모 언어 모델(LLM)은 인터넷 브라우저부터 엣지 디바이스에 이르기까지 다양한 유형의 환경에 배포되고 있으며, WebGPU는 현대적인 크로스 플랫폼 표준으로 활용되고 있습니다. 브라우저 기반 LLM 추론(inference) 엔진이 급증했음에도 불구하고, 연산당 WebGPU 디스패치(dispatch) 오버헤드는 여전히 명확하게 규명되지 않았습니다. 본 연구에서는 순차 디스패치 측정 방식을 도입하여, 단순한 단일 연산 측정이 디스패치와 동기화를 혼동함으로써 디스패치당 비용을 과대평가한다는 점을 밝힙니다. 제안하는 방법을 통해 디스패치당 비용을 측정하고, 이것이 사용된 데이터 유형과 무관함을 보입니다. 또한 배치(batch) 크기 1에서는 커널(kernel) 품질이 아닌 디스패치 오버헤드가 병목임을 입증하고, 그 원인으로 디스패치 횟수를 분리해 냅니다. 따라서 배치 크기 1에서 WebGPU의 LLM 추론 최적화를 위한 효과적인 접근법은 디스패치 횟수를 줄이는 것이라는 결론을 내립니다. 본 연구 결과는 추론 엔진과 WebGPU 사양 전반에서 디스패치 분할 상환(dispatch amortization)이 실용적인 브라우저 기반 추론을 실현하는 길임을 시사합니다.

원문 초록

Large Language Models are deployed to multiple types of environments, from internet browsers to edge devices, and WebGPU serves as a modern cross-platform standard. The engines for browser-based LLM inference have proliferated, yet the overhead of WebGPU per-operation dispatch remains poorly characterized. In this work, we introduce a sequential-dispatch measurement method and show that naive single-operation measurements overestimate per-dispatch cost by conflating dispatch with synchronization. Using our method, we measure the per-dispatch cost and show that it is independent of data type used. We show that the dispatch overhead, not kernel quality, is the bottleneck at batch size 1, and isolate the dispatch count as the cause. Therefore, we conclude that at batch size 1, the effective approach to LLM inference optimization in WebGPU is reducing dispatch count. Our findings point to dispatch amortization, in the inference engines and in the WebGPU specification, as a path to practical browser-based inference.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2608.08730v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.