# MixFold: Sub-4-Bit Mixed-Precision LLM Inference via Output-Channel Grouping on Mobile NPUs

> MixFold keeps symmetric 2-bit and 3-bit weights packed, folding corrections so a mobile NPU can execute the products without expanding every weight. On Qwen3, it decodes 1.16–1.41× faster and yields 1.5–4.3× more tokens per joule than llama.cpp at matched bits per weight.

- arXiv: https://arxiv.org/abs/2611.26976
- Authors: Vinnam Kim, Seong Hoon Seo, Junhan Kim, Jaeseong You, An Chen
- Published: 2026-11-24
- Topic: Inference & systems
- Visual carousel: https://instaxiv.com/p/2611.26976
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## How can 3-bit weights outrun 4-bit at decode?

**0.77–0.82×** W3/W4 kernel latency ratio, Qwen3 at M=1

## The obstacle is conversion before compute

**Expand first:** On Qualcomm's Hexagon NPU, the matrix unit (HMX) accepts only a few native integer formats. At decode, a straightforward W3 or W2-SEQ path makes the vector unit (HVX) expand every weight to W4 before multiplication.

**Fold instead:** MixFold keeps low-bit weights packed and shifts correction onto the activation side or into the requantization bias. HMX can then use native integer tiles without expanding the full weight stream first.

## Fold the work, not the weights

![Figure 9](https://cdn.instaxiv.com/figures/2611.26976/figure9.webp)

At $M=1$, expansion rewrites every weight on HVX before HMX starts. W2-SEQ touches only the activation row and bias; W3's one-bit W1 lookup product joins HMX's W2 product in one accumulator. (Figure 9)

## W2-SEQ turns symmetry into a fold

1. **Pack as native W2**: The W2-SEQ grid is $\{-3,-1,1,3\}$; encode each code as $W^2=(\widetilde W-1)/2$ in native signed W2 codes.
2. **Fold the one-row sum**: At $M=1$, HVX sums the activation row; that shared sum folds into each output channel's input bias.
3. **Carry multirow corrections**: For $M>1$, a per-call reference row sum enters the bias; native +1 correction columns add each row's remainder in HMX.
4. **Requantize once**: Double the requantization scale; HMX corrects before one requantization and saturation. An odd row-sum difference rounds down.

## W3: split a weight, share the accumulator

1. **Split it exactly**: Split $W^3=2W^2+W^1$ into a signed W2 plane and an unsigned one-bit plane.
2. **Overlap two units**: At $M=1$, HMX computes W2 while HVX halves activations and uses four-at-a-time subset-sum lookups for W1.
3. **Requantize once**: One requantization follows. Halving drops activation LSB; a W1 bias correction offsets expected error, assuming even/odd activation codes are equally likely.
4. **Switch paths with M**: The tested dispatcher uses HMX for both planes at $2\le M\le32$ and expands from $M=64$, when W3's extra work stops hiding behind weight streaming.

## Sensitivity varies inside one layer

![Figure 4](https://cdn.instaxiv.com/figures/2611.26976/figure4.webp)

Within Qwen3-4B's 12th-block query projection, quantization cost varies across 32-channel groups. At 3.0 BPW, layer-wise assigns W3 uniformly; group-wise varies formats by sensitivity. (Figure 4)

## Why assign precision per tile, not per layer?

**Layer-wise:** One bitwidth per layer keeps HMX tiles uniform, but misses sensitivity differences among output-channel groups.

**Tile-aligned groups:** MixFold assigns W2-SEQ, W3, or W4 per 32-channel HMX tile. An integer program minimizes calibration-based, empirical-Fisher-weighted loss under an average BPW budget.

## Finer groups and richer formats lift accuracy

![Figure 7](https://cdn.instaxiv.com/figures/2611.26976/figure7.webp)

Qwen3-4B weight-only GPTQ profiles: left, group-wise allocation beats layer-wise at matched BPW. Right, W2-SEQ improves over W2 and adding W3 raises the average CSR/MMLU/IFEval score. (Figure 7)

## Qwen3: matched-BPW speed and quality

![Figure 8](https://cdn.instaxiv.com/figures/2611.26976/figure8.webp)

Matched BPW: MixFold is 1.16–1.41× faster and achieves 1.5–4.3× the tokens/J of llama.cpp. CSR/MMLU/IFEval average Δ: −0.4 to +10.4 points (AIMET simulation; FlexRound/PrefixQuant). Timing uses random weights, matched layouts. (Figure 8)

## Where the evidence stops

- **End-to-end workload**: Speed and energy tests cover single-stream autoregressive decoding at $M=1$; concurrent sequences and speculative decoding remain unverified.
- **HVX thread count**: Fold benefits are established against single-thread expansion. More HVX threads can narrow or erase them; multi-thread expansion energy was not measured.
- **Accuracy evaluation**: CSR/MMLU/IFEval and matched-BPW accuracy use AIMET GPU simulation (FlexRound + PrefixQuant); on-target perplexity is within 1.8% of simulation.
- **Hardware scope**: Tests use Qualcomm Hexagon on Snapdragon 8 Elite Gen 5 and Qwen3; other NPUs and model families are not evaluated.

Best used when: Most directly relevant to low-$M$ decode on tiled NPUs with native signed 2-bit MMA, runtime per-channel bias adjustment, and shared vector/matrix memory.

## Key takeaways

- The systems lesson: low-bit storage speeds decode only when the matrix unit can consume packed weights without weight-wide conversion.
- On a compatible tiled NPU, align precision to output-channel tiles and dispatch fold versus expansion by activation batch size.
- Will the gains survive concurrent or speculative decoding? End-to-end tests stop at single-stream $M=1$.

## Links

- arXiv: https://arxiv.org/abs/2611.26976
- PDF: https://arxiv.org/pdf/2611.26976

## Citation

```bibtex
@article{kim2026mixfold,
  title   = {MixFold: Sub-4-Bit Mixed-Precision LLM Inference via Output-Channel Grouping on Mobile NPUs},
  author  = {Kim, Vinnam and Seo, Seong Hoon and Kim, Junhan and You, Jaeseong and Chen, An},
  journal = {arXiv preprint arXiv:2611.26976},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.26976}
}
```
