본문으로 건너뛰기
AI NEWS JOURNAL
arXiv cs.CLAI NEWS / JOURNAL

LazyFlash: 긴 컨텍스트 미세조정을 가속화하기 위한 전방 밀집형·후방 희소형 주의력

arXiv:2610.31911v1 발표 유형: 신규 초록: 대규모 언어 모델(LLM)이 점점 더 긴 시퀀스를 처리함에 따라, 주목 메커니즘은 주요한 계산 병목으로 부각되고 있다. 희소 주목 기법은 대부분 추론 단계에 초점을 맞추지만, 여전히 많은 방법들이 밀집형으로 학습되거나 희소 학습을 지원하지 못하며, 추가적인 복잡성으로 인해 희소성이 실제 실시간 성능 향상으로 이어지기 어려워져, 실제로는 밀집형 주목이 널리 사용되고 있다. 본 논문에서는 주목 학습이 후방 전달 단계에 의해 지배된다는 관찰에 기반하여 설계된, 전방은 밀집형, 후방은 희소형 주목 방식인 LazyFlash를 제안한다. LazyFlash는 전방 전달 단계를 완전히 밀집형으로 유지하므로, 학습된 모델은 vLLM과 같은 기존 시스템에서 아무런 변경 없이 서비스할 수 있는 표준 밀집형 모델로 남게 된다. 후방 전달 단계에서는 LazyFlash는 그라디언트-a

번역 대기 중입니다. 완료되면 자동 업데이트됩니다.

arXiv:2610.31911v1 Announce Type: new

Abstract: As large language models (LLMs) process increasingly long sequences, attention becomes a major computational bottleneck. Sparse attention mostly targets inference, yet many methods still train densely or cannot support sparse training, and their added complexity makes sparsity hard to turn into wall-clock speedups, leaving dense attention widely used in practice. This paper introduces LazyFlash, a forward-dense, backward-sparse attention method built on the observation that attention training is dominated by the backward pass. LazyFlash keeps the forward pass exactly dense, so the trained model remains a standard dense model that existing systems such as vLLM can serve without any change. For the backward pass, LazyFlash proposes a gradient-aware block sparsification design that ranks query blocks by their attention-output gradient norms and skips those contributing negligibly to parameter updates, turning the dense backward into a block-sparse one. A gradient-mass budget adapts the amount of skipped computation to each head and training step, while importance sampling preserves the dense gradient in expectation. These designs are implemented inside the tiled FlashAttention backward kernel, where skipped blocks are never loaded or computed, translating gradient sparsity into real wall-clock acceleration. Experiments on long-context text and speech LLMs show that LazyFlash maintains downstream performance while achieving up to 5.7x attention-backward speedup over FlashAttention and 1.7x end-to-end training speedup.

자료 출처

arXiv cs.CL
← 전체 소식 이어 읽기