画像生成の対角方向の注意を利用し推論を高速化
Understanding and Exploiting Diagonal Attention Sparsity in Autoregressive Image Generation
この論文をやさしく読む
ひとことで言うと
画像をトークンごとに生成するAIで、参照する過去の情報を画像特有の注意パターンに沿って減らし、処理を速くします。
何に役立つ?
大量の画像トークンを生成するときのKVキャッシュ読み出し負担を減らす用途です。品質と効率の交換条件を測りながら、GPU推論の設計に使う方法です。
この研究の面白いところ
画像の空間的な近さから対角方向の注意が現れることを分析し、最近の範囲の中でその方向に沿ってKV項目を選択的に省きます。入力処理と逐次生成で注意の特徴が違う点も整理しています。
どこまで分かった?
密な推論との比較で最大3.1倍のスループット、1.19倍の遅延改善、品質低下2%未満と報告します。最大値であり、すべてのモデルや負荷で同じ改善を保証するものではありません。
v1のアブストラクトに基づくAI解説。日本語訳とは別に、用途の解釈を含みます。
アブストラクトの日本語訳
自己回帰型画像生成は、TransformerベースのLLM提供基盤との互換性を背景に、マルチモーダルAIシステムの一つの方式として登場している。しかし、1回の要求で数千個の視覚トークンを生成するため、デコード処理では注意計算中のKVキャッシュへのアクセスがますますボトルネックとなる。視覚生成の用途には、性能と効率の改善と引き換えに中程度の品質低下を許容できるものが多いため、疎な注意機構はこの処理に特に適している。テキストLLMの推論では疎な注意が広く研究されているものの、その疎性に関する仮定が自己回帰型画像生成にも有効に一般化するかは明らかでない。 本研究は、多様な処理条件と代表的なオープンソースモデルにわたり、自己回帰型画像生成の注意の疎性を初めて体系的に特徴づける。解析により、プリフィルとデコードの顕著な非対称性、プロンプトと近傍トークンへの注意の強い集中、視覚トークンの空間的局所性に由来する固有の対角方向の疎な注意パターンなど、特徴的な性質を明らかにする。 これらの観察に基づき、直近のウィンドウ内で注意の対角方向に沿ったKVエントリを選択的に省略する、対角構造を考慮した疎な注意機構を提案する。FlexGen、FlashAttention-2、独自カーネルを使ったGPUベースの提供システム上に実装した本手法は、密な注意を用いる推論と比べ、品質低下を2%未満に抑えつつ、スループットで最大3.1倍、レイテンシで最大1.19倍の改善を達成する。
v1の要旨から自動生成。本文の精読・人による確認は未実施。
- 初稿
- 2026-09-17(UTC)
- 最新改訂
- 2026-09-17 · v1
- 査読・掲載
- 査読状況未確認
更新履歴
- v1 2026-09-17 この版を読む
取得できた版を表示。版の更新は査読済みを意味しません。過去版の本文差分は未解析です。
原文の要旨
Autoregressive image generation has emerged as a paradigm for multimodal AI systems due to its compatibility with transformer-based LLM serving infrastructures. However, generating thousands of visual tokens per request makes decoding increasingly bottlenecked by KV cache accesses during attention computation. Sparse attention is particularly attractive for this workload because many visual generation applications tolerate moderate quality degradation in exchange for improved performance and efficiency. While sparse attention has been extensively explored for text-based LLM inference, it remains unclear whether its sparsity assumptions generalize effectively to autoregressive image generation. We present the first systematic characterization of attention sparsity in autoregressive image generation across diverse workloads and representative open-source models. Our analysis reveals several distinguishing properties, including a pronounced prefill-decode asymmetry, strong attention concentration on prompt and local tokens, and a unique diagonal attention sparsity pattern arising from the spatial locality of visual tokens. Motivated by these observations, we propose a diagonal-aware sparse attention mechanism that selectively skips KV entries along the diagonal attention direction within a recent window. Implemented on top of a GPU-based serving system using FlexGen, FlashAttention-2, and custom kernels, our approach achieves up to 3.1x throughput and 1.19x latency improvements with less than 2% quality degradation compared to dense inference.
arXiv ID: 2609.19702 / 要約の誤りについて