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

AutoLoRa:一种无参数的自动化鲁棒微调框架

AutoLoRa: A Parameter-Free Automated Robust Fine-Tuning Framework

National University of Singapore(新加坡国立大学);University of Auckland(奥克兰大学);RIKEN Center for Advanced Intelligence Project (AIP)(理化学研究所高级智能项目中心)

Xilie Xu, Jingfeng Zhang, Mohan Kankanhalli

AI总结:

针对现有鲁棒微调中梯度方向发散、对超参数敏感的问题,提出基于LoRa分支解耦的AutoLoRa框架,搭配自动学习率与损失标度启发式策略,无需调参即可将预训练特征提取器转为下游任务的对抗鲁棒模型,取得SOTA结果。

摘要:

鲁棒微调(Robust Fine-Tuning, RFT)是在下游应用中获取对抗鲁棒性的低成本策略,无需大量计算资源,也无需收集海量数据。本文揭示了现有RFT存在的一个问题:通过特征提取器(feature extractor, FE)同时优化对抗目标和自然目标会产生方向差异极大的梯度。这种梯度差异会导致优化过程不稳定,进而阻碍对抗鲁棒性的实现,还会让RFT对超参数高度敏感。为缓解该问题,我们提出了一个低秩(LoRa)分支,将RFT解耦为两个独立部分:通过LoRa分支优化自然目标,通过FE优化对抗目标。此外,我们还引入了启发式策略,用于自动调度学习率以及损失项的标量系数。大量实证评估表明,我们提出的经LoRa分支解耦的自动化RFT方法(AutoLoRa)在一系列下游任务上取得了全新的最优(state-of-the-art)结果。AutoLoRa具备极高的实用价值,它无需搜索超参数,就能将预训练FE自动转换为适用于下游任务的对抗鲁棒模型。

英文摘要:

Robust Fine-Tuning (RFT) is a low-cost strategy to obtain adversarial robustness in downstream applications, without requiring a lot of computational resources and collecting significant amounts of data. This paper uncovers an issue with the existing RFT, where optimizing both adversarial and natural objectives through the feature extractor (FE) yields significantly divergent gradient directions. This divergence introduces instability in the optimization process, thereby hindering the attainment of adversarial robustness and rendering RFT highly sensitive to hyperparameters. To mitigate this issue, we propose a low-rank (LoRa) branch that disentangles RFT into two distinct components: optimizing natural objectives via the LoRa branch and adversarial objectives via the FE. Besides, we introduce heuristic strategies for automating the scheduling of the learning rate and the scalars of loss terms. Extensive empirical evaluations demonstrate that our proposed automated RFT disentangled via the LoRa branch (AutoLoRa) achieves new state-of-the-art results across a range of downstream tasks. AutoLoRa holds significant practical utility, as it automatically converts a pre-trained FE into an adversarially robust model for downstream tasks without the need for searching hyperparameters.

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

↑