← Lab /AI/ML

LoRA adapters improve cross-device malware detection accuracy by up to 25% with <1% model size increase

LoRA-based parameter sharing yields 20-25% higher accuracy on unseen attacks compared to isolated fine-tuning

AI/ML arXiv 12 Feb 2026 Method Prototype evidence

Published as “LoRA-based Parameter-Efficient LLMs for Continuous Learning in Edge-based Malware Detection”

Why it matters

LoRA makes continuous, on-device malware detection feasible without sacrificing accuracy, enabling scalable edge security deployments.

Summary

LoRA adapters dramatically improve detection performance, raising F1-scores from the low 0.6s to near 1.0 (e.g., DistilBERT from 0.834 to 0.989 locally and to 0.999 globally) while adding less than 1% model size. The evidence comes from experiments on two public IoT malware datasets, comparing LoRA-enhanced fine-tuning against full model fine-tuning. The paper does not evaluate runtime or energy impact, focusing only on detection metrics.

What they found 6

  1. Local LoRA fine-tuning raises DistilBERT F1 from 0.834 to 0.989

    “DistilBERT rising from 0.834to 0.989”

  2. Local LoRA fine-tuning raises DistilGPT-2 F1 from 0.622 to 0.941

    “DistilGPT-2 from 0.622 to 0.941”

  3. Global LoRA sharing raises DistilBERT F1 from 0.864 to 0.999

    “DistilBERT, for example, increased its F1-score from 0.864 at Round 2 to 0.999 at Round 3”

  4. Global LoRA sharing raises DistilGPT-2 F1 from 0.641 to 0.957

    “DistilGPT-2 improved from 0.641 to 0.957”

  5. Global LoRA sharing raises TinyT5 F1 from 0.595 to 0.827

    “TinyT5 from 0.595 to 0.827”

  6. LoRA adapters add only ~1 MB of parameters per model

    “overhead of approximately 1.79 MB for DistilBERT, 1.77 MB for DistilGPT-2, and 0.59 MB for TinyT5”

Caveats 3

  • In designing the evaluation, we intentionally exclude the evaluation of runtime overhead and energy consumption, as those aspects were already extensively analyzed in our prior work [15]
  • We performed the evaluation test only on a fewshot learning setup
  • The experiments were conducted on two public datasets, Edge-IIoTset and TON-IoT

What’s new here 4

  • Applies LoRA parameter-efficient fine-tuning to enable continuous learning on edge devices.
  • Demonstrates both local incremental adaptation and global knowledge sharing across devices.
  • Quantifies the memory overhead of LoRA adapters as under 2 MB, <1% of model size.
  • Shows cross-dataset transfer improvements when LoRA adapters are exchanged.