日本フィジカルAI新聞

世界のフィジカルAIを、日本語で。

拡散モデル高速化arXiv:2611.35314

量子化KVキャッシュ上で直接4bitアテンションを実行するストリーミング動画拡散モデル向け手法

ZenAttention: 4-bit Attention Directly on a Quantized KV Cache for Streaming Video Diffusion

シェア:XThreadsFacebookLINEはてブBluesky

ストリーミング動画拡散モデルのKVキャッシュをNVFP4で保持しつつ、バイアス補正と最新フレームの8bit階層化によりアテンションを直接4bitで計算し、品質を保ちながら高速化・省メモリ化を実現した。

詳しい要約

1. どんなもの?

- 長尺動画生成における streaming video diffusion 向けの、量子化 KV cache 上で直接 attention を計算する手法。 - 過去フレームの KV cache への attention が denoising 時間の最大58%を占める問題に対処。 - cache と attention 計算の両方を 4-bit 精度で行うことを目指す。 - 書き込み一回の NVFP4 KV cache 上で attention を直接計算する。 - 学習なし(without retraining)で複数の streaming video/world model に適用可能な単一 kernel として実装。

2. 先行研究と比べてどこがすごい?

- 既存手法は cache と attention の両方を 4-bit 化できず、片方のみだった。 - FP4 attention は毎回 bf16 cache を requantize し、streaming rollout で高周波 latent 詳細を 4-28% 失う。 - 4-bit KV cache は attention 前に bf16 へ dequantize していた。 - ZenAttention は両方を 4-bit で実現しつつ、latent 詳細を bf16 比 0.7% 以内に保つ(SageAttention3 の 4-28% 損失に対し)。 - 速度面で SageAttention2++ の 1.45x(628 effective TOPS on RTX 5090)、bf16 比 2.6-3.5x 高速な self-attention。 - denoising は bf16 比最大 1.89x、LongLive 2.0 の 4-bit release 比 1.84x。

3. 技術・手法の肝は?

- 4-bit attention の品質低下の原因を2つ特定: (1) FP4 attention 誤差が系統的にバイアスし cache 経由でフィードバックされ単一チャンク損失を約3x増幅(Self-Forcing)、(2) 最新の cached frame は古い履歴より精密な attention score を要する。 - 原因(1)に対し closed-form bias corrections(score あたり1 fused multiply-add)。 - 原因(2)に対し最新フレーム用の 8-bit tier。 - write-once NVFP4 KV cache 上で attention を直接計算。 - 単一 kernel で再学習不要、1.3B-5B の8モデルに適用。

4. どうやって有効だと検証した?

- RTX 5090 で 628 effective TOPS(1.45x SageAttention2++ 比)。 - self-attention が bf16 比 2.6-3.5x 高速、SageAttention2++ 比 1.23-1.50x、8-bit/4-bit SageAttention より高速。 - denoising が bf16 比最大 1.89x、LongLive 2.0 の 4-bit release 比 1.84x。 - 8つの streaming video/world model(1.3B-5B)で再学習なしに動作。 - KV-cache メモリが bf16 の 33-35%(約2/3削減)。 - latent 詳細が全8モデルで bf16 比 0.7% 以内。 - VBench で Self-Forcing(946 prompts)と LongLive-2.0-5B(VBench-Long)が bf16 と一致。

5. 議論はある?

- 要旨からは不明(品質・速度・メモリの定量結果は示されるが、限界や失敗ケースの議論は要旨に記載なし)。 - 8-bit tier を最新フレームのみに用いる設計の一般性や、他タスクへの拡張性についての議論は要旨からは不明。

6. 次に読むべき論文は?

- SageAttention2++ - SageAttention3 - LongLive 2.0(4-bit release) - Self-Forcing - NVFP4 / FP4 量子化 - streaming video diffusion / world model 関連手法

※ AIが要旨から生成した要約です。正確性は原文をご確認ください。

著者: Yingwei Song, Tony Zhu, Kelly Peng, Yuan Gao, Huanrui Yang

分類: cs.CV, cs.LG

原文アブストラクト

In long-video generation, streaming video diffusion models spend up to 58% of denoising time attending to a key-value (KV) cache of past frames at every step. Keeping both the cache and the attention computation in 4-bit precision would save substantial memory and time, yet existing methods achieve only one of the two: FP4 attention requantizes a bf16 cache at every call and loses 4-28% of high-frequency latent detail in streaming rollouts, whereas 4-bit KV caches dequantize back to bf16 before attention. We trace the quality drop of 4-bit attention on a cache to two causes: FP4 attention error is systematically biased and fed back through the cache, amplifying single-chunk loss roughly 3x on Self-Forcing; and the newest cached frame requires more precise attention scores than older history. ZenAttention addresses each cause with one component -- closed-form bias corrections costing one fused multiply-add per score and an 8-bit tier for the newest frame -- and computes attention directly on a write-once NVFP4 KV cache. ZenAttention is fast: 628 effective TOPS on an RTX 5090 (1.45x SageAttention2++), 2.6-3.5x faster self-attention than bf16 (1.23-1.50x SageAttention2++, faster than 8-bit and 4-bit SageAttention), and up to 1.89x faster denoising than bf16 (1.84x over LongLive 2.0's 4-bit release); general: one kernel runs without retraining across eight streaming video and world models (1.3B-5B); small: KV-cache memory drops by two-thirds (33-35% of bf16); and faithful: latent detail stays within 0.7% of bf16 across all eight models (vs. 4-28% lost by SageAttention3), while VBench matches bf16 on Self-Forcing (946 prompts) and LongLive-2.0-5B (VBench-Long). Code: https://github.com/wrencanfly/ZenAttention

  1. 1X Square RobotとPos Malaysia、物流自動化で協業覚書提携・買収
  2. 2日立とファナックのAIロボットアーム開発を日本経済新聞が報道提携・買収
  3. 3日経、トヨタのフィジカルAIとカイゼンを報道業界動向
  4. 4ABC、アスパラガス向けAI自動収穫ロボットの強化学習を開始研究・技術
  5. 5TUM、能力の限界を判断して停止するロボット向けAIモデルを開発研究・技術

PR・アフィリエイト広告

FRONTIER(GPU搭載BTOパソコン)

FRONTIER(GPU搭載BTOパソコン)の公式広告バナーFRONTIERでGPU搭載PCを見る ↗
PR本紙発行元 EmplifAI