arXiv:2509.17428cs.CL2025-09被引 1

用哈达玛变换提升量化大模型微调精度与效率

QWHA: Quantization-Aware Walsh-Hadamard Adaptation for Parameter-Efficient Fine-Tuning on Large Language Models

  • 引入哈达玛变换作为傅里叶适配器的核函数,增强表达能力
  • 在4比特量化下比基线提升6.2%准确率,训练速度加快2.1倍
  • 适合需要高效微调低精度大模型的研究者与工程师

大语言模型高效部署推动了量化与参数高效微调(PEFT)的发展。为实现高精度且高效的量化模型,需在微调前降低量化误差。现有基于低秩适配的方法表达能力有限;近期基于傅里叶变换(FT)的适配器虽具更强表达力,但直接融入量化模型常导致误差抑制无效并增加计算开销。为此,本文提出QWHA方法,通过哈达玛变换(WHT)作为变换核,并结合自适应参数选择与值优化的新适配器初始化策略,将FT适配器有效集成至量化模型中。实验表明,QWHA能有效缓解量化误差,促进微调,显著降低计算成本。在低比特量化下,性能持续优于基线,训练速度较现有FT适配器提升2.1倍。代码已公开于https://github.com/vantaa89/qwha。

原文摘要 · Abstract (English)

The demand for efficient deployment of large language models (LLMs) has driven interest in quantization, which reduces inference cost, and parameter-efficient fine-tuning (PEFT), which lowers training overhead. This motivated the development of quantization-aware PEFT to produce accurate yet efficient quantized models. In this setting, reducing quantization error prior to fine-tuning is crucial for achieving high model accuracy. However, existing methods that rely on low-rank adaptation suffer from limited representational capacity. Recent Fourier-related transform (FT)-based adapters offer greater representational power than low-rank adapters, but their direct integration into quantized models often results in ineffective error reduction and increased computational overhead. To overcome these limitations, we propose QWHA, a method that integrates FT-based adapters into quantized models by employing the Walsh-Hadamard Transform (WHT) as the transform kernel, together with a novel adapter initialization scheme incorporating adaptive parameter selection and value refinement. We demonstrate that QWHA effectively mitigates quantization errors while facilitating fine-tuning, and that its design substantially reduces computational cost. Experimental results show that QWHA consistently outperforms baselines in low-bit quantization accuracy and achieves significant training speedups over existing FT-based adapters. The code is available at https://github.com/vantaa89/qwha.

大模型微调量化哈达玛变换适配器

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。