Due to limited support for intra-tensor heterogeneous precision in conventional accelerators, neural network quantization remains largely restricted to per-tensor precision assignment. We present ShatterQuant, a hardware-software co-designed framework enabling mixed-precision quantization within each tensor by assigning independent bit-widths to blocks of a weight projection. ShatterQuant couples precision granularity with PE configuration, such that each precision determines an effective block height. We introduce (1) a hardware-aware post-training method that assigns intra-tensor precision based on block-level standard deviation and weight sensitivity; (2) the ShatterQuant Transformer Accelerator supporting 1/2/4/8-bit weight precision, precision-dependent PE configuration, block rescaling, and integrated softmax and piecewise-linear nonlinearities; and (3) an evaluation of model-hardware tradeoffs using an implementation in the TSMC 16nm PDK operating at 1 GHz, achieving 1.5 TOPS, 760 GOPS/mm2 area efficiency, and 2.8 TOPS/W energy efficiency. On DeiT and ImageNet-1K, ShatterQuant achieves accuracy within 3.3% of state-of-the-art mixed-precision techniques while using a 2 bit lower effective bitwidth, while for PixelDiT demonstrates comparable generation quality. ShatterQuant demonstrates how fine-grained intra-tensor mixed-precision can be realized through hardware-software co-design.
Figures & tables
Figure 1. Motivation of ShatterQuant compared with existing mixed-precision quantization approaches. Existing methods ( Ranjan and others, 2026 ; Sun and others, 2026 ) evaluate coarse-grained, tensor-wise precision assignments, whereas ShatterQuant enables fine-grained mixed-precision assignments within individual weight tensors through hardware-software co-design.
Figure 2. Vision Transformer (ViT) architecture and high-level overview of ShatterQuant, with PixelDiT shown as a representative vision diffusion model. ShatterQuant is applied to linear projections through a three-stage process: (1) calibration and initial weight setting, (2) quantization and weight rounding correction, and (3) hardware deployment.
Figure 3. Overview of the ShatterQuant Transformer Accelerator and dataflow. Green: weight memory and input scales; Blue: activation memory; Red: mixed-precision systolic array with barrel-rotator PEs; Yellow: output buffer and rescaler; Purple: fused PWL-based quantizer with softmax normalization and range-overflow prevention. (A) Single-block execution (B) Execution for larger matrix operations. (C) Fused PWL-softmax quantization integrated within the ShatterQuant quantizer.
Figure 4. Per layer effective-bitwidth evaluation for DeIT and PixelDiT-XL post ShatterQuant quantization (A) Effective per-layer bitwidth for DeiT with a 5% overall 1-bit weight target for a 4×4 PE configuration. (B) Effective per-layer bitwidths for PixelDiT-XL for individual projections within the patch & pixel transformer blocks with 80% of its weights being 8-bit, and 20% of its weights being 4-bit, using a 4×4 PE array configuration. (C) Comparison of generated images between original full precision PixelDiT-XL model, and quantized
DeiT-Tiny
DeiT-Small
DeiT-Base
Method
Prec.
Acc.
Prec.
Acc.
Prec.
Acc.
Baseline
FP32
74.5
FP32
81.2
FP32
83.4
P2ViT
8
69.6
8
77.6
8
80.6
Mix-QViT
6
71.7
6
79.6
6
81.6
SLIQ-ViT
6
71.8
6
79.6
6
81.8
Ours
5
68.5
4
78.2
4
80.7
Table 1. Comparison of ShatterQuant against existing mixed-precision works on three DeiT ( Touvron and others, 2021 ) variants shown for Imagenet-1k Top-1 accuracy using the 4x4 PE configuration. Precision defines effective overall model weight bitwidth.
Figure 5. Hardware implementation and performance breakdown of the ShatterQuant Transformer Accelerator: (A) 32×32 configuration layout with color-coded components corresponding to (B) area and power breakdowns for four PE configurations, and (C) scale buffer overhead and achieved throughput relative to peak performance.
Work
Prec.
Tech. (nm)
Freq. (MhZ)
SRAM (KiB)
Perf. (TOPS)
Area (mm 2 )
Power (mW)
Area Eff. (GOPS/mm 2 )
Energy Eff. (TOPS/W)
FLTA ( Lin and others, 2024 )
A 8 W 8
28
666
38.8
0.1
0.6
74
241
1.9
SoftEx ( Belano and others, 2025 )
BF 16
12
1120
256
0.4
1.21
581
355
1.6
FlexEdge ( Zheng and others, 2026 )
A 8 W 8
28
600
36
1.2
1.8
404
640
2.9
( Hsiung and others, 2026 )
INT8
28
1000
232
1.0
1.2
443
851
2.3
Ours
A 8 W 1/2/4/8
16
1000
1666.2
1.5
1.9
521
760
2.8
Table 2. Comparison of the ShatterQuant Transformer Accelerator with the 32x32 PE configuration against ASIC transformer works evaluated on a dual matmul workload containing a 20/40/30/10% distribution of 1/2/4/8-bit weights.
Figure 6. Top-1 accuracy vs energy efficiency (left) and overall model effective bitwidth vs PE configuration (right) for the three DeiT models tiny (a,b), small (c,d), and base (e,f). Results are shown for 5 overall 1-bit configurations of 0,5,10,15 and 20% signified using an increasing gradient.
Figure 7. gFiD vs energy efficiency (a) and effective model bitwidth vs PE configuration for PixelDiT-XL (b). Results are shown for a 0,20 and 40% 4-bit split signified by an increasing gradient.
Mixed-precision quantization assigns different numeric precisions across a model to balance accuracy with memory, speed, energy, and hardware constraints.
Post-training quantization (PTQ) has emerged as an effective solution for deploying Vision Transformers (ViTs) on resource-constrained devices. However, existing PTQ methods typically employ uniform bit-widths across transformer components, overlooking their heterogeneous sensitivity to quantization and leading to inefficient precision allocation. In this paper, we propose {MixFrag, a fragility-guided mixed-precision PTQ framework for Vision Transformers. MixFrag first estimates component-level quantization fragility by measuring the Kullback--Leibler (KL) divergence between full-precision and isolated quantized output distributions using a small calibration set. It then formulates bit allocation as a Multiple-Choice Knapsack Problem (MCKP), enabling adaptive layer-wise precision assignment under a target bit budget. Extensive experiments on ImageNet-1K across multiple Vision Transformer architectures demonstrate that MixFrag achieves competitive classification performance under practical mixed-precision settings. Furthermore, evaluations on COCO object detection and instance segmentation show that MixFrag achieves state-of-the-art performance among existing mixed-precision PTQ methods, improving the previous best method by up to 9.6 AP under the challenging MP3/MP3 setting. Additional analyses validate the proposed fragility metric and demonstrate its strong correlation with the learned bit allocation. These results establish MixFrag as an effective framework for mixed-precision post-training quantization of Vision Transformers.
Md. Mehrab Hossain Opi, Robiul Islam Ryad, Md. Umar Faruk
Department of Computer Science and Engineering Khulna University of Engineering & Technology (KUET) Khulna 9203, Bangladesh
Matrix multiplications dominate the inference cost of modern transformer-based vision models, yet existing efficiency techniques such as post-training quantization and mixed-precision inference are largely limited to the small set of fixed-width formats (INT4, INT8, BF16, and FP16) supported by conventional accelerators. We revisit stochastic computing (SC) as a way to lift this constraint: viewed as a dense adaptive quantizer, SC controls precision by bit-stream length L rather than a fixed datapath, while each multiplication reduces to a single AND/XNOR gate. We build a GPU library that emulates SC matrix multiplication at scale, exposes stream lengths as first-class kernel arguments, and evaluates SC end-to-end on image classification, object detection and instance segmentation, class-conditional image generation, and visual world-model planning. On top of this substrate, we develop a dynamic per-row mixed-precision policy that assigns stream length per token or group at matched average budget, requires no retraining, and uses the same SC hardware across schedules. Across tasks, SC remains competitive with fixed-format INT quantization at matched bit budgets, while per-row mixed precision helps maintain accuracy at lower average stream lengths. These results provide software-level feasibility evidence that SC can serve as a dense-precision substrate for fine-grained mixed-precision inference on modern vision transformers.
Haoran Jin, Kangqi Zhang, Jirong Yang +4
Department of Electrical Engineering and Computer Science, University of Michigan
Many LLM applications require only narrow capabilities, yet standard post-training quantization (PTQ) methods allocate precision without considering the target task. This can waste bits on layers that are less relevant to the task signal while over-compressing layers that are critical for downstream behavior. We propose Task-Aware Quantization (TAQ), a training-free, weight-only mixed-precision PTQ framework that uses a small set of unlabeled task calibration prompts to allocate higher precision to task-relevant transformer layers under a fixed bit budget. TAQ estimates layer importance from hidden representations and output sensitivity, and we instantiate it with three scoring rules: TAQ-IS, based on activation information and stability; TAQ-KL, based on output-distribution sensitivity under a quantization-noise proxy; and TAQ-O, a label-informed oracle diagnostic for analyzing layer sensitivity. Across several benchmarks, TAQ outperforms task-agnostic baselines such in most settings, with especially strong gains in the accuracy--memory ratio. We further validate that these gains translate to real deployment behavior through hardware throughput and latency measurements, and analyze calibration robustness and residual-stream error propagation. Overall, TAQ turns mixed-precision PTQ from a model-centric compression step into a task-conditioned precision-allocation problem. A reference implementation is available at \includegraphics[height=1em]{imgs/github-mark.png}.
Amit LeVi, Raz Lapid, Rom Himelstein +3
1Technion—Israel Institute of Technology · 2Intuit · 3Ben-Gurion University of the Negev +1