Manuscript Offprint

arXiv:2610.02800

BitNest: Bit-Nested Speculative Decoding for Memory-Efficient LLM Inference Acceleration

Chence Yang, Ningxi Cheng, Arash Akbari, Qitao Tan, Qingchan Zhu, Ci Zhang, Changdi Yang, Yanzhi Wang, Wei Niu, Jinhui Wang, Jin Lu, Geng Yuan

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

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.

References (42)