Manuscript Offprint

arXiv:2610.07457

AlignQuant: Tile-Aligned Mixed-Precision Quantization for Efficient LLM Generation

Hanzhi Zhang, Qiao Zhang, Qinglei Cao, Heng Fan, Yan Huang, Kewei Sha, Yunhe Feng

ABSTRACT

Fine-grained mixed-precision quantization promises efficient large language model inference, but local precision choices can conflict with regular GPU storage and computation units. This precision-boundary mismatch limits the translation of compression into practical acceleration. We introduce AlignQuant, a post-training quantization method that uses GPU-compatible two-dimensional weight tiles as the common unit of precision allocation, compact storage, and execution. This shared partition lets precision follow sensitivity within output channels. Joint prefill/decode calibration scores precision reductions using projection-output perturbations weighted by language-model loss gradients under quantized activations. Phase-normalized scores prioritize higher precision for tiles important to either phase under a model-wide weight-storage budget. Each tile stores one selected representation, while phase-specialized kernels reuse the packed model and expand lower-bit weights for INT8 computation with 8-bit activations. Across four LLMs spanning 3B to 14B parameters, AlignQuant achieves up to 2.50×2.50\times generation speedup over BF16 while preserving model quality. Evaluations further cover three GPUs and contexts up to 64K tokens. These results show that local precision flexibility and regular GPU execution can coexist through a shared tile unit. The implementation is available at https://github.com/HanzhiZhang-Ulrica/AlignQuant.

1 INTRODUCTION

Large language model (LLM) inference is increasingly constrained by parameter storage, memory traffic, and computation. Post-training quantization (PTQ) reduces these costs through lower-precision representations, while the resulting quantization error makes accuracy preservation a central challenge (Dettmers et al., 2022; Xiao et al., 2023; Frantar et al., 2022; Lin et al., 2024b). Uniform-bit quantization addresses this challenge by improving the quantized representation at a fixed weight precision (Frantar et al., 2022; Lin et al., 2024b). Mixed-precision quantization additionally exploits differences in sensitivity by assigning higher precision to sensitive weight regions under a weight-storage budget (Chen et al., 2024; Huang et al., 2024; Zheng et al., 2026; Li et al., 2026; Nie et al., 2026; Hooper et al., 2025). However, when fine-grained precision boundaries cross regular storage or GPU computation units, the resulting precision-boundary mismatch makes efficient deployment depend on how mixed-bit weights are packed, loaded, and converted for computation (Zhao et al., 2024; Lin et al., 2025).

Figure 1 illustrates how precision allocation, weight representation, and GPU execution jointly shape model quality and inference efficiency. Existing methods manage this tension through different precision-sharing and execution structures. Channel- and output-feature-level methods maintain regular partitions by sharing one bit-width across each channel or output feature, coupling weights with different sensitivities to the same precision choice (Chen et al., 2024; Zheng et al., 2026). Finer-grained approaches expose more local choices through quantization groups and hardware-aligned blocks, together with reordering, mixed formats, or specialized execution support (Huang et al., 2024; Li et al., 2026; Nie et al., 2026; Hooper et al., 2025). System-oriented quantizers co-design low-bit formats with weight layouts, dequantization, and GPU data paths to control these deployment costs (Zhao et al., 2024; Lin et al., 2025). These approaches expose a structural trade-off: coarser sharing restricts where higher precision can be placed, while finer allocation requires coor-

Figure

Figure 1: Comparison of precision allocation, representation, and GPU execution. Colors denote 8-bit/4-bit weight precision, and purple outlines track logical tiles. The schematic shows how channel-wise precision grouping can create a precision-boundary mismatch with regular two-dimensional GPU tiling, while AlignQuant uses a common weight-tile partition across allocation, storage, and execution. The quality panel reports WikiText-2 PPL increase over BF16, and the right panel reports generation throughput across prompt lengths on Llama-3.2-3B.

dinating the compact storage of heterogeneous weights with the formats used for GPU computation. This leads to our central question: How can sensitivity-driven local precision choices be preserved in compact weight storage and direct GPU execution?

Our key insight is to use GPU-compatible two-dimensional weight tiles as a shared unit for local precision selection, storage, and execution. Each tile receives its own bit-width, allowing precision to vary within output channels while providing a regular unit for storing and loading the selected weights. Our analysis supports this choice by showing that quantization sensitivity is localized within output channels. At a matched 4-bit tile fraction, two-dimensional tile allocation improves WikiText-2 perplexity over the output-row control. However, turning these local precision choices into efficient inference presents two coupled challenges. First, prefill processes prompt tokens and decode generates new tokens using the same weights. A shared precision assignment must therefore combine sensitivity evidence from both phases under one model-wide weight-storage budget. Second, the selected mixed-bit weights must retain their compact format in GPU memory and during loading while supporting integer computation tailored to each phase's workload (Lin et al., 2025).

We introduce AlignQuant, a tile-aligned mixed-precision method that constructs one compact model for efficient LLM generation. Joint loss-aware calibration assigns 4-bit or 8-bit precision under a model-wide budget, giving higher-precision priority to tiles important to either phase. Packing stores one selected representation per tile, preserving 4-bit weights in compact form through storage and loading. Phase-specialized kernels expand 4-bit weights on-chip to share INT8 computation with 8-bit weights and activations, directly consuming the same packed model.

Across Llama-3.2-3B, Qwen3-4B, Ministral-3-8B, and Qwen3-14B, AlignQuant achieves maximum 2.50×2.50\times inference speedups over BF16 on an NVIDIA A100, NVIDIA H100 NVL, and RTX 4090 GPUs while preserving model quality. These results show how preserving precision granularity through weight storage and computation translates local quantization choices into practical inference efficiency. Our contributions are as follows:

  1. Tile-Aligned Precision Design: We develop a two-dimensional weight-tile organization that permits local bit-width choices within output channels. The same partition defines the regions evaluated during calibration and the units used for compact storage and GPU loading.

  2. Joint Prefill/Decode Allocation: We develop a loss-aware rule that scores local projection-output changes from 8-to-4-bit substitutions under 8-bit activations. Joint prefill/decode calibration produces one precision map under a model-wide storage budget, prioritizing 8-bit retention for tiles important to either phase.

  3. Compact Storage and Direct Execution: We develop prefill- and decode-specialized integer kernels that directly consume a compact model with one selected representation per tile. Compact 4-bit weight loads and on-chip expansion let both weight formats share INT8 arithmetic for efficient inference.

References (100)

  • Quarot: Outlier-free 4-bit inference in rotated llms
  • Piqa: Reasoning about physical commonsense in natural language
  • Progressive mixed-precision decoding for efficient llm inference
  • Channel-wise mixed-precision quantization for large language models (opens arXiv in a new tab)
  • Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
  • Spqr: A sparse-quantized representation for near-lossless llm weight compression (opens arXiv in a new tab)
  • Mxmoe: Mixed-precision quantization for moe with accuracy and performance codesign (opens arXiv in a new tab)
  • Multi-news: A large-scale multi-document summarization dataset and abstractive hierarchical model
  • GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers
  • Mxsens: Sensitivity-aware mixed-precision quantization for efficient llm inference (opens arXiv in a new tab)
  • Measuring Massive Multitask Language Understanding
  • Fgmp: fine-grained mixed-precision weight and activation quantization for hardware-accelerated llm inference (opens arXiv in a new tab)
  • Hardware-efficient w4a8 gemm kernel for high-performance llm serving
  • Ostquant: Refining large language model quantization with orthogonal and scaling transformations for better distribution fitting (opens arXiv in a new tab)
  • Slim-llm: Salience-driven mixed-precision quantization for large language models (opens arXiv in a new tab)
  • Blockdialect: Block-wise fine-grained mixed format quantization for energy-efficient llm inference (opens arXiv in a new tab)
  • Q-palette: Fractional-bit quantizers toward optimal bit allocation for efficient llm deployment
  • Amq: Enabling automl for mixed-precision weight-only quantization of large language models
  • How long can context length of open-source llms truly promise? In NeurIPS 2023 Workshop on Instruction Tuning and Instruction Following, 2023
  • Scalebits: Scalable bitwidth search for hardware-aligned mixed-precision llms (opens arXiv in a new tab)
  • Duquant: Distributing outliers via dual transformation makes stronger quantized llms
  • Awq: Activation-aware weight quantization for on-device llm compression and acceleration
  • Qserve: W4a8kv4 quantization and system co-design for efficient llm serving
  • Micromix: Efficient mixed-precision quantization with microscaling formats for large language models
  • Spinquant: Llm quantization with learned rotations
  • Affinequant: Affine transformation quantization for large language models
  • Pointer Sentinel Mixture Models
  • Sfmp: Fine-grained, hardware-friendly and search-free mixed-precision quantization for large language models (opens arXiv in a new tab)
  • The lambda dataset: Word prediction requiring a broad discourse context
  • Anybcq: Hardware efficient flexible binary-coded quantization for multi-precision llms
  • Winogrande: An adversarial winograd schema challenge at scale
  • Resq: Mixed-precision quantization of large language models with low-rank residuals (opens arXiv in a new tab)
  • Flatness matters for llm quantization (opens arXiv in a new tab)
  • Smoothquant: Accurate and efficient post-training quantization for large language models
  • Fineq: Software-hardware co-design for low-bit fine-grained mixed-precision quantization of llms
  • Rotated runtime smooth: Training-free activation smoother for accurate int4 inference
  • A balanced long-context benchmark with 5 length levels up to 256k (opens arXiv in a new tab)
  • 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
  • Impq: Interaction-aware layerwise mixed precision quantization for llms
  • Atom: Low-bit quantization for efficient and accurate llm serving
  • Mixllm: Llm quantization with global mixed-precision between output-features and highly-efficient system design
  • The transformed tile is $\widetilde{W}_{r,j} = U_r W_{r,j} V_j$
  • Here, $P_s$ is a permutation, $D_{L,s}$ and $D_{R,s}$ are diagonal sign matrices, and $H_{64}$ is the normalized Hadamard transform with final butterfly scaling $1/8$
  • Each tile uses zero point zero and nearest-integer rounding with ties to even:
  • \tag {5} $$
  • The candidate contains $Q_{b,t} = Q_b(\widetilde{W}_t; s_b^\star)$ and $s_{b,t} = \mathrm{FP32}(s_b^\star)$
  • Each group $A$ uses $s_A^\star = s_{0,8}(A)$ from equation 6 and $Q_A = Q_8(A; s_A^\star)$
  • Let $\mathcal{R}_4$ denote 4-bit quantization and reconstruction with FP64 fitted scales, using $16 \times 64$ activation groups and $64 \times 64$ weight tiles
  • Two coordinate sweeps refine input groups followed by output groups, with seed order resolving ties
  • Outputs return to original coordinates and the model's activation type
  • Up to four deterministically spaced steps are scored, each with a one-token loss ( $n_{c} = 1$) and one-row projection observations
  • This produces one tile-score matrix per projection and phase
  • For output group $r$, the reconstructed projection is $\widehat{\tilde{Y}}_{:,r} = \sum_j \widehat{X}_{:,j} \widehat{W}_{r,j}^\top$
  • Equivalently, equation 2 becomes
  • This gives a loss-weighted score for the whole tile substitution
  • The normalized scores $\overline{F}_t^p = F_t^p / \sum_{t'} F_t'^p$ sum to one
  • For any set $\mathcal{S}$ of tiles assigned lower precision, $\max_p \sum_{t \in \mathcal{S}} \overline{F}_t^p \leq \sum_{t \in \mathcal{S}} F_t$
  • Its precision label $\beta_{r,j} = \mathbf{1}[z_{r,j} = 4]$ selects the W4 or W8 buffer
  • Both precisions use this element order
  • This sign extension preserves the selected integer value and its reconstruction with the stored scale
  • The integer weights occupy $BT_4/2 + BT_8$ bytes
  • Complete packed bits per weight are $8S_{\text{packed}} / [B(T_4 + T_8)]$
  • For a mixed projection using long-prefill preparation, the temporary INT8 weights, scales, and row offsets occupy $BRC + 4RC + 4(R + 1)$ bytes for that call
  • Both paths start from the same selected mixed-precision model
  • Table 5 lists the prefill and decode thread-block geometries
  • For activation-row group m and output-tile row r, integer tile products are rescaled before FP32 accumulation:
  • As shown in Figure 8, each input is transformed and quantized once, and grouped execution computes a combined output
  • Using the same reconstructed input makes the candidate comparison specific to the weight substitution and lets compatible projections share activation preparation
  • An A4 variant would recalibrate the candidate scores using its reconstructed inputs and prepare those values for the chosen arithmetic
  • A $64 \times 64$ weight tile can therefore support a single decode row or multiple prefill rows
  • MixLLM uses kernels_mixllm::gemm; the evaluated SFMP implementation unpacks and dequantizes INT4 weights for floating-point multiplication
  • The first 24 records provide prefill observations
  • General Avg is the equal-weight mean accuracy on HellaSwag, MMLU, ARC-Challenge, LAMBADA, PIQA, and WinoGrande (Zellers et al., 2019; Hendrycks et al., 2020; Clark et al., 2018; Paperno et al., 2016; Bisk et al., 2020; Sakaguchi et al., 2021)
  • LV-Eval (Yuan et al., 2024) uses the nine datasets identified in Section 4.4 at its 16K, 32K, and 64K length levels, retaining the official task scores
  • The evaluated AlignQuant runtime uses adaptive decode scheduling, shared activation preparation, and CUDA Graph execution
  • It compares AlignQuant, BF16, Hugging Face FP16, uniform 4-bit weights with 8-bit activations, GPTQ, AWQ, and MixLLM; Figure 5 shows batches 1, 2, 4, and 8
  • Runtime controls use fixed decode splitting, separate activation preparation, or individual kernel launches under the same A100 generation workload (Table 22)
  • Full-model storage adds the remaining parameters and serialization metadata
  • ><tr><td rowspan=
  • >Benchmark</td><td rowspan=
  • Tables 6, 10, and 8 show a recurring pattern: selective W8 retention improves the reported task scores over W4A8 while preserving the predictive behavior of the original model
  • Prefill and decode contribute their own activation and gradient observations, and their normalized scores determine one selected representation per tile
  • Accuracy values are reported as percentages, while WikiText-2 is reported with word perplexity
  • Scores are reported as percentages
  • Table 14 reports mixed W4/W8 assignments in $59.81\%$ of the output-tile rows of Llama-3.2-3B and $87.37\%$ to $90.17\%$ of those in the other models
  • All configurations in Table 16 use the final Align-Quant runtime
  • Sensitivity CV measures within-unit variation in sensitivity scores, state entropy summarizes W4/W8 assignment diversity, and mixed-row fraction reports the percentage of output-tile rows containing both precisions
  • The budget and sensitivity ranking determine the selected numerical model
  • Table 17 covers 8, 16, 24, and 48 documents, with three seeds at each size
  • >Tile Size</td><td colspan=
  • All configurations use the final AlignQuant runtime
  • Phase normalization expresses their accumulated scores as relative tile importance, and the common 4-bit target fixes the number of selected substitutions
  • Figures 9 and 10 examine the same workload grid from the complementary perspectives of per-token latency and energy efficiency
  • aggregate throughput, per-token latency, and energy efficiency
  • Each calibration size uses three seeds
  • >Set Size</td><td colspan=
  • All four models use one A100 GPU with batch size 1, a 128-token prompt, and 512 generated tokens
  • AlignQuant achieves the highest throughput and lowest TPOT among the compared configurations on both devices (Tables 19 and 18)
  • >Metric</td><td rowspan=
  • The selected W4 values provide compact storage, and their expansion preserves the integer values and reconstruction scales used by the common INT8 arithmetic

Couldn't load all references. Reload the page to try again.