arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.26976cs.AI
收藏

MixFold:移动NPU上通过输出通道分组实现低于4位的混合精度LLM推理

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

Qualcomm Technologies, Inc.(高通技术公司)

Vinnam Kim, Seong Hoon Seo, Junhan Kim, Jaeseong You, An Chen

AI总结:

针对移动NPU上低于4位LLM推理的速度与精度问题,提出MixFold方法,通过输出通道分组分配数据类型,在Qwen3模型上实现更快解码与更高能效。

摘要:

低于4位的量化可让移动设备运行更大的LLM,但其内存节省并不总能转化为移动NPU上更快的解码速度。移动NPU的矩阵单元仅支持少数原生整数数据类型,在向量单元上转换不支持的权重格式会抵消少比特数带来的增益。混合精度面临额外约束:每个矩阵单元块使用一种数据类型。MixFold使用原生整数运算执行3位和完全对称的2位权重,解码期间不将权重扩展为更宽的数据类型。MixFold随后将数据类型分配给与矩阵单元块对齐的输出通道组,实现比层级更精细的分配且不干扰矩阵单元执行。我们在骁龙8 Elite Gen 5的高通Hexagon NPU上,将MixFold与Hexagon后端进行对比。在Qwen3模型系列上,MixFold在匹配每权重比特数时,准确率与现有低于4位格式相当或更高,解码速度提升1.16-1.41倍,每焦耳生成的token数提升1.5-4.3倍。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

相关深度报道

↑