Manuscript Offprint
arXiv:2610.02800BitNest: Bit-Nested Speculative Decoding for Memory-Efficient LLM Inference Acceleration
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Speculative decoding accelerates autoregressive generation by using a lightweight draft to propose multiple tokens for parallel verification. However, existing methods often require an additional draft model or weight representation, introducing non-negligible memory overhead on resource-constrained devices. Self-speculative approaches reduce this overhead, yet still face trade-offs between draft quality, target quality, and storage efficiency. We propose BitNest, a bit-nested speculative decoding framework that embeds a low-precision draft directly into the higher-precision target representation. Instead of deriving a draft from a predefined target, BitNest first constructs a strong low-precision base and then recovers the higher-precision target through residual refinement, enabling both models to share a single physical weight representation. BitNest further extends this progressive-precision design to the KV cache for long-context inference. Across multiple 7B–8B edge-friendly LLMs and diverse workloads, BitNest achieves an average speculative acceptance rate of 95.2% while closely preserving higher-precision model quality, and delivers 1.48–1.61× end-to-end speedup over FP16 autoregressive decoding. On the LLaMA models supported by all representative self-speculative baselines, BitNest also achieves consistently competitive or higher decoding speedup.
1 INTRODUCTION
Despite the rapid advances in large language models (LLMs), autoregressive generation remains constrained by high computational cost, substantial model and KV-cache memory footprint, and intensive memory-bandwidth demand. These limitations become particularly pronounced in resource-constrained deployment settings, such as single-GPU systems, consumer-grade GPUs, and edge devices. In addition to model compression techniques such as quantization and pruning, speculative decoding provides an orthogonal approach to accelerating inference: a lightweight draft model proposes multiple candidate tokens, which are then verified in parallel by the target model, thereby reducing the number of expensive token-by-token target executions. To achieve meaningful speedup, however, the draft must be sufficiently inexpensive while remaining well aligned with the target, so that a high acceptance rate can be maintained.
A straightforward way to construct the draft is to use a smaller language model, but a larger capability gap from the target typically leads to lower acceptance. Recent approaches such as EAGLE Li et al. (2025b) and DFlash Chen et al. (2026) improve drafting quality or efficiency through more sophisticated prediction mechanisms, yet still require additional draft networks, parameters, or dedicated representations. This extra draft model storage is particularly costly on memory-constrained devices, where it competes directly with the target model and KV cache for a limited memory budget. For example, under FP16 inference, a 7B model alone can already approach the memory capacity of a 16 GB device, leaving little room for the KV cache and runtime buffers and potentially failing to support the desired context length. Under such tight memory constraints, even a substantially smaller draft introduces non-negligible deployment overhead.
Self-speculative decoding avoids maintaining an independent draft model, but existing designs still expose a trade-off between drafting efficiency, target quality, and storage overhead. Layer-skipping Elhoushi et al. (2024) approaches reduce drafting cost by using a cheaper execution path, but couple drafting efficiency with prediction quality, while quantization-based methods either constrain the target to a shared low-bit representation, as in QSpec Zhao et al. (2025), or retain an additional low-precision draft representation, as in QuantSpec Tiwari et al. (2025). This leads to a natural question: can a single model representation support both a lightweight draft and a higher-quality target without additional memory overhead, while preserving sufficient draft–target agreement for high acceptance? Quantization provides a natural way to explore this possibility, since different precision levels can represent the same model at different memory and computation costs. This motivates a more concrete formulation: can a high-precision representation be constructed to explicitly contain a strong low-precision model as an accessible subset?
Realizing such a nested precision hierarchy, however, is non-trivial. First, the low-precision representation must be sufficiently accurate to serve as a strong speculative draft and maintain high draft–target agreement. Second, the higher-precision target must be recovered by adding information on top of this fixed base; independently quantizing the higher-precision model would generally change the low-bit solution and break the nesting relationship. These requirements motivate a base-first construction that preserves the draft while refining only the missing information.
Building on this construction, we propose BitNest, a new self-speculative decoding paradigm that we call Bit-Nested Speculative Decoding, in which the low-precision draft is physically nested within the higher-precision target representation rather than maintained as a separate model. BitNest first constructs a strong low-precision base and then adds refinement bits without modifying that base. During decoding, the draft accesses only the base, while the target additionally accesses the refinement to recover the higher-precision representation. This allows a single physical model representation to support both a lightweight low-precision draft view and a higher-precision target view without maintaining multiple model copies. We further develop and extend our proposed nesting principle to support bit-nested KV cache for long-context decoding acceleration.

Figure 1: End-to-end decoding speedup across six workloads on LLaMA-2-7B and LLaMA-3-8B. All results are normalized to the corresponding 16-bit autoregressive baseline (1.0×).
In our implementation, we instantiate BitNest with the commonly used W4/W8 precision pair, using a W4 base for drafting and a refined W8 representation for verification. We evaluate this realization on LLaMA-2-7B Touvron et al. (2023), LLaMA-3-8B Grattafiori et al. (2024), Qwen2-7B Yang et al. (2024), and Qwen2.5-7B Yang et al. (2025) across diverse workloads, including language modeling Merity et al. (2016), mathematical reasoning Cobbe et al. (2021), code generation Chen et al. (2021) and Austin et al. (2021), conversational data Chiang et al. (2023), and long-context tasks Rae et al. (2019); Bai et al. (2024); Huang et al. (2021). BitNest closely preserves the quality of the higher-precision target while maintaining strong draft–target agreement, with an average speculative acceptance rate of 95.2%. As shown in Figure 1, BitNest delivers consistently strong end-to-end acceleration across six workloads on both LLaMA-2-7B and LLaMA-3-8B, and achieves 1.48–1.61× speedup over 16-bit autoregressive decoding across the evaluated models. On a Jetson Orin NX 16GB edge configuration, BitNest further achieves approximately 1.5× decoding speedup on LLaMA-2-7B-32K while extending the maximum executable context from 6K with W8A8 autoregressive decoding to 10K.
Our contributions are as follows:
• We introduce Bit-Nested Speculative Decoding, a new self-speculative decoding paradigm in which the draft and target are explicitly co-encoded as nested bit planes within a single physical weight representation.
• We develop a base-first construction that optimizes a strong W4 draft and then quantizes its residual error to form a higher-precision W8 target without changing the draft. This preserves the nesting relationship while avoiding the quality limit of a W4 target.
• We design dual-plane weight storage so that drafting reads only the base plane and verification reads both planes. We extend the same access principle to a nested KV cache for long-context decoding.
• Across four 7B–8B language models and six workloads, BitNest closely preserves higher-precision target quality while achieving 1.48–1.61× decoding speedup over 16-bit autoregressive inference. Edge-device experiments further demonstrate reduced memory use and decode energy.
2.1 SPECULATIVE DECODING
Speculative decoding accelerates autoregressive generation by using a lightweight drafter to propose multiple future tokens for parallel verification by the target model Leviathan et al. (2023); Chen et al. (2023). Subsequent work improves candidate generation through multi-token prediction Cai et al. (2024), feature-space drafting Li et al. (2025b; 2024; 2025c), and parallel diffusion-based drafting. Recent diffusion-based approaches include TiDAR Liu et al. (2025a), Your LLM Knows the Future Samragh et al. (2025), DiffuSpec Li et al. (2025a), SpecDiff-2 Sandler et al. (2025), and DFlash Chen et al. (2026), with DFlash using a lightweight block-diffusion drafter to generate candidate blocks in parallel. Despite increasingly effective drafting mechanisms, these methods still face the trade-off between drafting cost and draft-target agreement, while auxiliary drafters introduce additional parameters or representations that increase deployment and memory overhead.
2.2 SELF-SPECULATIVE DECODING
Self-speculative decoding avoids a separately deployed draft model by deriving a cheaper execution path from the target itself. Layer-skipping and early-exit approaches, including Draft & Verify Zhang et al. (2024), LayerSkip Elhoushi et al. (2024), Kangaroo Liu et al. (2024), and SWIFT Xia et al. (2025), reduce drafting computation but couple efficiency with the quality of the reduced execution path. Quantization-based methods provide another direction: QSpec Zhao et al. (2025) reuses shared low-bit weights across drafting and verification, while QuantSpec Tiwari et al. (2025) combines low-precision draft weights with hierarchical KV-cache quantization for long-context inference. However, existing designs either constrain the target through a shared low-bit representation or retain additional low-precision draft weights. BitNest instead targets representation-level nesting, where the draft is directly embedded within the higher-precision target representation.
2.3 LLM QUANTIZATION AND ROTATION-BASED PTQ
Post-training quantization (PTQ) reduces LLM memory and inference cost by representing weights and activations at lower precision. Existing methods improve low-bit quantization through second-order error compensation, activation-aware scaling, clipping, and equivalent transformations Frantar et al. (2023); Lin et al. (2026); Yuan et al. (2023); Tseng et al. (2024); Xiao et al. (2024). More recently, rotation- and transformation-based approaches such as QuaRot Ashkboos et al. (2024), SpinQuant Liu et al. (2025b), DuQuant Lin et al. (2024), and FlatQuant Sun et al. (2025) apply function-preserving transformations to suppress or redistribute outliers in hidden states and activations, yielding equivalent model representations that are more robust to low-precision quantization. These methods primarily optimize individual quantized configurations rather than explicitly organizing multiple precision views into a nested representation. BitNest builds on this transformed representation to construct nested draft and target views within the same physical weight representation.
3 METHODOLOGY

Figure 2: Overview of BitNest. BitNest first applies a function-preserving rotation-based transformation to obtain an equivalent model representation, then quantizes the transformed weights into a b-bit base and the remaining error into an r-bit refinement. The two are organized using Dual-Plane Weight Storage. During speculative decoding, drafting reads only the base, while verification reads both planes to recover the -bit target. BitNest physically nests the low-precision draft within the higher-precision target without requiring a separate draft model.
3.1 OVERVIEW
Existing speculative decoding methods typically rely on either an auxiliary draft model or a cheaper execution path derived from the target. The former introduces additional model storage and potential draft–target mismatch, while the latter often trades drafting cost against prediction quality. BitNest instead represents the draft and target as nested precision views within the same physical model representation.
As illustrated in Figure 2, BitNest first applies a rotation-based transformation to obtain an equivalent model representation. On the transformed weights, BitNest constructs a -bit base plane for drafting and further encodes the remaining weight-quantization residual into an -bit refinement plane. Together, the base and refinement define a nested -bit target representation:
To enable base-only drafting without fetching refinement bits, we introduce Dual-Plane Weight Storage. It packs the base and refinement into separate, independently accessible bit planes, allowing the draft to read only the base and the target to read both. In this work, we instantiate , yielding a W4 draft view and a W8 target view. We focus on the W4/W8 setting because 4-bit and 8-bit integer formats are widely supported by existing quantized inference systems and hardware kernels.
We further extend the nesting principle independently to the KV cache. We denote the KV base and refinement precisions as and , respectively. In our implementation, , corresponding to KV4 access during drafting and KV8 access during verification.
3.2 BITNEST WEIGHT CONSTRUCTION
The BitNest construction is illustrated under the W4/W8 setting adopted in this work. After the function-preserving rotations R are folded into the pretrained weights, the transformed weights are denoted by . A strong W4 base is first constructed using GPTQ, producing the integer code and group-wise scale , with
The base is then fixed throughout the subsequent refinement. The remaining quantization error is encoded by an additional 4-bit refinement . Using a refinement scale , the target representation is reconstructed as
Thus, the higher-precision target is recovered without modifying the optimized W4 base, making the draft representation an exact subset of the W8 target. The precise refinement quantization rule and signed-integer boundary handling are provided in Appendix A.1.
During speculative decoding, the draft stage accesses only the fixed W4 base, while verification additionally accesses the refinement to reconstruct the W8 target model. The two stages therefore operate on different precision views of the same physical representation rather than on separately stored models.
3.3 DUAL-PLANE WEIGHT STORAGE
Dual-Plane Weight Storage

Figure 3: Dual-plane weight storage in BitNest. Base and refinement codes are packed into two independent 4-bit streams, each occupying N/2 bytes for N weights. The draft accesses only the base plane, while the target accesses both planes to recover the full 8-bit representation.
BitNest provides a W4 draft and a refined W8 target from the same nested representation. However, the logical reduction from W8 to W4 does not automatically translate into lower memory traffic. Modern memory systems are byte-addressable, and an individual 4-bit nibble cannot be independently addressed. If the base and refinement of each weight were stored together in a conventional byte, draft execution would still fetch the refinement bits even though only the W4 base is required. This would largely eliminate the memory-access advantage of the low-precision draft. BitNest therefore stores the base and refinement as two independently packed bit planes, as illustrated in Figure 3.
For N weights, the base and refinement planes each occupy N/2 bytes. As illustrated by the inference path in Figure 2, the draft accesses only the base plane, corresponding to 4 bits/weight of weight-code traffic, while verification accesses both planes to reconstruct the W8 target. This layout allows the draft to avoid fetching refinement bits. The refinement requires no additional scale metadata because is derived from the base scale.
3.4 CONTEXT-AWARE KV NESTING
As the context grows, KV-cache traffic accounts for an increasing fraction of decoding cost, reducing the benefit of weight-side savings alone. As shown in Figure 5, the benefit of lower-precision draft KV access becomes increasingly pronounced at longer contexts. BitNest therefore extends the nesting principle to the KV cache: the draft reads only the low-precision base, while the target

Figure 4: KV nesting during speculative decoding. The draft stage only reads the low-bit base view, while verification reads the full -bit view from the same nested cache. Accepted KV entries are retained while the rejected suffix is discarded.
additionally accesses the refinement to recover the higher-precision KV states. As illustrated in Figure 4, the draft reads only the KV4 base plane, while verification reads both planes to recover the KV8 historical cache. KV states generated for candidate tokens during drafting are kept temporarily; during verification, the target recomputes these states, retaining the accepted entries and discarding the rejected suffix. At short contexts, BitNest uses KV8 for both drafting and verification to preserve draft–target agreement, while at long contexts it switches to KV4 drafting and KV8 verification to reduce KV-cache traffic. Detailed KV quantization is provided in Appendix A.2.
4 EXPERIMENT
4.1 EXPERIMENT SETTING
We evaluate BitNest on LLaMA-2-7B, LLaMA-3-8B, Qwen2-7B, and Qwen2.5-7B across six workloads: WikiText-2, GSM8K, Code (HumanEval, MBPP), ShareGPT, LongDoc, and PG-19. Long-context evaluation additionally uses LLaMA-2-7B-32K. All main experiments are conducted on a single NVIDIA RTX A6000 GPU. Detailed implementation, baseline, and evaluation settings are provided in Appendix A.3.
4.2 SPEEDUP FOR LLM INFERENCE
Table 1: End-to-end decoding speedup across six workloads. Speedup is measured over the corresponding 16-bit autoregressive baseline in the same inference engine. N/A denotes configurations not supported by the official implementations for the evaluated Qwen models.
| Model | Method | Draft → Target | Wiki | GSM8K | Code | ShareGPT | LongDoc | PG19 |
|---|---|---|---|---|---|---|---|---|
| LLaMA-2-7B | QSpec | W4A4 → W4A16 | 1.35× | 1.43× | 1.46× | 1.46× | 1.44× | 1.40× |
| QuantSpec | W4A16 → W16A16 | 1.17× | 1.19× | 1.23× | 1.22× | 1.17× | 1.12× | |
| Draft & Verify | W16A16 → W16A16 | 0.96× | 1.14× | 1.16× | 1.20× | 1.16× | 1.01× | |
| BitNest | W4A8 → W8A8 | 1.50× | 1.59× | 1.59× | 1.61× | 1.60× | 1.57× | |
| LLaMA-3-8B | QSpec | W4A4 → W4A16 | 1.38× | 1.56× | 1.55× | 1.52× | 1.51× | 1.41× |
| QuantSpec | W4A16 → W16A16 | 1.13× | 1.21× | 1.18× | 1.30× | 1.07× | 1.13× | |
| Draft & Verify | W16A16 → W16A16 | 1.01× | 1.14× | 1.15× | 1.21× | 1.10× | 1.10× | |
| BitNest | W4A8 → W8A8 | 1.53× | 1.55× | 1.59× | 1.59× | 1.56× | 1.49× | |
| Qwen2-7B | QSpec | W4A4 → W4A16 | N/A | N/A | N/A | N/A | N/A | N/A |
| QuantSpec | W4A16 → W16A16 | N/A | N/A | N/A | N/A | N/A | N/A | |
| Draft & Verify | W16A16 → W16A16 | N/A | N/A | N/A | N/A | N/A | N/A | |
| BitNest | W4A8 → W8A8 | 1.48× | 1.53× | 1.54× | 1.55× | 1.53× | 1.52× | |
| Qwen2.5-7B | QSpec | W4A4 → W4A16 | N/A | N/A | N/A | N/A | N/A | N/A |
| QuantSpec | W4A16 → W16A16 | N/A | N/A | N/A | N/A | N/A | N/A | |
| Draft & Verify | W16A16 → W16A16 | N/A | N/A | N/A | N/A | N/A | N/A | |
| BitNest | W4A8 → W8A8 | 1.52× | 1.58× | 1.57× | 1.58× | 1.59× | 1.57× |
Table 1 reports end-to-end decoding speedup across six workloads. BitNest achieves speedup over the corresponding 16-bit autoregressive baseline across all four models, with consis-
Table 2: Model performance across six evaluation domains. GSM8K reports accuracy (↑), while all other datasets report perplexity (↓). QSpec uses a W4A16 target and is evaluated with its corresponding inference engine.
| Model | Method | WikiText-2↓ | GSM8K↑ | Code↓ | ShareGPT↓ | LongDoc↓ | PG19↓ |
|---|---|---|---|---|---|---|---|
| LLaMA-2-7B | FP16 | 5.4706 | 13.6 | 2.6069 | 2.2206 | 4.3336 | 9.6594 |
| W8A8 | 5.4762 | 13.4 | 2.6101 | 2.2229 | 4.3374 | 9.6686 | |
| QSpec (W4A16) | 5.650 | 12.5 | 2.642 | 2.389 | 4.640 | 10.052 | |
| BitNest | 5.5123 | 13.8 | 2.6123 | 2.2321 | 4.3540 | 9.7616 | |
| LLaMA-3-8B | FP16 | 6.1389 | 50.1 | 2.7131 | 2.6462 | 5.2592 | 11.8364 |
| W8A8 | 6.1617 | 50.0 | 2.7192 | 2.6551 | 5.2755 | 11.8722 | |
| QSpec (W4A16) | 6.383 | 37.0 | 2.680 | 2.407 | 5.595 | 12.366 | |
| BitNest | 6.2256 | 49.8 | 2.7327 | 2.6639 | 5.3117 | 11.9476 | |
| Qwen2-7B | FP16 | 7.1337 | 79.4 | 2.2112 | 2.3278 | 5.2482 | 13.7653 |
| W8A8 | 7.1519 | 78.9 | 2.2131 | 2.3319 | 5.2582 | 13.8070 | |
| BitNest | 7.1759 | 77.6 | 2.2274 | 2.3397 | 5.2781 | 13.8628 | |
| Qwen2.5-7B | FP16 | 6.8507 | 82.9 | 2.0979 | 2.3959 | 5.5095 | 12.8805 |
| W8A8 | 6.8723 | 83.2 | 2.1011 | 2.4003 | 5.5193 | 12.9236 | |
| BitNest | 6.9062 | 82.0 | 2.1124 | 2.4061 | 5.5384 | 12.9981 |
tent gains across workloads. Compared with existing self-speculative methods, BitNest combines a W4A8 draft with a W8A8 target within the same nested representation, providing strong acceleration without maintaining a separate draft-weight copy.
BitNest also closely preserves the quality of the higher-precision target. As shown in Table 2, its performance remains close to FP16 and standalone W8A8 across all evaluated models and workloads. For example, on LLaMA-3-8B, BitNest achieves GSM8K accuracy, compared with for W8A8. Detailed comparisons with lower-precision W4 targets are provided in Appendix A.5. BitNest also achieves an average generation-time acceptance rate of across the four models and six workloads, indicating strong agreement between its W4A8 draft and W8A8 target. Detailed per-model and per-workload results are provided in Appendix A.5.1.
We additionally evaluate BitNest on OpenVLA-7B Kim et al. (2024), where it achieves decode speedup over FP16 autoregressive decoding while preserving task-level performance; detailed results are provided in Appendix A.4.
4.3 SPEEDUP AT LONG CONTEXT LENGTHS


Figure 5: Long-context efficiency on LLaMA-2-7B-32K. (a) Decoding speedup over the corresponding 16-bit autoregressive baseline in the same inference engine. Reading only the KV4 base during drafting increasingly benefits BitNest as the context grows. (b) Peak GPU memory across context lengths. Weight quantization reduces the persistent model footprint, while the nested KV representation further limits memory growth at long context lengths.
As the context length increases, KV-cache access and attention account for an increasingly large fraction of the decoding cost. As shown in Figure 5(a), when both the draft and target read the full
KV8 representation, BitNest speedup decreases from at 4K to at 32K. In contrast, when the draft reads only the KV4 base plane while the target retains the full KV8 representation, BitNest achieves a speedup at 32K. In comparison, QSpec decreases from to , while QuantSpec remains around . These results show that BitNest context-aware KV nesting becomes increasingly beneficial as the context length grows.
4.4 MEMORY SAVING
Table 3: Peak GPU memory (GiB) under different context lengths. Values in parentheses denote the corresponding 16-bit autoregressive baseline in the same inference engine.
| Method | Model | 1K | 2K | 4K |
|---|---|---|---|---|
| QSpec | LLaMA-2-7B | 4.60 (13.42) | 5.35 (14.09) | 6.10 (14.84) |
| LLaMA-3-8B | 5.90 (15.40) | 6.34 (15.73) | 6.67 (16.40) | |
| QuantSpec | LLaMA-2-7B | 13.21 (13.32) | 13.47 (13.82) | 13.93 (14.57) |
| LLaMA-3-8B | 15.34 (15.33) | 15.64 (15.46) | 16.27 (15.71) | |
| Draft & Verify | LLaMA-2-7B | 14.21 (13.87) | 15.47 (14.94) | 18.33 (18.33) |
| LLaMA-3-8B | 15.96 (15.96) | 16.82 (16.82) | 20.81 (20.81) | |
| BitNest | LLaMA-2-7B | 7.22 (13.32) | 7.57 (13.92) | 8.09 (14.83) |
| LLaMA-3-8B | 8.96 (15.26) | 9.13 (15.50) | 9.48 (16.01) | |
| Qwen2-7B | 8.61 (14.42) | 8.76 (14.62) | 9.07 (15.02) | |
| Qwen2.5-7B | 8.61 (14.42) | 8.76 (14.62) | 9.07 (15.02) |
BitNest reduces memory overhead by eliminating a separately stored draft representation. On LLaMA-2-7B, the nested weights occupy 6.22 GiB, identical to a standalone W8 model, whereas storing an independent W4 draft together with the INT8 target requires 9.38 GiB. As shown in Table 3, BitNest also reduces end-to-end peak memory across all evaluated models. Qwen2-7B and Qwen2.5-7B share identical architectures, hence identical memory. QSpec has a smaller footprint at short contexts because it uses a shared W4 weight representation, but this also limits its target to W4 precision.
As the context grows, the KV cache accounts for an increasing fraction of the memory footprint, and the benefit of BitNest becomes more pronounced. As shown in Figure 5(b), BitNest achieves the lowest peak memory among the compared methods at 32K context, using 21.0 GiB compared with 24.0 GiB for QSpec and 25.1 GiB for QuantSpec.
4.5 EDGE-DEVICE EVALUATION
Table 4: Edge-device decoding performance on NVIDIA Jetson Orin NX. Energy is averaged over the decode phase.
| Model (Device) | Method | Throughput (tok/s) | Speedup | Energy (J/token) |
|---|---|---|---|---|
| LLaMA-2-7B-32K (NX16) | FP16 AR | 6.0 | 1.00× | 1.52 |
| W8A8 AR | 7.8 | ~1.30× | 1.15 | |
| BitNest | 9.0–9.3 | ~1.50× | 0.95 | |
| Llama-3.2-3B (NX8) | FP16 AR | 10.6 | 1.00× | 0.768 |
| W8A8 AR | 14.0 | 1.32× | 0.54 | |
| BitNest | 15.5–16.6 | 1.46–1.57× | 0.46 |
We further evaluate BitNest on NVIDIA Jetson Orin NX devices with 16GB and 8GB memory. As shown in Table 4, on the 16GB device, BitNest achieves approximately speedup on LLaMA-2-7B-32K and reduces decode energy from 1.52 to 0.95 J/token relative to FP16. On the 8GB device, BitNest achieves up to speedup on Llama-3.2-3B while reducing decode energy from 0.768 to 0.46 J/token. BitNest also extends the maximum executable context of LLaMA-2-7B-32K from 2K with FP16 to 10K. Additional edge-device results are provided in the Appendix A.6.
5 ABLATION STUDY
5.1 EFFECT OF SPECULATION LENGTH
The speculation length trades off verification efficiency against draft acceptance. On LLaMA-2-7B-32K, throughput peaks at for both 4K and 31K contexts, reaching 59.3 and 34.3 tok/s, respectively, while larger further reduces acceptance without improving throughput. Detailed results are provided in Appendix A.5.2.
Table 5: Why higher-precision representations are retained for the target. Low-precision representations provide effective drafts, while KV8 and W8 preserve the fidelity required for final generation.
(a) Why retain KV8 for the target?
| Configuration | GSM8K↑ | LongBench↑ |
|---|---|---|
| KV8 target AR | 82.4 | 41.4 |
| KV8 draft → KV8 | 82.2 | 41.2 |
| KV4 draft → KV8 | 81.6 | 41.3 |
| KV4 target AR | 80.2 | 41.5 |
| KV4 draft → KV4 | 78.4 | 41.4 |
Results are measured on Qwen2.5-7B.
(b) Why retain W8 for the target?
| Configuration | WikiText-2↓ | GSM8K↑ |
|---|---|---|
| W8A8 | 6.162 | 50.0 |
| W4A16 | 6.470 | 41.8 |
| W4A8 | 6.476 | 41.4 |
| BitNest target | 6.223 | 49.8 |
Results are measured on LLaMA-3-8B.
5.2 WHY RETAIN KV8 FOR THE TARGET?
The fact that KV4 is effective for drafting does not imply that it is sufficient for the final target. Table 5(a) shows that reducing the target KV cache from KV8 to KV4 decreases Qwen2.5 GSM8K accuracy from to . Yet speculative acceptance remains high at 0.933, showing that high draft-target agreement alone does not guarantee target fidelity. We therefore use KV4 on the speculative path while retaining KV8 for verification. Additional results on model- and task-dependent sensitivity to target KV precision are provided in Appendix A.5.4.
5.3 WHY RETAIN W8 FOR THE TARGET?
The same distinction appears in the weight representation. Although the W4 base provides sufficiently accurate proposals for speculative decoding, using it as the final model incurs a substantial quality loss. As shown in Table 5(b), on LLaMA-3-8B, W4A8 achieves GSM8K accuracy compared with for W8A8. Increasing activation precision to W4A16 improves accuracy only slightly to , indicating that the dominant degradation comes from the 4-bit weight representation rather than activation quantization. Reading the refinement plane recovers the BitNest target to . These results support the central nested design: the low-precision base is sufficient for inexpensive drafting, while the refined representation is retained wherever final-output fidelity matters. Additional ablations on draft KV precision across different attention architectures and more detailed target-precision results are provided in Appendix A.5.3 and Appendix A.5.4.
6 LIMITATION
BitNest focuses on self-speculative decoding, where the draft is derived directly from the target representation to minimize additional model storage. This design does not currently exploit auxiliary drafting architectures that can provide greater candidate-generation parallelism. For example, diffusion-based approaches such as DFlash generate candidate blocks in parallel and may achieve stronger acceleration when the additional draft-model overhead is acceptable. Extending BitNest to support such auxiliary drafters, while retaining the memory benefits of nested representations, is an important direction for future work.
AI USE STATEMENT
In this work, we used generative AI tools for implementing experimental methods, executing experiments, and organizing experimental outputs based on the methodology, experimental plan, and datasets specified by the authors. We have not used generative AI tools for developing the theoretical or conceptual framework, proposing research hypotheses or mathematical claims, designing the research methodology or experiments, conducting qualitative data analysis, or interpreting experimental results, and the rest of the required disclosure tasks are not applicable to this work. Additionally, we used generative AI tools for writing and editing experimental code, language editing, improving clarity and conciseness, and refining the organization and presentation of the manuscript. We have reviewed all AI-assisted work. The authors reviewed and tested the AI-assisted implementation and verified the resulting experimental data for correctness and consistency. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
REFERENCES
Saleh Ashkboos, Amirkeivan Mohtashami, Maximilian L. Croci, Bo Li, Pashmina Cameron, Martin Jaggi, Dan Alistarh, Torsten Hoefler, and James Hensman. Quarot: Outlier-free 4-bit inference in rotated llms, 2024. URL https://arxiv.org/abs/2404.00456.
Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, and Charles Sutton. Program synthesis with large language models, 2021. URL https://arxiv.org/abs/2108.07732.
Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu, Jiankai Tang, Zhidian Huang, Zhengxiao Du, Xiao Liu, Aohan Zeng, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. Longbench: A bilingual, multitask benchmark for long context understanding, 2024. URL https://arxiv.org/abs/2308.14508.
Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D. Lee, Deming Chen, and Tri Dao. Medusa: Simple llm inference acceleration framework with multiple decoding heads, 2024. URL https://arxiv.org/abs/2401.10774.
Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. Accelerating large language model decoding with speculative sampling, 2023. URL https://arxiv.org/abs/2302.01318.
Jian Chen, Yesheng Liang, and Zhijian Liu. Dflash: Block diffusion for flash speculative decoding, 2026. URL https://arxiv.org/abs/2602.06036.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code, 2021. URL https://arxiv.org/abs/2107.03374.
Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. Vicuna: An open-source chatbot impressing gpt-4 with 90%* chatgpt quality, March 2023. URL https://lmsys.org/blog/2023-03-30-vicuna/.
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems, 2021. URL https://arxiv.org/abs/2110.14168.
Mostafa Elhoushi, Akshat Shrivastava, Diana Liskovich, Basil Hosmer, Bram Wasti, Liangzhen Lai, Anas Mahmoud, Bilge Acun, Saurabh Agarwal, Ahmed Roman, Ahmed Aly, Beidi Chen, and Carole-Jean Wu. Layerskip: Enabling early exit inference and self-speculative decoding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 12622–12642. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.acl-long.681. URL http://dx.doi.org/10.18653/v1/2024.acl-long.681.
Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. Gptq: Accurate post-training quantization for generative pre-trained transformers, 2023. URL https://arxiv.org/abs/2210.17323.
Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, et al. The llama 3 herd of models, 2024. URL https://arxiv.org/abs/2407.21783.
Luyang Huang, Shuyang Cao, Nikolaus Parulian, Heng Ji, and Lu Wang. Efficient attentions for long document summarization, 2021. URL https://arxiv.org/abs/2104.02112.
Moo Jin Kim, Karl Pertsch, Siddharth Karamcheti, Ted Xiao, Ashwin Balakrishna, Suraj Nair, Rafael Rafailov, Ethan Foster, Grace Lam, Pannag Sanketi, Quan Vuong, Thomas Kollar, Benjamin Burchfiel, Russ Tedrake, Dorsa Sadigh, Sergey Levine, Percy Liang, and Chelsea Finn. Openvla: An open-source vision-language-action model, 2024. URL https://arxiv.org/abs/2406.09246.
Moo Jin Kim, Chelsea Finn, and Percy Liang. Fine-tuning vision-language-action models: Optimizing speed and success, 2025. URL https://arxiv.org/abs/2502.19645.
Yaniv Leviathan, Matan Kalman, and Yossi Matias. Fast inference from transformers via speculative decoding, 2023. URL https://arxiv.org/abs/2211.17192.
Guanghao Li, Zhihui Fu, Min Fang, Qibin Zhao, Ming Tang, Chun Yuan, and Jun Wang. Diffuspec: Unlocking diffusion language models for speculative decoding, 2025a. URL https://arxiv.org/abs/2510.02358.
Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. Eagle-2: Faster inference of language models with dynamic draft trees, 2024. URL https://arxiv.org/abs/2406.16858.
Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. Eagle: Speculative sampling requires rethinking feature uncertainty, 2025b. URL https://arxiv.org/abs/2401.15077.
Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. Eagle-3: Scaling up inference acceleration of large language models via training-time test, 2025c. URL https://arxiv.org/abs/2503.01840.
Haokun Lin, Haobo Xu, Yichen Wu, Jingzhi Cui, Yingtao Zhang, Linzhan Mou, Linqi Song, Zhenan Sun, and Ying Wei. Duquant: Distributing outliers via dual transformation makes stronger quantized llms, 2024. URL https://arxiv.org/abs/2406.01721.
Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. Awq: Activation-aware weight quantization for llm compression and acceleration, 2026. URL https://arxiv.org/abs/2306.00978.
Bo Liu, Yifeng Zhu, Chongkai Gao, Yihao Feng, Qiang Liu, Yuke Zhu, and Peter Stone. Libero: Benchmarking knowledge transfer for lifelong robot learning, 2023. URL https://arxiv.org/abs/2306.03310.
Fangcheng Liu, Yehui Tang, Zhenhua Liu, Yunsheng Ni, Kai Han, and Yunhe Wang. Kangaroo: Lossless self-speculative decoding via double early exiting, 2024. URL https://arxiv.org/abs/2404.18911.
Jingyu Liu, Xin Dong, Zhifan Ye, Rishabh Mehta, Yonggan Fu, Vartika Singh, Jan Kautz, Ce Zhang, and Pavlo Molchanov. Tidar: Think in diffusion, talk in autoregression, 2025a. URL https://arxiv.org/abs/2511.08923.
Zechun Liu, Changsheng Zhao, Igor Fedorov, Bilge Soran, Dhruv Choudhary, Raghuraman Krishnamoorthi, Vikas Chandra, Yuandong Tian, and Tijmen Blankevoort. Spinquant: Llm quantization with learned rotations, 2025b. URL https://arxiv.org/abs/2405.16406.
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. 2016.
Physical Intelligence, Kevin Black, Noah Brown, James Darpinian, Karan Dhabalia, Danny Driess, Adnan Esmail, Michael Equi, Chelsea Finn, Niccolo Fusai, Manuel Y. Galliker, Dibya Ghosh, Lachy Groom, Karol Hausman, Brian Ichter, Szymon Jakubczak, Tim Jones, Liyiming Ke, Devin LeBlanc, Sergey Levine, Adrian Li-Bell, Mohith Mothukuri, Suraj Nair, Karl Pertsch, Allen Z. Ren, Lucy Xiaoyang Shi, Laura Smith, Jost Tobias Springenberg, Kyle Stachowicz, James Tanner, Quan Vuong, Homer Walke, Anna Walling, Haohuan Wang, Lili Yu, and Ury Zhilinsky. : a vision-language-action model with open-world generalization, 2025. URL https://arxiv.org/abs/2504.16054.
Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, Chloe Hillier, and Timothy P Lillicrap. Compressive transformers for long-range sequence modelling. 2019. URL https://arxiv.org/abs/1911.05507.
Mohammad Samragh, Arnav Kundu, David Harrison, Kumari Nishu, Devang Naik, Minsik Cho, and Mehrdad Farajtabar. Your llm knows the future: Uncovering its multi-token prediction potential, 2025. URL https://arxiv.org/abs/2507.11851.
Jameson Sandler, Jacob K. Christopher, Thomas Hartvigsen, and Ferdinando Fioretto. Specdiff-2: Scaling diffusion drafter alignment for faster speculative decoding, 2025. URL https://arxiv.org/abs/2511.00606.
Yuxuan Sun, Ruikang Liu, Haoli Bai, Han Bao, Kang Zhao, Yuening Li, Jiaxin Hu, Xianzhi Yu, Lu Hou, Chun Yuan, Xin Jiang, Wulong Liu, and Jun Yao. Flatquant: Flatness matters for llm quantization, 2025. URL https://arxiv.org/abs/2410.09426.
Rishabh Tiwari, Haocheng Xi, Aditya Tomar, Coleman Hooper, Sehoon Kim, Maxwell Horton, Mahyar Najibi, Michael W. Mahoney, Kurt Keutzer, and Amir Gholami. Quantspec: Self-speculative decoding with hierarchical quantized kv cache, 2025. URL https://arxiv.org/abs/2502.10424.
Hugo Touvron, Louis Martin, Kevin Stone, et al. Llama 2: Open foundation and fine-tuned chat models, 2023. URL https://arxiv.org/abs/2307.09288.
Albert Tseng, Jerry Chee, Qingyao Sun, Volodymyr Kuleshov, and Christopher De Sa. Quip#: Even better llm quantization with hadamard incoherence and lattice codebooks, 2024. URL https://arxiv.org/abs/2402.04396.
Heming Xia, Yongqi Li, Jun Zhang, Cunxiao Du, and Wenjie Li. Swift: On-the-fly self-speculative decoding for llm inference acceleration, 2025. URL https://arxiv.org/abs/2410.06916.
Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu, Julien Demouth, and Song Han. Smoothquant: Accurate and efficient post-training quantization for large language models, 2024. URL https://arxiv.org/abs/2211.10438.
An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, et al. Qwen2 technical report, 2024. URL https://arxiv.org/abs/2407.10671.
An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, et al. Qwen2.5 technical report, 2025. URL https://arxiv.org/abs/2412.15115.
Zhihang Yuan, Lin Niu, Jiawei Liu, Wenyu Liu, Xinggang Wang, Yuzhang Shang, Guangyu Sun, Qiang Wu, Jiaxiang Wu, and Bingzhe Wu. Rptq: Reorder-based post-training quantization for large language models, 2023. URL https://arxiv.org/abs/2304.01089.
Jun Zhang, Jue Wang, Huan Li, Lidan Shou, Ke Chen, Gang Chen, and Sharad Mehrotra. Draft & verify: Lossless large language model acceleration via self-speculative decoding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 11263–11282. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.acl-long.607. URL http://dx.doi.org/10.18653/v1/2024.acl-long.607.
Juntao Zhao, Wenhao Lu, Sheng Wang, Lingpeng Kong, and Chuan Wu. Qspec: Speculative decoding with complementary quantization schemes, 2025. URL https://arxiv.org/abs/2410.11305.
A APPENDIX
A.1 DETAILED BIT-NESTED WEIGHT CONSTRUCTION
This section provides the detailed construction of the W4/W8 instantiation used in BitNest. The function-preserving transformations are folded into the pretrained weights W, yielding the transformed weights
W4 base construction. The low-precision base is constructed using GPTQ with group size 128:
where denotes the group-wise quantization scale parameter. The corresponding draft weights are reconstructed as
After quantization, both and are fixed so that the subsequent refinement does not alter the W4 draft representation.
Fixed-base refinement. Given the fixed W4 base, the remaining quantization error is
The refinement scale is defined as
and the corresponding 4-bit refinement code is
The asymmetric constraint for prevents the composed integer code from crossing the lower bound of the signed 8-bit range.
Combining the fixed base and refinement gives
Thus, the 8-bit target is recovered without modifying the optimized W4 base, preserving the W4 draft as an exact subset of the resulting W8 representation.
A.2 DETAILED KV-CACHE NESTING
All KV-cache constructions follow the KV4/KV8 setting used in our experiments. BitNest performs online per-token, per-KV-head symmetric round-to-nearest (RTN) quantization when a KV entry is written to the cache. For a key or value vector , where is the head dimension, the scale parameter is
The corresponding KV4 representation used for drafting is
The remaining quantization error is encoded by an additional 4-bit refinement with scale s/16:
(13) giving the KV8 target representation
Thus, each KV entry is stored once as nested base and refinement planes and can be accessed either as KV4 or KV8.
During drafting, BitNest reads only the KV4 base for the historical context, while verification reads both planes to recover the KV8 cache. KV states generated for proposed tokens are temporary during drafting and are recomputed during verification; accepted entries are retained and the rejected suffix is discarded.
At short contexts, BitNest uses KV8 for both drafting and verification, while at long contexts it uses KV4 drafting and KV8 verification to reduce KV-cache traffic. BitNest also supports a Recent-N policy as an intermediate operating point. Under this policy, the most recent N KV entries are kept at the higher-precision view for drafting, while older entries are accessed through the low-precision base. This provides a tunable trade-off between draft fidelity and KV-cache traffic without changing the underlying nested storage.
A.3 EXPERIMENTAL SETUP
Models and BitNest configuration. Experiments are conducted on LLaMA-2-7B, LLaMA-3-8B, Qwen2-7B, and Qwen2.5-7B, covering both MHA and GQA architectures. Long-context experiments additionally use LLaMA-2-7B-32K, following the model setting used by QuantSpec. BitNest applies SpinQuant rotations Liu et al. (2025b), followed by GPTQ W4 quantization Frantar et al. (2023) with a group size of 128 to construct the base plane and a closed-form signed 4-bit residual refinement for the target. Activations use per-token INT8 quantization, while the KV cache follows the base-plus-refinement representation described in Section 3.4.
Hardware and implementation. All main LLM experiments are conducted on a single NVIDIA RTX A6000 GPU with batch size 1. BitNest is implemented with custom Triton kernels for dual-plane GEMM and flash decoding.
Baselines. BitNest is compared against QSpec Zhao et al. (2025), QuantSpec Tiwari et al. (2025), and Draft & Verify Zhang et al. (2024) using their official implementations and recommended configurations. The draft and target precisions therefore differ across methods, reflecting their respective designs rather than a manually unified precision setting: QSpec uses W4A4→W4A16, QuantSpec uses W4A16→W16A16, Draft & Verify uses W16A16→W16A16, and BitNest uses W4A8→W8A8. We preserve these native configurations to avoid altering the intended operating point of each method. All reported speedups are measured relative to the corresponding 16-bit autoregressive baseline in the same inference engine.
Workloads and evaluation protocol. Evaluation covers six workloads: WikiText-2, GSM8K, Code, ShareGPT, LongBench GovReport, and PG-19. All standard-context evaluations use a context length of 2,048 tokens. For the Code workload, we concatenate the HumanEval test set (prompt and canonical solution; 164 problems) with the first 300 problems from the MBPP test set (problem description and reference solution). The resulting text is tokenized and split into 2,048-token segments, and perplexity is reported over the first 20 segments. Long-context experiments use PG-19 prefixes ranging from 4K to 32K tokens. Unless otherwise specified, decoding is greedy and generates 256 new tokens; QuantSpec follows its official 64-token setting. We report target quality, decoding throughput, speedup, peak GPU memory, and speculative acceptance rate.
A.4 EXPERIMENT ON VISION-LANGUAGE-ACTION MODEL
We further evaluate BitNest on OpenVLA-7B to examine its potential applicability beyond text generation. OpenVLA represents each action chunk using seven autoregressively generated action tokens, making it compatible with speculative decoding. In contrast, many recent VLA models Kim et al. (2025) and Physical Intelligence et al. (2025) employ flow-matching or related action heads that generate an action chunk in parallel rather than through autoregressive token generation.
Therefore, this experiment is intended as an exploratory evaluation of BitNest in the VLA domain, rather than a comparison with recent VLA architectures. We use the LIBERO-fine-tuned checkpoint and evaluate task success on LIBERO Liu et al. (2023) Spatial.
Table 6: OpenVLA-7B performance on LIBERO Spatial. Success rate is measured using the same evaluation protocol for all precision configurations.
| Method | Precision | Success Rate (%) |
|---|---|---|
| FP16 | FP16 | 86 |
| W8A8 | W8A8 | 87 |
| W4A8 | W4A8 | 80 |
| BitNest | W4A8 → W8A8 | 89 |
Task performance. As shown in Table 6, directly reducing OpenVLA to W4A8 decreases the success rate from with FP16 to . BitNest uses the same W4A8 representation for drafting while retaining a W8A8 target, achieving an success rate. As shown in Table 7, BitNest also increases decode throughput from 44.2 tok/s with FP16 AR to 59.5 tok/s, corresponding to a decode-phase speedup. Overall, these results show that BitNest can accelerate autoregressive action decoding without the task-level degradation observed with standalone W4A8.
Table 7: Per-action latency breakdown on OpenVLA-7B. Numbers are median latencies over 100 frames on an NVIDIA A6000. Prefill includes the 288-token multimodal prefix and the first action token; decode generates the remaining six action tokens. Visual encoding and projection add 9.9 ms equally to all methods and are excluded.
| Method | Prefill (ms) | Decode (ms) | Action Total (ms) | Decode tok/s |
|---|---|---|---|---|
| FP16 AR | 65.9 | 135.6 | 201.5 | 44.2 |
| BitNest W8A8 AR | 111.7 | 105.3 | 216.9 | 57.0 (1.29×) |
| BitNest Spec. (γ = 7) | 111.7 | 100.8 | 212.7 | 59.5 (1.35×) |
Latency breakdown. As shown in Table 7, BitNest reduces decode latency from 135.6 ms with FP16 AR to 100.8 ms, corresponding to a decode-throughput speedup. Our INT8 Triton kernels are optimized for small- decoding and verification, where denotes the number of tokens processed by each linear layer and execution is primarily bandwidth-bound. In this regime, directly reading the packed 4/8-bit weight planes reduces memory traffic. OpenVLA prefill has and operates in a more compute-bound regime. Our current large- path therefore dequantizes the packed weights to FP16 and uses cuBLAS FP16 GEMM, while retaining activation quantization and the other transformations used by the decoding path. These extra operations make prefill about slower than FP16 in the current implementation. Consequently, despite the decode-phase speedup, our current implementation has a slightly higher per-action latency than FP16 AR (212.7 vs. 201.5 ms), as the prefill overhead outweighs the decode-time savings. Reducing this large- prefill overhead, for example with a dedicated INT8 kernel, is left to future work.
A.5 ADDITIONAL ABLATION STUDIES
This section provides the detailed ablation results summarized in Section 5.
A.5.1 DRAFT-TARGET AGREEMENT
Table 8 reports generation-time draft accept rate across the evaluated workloads. BitNest maintains high draft-target agreement despite using a W4A8 base for drafting and a W8A8 refined representation for verification. Across all four models and six workloads, BitNest achieves an average acceptance rate of , with model-wise averages ranging from to .
QSpec and QuantSpec maintain high agreement when the draft remains close to the target representation. In contrast, BitNest retains approximately acceptance while using the W4A8 base as the
Table 8: Generation-time draft acceptance rate (%) across workloads on an NVIDIA RTX A6000 with 2K prefixes, batch size 1, and 256 generated tokens. Results use each method's native speculation setting. Acceptance follows the native definition used by each method.
| Model | Method | γ | WikiText-2 | GSM8K | Code | ShareGPT | LongDoc | PG19 | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| LLaMA-2-7B | QSpec | 3 | 95.4 | 97.4 | 97.9 | 98.1 | 97.0 | 94.5 | 96.7 |
| QuantSpec | 6 | 87.9 | 89.6 | 93.5 | 95.1 | 90.2 | 81.5 | 89.6 | |
| Draft & Verify | Adaptive | 62.6 | 82.7 | 82.8 | 84.3 | 83.0 | 72.2 | 77.9 | |
| BitNest | 4 | 92.5 | 95.9 | 96.9 | 97.8 | 96.7 | 94.2 | 95.7 | |
| LLaMA-3-8B | QSpec | 3 | 92.0 | 97.0 | 97.1 | 97.5 | 94.5 | 90.8 | 94.8 |
| QuantSpec | 6 | 77.5 | 88.9 | 87.2 | 94.6 | 80.9 | 77.7 | 84.5 | |
| Draft & Verify | Adaptive | 69.4 | 81.9 | 81.3 | 83.9 | 78.2 | 75.4 | 78.4 | |
| BitNest | 3 | 92.9 | 96.1 | 97.9 | 97.8 | 95.3 | 92.0 | 95.3 | |
| Qwen2-7B | BitNest | 3 | 93.6 | 93.3 | 96.7 | 96.2 | 95.9 | 94.1 | 95.0 |
| Qwen2.5-7B | BitNest | 3 | 92.1 | 95.4 | 95.0 | 96.8 | 95.4 | 93.9 | 94.8 |
BitNest overall average 95.2
draft and the nested W8A8 representation as the target. This indicates that the base-first construction preserves strong alignment between the two precision views, which is important for obtaining speculative speedup from a substantially cheaper draft.
A.5.2 EFFECT OF SPECULATION LENGTH
Table 9: Effect of speculation length on LLaMA-2-7B-32K with KV4 drafting. Each entry reports decode throughput in tok/s, with the draft-slot acceptance rate in parentheses.
| Context | |||||
|---|---|---|---|---|---|
| 4K | 57.2 (.913) | 56.8 (.897) | 59.3 (.856) | 56.1 (.820) | 55.6 (.793) |
| 31K | 33.0 (.901) | 33.6 (.881) | 34.3 (.875) | 34.0 (.834) | 33.0 (.797) |
As shown in Table 9, increasing reduces the draft-slot acceptance rate, while throughput first improves and then decreases. In both the 4K and 31K settings, provides the highest throughput, and we therefore use it as the default for the corresponding LLaMA experiments.
A.5.3 EFFECT OF DRAFT KV PRECISION
To further explain the long-context behavior in Figure 5(a), we compare the effect of draft KV precision on models with different attention architectures. Table 10 reports decode throughput at 32K context while varying only the KV precision accessed during drafting.
Table 10: Effect of draft KV precision at 32K context across different attention architectures. All entries report decode throughput in tok/s.
| Model | Attention | BF16 KV | KV8 | KV4 |
|---|---|---|---|---|
| LLaMA-2-7B-32K | MHA | 23.4 | 28.5 | 34.3 |
| Qwen2.5-7B | GQA | 50.7 | 51.1 | 51.4 |
As shown in Table 10, draft KV precision has a substantially larger effect on LLaMA-2-7B-32K than on Qwen2.5-7B. LLaMA-2 uses MHA with 32 KV heads, so KV-cache traffic becomes a major fraction of the decoding cost at long contexts. Reducing draft access from BF16 KV to KV8 and further to KV4 increases throughput from 23.4 to 28.5 and 34.3 tok/s, respectively. Notably, KV4 drafting achieves the highest throughput despite a lower acceptance rate than KV8 drafting (0.875 vs. 0.944), showing that reducing draft cost can outweigh a moderate decrease in acceptance.
In contrast, Qwen2.5 uses GQA, which reduces KV-cache traffic by sharing key and value heads across multiple query heads. At 32K context, BF16, KV8, and KV4 drafting achieve 50.7, 51.1, and
51.4 tok/s, respectively. The small difference indicates that reducing draft KV precision provides little additional throughput benefit when KV-cache traffic is already substantially reduced by GQA. These results show that the latency benefit of low-precision draft KV depends strongly on the underlying attention architecture and becomes most pronounced when KV-cache traffic is a dominant decoding cost.
A.5.4 ADDITIONAL TARGET-PRECISION ANALYSIS
This section provides the detailed target-precision ablations summarized in Table 5 of the main text, covering both KV-cache and weight precision.
Table 11: Detailed ablation on draft and target KV precision. The target weights are fixed to W8A8 and speculative decoding uses . GSM8K reports 8-shot accuracy on 500 examples. For LongBench, Qasper, HotpotQA, and MultiFieldQA report F1; SAMSum and GovReport report ROUGE-L; TREC reports accuracy.
| Model | Configuration | GSM8K↑ | Qasper↑ | HotpotQA↑ | MultiFieldQA↑ | SAMSum↑ | GovReport↑ | TREC↑ | Avg. | Accept↑ |
|---|---|---|---|---|---|---|---|---|---|---|
| LLaMA-2-7B-32K | FP16 AR | - | 34.6 | 47.9 | 39.8 | 36.8 | - | 71.0 | 46.0 | - |
| W8A8+KV8 AR | - | 34.1 | 47.9 | 40.3 | 36.8 | 20.8 | 69.5 | 45.7 | - | |
| KV8 draft → KV8 target | - | 33.9 | 47.9 | 40.3 | 37.1 | 20.7 | 69.5 | 45.7 | 0.970 | |
| KV4 draft → KV8 target | - | 33.7 | 47.9 | 40.3 | 36.9 | 20.7 | 69.5 | 45.7 | 0.946 | |
| W8A8+KV4 AR | - | 33.5 | 47.2 | 39.9 | 36.7 | 20.6 | 69.5 | 45.4 | - | |
| KV4 draft → KV4 target | - | 32.9 | 46.7 | 40.0 | 37.1 | 20.7 | 69.5 | 45.3 | 0.965 | |
| Qwen2.5-7B | W8A8+KV8 AR | 82.4 | 45.1 | 32.4 | 35.6 | 41.0 | 21.6 | 72.5 | 41.4 | - |
| KV8 draft → KV8 target | 82.2 | 44.8 | 32.4 | 35.5 | 40.6 | 21.6 | 72.5 | 41.2 | 0.953 | |
| KV4 draft → KV8 target | 81.6 | 44.8 | 32.9 | 35.7 | 40.6 | 21.6 | 72.5 | 41.3 | 0.937 | |
| W8A8+KV4 AR | 80.2 | 45.0 | 31.9 | 37.3 | 40.5 | 22.0 | 72.5 | 41.5 | - | |
| KV4 draft → KV4 target | 78.4 | 44.8 | 31.9 | 37.1 | 40.4 | 21.7 | 72.5 | 41.4 | 0.933 |
For LLaMA-2-7B-32K, Avg. is computed over the five tasks shared with the FP16 reference and excludes GovReport. For Qwen2.5-7B, Avg. is computed over all six LongBench tasks.
Target KV precision. Table 11 provides the full target-KV ablation. On Qwen2.5-7B, reducing the target KV cache from KV8 to KV4 decreases GSM8K accuracy from to under autoregressive decoding, while using KV4 only for drafting retains . When both drafting and verification use KV4, accuracy further decreases to . In contrast, the average LongBench score remains relatively stable across these configurations, indicating that sensitivity to target KV precision is task-dependent.
A similar trend is observed on LLaMA-2-7B-32K. Using KV4 only during drafting preserves the average LongBench score of the KV8 target (45.7), whereas using KV4 for both drafting and verification reduces it to 45.3. These results support using lower-precision KV access on the speculative path while retaining KV8 for final verification.
Table 12: Detailed ablation on target weight precision. For language models, each entry reports WikiText-2 perplexity ( ) / GSM8K 5-shot strict accuracy ( ). W4A16 isolates the effect of 4-bit weights from activation quantization.
| Model | FP16 | W8A8 | W4A16 | W4A8 | BitNest target | W4A4 |
|---|---|---|---|---|---|---|
| LLaMA-2-7B | 5.471 / 13.6% | 5.476 / 13.4% | 5.599 / 11.9% | 5.591 / 12.2% | 5.512 / 13.8% | 6.717 / 5.8% |
| LLaMA-3-8B | 6.139/ 50.1% | 6.162 / 50.0% | 6.470 / 41.8% | 6.476 / 41.4% | 6.223 / 49.8% | 8.660 / 26.6% |
| Qwen2-7B | 7.134 / 79.4% | 7.152 / 78.9% | 7.238 / 75.5% | 7.244 / 75.5% | 7.176 / 77.6% | 8.079 / 63.3% |
| Qwen2.5-7B | 6.851 / 82.9% | 6.872 / 83.2% | 6.998 / 80.1% | 7.017 / 79.3% | 6.906 / 82.0% | 8.085 / 66.7% |
Target weight precision. Table 12 provides a detailed comparison across target weight precisions. Directly using the W4 base as the final model can noticeably degrade generation quality, even when activation precision is increased. For example, on LLaMA-3-8B, W4A8 and W4A16 achieve and GSM8K accuracy, respectively, compared with for W8A8. In contrast, the BitNest target recovers to while preserving the same W4 base used for drafting.
The same trend is observed across the other evaluated models. On Qwen2.5-7B, W4A8 achieves GSM8K accuracy, whereas the BitNest target reaches , close to the W8A8 baseline. These results show that the low-precision base is suitable for speculative drafting, while the refinement is important for recovering the fidelity required for final prediction.
A.6 ADDITIONAL EDGE-DEVICE RESULTS
This section provides additional edge-device results complementing Section 4.5. We evaluate BitNest on NVIDIA Jetson Orin NX devices with 16GB and 8GB memory. Experiments use batch size 1 and greedy decoding, and throughput is measured over the decode phase.
A.6.1 ADDITIONAL MODEL RESULTS
Table 13 reports decoding throughput across the evaluated 7B and 3B models. On Orin NX16, BitNest reaches 9.0–9.3 tok/s on LLaMA-2-7B-32K, compared with 7.8 tok/s for W8A8 AR and 6.0 tok/s for FP16 AR. On Qwen2.5-7B, FP16 inference exceeds the available device memory, while BitNest reaches 8.37–8.50 tok/s compared with 7.37 tok/s for W8A8 AR.
The same trend holds on the 8GB device. BitNest reaches 15.5–16.6 tok/s on Llama-3.2-3B and 15.2 tok/s on Qwen2.5-3B, compared with 14.0 and 14.1 tok/s for W8A8 AR, respectively.
Table 13: Edge-device decoding performance across the evaluated models. Throughput is measured over the decode phase. OOM denotes configurations that exceed the available device memory.
| Model | Device | FP16 AR | W8A8 AR | BitNest |
|---|---|---|---|---|
| LLaMA-2-7B-32K | NX16 | 6.0 | 7.8 | 9.0–9.3 |
| Qwen2.5-7B | NX16 | OOM | 7.37 | 8.37–8.50 |
| Llama-3.2-3B | NX8 | 10.6 | 14.0 | 15.5–16.6 |
| Qwen2.5-3B | NX8 | 11.0 | 14.1 | 15.2 |
All throughput values are in tok/s.
A.6.2 MEMORY FOOTPRINT
Table 14 reports peak memory at 2K context together with the maximum executable context length on Orin NX16. On LLaMA-2-7B-32K, BitNest reduces PyTorch peak allocation from 13.9 GiB with FP16 AR to 7.7 GiB, while maintaining a memory footprint comparable to W8A8 AR. The reduced footprint also extends the maximum executable context from 2K with FP16 AR and 6K with W8A8 AR to 10K with BitNest. On Qwen2.5-7B, FP16 inference exceeds the available memory at 2K context, whereas both W8A8 AR and BitNest remain executable. Overall, BitNest supports speculative decoding without storing a separate draft-weight representation while retaining the memory efficiency of quantized inference.
Table 14: Edge-device memory usage and context capacity on Orin NX16. Peak memory is measured at 2K context and reported as PyTorch peak allocation / system-wide peak memory in GiB.
| Model | Method | Peak Memory (GiB) | Max. Context |
|---|---|---|---|
| LLaMA-2-7B-32K | FP16 AR | 13.9 / 15.4 | 2K |
| W8A8 AR | 8.2 / 11.4 | 6K | |
| BitNest | 7.7 / 10.8 | 10K | |
| Qwen2.5-7B | FP16 AR | OOM | - |
| W8A8 AR | 9.0 / 13.7 | - | |
| BitNest | 8.9 / 13.5 | - |
A.6.3 EFFECT OF GEMV KERNEL OPTIMIZATION
The edge-device results reported above use our optimized GEMV kernel. The original low-bit kernel was designed for the bandwidth-bound small- regime but reached only about of the estimated memory-bandwidth roofline. Split-K tuning alone provided negligible improvement, motivating a redesigned GEMV implementation.
On LLaMA-2-7B-32K at 2K context, the optimized kernel increases W8A8 AR throughput from approximately 6.0 to 7.8 tok/s. BitNest improves from 7.4–7.9 tok/s with the original implementation to 9.0–9.3 tok/s. Correspondingly, the effective bandwidth of the W8 kernel increases from approximately 46 to 63 GB/s. These results show that efficiently exploiting the reduced weight traffic is important for realizing the benefit of the nested representation on bandwidth-limited edge hardware.