cs.DCNov 26, 2026

Tree Speculative Decoding with In-Call KV Repair on a Commercial Static-Graph NPU

Authors: Sungwon Woo, Seyeon Kim

Organizations: Korea University.

Abstract

Tree speculative decoding verifies many draft branches in one target call, but common implementations assume dynamic query shapes and direct control over the KV cache. Static-graph NPUs offer neither: each compiled graph fixes its query length, and the runtime owns the physical KV layout. We propose a tree verifier for this setting that packs repair rows and tree rows into one fixed 32-row call. Per-token rotary tables and an ancestor mask express the tree, and an exact-watermark rule re-scores accepted tokens whose KV is out of canonical order inside the next call, so no separate cache-movement call is needed. On the Rebellions ATOM+ NPU with the DFlash drafter, removing chunk-boundary replay first raises the linear baseline from 59.3 to 92.3 tokens/s. In a pre-specified study on 120 GSM8K questions, the tree verifier with a grouped 32-row projection head beats the fastest linear baseline by 12.2% on Qwen3-4B (95% CI 10.7-13.8%) and by 13.2% on Qwen3-8B (CI 12.1-14.4%), and it cuts board energy per token by 10.0% and 11.1%. Changing the compiled verification shape also changes floating-point outputs on 55 of 120 questions for 4B and 9 for 8B, and a matched-prefix diagnostic traces the one lost 4B answer to the query-shape change alone.

Figures & tables

Explore similar work

Oct 8, 2026

Where Draft Trees Lose Target Mass: Exit-Guided Speculative Decoding

Tree-based speculative decoding verifies multiple draft continuations in one target-model pass, but finite trees built from draft scores face a fundamental draft-target mismatch. We ask whether better exact verification can increase acceptance on a fixed tree and how target feedback can improve the tree itself. Through a target-flow view, we identify a canonical exit law and prove that one plus target coverage sharply bounds the expected output-block length, including the bonus token, of any exact path verifier. All optimal verifiers share the same exit and bonus-token law, already attained by representative predraw-and-follow and sequential residual verifiers. This yields Tree Exit Verification (TEV), an exact, level-parallel procedure using one exit-node decision and one bonus-token decision. The exit law also identifies missing target probability, providing node-level feedback for Exit-Guided Draft-Tree Training (ExitTrain) on inference-time draft trees. Experiments across dialogue, code, and mathematical reasoning validate fixed-tree equivalence: ExitTrain increases average output-block length by 13%, while TEV reduces verifier-stage latency by 15%, yielding a 14% end-to-end speedup over DDTree. Our results distinguish two opportunities: better draft trees for higher acceptance and more direct verification for lower latency. Code: https://github.com/hsj576/TEV.
May 10, 2026

KV-RM: Regularizing KV-Cache Movement for Static-Graph LLM Serving

Static-graph LLM decoders provide predictable launches, fixed tensor shapes, and low submission overhead, but online decoding exposes highly irregular KV-cache behavior: request lengths differ, EOS events arrive asynchronously, and logical histories fragment over time. Dynamic runtimes recover flexibility through paged KV management and step-level scheduling, while static-graph executors often over-reserve memory and suffer burst-time latency outliers. This paper studies whether much of this variability can be absorbed below a fixed decode interface. We present KV-RM, a runtime design that regularizes KV-cache movement beneath a static-graph LLM decoder. KV-RM decouples logical KV histories from physical storage, tracks active KV state through a block pager, and materializes each decode step through a single committed descriptor. A merge-staged transport path coalesces non-contiguous KV mappings into a small number of large transfer groups before a fixed-shape attention kernel consumes them. Optional bounded far-history summaries can be enabled under the same interface, but the core design does not depend on them. On a 2-GPU NVIDIA A100 node, KV-RM improves mixed-length decoding throughput and tail latency relative to a static-graph baseline, reduces reserved KV memory across workload families, and removes severe burst-time latency spikes under production-trace replay. These results suggest that KV-cache movement, rather than kernel shape, can be an effective boundary for recovering runtime flexibility in static-graph LLM serving.
Sep 20, 2026

LumoTree: Path-Parallel Speculative Verification for Hybrid Language Models

Tree speculative decoding for recurrent-hybrid language models requires each accepted path to maintain consistent recurrent state, convolution history, and attention caches. We present LumoTree, a GPU serving design that coordinates verification and commitment through a shared tree descriptor. The verifier processes independent paths in parallel and reuses recurrent state tiles across local updates. Boundary states connect dependent paths. Accepted-path replay publishes the selected continuation into native running state, alongside coordinated convolution gathering and attention-cache remapping. Fused selection, device-resident acceptance, graph replay, and tree-aware attention integrate this organization into the serving cycle. The design separates temporary branch computation from persistent request state while retaining native prefix-cache interfaces. We evaluate numerical behavior, serving performance, and coding-agent outcomes on NVIDIA DGX Spark.