Sub-4-bit quantization allows mobile devices to run larger LLMs, but its memory savings do not always translate into faster decoding on mobile NPUs. Their matrix units support only a few native integer datatypes, and converting unsupported weight formats on the vector unit can erase the gains from fewer bits. Mixed precision faces an additional constraint: each matrix-unit tile uses one datatype. MixFold executes 3-bit and perfectly symmetric 2-bit weights using native integer operations without expanding the weights to wider datatypes during decoding. MixFold then assigns datatypes to output-channel groups aligned with the matrix-unit tiles, enabling finer-than-layer assignment without disrupting matrix-unit execution. We compare MixFold with llama-cpp Hexagon backend on the Qualcomm Hexagon NPU of a Snapdragon 8 Elite Gen 5. Across the Qwen3 model family, MixFold achieves comparable or higher accuracy than llama-cpp's sub-4-bit formats at matched bits per weight, while decoding 1.16-1.41 times faster and generating 1.5-4.3 times more tokens per joule.
Figures & tables
Figure 1: Quantized MMA dataflow on the Hexagon NPU for one T×T output tile Ym,nq . DMA stages the activation row block Xm,:q , the weight tile Wn,:p , and the requantization parameters from DRAM in VTCM while the next weight tile is prefetched. HVX pre- and post-processes VTCM buffers. HMX accumulates over K , then applies αn , bnin , and bnout with hardware saturation.
Figure 2: (Left) Histogram of row 0 of the layer-0 gate projection of Qwen3-0.6B, with its W2 and W2-SEQ grids (markers). (Right) Output SQNR of the whole layer on WikiText-2 test activations, with per-channel scales fitted on WikiText-2 train activations.
M=32
M=512
Kernel
MMA
mJ
vs. FP16
mJ
vs. FP16
llama.cpp Q4_0
FP16
0.378
–
2.248
–
W4A16, row-major
INT
0.156
− 59%
1.479
− 34%
W4A16, tiled
INT
0.144
− 62%
1.303
− 42%
Table 1: Energy (millijoules, mJ) of one K=N=2048 MMA. W4A16 takes 16-bit activation codes in either row-major format (converted inside the kernel) or the tiled HMX layout.
GB/s
% of ceiling
DMA ceiling
84.1
100
Native W4
76.4
91
Native W4 excluding HMX
79.2
94
llama.cpp Q4_0
67.2
80
T-MAN INT4
71.0
84
Table 2: Effective weight bandwidth (weight bytes over latency) at M=1 , aggregated over four projections of Qwen3-4B (QKV+O+Up/Gate+Down), against the DMA ceiling, a bulk copy of the same bytes with no computation at all.
Figure 3: The fold paths take the HVX workload off the critical path. All kernels utilize single-thread HVX. C1–C4 number the chunks.
Path
M
HVX work
HMX MACs
Expand
any
O(NK)
MNK
W2-SEQ
bias-fold
1
O(K+N)
MNK
accumulator-fold
2 – 32
O(M(K+S)+N)
MN(K+S)
W3 activation-fold
HVX-assist
1
O(K) , NK/4 lookups
MN(K+S)
Table 3: Per-call work of each path at its production M . Only the expand path touches entire NK weights on HVX.
Figure 4: Group-wise quantization sensitivity and bitwidth assignment for the query projection in the 12th Transformer block of Qwen3-4B ( model.layers.11.self_attn.q_proj ). (a) Quantization cost ϵg,p varies substantially across hardware-aligned output-channel groups. (b) Under a 3.0-BPW budget, the layer-wise profile assigns W3 uniformly, whereas the group-wise profile allocates different bitwidths according to group sensitivity.
0.6B
1.7B
4B
8B
Format
Path
µs
%
µs
%
µs
%
µs
%
W2
native
69
72
193
79
372
82
668
86
W2-SEQ
expand
104
47
276
55
526
58
976
59
fold
75
66
194
79
372
82
672
86
W4
native
114
84
345
87
667
91
1247
92
W3
expand
185
39
532
43
1046
44
1995
43
Table 4: Qwen3 aggregate (QKV+O+Up/Gate+Down) decode-size ( M=1 ) latency (µs), and the effective weight bandwidth as % of the DMA ceiling in Table 2 . Bold marks the fold paths (bias-fold for W2-SEQ and activation-fold for W3).
Figure 5: Qwen3-4B aggregate latency versus M : W2-SEQ normalized to W2 (left) and W3 normalized to W4 (right). Shaded: sizes where the fold path runs faster than the expand path. Dashed line: byte-proportional ideal of W3 (0.75 of W4).
Figure 6: Mixed-precision kernels follow BPW in latency (left) and, with an offset for W2-SEQ and W3, in energy (right). Qwen3-4B, M=1 , all projections aggregated, normalized to W4. Hollow markers are single-width kernels. The solid line interpolates W2 and W4.
Figure 7: Accuracy (average of CSR, MMLU, and IFEval) versus BPW of weight-only GPTQ MP profiles on Qwen3-4B. Left: output-channel-group-wise versus layer-wise allocation using the { W2-SEQ, W3, W4 } palette. Right: comparison of different bitwidth palettes using output-channel-group-wise allocation, where W2 denotes the conventional two’s-complement format.
Figure 8: End-to-end decode throughput (Left), energy efficiency (Middle), and accuracy–throughput optimality (Right). Pairs matching BPW between MixFold and llama.cpp are connected in a line.
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
Latency over Fold, n HVX threads
Model
Format
M
Path
Fold (µs)
1
2
3
4
5
6
7
0.6B
W2-SEQ
1
Expand
75
1.41
1.13
1.07
1.05
1.04
1.04
1.04
8
Expand
83
1.41
1.15
1.09
1.08
1.06
1.07
1.06
32
Expand
116
1.28
1.37
1.34
1.32
1.32
1.32
1.32
W3
1
Expand
108
1.72
1.09
1.01
0.97
0.95
0.93
0.93
1
HVX-assisted fold
108
1.39
0.93
0.88
0.88
0.87
0.87
0.87
Appendix
Table 5: Decode latency with more HVX threads, over the fold without HVX weight work (Fold: the W2-SEQ bias- and accumulator-folds and the W3 HMX-only activation-fold), summed over QKV, O, Up/Gate, and Down. n counts the HVX threads on weight work. Expand with n=1 converts on the issuing thread.
Figure 9: Operand view of the execution paths at decode size ( M=1 ). Orange marks the data HVX must process and blue the operands HMX consumes natively. The expand path rewrites all NK weights on HVX before HMX can start, whereas the W2-SEQ bias-fold touches only the activation row and the bias. The W3 activation-fold halves the activation row and reads the one-bit W1 plane by table lookups beside the HMX W2 product (hatched), and its product joins the W2 product in one HMX accumulator that writes y directly ( Section 3.2 ). The meters give the HVX elements per token for the fused Up/Gate projection of Qwen3-0.6B ( K=1024 , N=6144 ) on a common linear scale. Operand glyphs are schematic.
Model
Format
Source
Decoder linear tensors
BPW
Embed. / head
Qwen3-0.6B
Q2_K
unsloth
q,k,gate,up Q2_K; v,o,down Q3_K
2.95
Q6_K (tied)
Q3_K_S
unsloth
all Q3_K
3.44
Q6_K (tied)
Q3_K_M
unsloth
q,k,gate,up Q3_K; v Q4_K (Q5_K in 2 of 28 layers); o Q4_K; down Q4_K (Q5_K in 1 of 28 layers)
3.87
Q6_K (tied)
Q4_0
unsloth
q,k,v,o,gate,up Q4_0; down Q4_0 (Q4_1 in 3 of 28 layers)
4.51
Q6_K (tied)
Qwen3-1.7B
Q2_K
unsloth
q,k,gate,up Q2_K; v,o,down Q3_K
2.93
Q6_K (tied)
Q3_K_S
unsloth
all Q3_K
3.44
Q6_K (tied)
Appendix
Table 6: GGUF files of the llama.cpp baselines: quantization type of each decoder linear projection (q, k, v, o, gate, up, down), their average BPW including block scales, and the token-embedding / LM-head types (tied when the model shares them). Source: the Hugging Face repositories unsloth/Qwen3-{0.6B,1.7B,8B}-GGUF , unsloth/Qwen3-4B-Instruct-2507-GGUF , and bartowski/Qwen_Qwen3-8B-GGUF .
Figure 10: Time per call of the decode kernels at M=1 (sum of the four projections), measured with timing counters. Bars stack the waits and HVX stages of the thread that issues the DMA and HMX work. The tick marks that thread’s total and the circle the HMX busy time, which overlaps the waits. The diamond marks the HVX W1 product of the fold paths, which runs on the worker threads and also overlaps the waits.
Model
Fmt
tg128 fold
expand
0.6B
W4
142.4
–
0.6B
W3
157.4
107.2 (1.47 × )
0.6B
W2-SEQ
168.5
150.7 (1.12 × )
0.6B
MP3.0
160.5
119.6 (1.34 × )
0.6B
MP3.4
151.2
124.5 (1.22 × )
4B
W4
30.1
–
Appendix
Table 7: End-to-end decode throughput (tg128, tokens/s) with the fold paths (default) and with the expand path forced at decode. Slowdown in parentheses. W4 is native and unaffected.
Model
Runtime
Format
BPW
tg128
pp512
pp512+tg128
tg128 / W4
pp512 / W4
Qwen3-0.6B
MixFold
W2SEQ
2.00
169.9
5686
653.1
1.19
0.99
Qwen3-0.6B
MixFold
MP
2.95
158.4
5601
624.1
1.11
0.97
Qwen3-0.6B
MixFold
W3
3.00
157.8
5715
619.5
1.11
0.99
Qwen3-0.6B
MixFold
MP
3.44
151.0
5593
600.5
1.06
0.97
Qwen3-0.6B
MixFold
MP
3.87
145.6
5620
577.5
1.02
0.98
Qwen3-0.6B
MixFold
W4
4.00
142.4
5753
580.2
1.00
1.00
Appendix
Table 8: End-to-end throughput (tokens/s, median of five runs of five repetitions each, Section C.2 ) and ratio to our W4. MixFold rows use the latency-equivalent models of Section C.2 .
Model
W2-SEQ
W3
MP3.0
MP3.4
MP3.8
W4
0.6B
0.12
0.17
0.17
0.19
0.21
0.21
4B
0.89
1.32
1.33
1.50
1.66
1.71
8B
1.67
2.49
2.50
2.82
3.14 †
3.26 †
Appendix
Table 9: Decoder section size (GiB) of the exported models. † Runs in two DSP processes.
Model
Projection
W2
Expand
Output-correction
Bias-fold
W4
Qwen3-0.6B
QKV
18.8
27.7
20.0
20.8
30.3
Qwen3-0.6B
O
10.2
15.9
11.4
11.1
16.0
Qwen3-0.6B
Up/Gate
26.4
39.1
28.1
29.1
45.0
Qwen3-0.6B
Down
13.4
21.7
14.7
13.8
22.6
sum
68.8
104.3
74.2
74.7
113.9
Qwen3-1.7B
QKV
32.8
49.3
34.1
33.0
58.1
Appendix
Table 10: W2-SEQ projection latency at decode size ( M=1 ) in µs. The bias-fold is the default path.
Model
Projection
Expand
Act.-fold
W4
Act.-fold/W4
Act.-fold/Expand
Qwen3-0.6B
QKV
49.1
25.2
30.3
0.83
0.51
Qwen3-0.6B
O
26.8
13.7
16.0
0.86
0.51
Qwen3-0.6B
Up/Gate
71.7
36.7
45.0
0.82
0.51
Qwen3-0.6B
Down
37.7
18.1
22.6
0.80
0.48
sum
185.3
93.8
113.9
0.82
0.51
Qwen3-1.7B
QKV
92.3
45.8
58.1
0.79
0.50
Appendix
Table 11: W3 projection latency at decode size ( M=1 ) in µs. The activation-fold (act.-fold) is the default path. Byte-proportional act.-fold/W4 would be 0.75.
Figure 11: Figure 5 for Qwen3-0.6B, 1.7B, and 8B: W2-SEQ normalized to W2 (top) and W3 normalized to W4 (bottom).
Model
M
W2
W2-SEQ fold
W2-SEQ expand
W2-SEQ/W2
W4
W3 fold
W3 expand
Qwen3-0.6B
1
68.6
74.8
104.3
1.09
113.9
93.8
185.3
Qwen3-0.6B
32
103.1
117.2
148.0
1.14
137.1
162.3
231.3
Qwen3-0.6B
64
161.9
174.7
168.9
1.04
196.8
257.8
188.1
Qwen3-0.6B
128
261.0
278.4
268.2
1.03
275.7
424.6
277.1
Qwen3-0.6B
256
470.5
495.2
486.5
1.03
486.2
774.6
490.3
Qwen3-0.6B
512
962.2
986.2
955.1
0.99
977.0
1547.8
967.0
Appendix
Table 12: Aggregate (QKV+O+Up/Gate+Down) latency in µs versus M (values of Figure 5 ). The runtime runs the fold paths for M≤32 and the expand path from M=64 . The fold values at M≥64 are forced. W2-SEQ/W2 uses the default path.
Model
M
HVX-assisted
HMX-only
W4
0.6B
1
93.7
107.2
113.6
2
123.7
113.0
116.7
4
218.8
114.5
117.8
8
411.5
120.3
120.7
16
790.6
132.4
126.0
32
1517
159.8
137.4
Appendix
Table 13: W3 activation-fold latency versus M (µs, sum over QKV, O, Up/Gate, and Down). The HVX-assisted form at M≥2 is measured for comparison only. Bold marks the fastest W3 path, and W4 is the native reference.
M
Path
T-MAN (µs)
W2-SEQ (µs)
Ratio
Per byte
1
LUT
419
372
1.13
0.92
2
LUT
735
380
1.93
1.58
4
LUT
1362
384
3.55
2.89
8
FP16 + HMX
1777
390
4.56
3.72
16
FP16 + HMX
1809
402
4.50
3.67
32
FP16 + HMX
1930
439
4.40
3.59
Appendix
Table 14: Latency of the reproduced T-MAN 2-bit kernel (asymmetric, group size 64, 2.5 BPW) and of W2-SEQ on the fold path (2.0 BPW) on Qwen3-4B, each summed over QKV, O, Up/Gate, and Down at M activation rows. T-MAN takes its faster path per projection, the LUT kernel once per row or FP16 conversion with HMX. Ratio is T-MAN over W2-SEQ. Per byte divides each latency by its weight bytes first (2.5 BPW for T-MAN, 2 bits plus 16 B per output channel for W2-SEQ).
Figure 12: Mixed-precision kernel latency per projection at decode size ( M=1 ), normalized to the W4 kernel of the same projection. Markers and line as in Figure 6 .
Model
Family
Mixes
Points
Mean dev.
Max ∣ dev. ∣
Agg. dev. range
Qwen3-0.6B
W2–W4
5
20
+1.0%
6.6%
-0.3 / +0.9%
Qwen3-0.6B
W2-SEQ–W4
3
12
-1.3%
7.0%
-4.0 / -1.3%
Qwen3-0.6B
W3–W4
3
12
+0.2%
2.6%
-0.5 / -0.1%
Qwen3-0.6B
W2-SEQ/W3/W4
3
12
+0.2%
6.2%
-0.8 / -0.5%
Qwen3-4B
W2–W4
5
20
-4.4%
7.7%
-5.2 / -3.0%
Qwen3-4B
W2-SEQ–W4
3
12
-3.9%
7.5%
-4.0 / -2.6%
Appendix
Table 15: Deviation of mixed kernels from the composition-weighted sum of the homogeneous kernels ( M=1 ). Points are mixes × projections. The last column is the range over the family’s mixes of the aggregate deviation.
Model
Family
Mix
BPW
Measured (µs)
Predicted (µs)
Dev.
Qwen3-0.6B
W2–W4
w2:w2:w2:w4
2.50
80.1
80.1
-0.0%
Qwen3-0.6B
W2–W4
w2:w2:w4
2.67
83.7
83.9
-0.2%
Qwen3-0.6B
W2–W4
w2:w4
3.00
92.2
91.4
+0.9%
Qwen3-0.6B
W2–W4
w2:w4:w4
3.33
99.0
98.9
+0.1%
Qwen3-0.6B
W2–W4
w2:w4:w4:w4
3.50
102.3
102.6
-0.3%
Qwen3-0.6B
W2-SEQ–W4
w2seq:w2seq:w4
2.67
84.2
87.7
-4.0%
Appendix
Table 16: Aggregate latency of every mixed kernel at M=1 and its composition-weighted prediction from the homogeneous kernels.
Figure 13: Accuracy (average of CSR, MMLU, and IFEval) of the weight-only GPTQ MP profiles at 3.0 BPW across Qwen3 model sizes. Panels as in Figure 7 .
Method
BPW
PPL
CSR
MMLU
IFEval
Avg.
Qwen3-0.6B
Q2_K
2.95
38.60
40.7
30.8
40.4
37.3
MP
2.95
26.34
44.2
41.7
57.2
47.7
Q3_K_S
3.44
25.93
43.6
40.2
54.2
46.0
MP
3.44
23.04
45.9
44.2
59.1
49.7
Q3_K_M
3.87
22.24
46.3
43.3
61.4
50.3
Appendix
Table 17: Accuracy of the llama.cpp GGUFs (rows named by their type) and of the MixFold MP profile at the same BPW (MP), the pairs of Figure 8 . Bold marks the better value in each pair.
W2-SEQ / W3 fold path
Fold
Expand
Bias-fold / HVX-assisted act.-fold
20.675
20.678
Accumulator-fold / HMX-only act.-fold
20.667
20.660
Appendix
Table 18: WikiText-2 perplexity over one 4096-token window of the real Qwen3-0.6B MP3.4-A16 checkpoint with its W2-SEQ and W3 groups on the fold paths or forced onto the expand path. The first row scores the window one token per call and the second 32 tokens per call, the call sizes at which the runtime selects these fold paths.
Item
Setting
Simulation
AIMET GPU simulation of the A16 MP profiles ( Section 5.1 )
Harness
lm-evaluation-harness, thinking mode off
Chat template
IFEval only (none for WikiText-2, CSR, and MMLU)
Prefix (no template)
<|endoftext|>\n (2 tokens), for WikiText-2, CSR, and MMLU
Prefix (template)
<|im_start|>user (2 tokens), for IFEval
WikiText-2
perplexity at a 4096-token context
Appendix
Table 19: Accuracy evaluation setup.
Model
BPW
On-target
Simulation
Δ
0.6B
2.95
25.88
26.34
− 1.7%
0.6B
3.44
22.64
23.04
− 1.7%
0.6B
3.87
20.94
21.18
− 1.1%
1.7B
2.93
20.79
20.83
− 0.2%
1.7B
3.44
18.78
18.84
− 0.3%
1.7B
3.85
16.01
16.09
− 0.5%
Appendix
Table 20: WikiText-2 perplexity of the MixFold MP profiles with PrefixQuant at the BPW of llama.cpp’s Q2_K, Q3_K_S, and Q3_K_M. On-target runs on the NPU over the full test set (73 windows of 4096 tokens). Simulation is the AIMET GPU simulation of Section 5.1 . Δ is on-target over simulation.