dit.xpu: 모바일 SoC에서 확산 트랜스포머의 희소 추론 최적화
dit.xpu : Taming DiT Sparse Inference on Mobile SoCs
한국어 초록
확산 트랜스포머(DiT)는 기기에서 이미지를 생성하고 편집할 수 있게 하지만, 해상도가 높으면 어텐션 계산 비용이 크다. 기존 희소 어텐션은 연산을 줄이지만, 동적 희소성에 필요한 전처리와 불규칙한 데이터 접근은 모바일 NPU에 적합하지 않다. 본 연구는 이기종 모바일 시스템온칩(SoC)을 위한 희소 DiT 추론 프레임워크 DiT.XPU를 제안한다. 잡음 제거 단계 사이에서 밀집 어텐션 출력과 희소 어텐션 출력의 차이가 서서히 변한다는 점을 이용해, 타일 정렬 희소 어텐션과 기준점 기반 오차 보정을 결합한다. 이기종 XPU가 협력해 NPU의 밀집 어텐션과 GPU의 희소 어텐션 보정을 겹쳐 실행한다. 마스크 기반 데이터 흐름은 데이터 이동을 계산과 겹쳐 수행하며, 전송과 레이아웃 변환을 줄인다. Snapdragon 스마트폰 두 대에서 DiT 모델 다섯 종을 평가한 결과, DiT.XPU는 Hexagon-NPU 백엔드 대비 종단 간 잡음 제거 속도를 최대 1.56배 높였다. 가장 빠른 대안보다 어텐션 커널이 최대 11.5배 빨랐으며, 밀집 어텐션에 가까운 생성 품질을 유지했다. 코드는 https://github.com/IF-LAB-PKU/dit.xpu 에서 확인할 수 있다.
원문 초록
Diffusion Transformers (DiTs) enable on-device image generation and editing but incur high attention costs at high resolutions. Existing sparse attention reduces computation, yet dynamic sparsity introduces preprocessing and irregular data accesses that poorly fit mobile NPUs. We present DiT.XPU, a sparse DiT inference framework for heterogeneous mobile SoCs. DiT.XPU combines tile-aligned sparse attention with anchor-based error compensation by exploiting slowly varying dense-sparse output residuals across denoising steps. Heterogeneous XPU collaboration overlaps NPU dense attention with GPU sparse calibration, while mask-guided dataflow reduces data transfers and layout conversion by overlapping data movement with computation. Across five DiT models on two Snapdragon smartphones, DiT.XPU achieves up to 1.56x end-to-end denoising speedup over the Hexagon-NPU backend and 11.5x attention-kernel speedup over the fastest alternative, while preserving generation quality close to dense attention. Code is available at https://github.com/IF-LAB-PKU/dit.xpu.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2611.19261v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.