arXiv:2610.39455cs.LGOct 2026

Manuscript Offprint

arXiv:2610.39455

Sparse Fine-Tuning for Parameter-Efficient Adversarial Training

Zhaoxin Wang, Zihang Ding, Handing Wang

Abstract

Deep neural networks achieve strong performance across many tasks but remain vulnerable to adversarial perturbations. Adversarial training (AT) is one of the most effective defenses, yet it suffers from high memory cost on large models and the persistent clean-robust accuracy trade-off. Recent work introduces parameter-efficient fine-tuning, such as LoRA, into AT, but this constraint induces a notable robustness gap relative to full-parameter AT. In this work, we revisit parameter-efficient adversarial fine-tuning from a parameter space perspective. Through gradient analysis, we find that adversarial optimization is highly concentrated on a small subset of parameters, which we call Robustness-Critical Parameters (RCPs), suggesting that robustness is encoded in a sparse subspace. Building on this observation, we propose Sparse Adversarial Fine-Tuning (SAFT), which identifies RCPs via adversarial gradient saliency and performs AT by updating only these parameters while freezing the rest. Across architectures and datasets, SAFT outperforms LoRA-based methods in both clean and robust accuracy with fewer trainable parameters, and approaches or surpasses full parameter AT in robustness while updating only about 5% of parameters.

1 Introduction

Deep learning has achieved excellent performance across a wide range of tasks [26], such as image classification [16], semantic segmentation [14], and object detection [23]. However, deep learning models are vulnerable to adversarial attacks, in which imperceptible perturbations added to the input can lead to wrong predictions [35]. To improve the model's robustness against these attacks, one of the most effective defenses is adversarial training (AT) [30]. AT can be formulated as a bi-level optimization problem, where the inner maximization generates adversarial perturbations, typically using a multi-step procedure called projected gradient descent (PGD)[30], and the outer minimization optimizes the model parameters on the perturbed data.

Although AT significantly improves the robustness of the deep learning models, AT suffers from two longstanding issues. First, the bi-level optimization in AT requires multiple forward and backward passes per training step to generate adversarial perturbations, leading to substantially higher memory and time costs than standard training. Second, as adversarial examples and clean examples can be viewed as samples from two different distributions, AT induces a clean-robust accuracy trade-off that models trained to be robust often suffer a notable accuracy degradation on benign samples.

∗^{*}Corresponding author. Email: wangzhaoxin@stu.xidian.edu.cn, hdwang@xidian.edu.cn.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

To reduce the computational overhead of AT, one line accelerates the inner perturbation generation process [45, 34, 40, 49]. FastAT [43] replaces multi-step PGD with single-step FGSM, but it suffers from catastrophic overfitting, which subsequent studies seek to mitigate [1, 48, 22, 41]. While these methods reduce training time, they update all model parameters and leave the memory bottleneck unaddressed. To reduce memory cost on large transformer-based models, recent work introduces parameter-efficient fine-tuning (PEFT) into AT. LoFT [11], LNLoRA [44], and AdvLoRA [21] all build on LoRA [18] to limit trainable parameters to a low-rank subspace. However, LoRA-based PEFT-AT exhibits a persistent robustness gap relative to full-parameter AT [19, 5], suggesting that the low-rank constraint may be misaligned with the optimization directions needed for robustness.

Unlike these efficiency methods, another line of work targets the trade-off problems [46, 39, 42]. TRADES [46] reformulates the AT objective to balance clean and robust losses through a tunable regularizer. MART [38] reweights misclassified examples to better handle hard cases. Carmon et al. [4] leverage additional unlabeled data to push the trade-off frontier outward. While these methods improve the trade-off frontier, they all operate at the loss or data level and implicitly treat the trade-off as a property shared uniformly across all parameters. Whether the trade-off has structure in parameter space, and whether it can be mitigated by acting on that structure, remains largely unexplored.

In this work, we revisit AT from a parameter-space perspective and ask whether the two above issues share a common origin. Through gradient analysis, we observe that adversarial optimization is concentrated on a small subset of parameters. A small fraction of parameters, about 5%, carry the majority of the cumulative gradient mass, while over 90% remain near zero throughout training. These observations suggest that robustness is not uniformly distributed across the network but is encoded in a sparse subset of parameters, which we refer to as Robustness Critical Parameters (RCPs).

This sparsity has two important implications. From an efficiency perspective, full-parameter AT is over-parameterized for robustness, and updating only the RCPs should suffice to recover most of the robustness gain. From a trade-off perspective, if the adversarial signal lives in a sparse subspace of parameters, restricting updates to that subspace leaves all remaining pretrained weights unchanged. The two longstanding issues of AT may therefore be approached jointly, not by modifying the loss or expanding the data, but by acting on the parameter-space structure of robustness itself.

Building on this, we propose Sparse Adversarial Fine-Tuning (SAFT), a parameter-efficient adversarial fine-tuning framework that identifies RCPs via adversarial gradient saliency and performs adversarial fine-tuning by updating only these parameters while freezing the rest. The identification is performed once before fine-tuning and requires no additional learnable importance scores. SAFT is orthogonal to existing AT methods and can be easily integrated with different AT objectives. Our contribution can be summarised as:

  • We identify a sparse parameter-space structure underlying adversarial robustness, where adversarial optimization is concentrated on a small subset of parameters, which we call RCPs. This concentration holds across datasets and on a convolutional backbone. The RCPs are highly consistent across different attack types, indicating that they reflect an intrinsic property of the model rather than an artifact of any specific attack.
  • We propose SAFT, a sparse parameter-efficient adversarial fine-tuning framework that updates only the RCPs while freezing the rest of the model. By confining adversarial updates to the RCPs, SAFT leaves the remaining pretrained weights unchanged and directs robustness gains only to where they are needed. It reduces optimizer-state, persistent-gradient and peak training memory relative to full-parameter AT.
  • Across architectures and datasets, SAFT outperforms LoRA-based adversarial fine-tuning and approaches or surpasses full-parameter adversarial fine-tuning in robust accuracy while updating only about 5% of parameters. The localization of robustness in the RCPs explains why SAFT improves the clean-robust trade-off frontier, offering a new parameter-space perspective. Control experiments show that RCPs are robustness-specific rather than generally important parameters.

References (47)