arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.06916cs.LGcs.AIeess.SPquant-ph
收藏

QuIC:用于参数高效微调的量子启发复合适配器

QuIC: Quantum-Inspired Compound Adapters for Parameter Efficient Fine-Tuning

QC Ware(QC公司);LIP6, CNRS, Sorbonne Université(LIP6、CNRS、索邦大学)

Snehal Raj, Brian Coyle

AI总结:

针对大模型全微调显存与时间成本高的问题,提出受量子电路启发的QuIC适配器PEFT方法,仅需极低显存即可微调,高阶配置可实现超40倍参数压缩,适配资源受限场景。

摘要:

大规模基础模型的全参数微调会给GPU显存和训练时间带来沉重负担。参数高效微调(PEFT)方法通过仅更新模型一小部分参数的适配器模块来解决这一问题。在本研究中,我们提出了量子启发复合适配器(QuIC Adapters),这是一种受保汉明重量量子电路启发的PEFT方法,仅需基础模型不到0.02%的显存占用即可有效微调模型。QuIC适配器通过强制权重参数保持正交性来保留预训练表征,并且具备在量子计算机上的原生部署机制。我们通过在语言、数学、推理和视觉基准上微调LLaMA等大语言模型和视觉Transformer来测试QuIC适配器。在一阶配置下,QuIC的性能与现有正交方法相当,而高阶配置可实现大幅参数压缩(比LoRA小40倍以上),仅带来小幅性能折衷,为高资源受限环境下的应用解锁了可能。通过消融研究,我们确定将多个汉明重量阶数与正交性、矩阵复合相结合,是实现高性能微调的关键。我们的研究结果表明,QuIC适配器为资源受限环境下基础模型的高效微调提供了一个有前景的方向。

英文摘要:

Scaling full finetuning of large foundation models strains GPU memory and training time. Parameter Efficient Fine-Tuning (PEFT) methods address this issue via adapter modules which update only a small subset of model parameters. In this work, we introduce Quantum-Inspired Compound Adapters (QuIC Adapters), a PEFT approach inspired from Hamming-weight preserving quantum circuits that can effectively finetune a model using less than 0.02\% memory footprint of the base model. QuIC adapters preserve pretrained representations by enforcing orthogonality in weight parameters, and have native deployment mechanisms on quantum computers. We test QuIC adapters by finetuning large language models like LLaMA and vision transformers on language, math, reasoning and vision benchmarks. In its first-order configuration, QuIC recovers the performance of existing orthogonal methods, while higher-order configurations enable substantial parameter compression (over 40x smaller than LoRA) for a modest performance trade-off, unlocking applications in highly resource-constrained environments. Through ablation studies, we determine that combining multiple Hamming-weight orders with orthogonality and matrix compounding are essential for performant finetuning. Our findings suggest that QuIC adapters offers a promising direction for efficient finetuning of foundation models in resource-constrained environments.

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

↑