Dynamic Low-Rank Training with Spectral Regularization: Achieving Robustness in Compressed Representations

Steffen Schotthöfer, H. Lexie Yang, Stefan Schnake

TL;DR

This paper introduces RobustDLRT, a novel training method that combines dynamic low-rank compression with spectral regularization. This approach effectively mitigates the conflict between model compression and adversarial robustness, enabling highly compact neural networks that maintain strong performance against adversarial attacks.

What Problem Does This Paper Address?

Deploying deep neural networks on resource-constrained devices (like those in drones or sensor arrays) is challenging due to their large memory and computational footprints. While techniques like low-rank compression can reduce model size, they often come at the cost of decreased accuracy and, critically, increased vulnerability to adversarial attacks. Adversarial robustness methods, on the other hand, can sometimes degrade clean accuracy or add significant computational overhead. This paper tackles the fundamental conflict between achieving compact models and ensuring their resilience to malicious inputs.

Methods

The core of this work is the RobustDLRT (Robust Dynamic Low-Rank Training) method. It builds upon existing dynamic low-rank training (DLRT) schemes, which represent weight matrices as low-rank factorizations (W = U S V^T) and train these factors on a low-rank manifold. The key innovation is the introduction of a novel spectral regularizer that specifically targets and controls the condition number of the low-rank core matrix 'S' in each layer.

  • Dynamic Low-Rank Training (DLRT): This framework allows the rank of the low-rank factorization to adapt dynamically during training, effectively determining the optimal compression for each layer without requiring manual hyperparameter tuning. It also ensures that the bases U and V remain orthonormal, which is crucial for controlling the spectral properties.
  • Spectral Regularizer (R(S)): This new regularizer penalizes the deviation of the singular values of 'S' from being uniformly distributed, thereby controlling the condition number (κ(S)). A low condition number is theoretically linked to better adversarial robustness. The regularizer is computationally efficient, acting only on the small 'S' matrix.
  • RobustDLRT: This combines DLRT with the spectral regularizer by adding it to the loss function: L = L_original + β * R(S), where β is a regularization parameter.

Datasets

The paper evaluates its method on the following datasets:

  • UCM Dataset: A benchmark dataset for remote sensing and computer vision, consisting of high-resolution aerial RGB images categorized into land use classes.
  • Cifar10 Dataset: A standard dataset for image classification, comprising 60,000 RGB images across 10 classes.

Key Insights and Ideas

  • The "Compression vs. Robustness" Dilemma is Solvable: The paper demonstrates that it's possible to achieve both high compression and strong adversarial robustness simultaneously, challenging the notion that these goals are inherently conflicting.
  • Condition Number is Key to Robustness: By directly controlling the condition number of the low-rank core matrices, the method effectively improves the network's resilience to adversarial perturbations. This is supported by theoretical bounds derived in the paper.
  • Rank Adaptivity Enhances Efficiency: The dynamic adjustment of layer ranks means that compression is tailored to the complexity of each layer, leading to more efficient models without sacrificing performance.
  • Minimal Overhead: The proposed spectral regularizer adds negligible computational and memory overhead to the DLRT framework, making it practical for deployment.

Key Results

  • High Compression: RobustDLRT achieves compression rates of over 94% (up to 10x reduction in memory and compute) across various architectures and datasets.
  • Competitive Clean Accuracy: The compressed models maintain clean accuracy comparable to, and sometimes even exceeding, uncompressed baselines.
  • Significant Adversarial Robustness Improvement: RobustDLRT consistently outperforms non-regularized low-rank methods and often surpasses baseline adversarial accuracy under various attacks (l²-FGSM, Jitter, Mixup). For instance, on the UCM dataset with VGG16, RobustDLRT with β=0.075 achieved 78.68% accuracy against l²-FGSM (ε=0.1), compared to 72.41% for the baseline.
  • Superior to Prior Art: The method demonstrates superior adversarial validation accuracy compared to existing literature methods like CondLR and LORA, especially at higher compression ratios.

Limitations and Future Work

  • Hyperparameter Tuning for β: While the method is rank-adaptive, the regularization parameter β still needs to be tuned. The paper provides a table (Table 4) of recommended β values for different attacks and architectures, suggesting a trade-off exists.
  • Scale Invariance Hypothesis: The paper notes that the improved robustness against the Mixup attack (which involves scale invariance) is a promising observation but was not further explored. This suggests future work could delve deeper into understanding and leveraging this connection.
  • Exploration of Other Architectures and Attacks: While extensive experiments were conducted, further validation on a wider range of architectures and more sophisticated adversarial attacks could be beneficial.
  • Theoretical Bounds: The paper derives theoretical bounds on the condition number, but further exploration of the direct link between these bounds and specific adversarial attack success rates could be valuable.

Summary updated

BibTeX
@inproceedings{schotthofer2025dynamic,
  author = {Steffen Schotthöfer and H. Lexie Yang and Stefan Schnake},
  title = {{Dynamic Low-Rank Training with Spectral Regularization: Achieving Robustness in Compressed Representations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=7AwFJzgIUW},
}
Figure