arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.17137cs.LGcs.CV
收藏

PACE:将参数高效微调的泛化能力与一致性正则化相结合

PACE: Marrying generalization in PArameter-efficient fine-tuning with Consistency rEgularization

The Australian National University(澳大利亚国立大学);Data61 CSIRO;Australian Institute for Machine Learning, The University of Adelaide(澳大利亚机器学习研究所,阿德莱德大学)

Yao Ni, Shan Zhang, Piotr Koniusz

AI总结:

PACE通过结合参数高效微调与一致性正则化,提升模型泛化能力与知识保留,优于现有PEFT方法。

摘要:

参数高效微调(PEFT)有效地将预训练的Transformer模型适应到下游任务中。然而,任务性能的优化往往以细调模型的泛化能力为代价。为了解决这个问题,我们理论上将训练过程中较小的权重梯度范数和较大的数据集与模型泛化能力的提升联系起来。受此联系的启发,我们提出通过减少梯度范数来增强泛化能力,并对齐微调后的模型与预训练模型以保留大规模预训练数据的知识。然而,简单的对齐并不能保证梯度减少,甚至可能引起梯度爆炸,使梯度管理变得更加复杂。为了解决这一问题,我们提出了PACE,将参数高效微调的泛化能力与一致性正则化相结合。我们通过乘性噪声扰动从适配器学习到的特征,并确保微调后的模型在不同扰动下对同一样本保持一致。理论分析显示,PACE不仅隐式地正则化梯度以增强泛化能力,还隐式地对齐微调后的模型与预训练模型以保留知识。实验证据支持我们的理论。PACE在视觉适应任务(VTAB-1k、FGVC、少样本学习、领域适应)中超越了现有的PEFT方法,展示了其在资源高效微调方面的潜力。它还改进了LoRA在文本分类(GLUE)和数学推理(GSM-8K)方面的能力。代码可在https://github.com/MaxwellYaoNi/PACE获取。

英文摘要:

Parameter-Efficient Fine-Tuning (PEFT) effectively adapts pre-trained transformers to downstream tasks. However, the optimization of tasks performance often comes at the cost of generalizability in fine-tuned models. To address this issue, we theoretically connect smaller weight gradient norms during training and larger datasets to the improvements in model generalization. Motivated by this connection, we propose reducing gradient norms for enhanced generalization and aligning fine-tuned model with the pre-trained counterpart to retain knowledge from large-scale pre-training data. Yet, naive alignment does not guarantee gradient reduction and can potentially cause gradient explosion, complicating efforts to manage gradients. To address such an issue, we propose PACE, marrying generalization of PArameter-efficient fine-tuning with Consistency rEgularization. We perturb features learned from the adapter with the multiplicative noise and ensure the fine-tuned model remains consistent for same sample under different perturbations. Theoretical analysis shows that PACE not only implicitly regularizes gradients for enhanced generalization, but also implicitly aligns the fine-tuned and pre-trained models to retain knowledge. Experimental evidence supports our theories. PACE surpasses existing PEFT methods in visual adaptation tasks (VTAB-1k, FGVC, few-shot learning, domain adaptation) showcasing its potential for resource-efficient fine-tuning. It also improves LoRA in text classification (GLUE) and mathematical reasoning (GSM-8K). The code is available at https://github.com/MaxwellYaoNi/PACE

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

↑