Manuscript Offprint
arXiv:2611.00915Elastic Precision: Software-Hardware Co-Design of a Mixed-Precision Architecture for Long-Context LLM Inference
ABSTRACT
Low-bit quantization reduces the data movement and computation costs of large language model (LLM) inference. However, uniform widths can waste precision and degrade model quality because computations differ in quantization sensitivity. Existing mixed-precision methods alleviate this mismatch by assigning widths to channels, tokens, or quantization groups, with some adapting widths to runtime inputs. However, when selecting one input's width, these methods do not fully account for how the other input of the current GEMM tile affects output error. Combining both inputs of the current GEMM tile to estimate output errors and allocate both input widths can therefore better match precision to the current computation, but introduces additional estimation and selection overheads on conventional GPUs and NPUs. We therefore propose Coffee, a runtime precision allocation architecture for long-context LLM inference. Under a fixed average bit-width budget, Coffee combines information from both input matrices of the current GEMM tile to estimate output errors at candidate widths. These estimates guide online allocation of both input widths across subarrays, directing more bits toward computations with greater estimated error reductions. Its mixed-precision hardware directly supports the selected widths in data access and computation, while overlapping error estimation and width selection with transfers and computation to limit additional stalls. The same read path supports attention-guided KV reads during decoding, reducing traffic and easing bandwidth bottlenecks. Coffee achieves lower perplexity and higher average zero-shot accuracy than the evaluated quantization baselines, and higher long-context retrieval recall than PLENA. For long-context decoding, system modeling projects up to 2.55× the throughput and 2.61× the energy efficiency of the reconfigured PLENA baseline, and up to 4.96× and 12.56×, respectively, compared with the B200 GPU baseline.
1 INTRODUCTION
Large language model (LLM) inference relies heavily on matrix multiplications in linear projections and attention. Low-bit quantization reduces their data movement and computation costs, but the resulting errors can degrade model quality. For example, on a single H100 at batch size one, NVIDIA reports that AWQ INT4 weight-only quantization raises Llama-3-8B throughput to 1.56× that of FP16 while reducing MMLU accuracy from 65.4% to 62.9% (Lasek et al., 2024).
Prior work mitigates quantization-induced quality loss through calibration-based error optimization (Frantar et al., 2023), data transformations (Ashkboos et al., 2024; Sun et al., 2025), and adaptive numerical representations (Guo et al., 2022; Hu et al., 2025). Mixed-precision methods complement these techniques by assigning more bits to sensitive computations. APTQ (Guan et al., 2024) and CMPQ (Chen et al., 2026) allocate widths offline at layer or channel granularity using sensitivity or importance estimates. Other methods adapt precision during inference: FGMP (Hooper et al., 2025) selects activation widths online, while OPAL (Koo et al., 2024) preserves runtime activation outliers at higher precision. Both retain offline-assigned weight precision. MoBiQuant (Wang et al., 2026) instead selects weight precision for individual tokens while keeping activation widths fixed.
These runtime methods adapt one input's precision while leaving the other's unchanged. However, the output error from quantizing either input depends on both inputs of the current GEMM tile. For example, Figure 1 shows that the same INT4 weights produce different output errors when multiplied by different token activations. Likewise, the output error from activation quantization depends on the corresponding weights. Selecting either input's width should therefore account for the current input on the other side; otherwise, additional bits may not be allocated where they would most effectively reduce output error. Coffee combines both current inputs to estimate output errors at candidate widths and uses these estimates to select each subarray's two input widths. Within the assigned budgets, it
¹Imperial College London, London, United Kingdom ²University of Cambridge, Cambridge, United Kingdom.
Preprint.

(a) Experimental setup.
(b) Results.
Figure 1. Input-dependent output error with fixed INT4 weights. (a) Experimental setup. The diagram locates the seven linear operators in Llama-3.1-8B. Their GEMMs are mapped to and matrix-multiplication units. For each unit, we fix the INT4 weight representation and vary FP16 activations across tokens. (b) Results. For each operator and unit size, bars report the 99th-to-1st percentile ratio () of output normalized mean squared error (NMSE) across tokens. NMSE is , where and are computed using the same FP16 activations with FP16 and INT4 weights, respectively. These results show that even when one input's quantized representation remains fixed, the output error caused by its quantization still depends on the other input.
allocates additional bits where they yield greater estimated reductions in output error.
However, implementing such allocation on conventional GPUs and NPUs requires retrieving or estimating both inputs' magnitudes and quantization errors at candidate widths, then using this information to estimate output errors and select widths for each tile. These steps add instructions, data accesses, and computation. Separate GPU kernels also incur launch overhead and intermediate data transfers. GPU matrix units further support only a limited set of predefined formats (NVIDIA Corporation), making it difficult to translate one-bit width adjustments and different input-width combinations into execution benefits. These overheads and format constraints motivate hardware that makes low-overhead decisions and supports the selected widths in data access and computation.
We therefore propose Coffee, a hardware architecture for runtime precision allocation in long-context LLM inference. Its compute core follows PLENA's flattened systolic-array organization (Wu et al., 2025), distributing matrix multiplication along the reduction dimension across subarrays with independently configurable widths for each subarray's two inputs. Dedicated circuitry overlaps output-error estimation and width selection with input transfers and preceding computations to limit additional stalls. Subarray gating and
selective reads from nested encodings translate lower widths into reduced compute energy and data movement.
Coffee combines offline budget allocation with online width selection. Offline calibration estimates sensitivity differences across computations and assigns more budget to more sensitive computations under a unified average bit-width constraint. Since these estimates do not fully capture local requirements that vary with current inputs, the runtime pipeline combines information from both current input matrices to estimate output errors at candidate widths. These estimates guide the selection of each subarray's two input widths within the assigned tile input-side budgets, allocating additional bits where they yield greater estimated reductions in output error. The same mixed-precision read path also supports attention-guided KV reads during long-context decoding, building on prior importance-aware KV quantization (Yang et al., 2024; He et al., 2024) to further reduce KV traffic.
Our main contributions are as follows:
-
Dynamic precision allocation guided by both current inputs. We use both current inputs to estimate output errors and guide online selection of each subarray's two input widths within offline-assigned budgets, prioritizing precision increases with greater estimated error reductions.
-
Efficient hardware for runtime mixed-precision execution. We integrate online decision logic, independent input-width control, subarray gating, and selective reads from nested encodings. The shared hardware supports dynamic precision allocation and attention-guided KV reads, translating low precision into lower compute energy and reduced data movement.
-
Improved model quality and system efficiency. Our method achieves lower perplexity and higher average zero-shot accuracy than the evaluated quantization baselines, and higher long-context retrieval recall than PLENA. For long-context decoding, system modeling projects up to the throughput and the energy efficiency of the reconfigured PLENA baseline, and up to and , respectively, compared with the B200 GPU baseline.
2.1 LLM Quantization
GPTQ (Frantar et al., 2023) uses second-order approximations for offline weight quantization. QuaRot (Ashkboos et al., 2024) and FlatQuant (Sun et al., 2025) transform data to reduce quantization error, while ANT (Guo et al., 2022) and M-ANT (Hu et al., 2025) adapt numerical formats.
APTQ (Guan et al., 2024) and CMPQ (Chen et al., 2026) allocate widths using offline sensitivity or importance estimates. FGMP (Hooper et al., 2025) selects activation widths online, while OPAL (Koo et al., 2024) preserves runtime activation outliers at higher precision. Both retain offline-assigned weight precision. MoBiQuant (Wang et al., 2026) dynamically selects weight precision for each token while keeping activation widths fixed. For KV caches, KIVI (Liu et al., 2024) quantizes keys per channel and values per token, while MiKV (Yang et al., 2024) and ZipCache (He et al., 2024) assign precision by token importance. Coffee uses both current input matrices to select both local input widths online within assigned budgets.
2.2 Flattened Systolic Array
PLENA (Wu et al., 2025) distributes matrix multiplication across subarrays along the reduction dimension and combines their partial sums through an adder tree. Coffee adopts this organization and adds online precision selection, independent input-width control, gating, and selective reads from nested encodings to support runtime mixed-precision execution.
3 MOTIVATION
3.1 Error Proxy Derivation
We construct an output-error proxy that accounts for both current input matrices. For subarray in the flattened systolic array, let and denote its inputs, with quantization errors and . The local output has quantization error
The first two terms propagate each input's quantization error through the other input. Thus, output error can vary with the paired input even when one input and its quantization error remain fixed. The last term captures the interaction between the two quantization errors.
Let and denote the inputs' mean-square magnitudes, and and their quantization MSEs at candidate widths and . Assuming zero-mean quantization noise independent of the inputs and one another, we use these input statistics (mean-square magnitudes and quantization MSEs) to construct the following output-error proxy:
When quantization MSEs are small relative to the corresponding signal mean-square magnitudes, the product term

Figure 2. Proxy-guided precision redistribution on a flattened systolic array comprising two subarrays, computing . Statistics from both current input matrices guide allocation through Eqs. (4) and (5). Starting from uniform INT3, each input side repeatedly applies the eligible one-bit upgrade with the largest estimated error reduction until its average width reaches four bits. Relative to uniform INT4, one bit of activation precision moves from SA1 to SA0, yielding INT5 and INT3 activations, respectively, while both weight inputs remain INT4. The total separable proxy decreases from 0.5157 to 0.2658 (48.5%), and the squared output error from 8.87 to 1.80 (79.7%).
is negligible, giving the separable approximation
The two input contributions are therefore
With and fixed for the current input pair, each error contribution depends only on its corresponding input width.
3.2 Precision Allocation Using the Error Proxy
To evaluate the proxy's effectiveness, we first use the separable error proxy to redistribute precision on a flattened systolic array comprising two subarrays (SA0 and SA1). The allocation uses the current input matrices while maintaining an average of four bits per input side. Figure 2 shows that this allocation reduces the total proxy from 0.5157 to 0.2658 and the squared output error from 8.87 to 1.80, a 79.7% reduction relative to uniform INT4.
We further evaluate this allocation method on Llama-3-8B, comparing proxy-guided INT3/4/5 allocation with two outlier-based FP16-retention policies (Figure 3). Using

Figure 3. Output NMSE reduction relative to uniform INT4 on Llama-3-8B. We map the seven linear operators across all 32 layers to a flattened systolic array. Each GEMM is independently quantized and evaluated under each policy using the same inputs captured from an FP16 run. Proxy-guided INT3/4/5 allocation follows Figure 2 under an average four-bit budget. Outlier policies rank subarray inputs by maximum absolute value separately for each input side, assigning FP16 to the top 1% or 3% and INT4 to the rest. Average reports the relative reduction in MAC-weighted NMSE: 15.2% for proxy-guided allocation, versus 5.6% and 11.7% for the two outlier policies, whose average widths are 4.12 and 4.36 bits, respectively.
statistics from both current input matrices, our allocation reduces average output NMSE by 15.2% at an average width of four bits, outperforming both outlier policies despite their higher average widths.
4 PRECISION ALLOCATION FRAMEWORK
Coffee assigns precision budgets offline under a unified average bit-width constraint. At runtime, it combines information from both current input matrices to select subarray input widths within these budgets. Attention information further guides KV read precision during decode. Figure 4 summarizes the framework.
4.1 Online Error Estimation and Bit-Width Selection
Evaluating the output-error contributions in Eqs. (4) and (5) at runtime requires input mean-square magnitudes and reconstruction MSEs at candidate widths. To avoid costly elementwise squaring, accumulation, and repeated quantization, Coffee estimates these statistics at low cost.
Each subarray input contains multiple MXINT quantization groups, each sharing an exponent that may differ across groups. For a group of values , let . We estimate its mean-square magnitude as
For each operator type op, is the mean of over calibration groups.
Let denote the group's quantization step at the maximum supported width . With e fixed, each one-bit reduction doubles the reconstruction spacing, giving at width w
Let denote the group's reconstruction MSE at width . Approximating rounding noise as uniform over and neglecting saturation gives (Gray & Neuhoff, 1998). Since reconstructing the group as zero gives MSE , we empirically cap this analytical estimate at before applying a calibration coefficient:
We fit to measured reconstruction MSEs for each operator type and candidate width.
For subarray and input side , element-count-weighted averages of the group estimates give and . Weight statistics are computed offline; activation and KV statistics are estimated before memory writes. These estimates, including MSEs at all candidate widths, are stored alongside the data and combined to estimate each side's output-error contribution:
For a GEMM tile mapped to subarrays with equal-sized inputs on each side, the average-width budget gives a total width budget for side . Budgets are assigned offline (Section 4.3); decode K/V is handled separately in Section 4.2. Let be the selected input width from the supported integer set . For each input side , we select widths under its assigned budget with the objective
The marginal gain from a one-bit upgrade is
We use a greedy heuristic, starting all subarray inputs at and repeatedly applying the largest-gain one-bit upgrade available from the current widths until the remaining budget is insufficient or all inputs reach .
4.2 Attention-Guided KV Precision Allocation
During decode, numerical distributions (Liu et al., 2024) alone do not capture historical tokens' query-dependent contributions to the attention output. Coffee combines attention information (Zhang et al., 2023) with reconstruction-error estimates to guide KV reads, using current Q inputs for K allocation and current P inputs for V allocation. Read

Figure 4. Offline preparation and online execution. Offline, (1) low-precision calibration provides gradients and output errors for Fisher-guided budget allocation; (2) full-precision calibration fits error-estimation coefficients and scale LUTs; and (3) nested weight encoding jointly optimizes shared exponents and codes using input Gram matrices and width-usage probabilities. Online, (4) both inputs' estimated mean-square magnitudes and reconstruction MSEs guide subarray width selection within the assigned budgets, with attention probabilities additionally guiding KV allocation; and (5) selected widths control input quantization, nested-prefix reads, and mixed-precision GEMM. Black and blue arrows denote data/estimates and configuration/control, respectively.
widths are assigned at subarray granularity. Offline planning sets per-layer proportions for K/V read widths within and V skipping (Section 4.3).
Before QK computation, current attention probabilities are unavailable, so K allocation uses the preceding query's buffered softmax probabilities . Let and denote the token indices and channel group of subarray 's K input. For layer and KV head , its estimated damage at read width is
where are offline-calibrated sensitivity coefficients, is the attention scaling factor, and contains the query heads sharing KV head . The current query-group energy is estimated as , where is the group's channel count and follows Eq. (6). This energy weights K errors propagated through Q and is reused across tokens and candidate widths. The per-element K reconstruction MSE is estimated using Eq. (8) before K writes and stored with the data.
K subarrays containing recent tokens or outlier data are protected at prescribed widths; their counts are deducted from the per-layer quotas. Remaining quotas are filled from high to low widths, selecting unassigned subarrays with the largest at each width . All K subarrays are read. The last prefill query's attention probabilities initialize for the first decode step. With K widths fixed, Q widths are selected using Section 4.1.
After softmax, V allocation uses current attention probabilities . Let denote the token indices in subarray 's V
input. The estimated read and skip damages are
Here, and are the estimated reconstruction MSE and mean-square magnitude, obtained by averaging group estimates from Eqs. (8) and (6), respectively, before V writes and stored with the data. The squared-probability sum is computed once per step and reused across widths and skip decisions.
V subarrays containing recent tokens or exhibiting high V energy are protected at prescribed widths, with their counts deducted from the per-layer quotas. Among unprotected subarrays, those with the smallest are skipped to meet the prescribed proportion. Retained subarrays fill the remaining width quotas as in K allocation, using for ranking. With V widths fixed, P widths are selected for retained subarrays using Section 4.1. Skipping omits V reads and the corresponding P/V-port operations without renormalizing attention probabilities.
4.3 Offline Precision-Budget Allocation
We calibrate prefill and decode separately at each context length. Precision cost sums bit widths weighted by subarray input-port use counts.
Following BRECQ (Li et al., 2021), we estimate quantization damage with a diagonal empirical-Fisher approxima-tion:
where indexes GEMM tiles, denotes the input side, and index operator-output entries. Gradients are computed from the calibration loss at the corresponding operator outputs in a low-precision model. is the output error with side at width and the other side at reference precision; weight and KV errors use actual nested-prefix reconstructions. To compare computations on a common mean negative log-likelihood (NLL) scale, we normalize upgrade gains per valid prediction token and fit them to measured mean NLL changes. Total damage sums the calibrated contributions.
For prefill, the objective is
where is the allocation, the target average width, and the fixed valid input-port use count. The planner starts from minimum widths and greedily prioritizes damage reduction per unit precision cost.
For decode, the planner also considers subarray-level K/V read widths and V skipping, with their attention-dependent damages calibrated to the same NLL scale. Skipping changes the executed input-port use count , so the budget becomes
A Lagrangian relaxation guides the joint discrete search:
For each , shared across all operators, the planner jointly searches linear-operator, Q/P, and K/V configurations using . We adjust by bisection on calibration inputs to find budget-feasible configurations near the target executed-port average width, then verify Eq. (16). Skipped P/V operations count toward neither nor .
The planner returns tile input-side budgets for online selection in linear operators and Q/P, and aggregates K/V sub-array assignments across calibration inputs into per-layer proportions for online allocation.
5 HARDWARE SUPPORT FOR MIXED-PRECISION EXECUTION
Dedicated circuitry overlaps runtime precision selection with data transfers and preceding computations to limit additional stalls. Selective nested reads and subarray gating translate the selected widths into reduced data movement and compute energy.

Figure 5. A Coffee compute core and its memory interfaces; see Section 5.1 for details.
5.1 Architecture and Execution Flow
Figure 5 shows a Coffee compute core and its memory interfaces. The core adopts PLENA's flattened systolic-array organization (Wu et al., 2025), with separate data and precision-control paths for each subarray's two inputs. The Precision Selection Unit (PSU) determines their widths online. An instruction decoder coordinates execution, while vector and scalar units handle non-matrix operations.
The array receives inputs through banked Vector SRAM (VRAM) and Matrix SRAM (MRAM), with each data bank serving one input side of a corresponding subarray. VRAM stores FP16 activations, Q/P, and intermediate results, and quantizes outgoing inputs through a configurable quantizer per bank. MRAM buffers nested weight and KV codes from HBM and supplies the selected prefixes. A dedicated VRAM bank, Error RAM, buffers the estimates used by the PSU. Weight codes, shared exponents, and error and magnitude statistics are prepared offline.
Preparation for each GEMM begins when preceding computations produce its inputs. Activations, Q/P, and newly generated K/V return to VRAM in FP16. Along the write-back path, the Hadamard Transform Unit (HTU) performs the required rotations for linear GEMMs and QK, while P and V bypass rotation. The estimator then prepares mean-square magnitudes and reconstruction MSEs at candidate widths for the resulting inputs (Section 4.1). The vector unit also computes and buffers attention probabilities for subsequent KV precision allocation.
During prefill, inputs and their associated estimates are written back to HBM when on-chip capacity is insufficient. During decode, newly generated K/V and their estimates are written to HBM, while activations and their estimates remain on chip. KV data use nested encodings for storage. Reconstruction-MSE estimates use INT6 throughout, including on-chip buffering and HBM writeback.
Before the next GEMM, the required estimates are gathered in Error RAM. For prefill inputs stored in HBM, these estimates are prefetched ahead of execution. Decode linear GEMMs use estimates already on chip, whereas KV allocation retrieves error and magnitude estimates from HBM. The PSU combines information from both inputs to select subarray widths within the assigned budgets, using attention probabilities additionally for decode KV allocation (Sections 4.1 and 4.2). This selection precedes precision-dependent data reads.
Once the widths are determined, VRAM quantizers quantize the current inputs, and the HBM controller requests the corresponding weight/KV bit planes. MRAM forwards the selected prefixes and shared exponents to the array. Input buffers hold both inputs until the data and width configurations are ready, after which the subarrays execute with the corresponding gating. Their partial results are scale-aligned, reduced through an adder tree, and dequantized to FP16 for VRAM writeback.
5.2 Rotation and Adaptive Online Quantization
For GEMMs other than PV, Coffee applies matched Hadamard rotations along each subarray's reduction dimension, preserving the unquantized product while spreading outliers. The rotation granularity matches the shared-exponent quantization groups. Weights are rotated and encoded offline; runtime inputs requiring rotation pass through the HTU before VRAM writes. Rotated data are reused across computations and width changes.
Adaptive quantization selects each quantization group's shared exponent using an offline-calibrated LUT. Threshold comparisons bin features derived from the two largest absolute values and the group magnitude relative to a calibrated reference. The LUT returns an exponent adjustment calibrated from reconstruction errors under candidate adjustments, balancing rounding and clipping without runtime scale searches or repeated quantization. For A/Q/P, scale selection targets the selected width. For KV, calibration weights reconstruction errors across read widths by their expected usage frequencies. Each KV group's exponent is selected once when its master code is written and reused for subsequent prefix reads.
5.3 Nested Storage and Reconstruction Compensation
Nested MXINT stores -bit master codes in bit planes, with one 8-bit Q5.3 shared exponent per quantization group. A width- read fetches only the top planes and the exponent, supporting multiple precisions from one weight or KV encoding. Figure 6 illustrates an INT3 read from INT5 master codes.

Figure 6. Nested bit-plane storage and selective reading. Sixteen INT5 values share one 8-bit Q5.3 exponent. Rows represent values, and columns represent bit positions from most to least significant. An INT3 read fetches the three leading planes (blue) and the exponent, leaving the two lower planes (gray) unread. Other widths select different numbers of leading planes from the same encoding.
With bits omitted, the discarded suffix ranges from 0 to . Interpreting the fetched prefix as a signed integer, midpoint reconstruction gives
Hardware uses and halves the associated scale. For a common read width,
where is the other input's quantized integer. Multipliers therefore process only narrow prefixes. An accumulator at the first PE of each row computes ; shifts and subtraction generate a correction shared across columns and added before scale alignment.
For weights, we jointly optimize the shared exponent and master codes offline:
Here, is the weight reconstruction error at width , and is collected from FP16 calibration inputs, both in the rotated basis. Width-usage probabilities are measured through mixed-precision calibration with initially quantized weights, accounting for both input statistics and read-width usage.
5.4 Mixed-Precision Arrays and Reduction Trees
Each compute core's flattened systolic array comprises subarrays along the reduction dimension, each with independently configurable widths for its two inputs. Each group of 16 input values shares a Q5.3 exponent. Matching this group size to the subarray reduction length keeps each PE's product scale fixed during accumulation, avoiding local exponent alignment. Different PEs may use different scales.
Bit-plane clock gating disables unused register bits, while input isolation supplies valid signed inputs at the physical datapath width. Widths are configured before each subarray execution and remain fixed throughout it, allowing consecutive executions to change precision without width-switching bubbles.
Corresponding PE outputs are aligned to a common scale during cross-subarray reduction. Shifts handle integer exponent differences, while table-selected shift-and-add/subtract combinations approximate the scaling factors for fractional differences. The aligned integer results enter a 3:2 carry-save compression tree, with carry propagation only at the final stage. Active-width gating and offset-binary representation with an aggregate bias correction reduce switching in unused upper bits and sign extensions. The reduced results are dequantized to FP16 through the VRAM input path.
6 EXPERIMENTS
6.1 Experimental Setup
a) Models and quality evaluation. We evaluate dense and MoE models from the LLaMA (Touvron et al., 2023; Dubey et al., 2024), Qwen, and GLM families. Perplexity uses 2048-token windows on WikiText-2 test (Merity et al., 2017) and 256 C4 validation windows (Raffel et al., 2020). Zero-shot evaluation uses lm-evaluation-harness (Gao et al., 2024) on ARC-C/E (Clark et al., 2018), HellaSwag (Zellers et al., 2019), LAMBADA (Paperno et al., 2016), PIQA (Bisk et al., 2020), and WinoGrande (Sakaguchi et al., 2020), reporting normalized accuracy where available, otherwise accuracy, and the six-task mean. Baselines include BDQ (Huang et al., 2026), PLENA (Wu et al., 2025), and FP16; precision settings appear in the result tables. RULER (Hsieh et al., 2024) single- and multi-needle retrieval uses 32K/64K/128K contexts and 300 samples per length, following official generation and scoring protocols. Coffee, FP16, and PLENA use FP16 prefill and method-specific decode precision. Calibration uses samples from C4, WikiText-2, and Paul Graham essays. Calibration and evaluation samples are disjoint.
b) Hardware implementation. Coffee and our PLENA reimplementation are synthesized from SystemVerilog using Synopsys Design Compiler and ASAP7 (Clark et al., 2016) at 1 GHz. Each accelerator uses one 16 × 2048 core with Q5.3 shared exponents; all PLENA results use this reimplementation. Logic power is estimated from VCD activity. Energy includes compute/control logic, vector/scalar units, precision selection, reconstruction, SRAM, HBM at 3.5 pJ/bit, static power, and communication.

Figure 7. Precision-area trade-offs on Llama-3.1-8B. NMSE and compute-core area (SAs and CSA reduction tree) are normalized to uniform INT4 and the INT4-capable design, respectively. Top axes indicate ; hollow markers denote INT3 configurations with unused budget, and dashed vertical lines mark the selected INT5 design.
c) System evaluation. We measure NVFP4 inference (NVIDIA, 2025) and KV caching on four B200 GPUs using vLLM (Kwon et al., 2023) 0.31.0 with four-way tensor parallelism and prefix caching disabled. Matched one-token runs are subtracted to isolate decode time and NVML board energy. PLENA and Coffee are modeled as 288-accelerator systems, approximately matching the estimated multiplier count of four B200 GPUs. Aggregate HBM bandwidth is matched at 32 TB/s, and available KV capacity is matched per model to vLLM measurements. PLENA and Coffee share workload mapping, communication model, and simulator. All systems store one copy of the weights and run the same PG-19 decode workloads at their maximum memory-feasible batch sizes. We report throughput, energy efficiency, and HBM traffic.
6.2 Software-Hardware Co-Design
We evaluate maximum widths from INT3 to INT7, with INT2 as the minimum width and an average 4-bit budget. Figure 7 reports normalized output NMSE averaged across nine linear and attention GEMMs from all 32 layers of Llama-3.1-8B, at five context lengths from 2K to 128K. We select INT5 as the maximum supported width. Averaged across the five contexts, online allocation reduces output NMSE by 32.9% for prefill and 37.2% for decode, with 26.6% more compute-core area than the INT4-capable design. INT5 captures 88.5% and 81.0% of the respective NMSE reductions achieved with INT7, whose area is 98.9% larger than the INT4-capable design.
6.3 Model Quality
Coffee achieves lower perplexity and higher mean zero-shot accuracy across available quantized-baseline comparisons in Table 1. On Qwen3.8-Flash, mean accuracy is 75.30%, 0.96 percentage points below FP16. Single- and multi-needle
Table 1. Perplexity and zero-shot accuracy across models. BDQ uses W4A4KV4 with FP16 Q/P; PLENA uses uniform INT4 and Ours a unified average 4-bit budget across W/A/Q/P/K/V. Avg. is the six-task mean accuracy. Green bold marks the lowest perplexity and highest average accuracy among low-precision methods.
| Model | Precision | Method | PPL (↓) | Accuracy (%, ↑) | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| WikiText-2 | C4 | ARC-C | ARC-E | HellaSwag | LAMBADA | PIQA | WinoGrande | Avg. | |||
| Llama-3-8B | FP16 | FP16 | 6.14 | 9.45 | 53.50 | 77.57 | 79.12 | 75.51 | 80.74 | 72.93 | 73.23 |
| W4A4KV4 | BDQ (PQ16) | 6.84 | 10.97 | 51.03 | 76.10 | 76.77 | 73.42 | 78.57 | 72.88 | 71.46 | |
| PLENA (PQ4) | 6.95 | 11.04 | 49.06 | 73.86 | 76.01 | 72.25 | 77.53 | 69.06 | 69.63 | ||
| Ours (Avg4) | 6.58 | 10.22 | 51.37 | 75.76 | 77.48 | 75.45 | 79.38 | 73.95 | 72.23 | ||
| Llama-3-70B | FP16 | FP16 | 2.86 | 7.17 | 64.25 | 85.94 | 84.93 | 79.37 | 84.44 | 80.74 | 79.95 |
| W4A4KV4 | BDQ (PQ16) | 3.52 | 7.63 | 62.83 | 84.88 | 84.07 | 79.42 | 84.01 | 79.56 | 79.13 | |
| PLENA (PQ4) | 4.12 | 8.47 | 56.06 | 78.20 | 82.42 | 75.51 | 81.34 | 72.69 | 74.37 | ||
| Ours (Avg4) | 3.34 | 7.54 | 62.46 | 84.93 | 84.55 | 79.82 | 84.00 | 79.64 | 79.23 | ||
| Llama-4-Scout | FP16 | FP16 | 8.58 | 30.36 | 57.00 | 83.12 | 80.81 | 76.44 | 82.64 | 72.69 | 75.45 |
| W4A4KV4 | PLENA (PQ4) | 9.92 | 31.82 | 56.23 | 81.31 | 79.59 | 75.39 | 81.77 | 69.69 | 74.00 | |
| Ours (Avg4) | 9.28 | 30.84 | 55.46 | 81.52 | 80.31 | 76.62 | 81.66 | 71.90 | 74.58 | ||
| Qwen3.8-Flash Next | FP16 | FP16 | 4.66 | 10.58 | 64.08 | 79.04 | 87.70 | 72.00 | 84.00 | 70.72 | 76.26 |
| W4A4KV4 | PLENA (PQ4) | 4.95 | 10.99 | 61.01 | 76.64 | 86.64 | 69.22 | 82.37 | 70.09 | 74.33 | |
| Ours (Avg4) | 4.84 | 10.74 | 60.67 | 77.57 | 87.32 | 72.17 | 83.08 | 70.96 | 75.30 | ||
| GLM-4.6V | FP16 | FP16 | 4.09 | 9.31 | 60.24 | 81.06 | 86.09 | 74.52 | 83.62 | 79.87 | 77.57 |
| W4A4KV4 | PLENA (PQ4) | 4.70 | 9.96 | 59.81 | 81.14 | 84.91 | 74.03 | 81.77 | 76.80 | 76.41 | |
| Ours (Avg4) | 4.33 | 9.50 | 57.94 | 79.80 | 85.72 | 74.67 | 83.08 | 79.08 | 76.71 | ||
Table 2. Single- and multi-needle retrieval scores (%) on RULER, with FP16 prefill and method-specific decode precision. Highlighted averages are best among quantized methods.
| Method | Single-needle | Multi-needle | ||||||
|---|---|---|---|---|---|---|---|---|
| 32K | 64K | 128K | Avg. | 32K | 64K | 128K | Avg. | |
| Llama-3.1-8B | ||||||||
| FP16 | 100 | 99.3 | 97.3 | 98.9 | 91.4 | 87.0 | 43.7 | 74.0 |
| PLENA | 98.3 | 98.0 | 91.0 | 95.8 | 84.2 | 64.6 | 24.5 | 57.8 |
| Ours (avg4) | 100 | 99.7 | 96.3 | 98.7 | 96.2 | 77.8 | 38.8 | 70.9 |
| Qwen3-8B | ||||||||
| FP16 | 100 | 99.0 | 99.0 | 99.3 | 99.4 | 97.8 | 93.3 | 96.8 |
| PLENA | 98.7 | 94.3 | 95.3 | 96.1 | 96.6 | 92.2 | 83.8 | 90.9 |
| Ours (avg4) | 100 | 100.0 | 98.0 | 99.3 | 99.3 | 97.6 | 93.5 | 96.8 |
| Qwen3-30B-A3B-Instruct | ||||||||
| FP16 | 100 | 100 | 100 | 100 | 100 | 100 | 99.8 | 99.9 |
| PLENA | 100 | 100 | 100 | 100 | 99.9 | 99.8 | 99.4 | 99.7 |
| Ours (avg4) | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
retrieval matches or improves on PLENA across all three evaluated models (Table 2).
6.4 System Performance and Energy Efficiency
At short context, INT5 weight/KV storage and metadata increase memory usage and can limit batch sizes, while KV-read savings remain modest. Throughput is comparable to PLENA, but energy efficiency is approximately 5–9% lower. At long context, greater KV-read savings provide larger benefits, with V skipping and mixed-precision KV reads contributing approximately 55% and 45% of the total KV traffic reduction, respectively. Coffee achieves up to 2.55× PLENA's throughput and 2.61× its energy efficiency, and up to 4.96× and 12.56×, respectively, compared with four B200 GPUs (Table 3).
6.5 Online Precision-Decision Overhead
Table 4 shows low area and energy overheads: the estimator and PSU occupy 1.97% of core area. Online decisions change prefill time by less than 0.01% and increase the first decode step's time by only 0.31–0.64%.
6.6 Component Evaluation
Model-quality ablation. Under an average 4-bit budget, online error-guided allocation within offline-assigned budgets reduces WikiText-2 perplexity on Llama-3-8B from 7.369 to 6.868, comparable to rotation alone (6.871). Adding rotation and adaptive scale selection further lowers perplexity to 6.5805 (Figure 8(a)). Using estimates from both current inputs yields lower perplexity than using each input's magnitude alone or offline averages for the other input, while achieving perplexity comparable to using directly computed magnitudes and reconstruction MSEs (Figure 8(c)).
Table 3. Decode performance at (input, output) token lengths. B200 results are measured on four GPUs; PLENA and Ours are modeled as 288-accelerator systems. All systems use their largest memory-feasible batches. Green bold marks the highest throughput and energy efficiency for each model and workload.
| Model | System | (1.4K, 0.2K) | (114K, 5K) | (90K, 8K) | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Tokens/s | Tokens/J | Batch | Tokens/s | Tokens/J | Batch | Tokens/s | Tokens/J | Batch | ||
| Llama-3.1-8B | 4×B200 NVFP4 | 92,167 | 30.57 | 4,096 | 3,913 | 1.01 | 147 | 4,553 | 1.17 | 179 |
| PLENA | 153,060 | 146.81 | 4,096 | 7,030 | 4.66 | 147 | 8,643 | 5.75 | 179 | |
| Ours | 153,411 | 140.07 | 4,096 | 17,960 | 12.16 | 119 | 21,619 | 14.70 | 145 | |
| Llama-3.1-70B | 4×B200 NVFP4 | 34,136 | 9.03 | 3,919 | 1,164 | 0.34 | 52 | 1,679 | 0.44 | 63 |
| PLENA | 40,027 | 33.50 | 3,919 | 2,514 | 1.71 | 52 | 3,085 | 2.11 | 63 | |
| Ours | 39,919 | 30.48 | 3,170 | 5,175 | 3.70 | 42 | 6,246 | 4.42 | 51 | |
| Llama-4-Scout | 4×B200 NVFP4 | 38,322 | 13.90 | 4,096 | 6,855 | 1.92 | 276 | 8,048 | 2.22 | 323 |
| PLENA | 87,001 | 78.23 | 4,096 | 13,931 | 9.61 | 276 | 16,118 | 11.20 | 323 | |
| Ours | 87,173 | 74.38 | 4,096 | 24,358 | 17.76 | 223 | 27,221 | 19.64 | 261 | |
| GLM-4.6V | 4×B200 NVFP4 | 35,674 | 12.52 | 4,096 | 1,666 | 0.65 | 90 | 2,403 | 0.86 | 109 |
| PLENA | 95,579 | 90.70 | 4,096 | 4,331 | 2.97 | 90 | 5,316 | 3.66 | 109 | |
| Ours | 95,772 | 86.26 | 4,096 | 8,267 | 6.02 | 73 | 10,131 | 7.34 | 88 | |
| Qwen3-235B-A22B | 4×B200 NVFP4 | 25,850 | 7.52 | 4,096 | 1,307 | 0.45 | 77 | 1,857 | 0.58 | 94 |
| PLENA | 54,033 | 56.90 | 4,096 | 3,474 | 2.45 | 77 | 4,239 | 3.01 | 94 | |
| Ours | 54,374 | 54.27 | 4,096 | 4,759 | 3.81 | 62 | 5,860 | 4.67 | 76 | |
Table 4. Online precision-decision overhead on Llama-3.1-8B. (a) Area and energy as percentages of core area and the corresponding phase's total energy. (b) Execution-time overhead; decode measures the first step after prefill.
| (a) Area and energy | |||
|---|---|---|---|
| Component | Area (% of core) | Prefill energy (%) | Decode energy (%) |
| Error estimator | 0.33 | 0.011–0.116 | 0.012–0.019 |
| PSU | 1.64 | 0.482–0.491 | 0.123–0.231 |
| Total logic | 1.97 | 0.49–0.61 | 0.135–0.25 |
| HBM: error statistics | – | 0.27–0.48 | 1.75–3.09 |
| HBM: attention mass | – | – | 0.11–0.19 |
| (b) Execution-time overhead (%) | ||||
|---|---|---|---|---|
| Phase | 8K | 32K | 64K | 90K |
| Prefill | < 0.01 | < 0.01 | < 0.01 | < 0.01 |
| Decode | 0.31 | 0.54 | 0.64 | 0.62 |
Nested storage. Center compensation reduces perplexity from 12,946 with direct truncation to 6.662; joint Gram- and usage-aware optimization further lowers it to 6.5805, close to 6.593 with independent W/KV quantization (Figure 8(b)).
We also evaluate the read efficiency of nested encodings at 128K context. Without skipping, non-nested INT4 and nested reads achieve 90% and approximately 80% of peak bandwidth, respectively. Despite the lower bandwidth utilization, combining nested reads with V skipping substantially reduces KV traffic, shortening KV read time by 57% relative to non-nested INT4.

Figure 8. WikiText-2 perplexity on Llama-3-8B. (a) Component ablation under an average 4-bit budget. LUT denotes adaptive scale selection; Full combines all components. (b) Nested encoding ablation with a fixed width schedule. The arrow marks an off-scale value. (c) Width-selection criteria with other settings fixed. Measured error uses directly computed mean-square magnitudes and reconstruction MSEs in the same proxy. Own magnitude uses only each input's magnitude, preserving Coffee's proportions at each width. Offline other input replaces the other input's current mean-square magnitude with its per-tile calibration average. Coffee uses estimates from both current inputs.
7 CONCLUSION
Coffee uses both current inputs to allocate precision within offline-assigned budgets. Dedicated circuitry, nested reads, and gating support efficient execution, improving model quality and long-context inference efficiency under an average 4-bit budget.
REFERENCES
Ashkboos, S., Mohtashami, A., Croci, M. L., Li, B., Cameron, P., Jaggi, M., Alistarh, D., Hoefler, T., and Hensman, J. QuaRot: Outlier-free 4-bit inference in rotated LLMs. In Advances in Neural Information Processing Systems, volume 37, 2024. doi: 10.52202/079017-3180. URL https://papers.nips.cc/paper_files/paper/2024/hash/b5b939436789f76f08b9d0da5e81af7c-Abstract-Conference.html.
Bisk, Y., Zellers, R., Le Bras, R., Gao, J., and Choi, Y. PIQA: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI Conference on Artificial Intelligence, 2020. URL https://arxiv.org/abs/1911.11641.
Chen, Z., Xie, B., Li, J., and Shen, C. Adapting to any bit-width: Channel-wise mixed-precision quantization for LLMs. Transactions on Machine Learning Research, 2026. URL https://openreview.net/forum?id=1t6sEhdLxf.
Clark, L. T., Vashishtha, V., Shifren, L., Gujja, A., Sinha, S., Cline, B., Ramamurthy, C., and Yeric, G. ASAP7: A 7-nm FinFET predictive process design kit. Microelectronics Journal, 53:105–115, 2016. doi: 10.1016/j.mejo.2016.04.006. URL https://doi.org/10.1016/j.mejo.2016.04.006.
Clark, P., Cowhey, I., Etzioni, O., Khot, T., Sabharwal, A., Schoenick, C., and Tafjord, O. Think you have solved question answering? try ARC, the AI2 reasoning challenge. arXiv preprint arXiv:1803.05457, 2018. URL https://arxiv.org/abs/1803.05457.
Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., Yang, A., Fan, A., Goyal, A., Hartshorn, A., Yang, A., Mitra, A., Sravankumar, A., Korenev, A., Hinsvark, A., Rao, A., Zhang, A., Rodriguez, A., Gregerson, A., Spataru, A., Roziere, B., Biron, B., Tang, B., Chern, B., Caucheteux, C., Nayak, C., Bi, C., Marra, C., McConnell, C., Keller, C., Touret, C., Wu, C., Wong, C., Ferrer, C. C., Nikolaidis, C., Allonsius, D., Song, D., Pintz, D., Livshits, D., Esiobu, D., Choudhary, D., Mahajan, D., Garcia-Olano, D., Perino, D., Hupkes, D., Lakomkin, E., AlBadawy, E., Lobanova, E., Dinan, E., Smith, E. M., Radenovic, F., Zhang, F., Synnaeve, G., Lee, G., Anderson, G. L., Nail, G., Mialon, G., Pang, G., Cucurell, G., Nguyen, H., Korevaar, H., Xu, H., Touvron, H., Zarov, I., Ibarra, I. A., Kloumann, I., Misra, I., Evtimov, I., Copet, J., Lee, J., Geffert, J., Vranes, J., Park, J., Mahadeokar, J., Shah, J., van der Linde, J., Billock, J., Hong, J., Lee, J., Fu, J., Chi, J., Huang, J., Liu, J., Wang, J., Yu, J., Bitton, J., Spisak,
J., Park, J., Rocca, J., Johnstun, J., Saxe, J., Jia, J., Alwala, K. V., Upasani, K., Plawiak, K., Li, K., Heafield, K., Stone, K., El-Arini, K., Iyer, K., Malik, K., Chiu, K., Bhalla, K., Rantala-Yeary, L., van der Maaten, L., Chen, L., Tan, L., Jenkins, L., Martin, L., Madaan, L., Malo, L., Blecher, L., Landzaat, L., de Oliveira, L., Muzzi, M., Pasupuleti, M., Singh, M., Paluri, M., Kardas, M., Oldham, M., Rita, M., Pavlova, M., Kambadur, M., Lewis, M., Si, M., Singh, M. K., Hassan, M., Goyal, N., Torabi, N., Bashlykov, N., Bogoychev, N., Chatterji, N., Duchenne, O., Çelebi, O., Alrassy, P., Zhang, P., Li, P., Vasic, P., Weng, P., Bhargava, P., Dubal, P., Krishnan, P., Koura, P. S., Xu, P., He, Q., Dong, Q., Srinivasan, R., Ganapathy, R., Calderer, R., Cabral, R. S., Stojnic, R., Raileanu, R., Girdhar, R., Patel, R., Sauvestre, R., Polidoro, R., Sumbaly, R., Taylor, R., Silva, R., Hou, R., Wang, R., Hosseini, S., Chennabasappa, S., Singh, S., Bell, S., Kim, S. S., Edunov, S., Nie, S., Narang, S., Raparthy, S., Shen, S., Wan, S., Bhosale, S., Zhang, S., Vandenhende, S., Batra, S., Whitman, S., Sootla, S., Collot, S., Gururangan, S., Borodinsky, S., Herman, T., Fowler, T., Sheasha, T., Georgiou, T., Scialom, T., Speckbacher, T., Mihaylov, T., Xiao, T., Karn, U., Goswami, V., Gupta, V., Ramanathan, V., Kerkez, V., Gonguet, V., Do, V., Vogeti, V., Petrovic, V., Chu, W., Xiong, W., Fu, W., Meers, W., Martinet, X., Wang, X., Tan, X. E., Xie, X., Jia, X., Wang, X., Goldschlag, Y., Gaur, Y., Babaei, Y., Wen, Y., Song, Y., Zhang, Y., Li, Y., Mao, Y., Coudert, Z. D., Yan, Z., Chen, Z., Papakipos, Z., Singh, A., Grattaflori, A., Jain, A., Kelsey, A., Shajinfeld, A., Gangidi, A., Victoria, A., Goldstand, A., Menon, A., Sharma, A., Boesenberg, A., Vaughan, A., Baevski, A., Feinstein, A., Kallet, A., Sangani, A., Yunus, A., Lupu, A., Alvarado, A., Caples, A., Gu, A., Ho, A., Poulton, A., Ryan, A., Ramchandani, A., Franco, A., Saraf, A., Chowdhury, A., Gabriel, A., Bharambe, A., Eisenman, A., Yazdan, A., James, B., Maurer, B., Leonhardi, B., Huang, B., Loyd, B., De Paola, B., Paranjape, B., Liu, B., Wu, B., Ni, B., Hancock, B., Wasti, B., Spence, B., Stojkovic, B., Gamido, B., Montalvo, B., Parker, C., Burton, C., Mejia, C., Wang, C., Kim, C., Zhou, C., Hu, C., Chu, C.-H., Cai, C., Tindal, C., Feichtenhoffer, C., Civin, D., Beaty, D., Kreymer, D., Li, D., Wyatt, D., Adkins, D., Xu, D., Testuggine, D., David, D., Parikh, D., Liskovich, D., Foss, D., Wang, D., Le, D., Holland, D., Dowling, E., Jamil, E., Montgomery, E., Presani, E., Hahn, E., Wood, E., Brinkman, E., Arcaute, E., Dunbar, E., Smothers, E., Sun, F., Kreuk, F., Tian, F., Ozgenel, F., Caggioni, F., Guzmán, F., Kanayet, F., Seide, F., Florez, G. M., Schwarz, G., Badeer, G., Swee, G., Halpern, G., Thattai, G., Herman, G., Sizov, G., Zhang, G. J., Lakshminarayanan, G., Shojanazeri, H., Zou, H., Wang, H., Zha, H., Habeeb, H., Rudolph, H., Suk, H., Aspegren, H., Goldman, H., Molybog, I., Tufanov, I., Veliche, I.-E., Gat, I., Weissman, J., Geboski, J., Kohli, J., Asher, J., Gaya,
J.-B., Marcus, J., Tang, J., Chan, J., Zhen, J., Reizenstein, J., Teboul, J., Zhong, J., Jin, J., Yang, J., Cummings, J., Carvill, J., Shepard, J., McPhie, J., Torres, J., Ginsburg, J., Wang, J., Wu, K., U, K. H., Saxena, K., Prasad, K., Khandelwal, K., Zand, K., Matosich, K., Veeraraghavan, K., Michelena, K., Li, K., Huang, K., Chawla, K., Lakhotia, K., Huang, K., Chen, L., Garg, L., A, L., Silva, L., Bell, L., Zhang, L., Guo, L., Yu, L., Moshkovich, L., Wehrstedt, L., Khabsa, M., Avalani, M., Bhatt, M., Tsimpoukelli, M., Mankus, M., Hasson, M., Lennie, M., Reso, M., Groshev, M., Naumov, M., Lathi, M., Keneally, M., Seltzer, M. L., Valko, M., Restrepo, M., Patel, M., Vyatskov, M., Samvelyan, M., Clark, M., Macey, M., Wang, M., Hermoso, M. J., Metanat, M., Rastegari, M., Bansal, M., Santhanam, N., Parks, N., White, N., Bawa, N., Singhal, N., Egebo, N., Usunier, N., Laptev, N. P., Dong, N., Zhang, N., Cheng, N., Chernoguz, O., Hart, O., Salpekar, O., Kalinli, O., Kent, P., Parekh, P., Saab, P., Balaji, P., Rittner, P., Bontrager, P., Roux, P., Dollar, P., Zvyagina, P., Ratanchandani, P., Yuvraj, P., Liang, Q., Alao, R., Rodriguez, R., Ayub, R., Murthy, R., Nayani, R., Mitra, R., Li, R., Hogan, R., Battey, R., Wang, R., Maheswari, R., Howes, R., Rinott, R., Bondu, S. J., Datta, S., Chugh, S., Hunt, S., Dhillon, S., Sidorov, S., Pan, S., Verma, S., Yamamoto, S., Ramaswamy, S., Lindsay, S., Lindsay, S., Feng, S., Lin, S., Zha, S. C., Shankar, S., Zhang, S., Zhang, S., Wang, S., Agarwal, S., Sajuyigbe, S., Chintala, S., Max, S., Chen, S., Kehoe, S., Satterfield, S., Govindaprasad, S., Gupta, S., Cho, S., Virk, S., Subramanian, S., Choudhury, S., Goldman, S., Remez, T., Glaser, T., Best, T., Kohler, T., Robinson, T., Li, T., Zhang, T., Matthews, T., Chou, T., Shaked, T., Vontimitta, V., Ajayi, V., Montanez, V., Mohan, V., Kumar, V. S., Mangla, V., Ionescu, V., Poenaru, V., Mihailescu, V. T., Ivanov, V., Li, W., Wang, W., Jiang, W., Bouaziz, W., Constable, W., Tang, X., Wang, X., Wu, X., Wang, X., Xia, X., Wu, X., Gao, X., Chen, Y., Hu, Y., Jia, Y., Qi, Y., Li, Y., Zhang, Y., Zhang, Y., Adi, Y., Nam, Y., Wang, Y. S., Hao, Y., Qian, Y., He, Y., Rait, Z., DeVito, Z., Rosnbrick, Z., Wen, Z., Yang, Z., and Zhao, Z. The Llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024. doi: 10.48550/arXiv.2407.21783. URL https://arxiv.org/abs/2407.21783v1.
Frantar, E., Ashkboos, S., Hoefler, T., and Alistarh, D. GPTQ: Accurate post-training quantization for generative pre-trained transformers. In International Conference on Learning Representations, 2023. URL https://arxiv.org/abs/2210.17323.
Gao, L., Tow, J., Abbasi, B., Biderman, S., Black, S., DiPofi, A., Foster, C., Golding, L., Hsu, J., Le Noac'h, A., Li, H., McDonell, K., Muennighoff, N., Ociepa, C., Phang, J., Reynolds, L., Schoelkopf, H., Skowron, A., Sutawika, L., Tang, E., Thite, A., Wang, B., Wang, K., and Zou,
A. The language model evaluation harness, 2024. URL https://zenodo.org/records/12608602.
Gray, R. M. and Neuhoff, D. L. Quantization. IEEE Transactions on Information Theory, 44(6):2325–2383, 1998. doi: 10.1109/18.720541. URL https://doi.org/10.1109/18.720541.
Guan, Z., Huang, H., Su, Y., Huang, H., Wong, N., and Yu, H. APTQ: Attention-aware post-training mixed-precision quantization for large language models. In Proceedings of the 61st ACM/IEEE Design Automation Conference. Association for Computing Machinery, 2024. doi: 10.1145/3649329.3658498. URL https://doi.org/10.1145/3649329.3658498.
Guo, C., Zhang, C., Leng, J., Liu, Z., Yang, F., Liu, Y., Guo, M., and Zhu, Y. ANT: Exploiting adaptive numerical data type for low-bit deep neural network quantization. In 2022 55th IEEE/ACM International Symposium on Microarchitecture (MICRO), pp. 1414–1433, 2022. doi: 10.1109/MICRO56248.2022.00095.
He, Y., Zhang, L., Wu, W., Liu, J., Zhou, H., and Zhuang, B. ZipCache: Accurate and efficient KV cache quantization with salient token identification. In Advances in Neural Information Processing Systems, volume 37, 2024. doi: 10.52202/079017-2181. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/7e57131fdeb815764434b65162c88895-Abstract-Conference.html.
Hooper, C., Sakr, C., Keller, B., Venkatesan, R., Keutzer, K., Shao, S., and Khailany, B. FGMP: Fine-grained mixed-precision weight and activation quantization for hardware-accelerated LLM inference. arXiv preprint arXiv:2504.14152, 2025. doi: 10.48550/arXiv.2504.14152. URL https://arxiv.org/abs/2504.14152.
Hsieh, C.-P., Sun, S., Kriman, S., Acharya, S., Rekesh, D., Jia, F., Zhang, Y., and Ginsburg, B. RULER: What's the real context size of your long-context language models? In First Conference on Language Modeling, 2024. URL https://arxiv.org/abs/2404.06654.
Hu, W., Zhang, H., Guo, C., Feng, Y., Guan, R., Hua, Z., Liu, Z., Guan, Y., Guo, M., and Leng, J. M-ANT: Efficient low-bit group quantization for LLMs via mathematically adaptive numerical type. In 2025 IEEE International Symposium on High Performance Computer Architecture (HPCA), pp. 1112–1126, 2025. doi: 10.1109/HPCA61900.2025.00086.
Huang, X., Li, Z., Yin, X., Wang, L., Wang, Y., Li, D., Barsoum, E., and Liu, K. Theory-optimal quantization based on flatness. In Proceedings of the 64th Annual
Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 38127–38142. Association for Computational Linguistics, 2026. doi: 10.18653/v1/2026.acl-long.1767. URL https://aclanthology.org/2026.acl-long.1767/.
Koo, J., Park, D., Jung, S., and Kung, J. OPAL: Outlier-preserved microscaling quantization accelerator for generative large language models. In Proceedings of the 61st ACM/IEEE Design Automation Conference, 2024. doi: 10.1145/3649329.3657323.
Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C. H., Gonzalez, J. E., Zhang, H., and Stoica, I. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles, 2023. doi: 10.1145/3600006.3613165. URL https://arxiv.org/abs/2309.06180.
Lasek, J., Yilmaz, O., Luo, C., and Yu, C. Post-training quantization of LLMs with NVIDIA NeMo and NVIDIA TensorRT Model Optimizer. NVIDIA Technical Blog, September 2024. URL https://developer.nvidia.com/blog/post-training-quantization-of-llms-with-nvidia-nemo-and-nvidia-tensorrt-model-optimizer.
Li, Y., Gong, R., Tan, X., Yang, Y., Hu, P., Zhang, Q., Yu, F., Wang, W., and Gu, S. BRECQ: Pushing the limit of post-training quantization by block reconstruction. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=POWv6hDd9XH.
Liu, Z., Yuan, J., Jin, H., Zhong, S., Xu, Z., Braverman, V., Chen, B., and Hu, X. KIVI: A tuning-free asymmetric 2bit quantization for KV cache. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 32332–32344, 2024. URL https://proceedings.mlr.press/v235/liu24bz.html.
Merity, S., Xiong, C., Bradbury, J., and Socher, R. Pointer sentinel mixture models. In International Conference on Learning Representations, 2017. URL https://arxiv.org/abs/1609.07843.
NVIDIA. Introducing NVFP4 for efficient and accurate low-precision inference. NVIDIA Technical Blog, 2025. URL https://developer.nvidia.com/blog/introducing-nvfp4-for-efficient-and-accurate-low-precision-inference/.
NVIDIA Corporation. Parallel Thread Execution ISA, Version 9.4. URL https://docs.nvidia.com/cuda/parallel-thread-execution/. Accessed: 2026-10-13.
Paperno, D., Kruszewski, G., Lazaridou, A., Pham, N. Q., Bernardi, R., Pezzelle, S., Baroni, M., Boleda, G., and Fernández, R. The LAMBADA dataset: Word prediction requiring a broad discourse context. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1525–1534, 2016. doi: 10.18653/v1/P16-1144. URL https://aclanthology.org/P16-1144/.
Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., and Liu, P. J. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21 (140):1–67, 2020. URL https://jmlr.org/papers/v21/20-074.html.
Sakaguchi, K., Le Bras, R., Bhagavatula, C., and Choi, Y. WinoGrande: An adversarial winograd schema challenge at scale. In Proceedings of the AAAI Conference on Artificial Intelligence, 2020. URL https://arxiv.org/abs/1907.10641.
Sun, Y., Liu, R., Bai, H., Bao, H., Zhao, K., Li, Y., Hu, J., Yu, X., Hou, L., Yuan, C., Jiang, X., Liu, W., and Yao, J. FlatQuant: Flatness matters for LLM quantization. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 57587–57613. PMLR, 2025. URL https://proceedings.mlr.press/v267/sun251.html.
Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., Bikel, D., Blecher, L., Ferrer, C. C., Chen, M., Cucurull, G., Esiobu, D., Fernandes, J., Fu, J., Fu, W., Fuller, B., Gao, C., Goswami, V., Goyal, N., Hartshorn, A., Hosseini, S., Hou, R., Inan, H., Kardas, M., Kerkez, V., Khabsa, M., Kloumann, I., Korenev, A., Koura, P. S., Lachaux, M.-A., Lavril, T., Lee, J., Liskovich, D., Lu, Y., Mao, Y., Martinet, X., Mihaylov, T., Mishra, P., Molybog, I., Nie, Y., Poulton, A., Reizenstein, J., Rungta, R., Saladi, K., Schelten, A., Silva, R., Smith, E. M., Subramanian, R., Tan, X. E., Tang, B., Taylor, R., Williams, A., Kuan, J. X., Xu, P., Yan, Z., Zarov, I., Zhang, Y., Fan, A., Kambadur, M., Narang, S., Rodriguez, A., Stojnic, R., Edunov, S., and Scialom, T. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023. doi: 10.48550/arXiv.2307.09288. URL https://arxiv.org/abs/2307.09288.
Wang, D., Kim, J., Han, S., Gudovskiy, D., Nakata, Y., Okuno, T., Peong, K., Jeon, K. E., Ko, J. H., Chen, Y., and Yang, H. MoBiQuant: Mixture-of-bits quantization for token-adaptive any-precision LLM. arXiv preprint arXiv:2602.20191, 2026. doi: 10.48550/arXiv.2602.20191. URL https://arxiv.org/abs/2602.20191.
Wu, H., Xiao, C., Nie, J., Guo, X., Lou, B., Wong, J. T. H., Mo, Z., Zhang, C., Forys, P., Ai, C., Adeniran, T., Luk, W., Fan, H., Cheng, J., Jones, T. M., Antonova, R., Mullins, R., and Zhao, A. Combating the memory walls: Optimization pathways for long-context agentic LLM inference. arXiv preprint arXiv:2509.09505, 2025. doi: 10.48550/arXiv.2509.09505. URL https://arxiv.org/abs/2509.09505.
Yang, J. Y., Kim, B., Bae, J., Kwon, B., Park, G., Yang, E., Kwon, S. J., and Lee, D. No token left behind: Reliable KV cache compression via importance-aware mixed precision quantization. arXiv preprint arXiv:2402.18096, 2024. URL https://arxiv.org/abs/2402.18096.
Zellers, R., Holtzman, A., Bisk, Y., Farhadi, A., and Choi, Y. HellaSwag: Can a machine really finish your sentence? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 4791–4800, 2019. doi: 10.18653/v1/P19-1472. URL https://aclanthology.org/P19-1472/.
Zhang, Z., Sheng, Y., Zhou, T., Chen, T., Zheng, L., Cai, R., Song, Z., Tian, Y., Ré, C., Barrett, C., Wang, Z., and Chen, B. H2O: Heavy-hitter oracle for efficient generative inference of large language models. In Advances in Neural Information Processing Systems, volume 36, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/6ceef a7b15572587b78ecfcebb2827f8-Abstract-Conference.html.
AI USAGE DISCLOSURE
We used Claude Code and OpenAI Codex to assist with literature search and comparison, experimental design discussions, code development, and language polishing of the manuscript. The authors retain full responsibility for the methodology, implementation, experimental results, references, and final manuscript.