파이프라인 네이티브 트랜스포머: 대역폭 효율적인 자기회귀 디코딩을 위한 모델 아키텍처 및 CPU 추론 공동 설계
Pipeline-Native Transformers: Co-Designing Model Architecture and CPU Inference for Bandwidth-Efficient Autoregressive Decode
한국어 초록
CPU에서의 단일 토큰 자기회귀 디코딩은 연산 능력이 아닌 메모리 대역폭에 의해 제한됩니다. 최신 CPU는 약 1 TFLOP/s의 연산 능력을 유지하지만 메인 메모리 대역폭은 약 50 GB/s에 불과하며, 생성되는 각 토큰마다 모든 활성 가중치를 한 번씩 스트리밍해야 합니다. 본 보고서에서는 가장 효과적인 해결책이 모델 아키텍처와 추론 런타임을 함께 공동 설계(co-design)하는 것이라고 주장합니다. 이에 따라 수직적이고 스테이지 중심(stage-major)의 실행 스케줄을 가능하게 하도록 레이어 간 의존성 그래프를 구성한 파이프라인 네이티브 트랜스포머 아키텍처 제품군과 함께, CPU 우선 스트리밍 엔진인 cflow를 제시합니다. cflow는 가중치를 연산 소비 순서에 맞춘 L2 크기의 타일로 저장하고, 각 전문가 혼합(MoE) 층에서 상위 k개(top-k)의 전문가만 읽으며, 프로젝션을 융합하고, 모델별 의존성 매개변수로부터 지연 인식 스케줄을 실행합니다. TinyStories로 학습된 5개 아키텍처 중에서 한 아키텍처(arch2_4_combined)는 최상의 후보 모델 대비 0.24의 당혹도(perplexity) 차이 내에서 크리티컬 패스 가중치 대역폭을 2.00배 절감(토큰당 9.00 MB에서 4.50 MB로 감소)했으며, 타일 배치는 행 우선(row-major) 기준선 대비 L1-데이터 읽기 미스를 7.29배 적게 발생시킵니다. 309억 개 매개변수의 파이프라인 네이티브 MoE에서 cflow는 32-vCPU Ice Lake 서버 기준 5.94 tokens/s(tok/s)로 디코딩을 수행하여, 유사한 크기의 밀집(dense) 모델에서 llama.cpp(4.75) 및 vLLM CPU 백엔드(1.65)보다 앞선 성능을 보였습니다. 디스크에 상주하는 전문가 계층에서 전문가 지연 윈도우를 비동기 I/O 오버랩으로 구현하면 오버랩 모델과 1% 오차 내로 일치하면서 최대 1.68배의 추가적인 순이득을 얻을 수 있습니다. 측정 결과 8개의 설계 주장 중 1개는 반박되었고 2번째 주장은 결정적이지 않은 것으로 남았으며, 두 경우 모두 해당 주장이 성립할 수 있는 조건과 함께 전부 보고합니다.
원문 초록
Single-token autoregressive decode on CPUs is bound by memory bandwidth, not arithmetic: a modern CPU sustains roughly 1 TFLOP/s of compute but only about 50 GB/s from main memory, and each generated token must stream every active weight once. This report argues that the most effective response is to co-design the model architecture and the inference runtime together. It presents cflow, a CPU-first streaming engine, alongside a family of pipeline-native transformer architectures whose inter-layer dependency graphs are constructed to permit a vertical, stage-major execution schedule. cflow stores weights as L2-sized tiles in compute-consumption order, reads only the top-k experts of each mixture-of-experts layer, fuses projections, and executes a delay-aware schedule from per-model dependency parameters. Across five architectures trained on TinyStories, one (arch2_4_combined) achieves a 2.00x reduction in critical-path weight bandwidth (9.00 to 4.50 MB/token) within 0.24 perplexity of the best candidate, and the tile layout incurs 7.29x fewer L1-data read misses than a row-major baseline. On a 30.9-billion-parameter pipeline-native MoE, cflow decodes at 5.94 tokens/s (tok/s) on a 32-vCPU Ice Lake server, ahead of llama.cpp (4.75) and the vLLM CPU backend (1.65) on comparably sized dense models. Realizing the expert-delay window as asynchronous I/O overlap on a disk-resident expert tier yields a further net win of up to 1.68x, matching the overlap model within 1%. Measurement refutes one of the eight design claims and leaves a second inconclusive; both are reported in full, with the conditions under which they would hold.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.23841v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.