Skip to main content
QUICK REVIEW

[Paper Review] AutoLoRa: A Parameter-Free Automated Robust Fine-Tuning Framework

Xilie Xu, Jingfeng Zhang|arXiv (Cornell University)|Oct 3, 2023
Adversarial Robustness in Machine LearningComputer Science3 citations
TL;DR

AutoLoRa proposes a parameter-free, automated robust fine-tuning framework that disentangles adversarial and natural objective optimization via a low-rank (LoRa) branch, stabilizing training by preventing conflicting gradient directions in the feature extractor. It achieves state-of-the-art adversarial robustness across downstream tasks without hyperparameter tuning, using heuristic scheduling for learning rate and loss scalars.

ABSTRACT

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.

Motivation & Objective

  • To address the instability in robust fine-tuning (RFT) caused by divergent gradient directions when optimizing both adversarial and natural objectives through the feature extractor (FE).
  • To reduce RFT's sensitivity to hyperparameters by decoupling the optimization of adversarial and natural objectives via a low-rank (LoRa) branch.
  • To automate the scheduling of learning rate and loss scalars ($\lambda_1$, $\lambda_2$) using heuristic strategies inspired by adversarial attack convergence and soft label quality.
  • To achieve state-of-the-art adversarial robustness in downstream tasks without manual hyperparameter search.

Proposed method

  • Disentangle RFT by routing adversarial data through the feature extractor (FE) and natural data through a low-rank (LoRa) branch, ensuring the FE only optimizes adversarial objectives.
  • Use a Kullback-Leibler (KL) loss to transfer knowledge from the LoRa branch to the FE, preserving generalization by aligning adversarial logits with natural soft labels.
  • Automatically schedule the learning rate using a step size scheduler adapted from AutoAttack (Croce & Hein, 2020), improving convergence stability.
  • Set $\lambda_1$ (natural objective weight) to be inversely proportional to standard accuracy to accelerate LoRa branch learning.
  • Set $\lambda_2$ (adversarial objective weight) to be positively proportional to standard accuracy to control confidence in LoRa soft labels.
  • Apply a sharpening hyperparameter $\alpha$ to soft labels, with $\alpha=1.0$ found optimal for robustness.

Experimental results

Research questions

  • RQ1Does decoupling adversarial and natural objective optimization via a LoRa branch reduce gradient divergence and improve training stability in robust fine-tuning?
  • RQ2Can heuristic, automated scheduling of learning rate and loss scalars achieve performance comparable to tuned hyperparameters in RFT?
  • RQ3How does the choice of LoRa rank affect model performance and parameter efficiency?
  • RQ4What is the impact of the adversarial budget $\epsilon_{\mathrm{pt}}$ during pre-training on downstream robustness?
  • RQ5Does the sharpening hyperparameter $\alpha$ significantly affect the trade-off between standard and robust accuracy?

Key findings

  • AutoLoRa achieves state-of-the-art robust test accuracy of 33.31% on CIFAR-100 and 27.63% on DTD-57 under PGD-10 attack, outperforming vanilla RFT and TWINS.
  • The automated learning rate scheduler in AutoLoRa achieves comparable performance to tuned hyperparameters, with only a 0.16% drop in CIFAR-10 accuracy and negligible loss in robustness.
  • Using $\alpha=1.0$ yields the best robust accuracy, while higher $\alpha$ values (e.g., 5.0) degrade robustness, indicating optimal sharpening is critical.
  • Larger pre-training adversarial budgets ($\epsilon_{\mathrm{pt}} = 8/255$) consistently improve downstream robustness, with AutoLoRa achieving 62.82% robust accuracy on CIFAR-100.
  • The LoRa branch with rank $r_{\mathrm{nat}}=8$ achieves 4.87% of the original model’s parameters while maintaining 54.27% robust accuracy on CIFAR-10, demonstrating high efficiency.
  • The gradient similarity between natural and adversarial objectives drops significantly in vanilla RFT and TWINS (e.g., ~0.2), but AutoLoRa maintains stable optimization by decoupling the objectives.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.