Zyphra AI Introduces Zyphra Hierarchical Attention (ZHA): A Path to True Subquadratic Attention

2026年11月3日 01:09
站內 AI 整理稿

Zyphra has released Zyphra Hierarchical Attention (ZHA), a sparse attention method built around a tree-structured indexer.ZHA targets a known gap in sparse attention: the indexer that picks tokens still scans the whole context.

Zyphra’s technical paper shows ZHA can be distilled into frozen pretrained models with about 4B tokens.On Qwen3.6-35B-A3B it stays close to dense attention on reasoning, agentic coding and 256K retrieval benchmarks.TL;DR Size: It is a method that adds 81,920 trainable parameters to Qwen3.

6-35B-A3B (about 0.00024%).Tested up to 256K context.Runs on: Retrofits frozen pretrained models after a 4B-token KL warmup at 32K context.Speedups come from a modeled H100 BF16 roofline.No optimized kernels released.An FP4 router variant was also tested.

Performance: Within a few points of dense attention on 7 reasoning, coding and retrieval benchmarks.Best: LongBench v2 hits 63.4% (deep tree) vs 58.0% dense, using about 1.1% of keys.Worst: On NoPE-based Nemotron-3.5-Lightning-30B-A3B, deep-tree RULER-13 drops 25.3 points below dense.

What is Zyphra Hierarchical Attention (ZHA)?ZHA is a sparse attention method from Zyphra that finds relevant keys by searching a tree.It keeps the full KV cache.The tree only decides which cached keys each query reads.Fixed-state methods like SSMs and sliding windows saturate at long contexts.

Fine-grained sparse methods like DeepSeek Sparse Attention score every past token with an indexer.The final attention is sparse, but the indexer still grows with the full context.Near 1M tokens, cited work shows indexing takes 60 to 90% of layer time.ZHA makes the search itself sparse.

How does ZHA’s tree indexer work?Building the tree ZHA splits keys into contiguous chunks and compresses each chunk into a summary key.Summaries are grouped and compressed again, level by level.With chunk size 4, 6 levels cover 4,096 tokens per top node.

Summaries come from a small set of learned reference queries.Each reference query gives a tangent-plane estimate of a chunk’s log attention mass.The max over these planes approximates how much attention any future query would give the chunk.How does top-p routing pick tokens?

At decode time, a query scores the top-level nodes.It keeps the smallest set holding a fraction p of estimated attention mass.It then expands only those children, repeating until it reaches raw KV entries.Top-p makes the budget adaptive.A single-fact lookup touches few branches.

A query that needs many scattered facts expands more.The first token is always kept as an attention sink.How does ZHA perform against dense attention and MSA?Zyphra team converted Qwen3.6-35B-A3B with 2 trees: deep (chunk 4, 6 levels) and wide (chunk 256, 1 level).

Both use 16 reference queries and p = 0.95.It also trained a MiniMax Sparse Attention (MSA) indexer on 40B tokens, 10x ZHA’s budget.Benchmark (Qwen3.6-35B-A3B)DenseZHA deepZHA wideMSAAIME 202693.191.290.891.7SWE-bench Verified67.467.468.463.6Terminal-Bench 2.149.946.753.346.1MMLU-Pro84.985.385.285.

3GPQA Diamond84.885.085.083.1RULER-13 (256K)96.093.396.277.1LongBench v2 (thinking)58.063.462.449.3 Source: arXiv 2610.42112, Figure 5.All numbers self-reported by Zyphra.The biggest gap is on retrieval.MSA drops to 77.1% on RULER-13, while both ZHA trees stay above 93%.

On LongBench v2, the deep tree and MSA read similar key shares (1.1% vs 1%).The deep tree scores 14.1 points higher.Across 28 tree geometries, RULER accuracy held steady when attending to 10 to 30% of keys.At fixed compression, deeper trees kept accuracy at higher sparsity.

A 4-parameter model predicts RULER accuracy from geometry with 1.44-point RMSE.BackNext step Auto-play Qwen3.6-35B-A3B, p = 0.95, R = 16.Deep = chunk 4, 6 levels.Wide = chunk 256, 1 level.MSA = top-16 blocks of 128, trained on 40B tokens.Self-reported by Zyphra.

Share of KV keys attended during decoding Lower is sparser.Top-p lets the deep tree read far fewer keys on retrieval than on diffuse reasoning tasks.~48K

tokens where modeled ZHA overtakes dense attention ~0.48M

tokens where modeled ZHA overtakes MSA 373 to 417x

projected speedup over dense at 1B tokens 52 to 58x

projected speedup over MSA at 1B tokens Roofline model: H100, BF16, 1 layer, batch size 1, ZHA R = 1, C = 8, p = 0.75.Not measured kernels.Curves are schematic, anchored to the reported crossovers.Speedups are modeled, not measured.Zyphra released no optimized kernels.

Latency beyond 256K comes from a roofline projection.At 256K, frontier settings model only 1.93x to 2.28x over dense.NoPE models lose retrieval accuracy.On Nemotron-3.5-Lightning-30B-A3B, RULER-13 at p = 0.95 drops 25.3 points (deep) and 10.2 points (wide) below dense.Top-p must scale with depth.

A fixed per-level p shrinks effective coverage as trees grow deeper.Too high a p removes pruning and returns to quadratic cost.Small models struggle.Models under 1B parameters converted poorly.Results improved sharply at 4B and above.Terminal-Bench 2.1 dip.The deep tree scores 46.7% vs 49.9% dense.

The wide tree scores 53.3%.Tap a card to expand.Sources: arXiv 2610.42112 · Zyphra blog

Related

相關文章

雷峰網模型更新

騰訊12.8億用戶蟬聯中國互聯網第一,綠泡泡月活破1.5億,手遊top10獨佔8款

本文作者: Nemo 2026-11-03 18:59 導語:短劇業務是本次報告的關注重點。11 月 3 日,QuestMobile發佈最新《中國移動互聯網秋季大報告》。報告顯示,截至 2026 年 9 月,騰訊控股以 12.80 億去重總用戶量(APP + 小程序)位列中國互聯網公司用戶規模榜首,第九年蟬聯榜首,霸主地位穩固。

2 小時前
智東西模型更新

實測阿里版Muse:千問Go 7×24小時在線,幫我逛淘寶、盯大麥

AI應用風向標(公眾號:ZhidxcomAI) 作者|畢偉豪 編輯|漠影 如果有這樣一個AI,它有一部手機和一臺電腦在雲端24小時運轉等你發號施令,能登錄你的淘寶、高德、大麥,能幫忙挑選商品,還能在雲端電腦上開發遊戲,甚至可以一句話做出應用,你會拿它來做什麼?

4 小時前

QuestMobile:豆包、DeepSeek月人均使用次數超其他AI應用

報告認為,具備獨立服務閉環的應用入口,以及能夠打通服務交付的系統級入口,正在逐漸佔據優勢。數據顯示,2026年9月,豆包和DeepSeek的月人均使用次數分別達到72.0次和65.9次,月人均使用時長分別為132.5分鐘和136.7分鐘,在使用頻次和時長方面領先其他AI應用。

6 小時前6200
雷峰網模型更新

從用戶場景到產業落地:美的原創性競爭的底層邏輯

每年的科技月都是美的展示技術肌肉的時刻,聚光燈下的獎項固然耀眼,但真正值得關注的,往往是藏在產品背後的研發邏輯。第31屆科技月傳遞出一個明確信號:美的的創新重心,正從“參數內卷”轉向“原創性競爭”。在頒獎儀式上,美的集團董事長兼總裁方洪波強調:“沒有科技的投入和沉澱,就不會有美的的今天;要從同質化競爭,升級到原創性競爭。”這句話不是一句應景的口號,而是美的研發體系多年演進的底層邏輯。

10 小時前