Constraint-Driven Warm-Freeze for Efficient Transfer Learning in Photovoltaic Systems
Organizations: Mohamed bin Zayed University of Artificial Intelligence, Abu Dhabi, United Arab Emirates
Abstract
Detecting cyberattacks in photovoltaic (PV) monitoring and MPPT control signals requires models that are robust to bias, drift, and transient spikes, yet lightweight enough for resource-constrained edge controllers. While deep learning outperforms traditional physics-based diagnostics and handcrafted features, standard fine-tuning is computationally prohibitive for edge devices. Furthermore, existing Parameter-Efficient Fine-Tuning (PEFT) methods typically apply uniform adaptation or rely on expensive architectural searches, lacking the flexibility to adhere to strict hardware budgets. To bridge this gap, we propose Constraint-Driven Warm-Freeze (CDWF), a budget-aware adaptation framework. CDWF leverages a brief warm-start phase to quantify gradient-based block importance, then solves a constrained optimization problem to dynamically allocate full trainability to high-impact blocks while efficiently adapting the remaining blocks via Low-Rank Adaptation (LoRA). We evaluate CDWF on standard vision benchmarks (CIFAR-10/100) and a novel PV cyberattack dataset, transferring from bias pretraining to drift and spike detection. The experiments demonstrate that CDWF retains 90 to 99% of full fine-tuning performance while reducing trainable parameters by up to 120x. These results establish CDWF as an effective, importance-guided solution for reliable transfer learning under tight edge constraints.
Figures & tables
| Dataset | Method | Test Acc(%) | Test AUC(%) | Retention(%) | Param Count | Param Reduction |
|---|---|---|---|---|---|---|
| CIFAR-10 | Full-FT | 88.28 | – | 100.0 | 23,528,522 | 1.0 |
| LoRA (rank=8) | 81.29 | – | 92.08 | 457,738 | 52.36 | |
| CDWF (rank=8) | 85.29 | – | 96.61 | 401,994 | 58.5 | |
| CIFAR-100 | Full-FT | 64.99 | – | 100.0 | 23,528,522 | 1.0 |
| LoRA (rank=16) | 49.32 | – | 75.89 | 809,060 | 29.1 | |
| CDWF (rank=16) | 59.57 | – | 91.66 | 818,596 | 28.7 |
| Dataset | Test Acc (%) | Test AUC (%) | Retention (%) | Trainable (%) | Chosen | |
|---|---|---|---|---|---|---|
| CIFAR-10 | 0.02 | 85.47 | – | 96.82 | 1.07 | (1,4) |
| 0.05 | 86.13 | – | 97.56 | 2.65 | (2,4) | |
| 0.10 | 87.14 | – | 98.71 | 9.0 | (3,4) | |
| CIFAR-100 | 0.02 | 59.53 | – | 91.60 | 1.84 | (1,4) |
| 0.05 | 59.53 | – | 91.60 | 1.84 | (1,4) | |
| 0.10 | 61.82 | – | 95.12 | 9.71 | (3,4) |
| Method | Rank | Test Acc (%) | Retention (%) | Trainable (%) | Pred. Error (%) | Architecture |
|---|---|---|---|---|---|---|
| Full-FT | – | 88.28 | 100.0 | 100.0 | – | All trainable |
| LoRA-10 | 1 | 76.11 | 86.21 | 0.32 | – | All LoRA-r1 |
| LoRA-10 | 2 | 78.34 | 88.74 | 0.55 | – | All LoRA-r2 |
| LoRA-10 | 4 | 79.89 | 90.50 | 1.01 | – | All LoRA-r4 |
| LoRA-10 | 8 | 81.29 | 92.08 | 1.91 | – | All LoRA-r8 |
| LoRA-10 | 16 | 81.23 | 92.01 | 3.67 | – | All LoRA-r16 |
| Warm-start (epochs) | Test Acc. (%) | Retention (%) | Time (s) |
|---|---|---|---|
| 1 | 51.97 | 79.97 | 103.50 |
| 2 | 56.62 | 87.12 | 103.77 |
| 3 | 59.60 | 91.71 | 105.27 |
| 4 | 61.64 | 94.84 | 109.34 |
| Method | ResNet-18 | ResNet-101 | ViT-B/16 | |||
|---|---|---|---|---|---|---|
| Acc (%) | Params Red. | Acc (%) | Params Red. | Acc (%) | Params Red. | |
| FL (Full Fine-tuning) | 85.63 | 1.0× | 86.94 | 1.0× | 96.33 | 1.00× |
| LoRA | 77.43 | 21.14× | 81.74 | 65.12× | 97.92 | 860.28× |
| CDWF ( =0.05) | 83.19 | 24.34× | 84.79 | 53.03× | 96.81 | 859.35× |
| Method | Test Acc (%) | Retention (%) | Param Cnt | Time (min) |
|---|---|---|---|---|
| Full Fine-Tuning | 89.01 | 100.0 | 85,875,556 | 39.46 |
| LoRA (r=8) | 89.93 | 100.03 | 1,327,104 | 44.52 |
| DoRA (r=8) | 89.97 | 101.08 | 1,410,048 | 81.02 |
| AdaLoRA ( ) | 90.16 | 101.29 | 1,991,520 | 54.00 |
Fine-Tuning
Fine-tuning adapts pretrained models to new tasks, domains, and behaviors by updating some or all of their parameters.
See all 250 papers