arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.13147cs.LG
收藏

OTARo:面向鲁棒设备端大语言模型的一次性调优适配全精度

OTARo: Once Tuning for All Precisions toward Robust On-Device LLMs

Shaoyuan Chen, Zhixuan Chen, Dawei Yang, Zhihang Yuan, Qiang Wu

AI总结:

针对传统量化无法灵活切换设备端LLMs精度的问题,提出OTARo方法,通过共享指数浮点机制与两大关键策略实现一次性微调适配全精度,在主流模型上验证了全精度下的鲁棒性能。

摘要:

大语言模型(LLMs)微调技术不仅能提升对多样化下游任务的适应性,还能减轻模型量化带来的不利影响。尽管如此,传统量化存在结构性限制,阻碍了微调与部署阶段的灵活性。实际设备端任务需要不同的量化精度(即不同位宽),例如理解类任务对精度降低的容忍度往往高于生成类任务。传统量化通常依赖跨位宽不兼容的缩放因子,在面对复杂现实场景时无法支持设备端的精度切换。为解决这一困境,我们提出OTARo,一种通过一次性微调使设备端LLMs能灵活切换量化精度同时保持性能鲁棒性的新方法。OTARo引入共享指数浮点(SEFP)这一独特量化机制,通过单个模型的简单尾数截断生成不同位宽。此外,为在下游应用中实现位宽鲁棒性,OTARo针对不同位宽引发的损失进行学习过程。该方法包含两大关键策略:(1)利用-探索位宽路径搜索(BPS),通过设计的评分机制迭代更新搜索路径;(2)低精度异步累积(LAA),在低位宽下执行异步梯度累积与延迟更新。在流行LLMs(如LLaMA3.2-1B、LLaMA3-8B)上的实验表明,OTARo对所有精度均实现了持续强劲且鲁棒的性能。

英文摘要:

Large Language Models (LLMs) fine-tuning techniques not only improve the adaptability to diverse downstream tasks, but also mitigate adverse effects of model quantization. Despite this, conventional quantization suffers from its structural limitation that hinders flexibility during the fine-tuning and deployment stages. Practical on-device tasks demand different quantization precisions (i.e. different bit-widths), e.g., understanding tasks tend to exhibit higher tolerance to reduced precision compared to generation tasks. Conventional quantization, typically relying on scaling factors that are incompatible across bit-widths, fails to support the on-device switching of precisions when confronted with complex real-world scenarios. To overcome the dilemma, we propose OTARo, a novel method that enables on-device LLMs to flexibly switch quantization precisions while maintaining performance robustness through once fine-tuning. OTARo introduces Shared Exponent Floating Point (SEFP), a distinct quantization mechanism, to produce different bit-widths through simple mantissa truncations of a single model. Moreover, to achieve bit-width robustness in downstream applications, OTARo performs a learning process toward losses induced by different bit-widths. The method involves two critical strategies: (1) Exploitation-Exploration Bit-Width Path Search (BPS), which iteratively updates the search path via a designed scoring mechanism; (2) Low-Precision Asynchronous Accumulation (LAA), which performs asynchronous gradient accumulations and delayed updates under low bit-widths. Experiments on popular LLMs, e.g., LLaMA3.2-1B, LLaMA3-8B, demonstrate that OTARo achieves consistently strong and robust performance for all precisions.

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

↑