跳到正文
arXiv (AI + Vision + Imaging)· Vinnam Kim, Seong Hoon Seo, Junhan Kim, Jaeseong You, An Chen·· 2 天前精选AI 评分58

MixFold:在移动NPU上按输出通道分组实现4-bit以下混合精度LLM推理

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

AI 导读

MixFold提出一种在移动NPU上执行3-bit与完全对称2-bit权重的方案,解码时无需将权重扩展为更宽数据类型,并按与矩阵单元tile对齐的输出通道分组分配数据类型。

推荐理由

论文给出在手机NPU上以原生整数指令执行3-bit与2-bit混合精度权重的方案,并对比llama.cpp给出解码速度与能效数据。

正文 · 原文

arXiv:2611.26976v2 Announce Type: replace Abstract: 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 $\mathtt{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 $\mathtt{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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org