← Lab /AI/ML

Hybrid-CASR raises macro-F1 to 0.667 and cuts training time by 17% in continual vulnerability detection

Hybrid-CASR improves accuracy and efficiency over window-only continual learning for LLM-based vulnerability prediction

AI/ML arXiv 27 Feb 2026 Method Prototype evidence

Published as “Enhancing Continual Learning for Software Vulnerability Prediction: Addressing Catastrophic Forgetting via Hybrid-Confidence-Aware Selective Replay for Temporal LLM Fine-Tuning”

Why it matters

Hybrid-CASR provides a more efficient continual-learning pipeline for LLM-based vulnerability detection, enabling near-real-time model updates on a single GPU with modest accuracy gains and better stability.

Summary

Hybrid-CASR achieves a Macro-F1 of 0.667, a 0.016 absolute improvement over the window-only baseline (0.651) with statistical significance (p = 0.026) and stronger backward retention (IBR@1 of 0.741). The method also reduces training time per window by about 17% compared to the baseline while using modest additional memory. The paper evaluates eight continual-learning strategies for a LoRA-fine-tuned phi-2 LLM on a CVE-linked dataset spanning 2018-2024, showing that selective replay with class balancing offers a practical accuracy-efficiency trade-off under temporal drift.

What they found 4

  1. Hybrid-CASR attains the highest mean Macro-F1 (0.667) among all methods.

    “Hybrid-CASR emerges as the top performer with mean F1 = 0.667, achieving consistent improvements across windows.”

  2. Hybrid-CASR improves over the window-only baseline by 0.016 absolute Macro-F1 with statistical significance.

    “On bi-monthly forward evaluation Hybrid-CASR achieves a Macro-F1 of 0.667, improving on the window-only baseline (0.651) by 0.016 with statistically significant gains (p = 0.026) and stronger backward retention (IBR@1 of 0.741).”

  3. Hybrid-CASR attains IBR@1 of 0.741, indicating strong backward retention.

    “Hybrid-CASR 0.741 0.726 0.716 0.710 4.2% 0.723”

  4. Hybrid-CASR delivers 0.093 F1 points per training minute, a 24% efficiency gain over the window-only baseline.

    “Hybrid-CASR delivers 0.093 F1 points per training minute versus 0.075 for window-only, a 24% efficiency gain.”

Caveats 6

  • Replay-1P achieves higher immediate backward retention (IBR@1 = 0.791) than Hybrid-CASR (0.741).
  • Hybrid-CASR uses more GPU memory (19,847 MB) than the window-only baseline (13,525 MB).
  • Macro-F1 treats classes symmetrically, which may misalign with operational settings where false negatives carry higher cost.
  • Function-level granularity may miss vulnerabilities that span multiple functions or files.
  • The CVE-to-commit linking through CVEfixes (Bhandari et al., 2021) trades precision for scale compared to manual curation (Ponta et al., 2019), introducing label noise.
  • The study focuses on a single architecture (phi-2), which constrains conclusions about model-size and architecture effects.

What’s new here 4

  • First systematic evaluation of LLM-based vulnerability detection under a long-horizon, forward-chained temporal protocol.
  • Introduces Hybrid Class-Aware Selective Replay that combines uncertainty-based sampling with explicit class balancing.
  • Provides a detailed resource-performance analysis showing a 17% training-time reduction and higher F1-per-minute.
  • Defines and reports Immediate Backward Retention metrics across multiple lags for continual learning of code models.