本文へ移動
AI NEWS JOURNAL
arXiv cs.CLAI NEWS / JOURNAL

LazyFlash:長文コンテキストの高速微調整のための前方密・後方疎なアテンション

arXiv:2610.31911v1 発表タイプ:新規 要旨:大規模言語モデル(LLM)がますます長いシーケンスを処理するようになると、アテンションは主要な計算上のボトルネックとなります。スパースアテンションは主に推論段階を対象としていますが、多くの手法は依然として密に学習を行ったり、スパースな学習をサポートできなかったりします。さらに、それらの手法は追加の複雑さを伴うため、スパース性を実際の実行時間の短縮へと結びつけるのが難しく、結果として実用的には密なアテンションが広く用いられています。本論文では、アテンションの学習は後方パスに大きく依存しているという観察に基づき、前方は密に、後方はスパースに実装する新しいアテンション手法であるLazyFlashを提案します。LazyFlashは前方パスを完全に密に保つため、学習後のモデルは従来の密なモデルのままであり、vLLMなどの既存システムでも一切の変更なしにサービス可能です。一方、後方パスについては、LazyFlashは勾配を

翻訳待ちです。完了すると自動更新されます。

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
← すべてのニュースへ