TreeWY:面向Gated DeltaNet混合模型的推测验证方案
TreeWY: Speculative Verification for Gated DeltaNet Hybrids
TreeWY用门控delta规则(gated delta rule)的树结构WY变换替代逐draft位置快照,只存小型伪值矩阵并在提交时重建被接受状态,从而消除GDN层的循环状态快照。在Qwen3.5 35B与397B上的服务基准显示,该方法在基本相同的接受长度下降低推测循环状态内存与KV-cache压力,把释放的HBM转为更高吞吐和更低TTFT,内存不受限时仅有几个百分点的代价。
arXiv:2608.20961v2 Announce Type: replace Abstract: Modern open models are hybrids: most layers are linear-attention (Gated DeltaNet, GDN) layers carrying a small fixed-size recurrent state instead of a growing key-value (KV) cache. This makes ordinary decoding memory-efficient, but hurts speculative decoding. To verify a batch of draft tokens and then roll back the rejected ones, today's systems snapshot the full recurrent state at every draft position for GDN layers, and those snapshots cannot be shared across branches of a draft tree, so a wide, high-acceptance tree becomes memory-infeasible. We remove the snapshots. Using a tree-structured WY transform of the gated delta rule, we compute every draft node's output with a single triangular solve and reconstruct only the one accepted state on commit, storing a small pseudo-value matrix instead of per-node states; the derivation depends only on the gated delta rule, not on any other architectural detail. In serving benchmarks on two scales of one hybrid model family (Qwen3.5 35B and 397B) this cuts speculative recurrent-state memory and KV-cache pressure at essentially identical acceptance length, turning the freed HBM into higher throughput and much lower time-to-first-token (TTFT) wherever memory binds, and costing a few percent where it does not. For tree width the same memory buys affordability: a wider, higher-acceptance draft becomes possible, though not yet a throughput win.
来源:arXiv (AI + Vision + Imaging) · arxiv.org