用量子启发的适配器,让大模型微调只用不到0.02%显存
QuIC: Quantum-Inspired Compound Adapters for Parameter Efficient Fine-Tuning
- 基于量子电路设计,通过正交约束保持预训练表征
- 高阶配置下参数量压缩超40倍,性能损失小
- 适合资源受限场景,如边缘设备部署
大规模基础模型全量微调会严重占用GPU显存和训练时间。参数高效微调(PEFT)方法通过仅更新少量参数的适配模块缓解该问题。本文提出量子启发的复合适配器(QuIC Adapters),受哈明权重保持量子电路启发,可在低于基础模型0.02%内存开销下实现有效微调。QuIC适配器通过强制权重参数正交性来保留预训练表示,并具备原生在量子计算机上部署的能力。我们在LLaMA等大语言模型及视觉变换器上测试了其在语言、数学、推理和视觉基准上的表现。一阶配置下性能可媲美现有正交方法,更高阶配置实现超过40倍的参数压缩(远优于LoRA),仅带来轻微性能损失,适用于极端资源受限环境。消融实验表明,结合多哈明权重阶次、正交性和矩阵复合是高性能微调的关键。结果表明,QuIC适配器为资源受限场景下的基础模型高效微调提供了有前景的方向。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。