← Lab /AI/ML

Fine-tuning degrades vocabulary and knowledge of small LLMs for cybersecurity QA

Fine-tuning small 7B models consistently harms their vocabulary recognition and parametric knowledge for cybersecurity question answering

AI/ML arXiv 21 Jul 2026 Measurement Simulation evidence

Published as “Find Before You Fine-Tune: A Diagnostic Study of Small LLMs for Cybersecurity QA”

Why it matters

FiT can be used to screen small LLMs and avoid unnecessary fine-tuning, favoring a retrieval-augmented setup that is safer and more cost-effective for dynamic, low-data domains like cybersecurity.

Summary

Fine-tuning small 7B LLMs for cybersecurity QA does not uniformly help: it consistently degrades vocabulary and parametric knowledge, and instruction-focused tuning collapses knowledge scores through abstention while leaving retrieval-grounded contextualization essentially unchanged. Pre-fine-tuning FiT scores predict the direction of post-tuning change, and retrieval-augmented generation remains robust across models. Evidence comes from an empirical study of five open-weight models, but the datasets are small and results are presented as indicative rather than statistically significant.

What they found 2

  1. Both fine-tuning regimes degrade vocabulary and parametric knowledge for every model relative to its pre-trained baseline.

    “Across Table II, both fine-tuning regimes degrade vocabulary (Task 1) and parametric knowledge (Task 2) for every model relative to its pre-trained baseline.”

  2. Instruction-focused tuning inverts knowledge rankings, making the strongest pre-trained models the weakest on the MCQ task.

    “knowledge rankings invert under instruction-focused tuning (ρ = -0.60): the strongest pre-trained knowledge models (WestLake, WestSeverus) become the weakest on Task 2 (accuracy 0.08 and 0.12).”

Caveats 4

  • Task-3 correctness is remarkably stable across all models and conditions (range 0.69-0.79).
  • instruction-tuned models retain or slightly improve contextual answer correctness (Task 3, e.g., WestLake 0.74 →0.79) even as their standalone MCQ accuracy falls to near zero.
  • Datasets are modest (n = 50/100/50) and we report no significance tests, so numeric differences are indicative; in particular, the Spearman values in Table IV are computed over five models and are descriptive of direction rather than statistically significant.
  • Each regime was run once with fixed hyper-parameters and greedy decoding, so regime effects are not separated from run-to-run variance; ... fixed 4-bit quantization keeps comparisons like-for-like but may shift absolute scores; and using models whose pre-training predates the evaluation content reduces, but does not eliminate, contamination risk.

What’s new here 4

  • Provides a lightweight, pre-adaptation diagnostic (FiT) that decomposes suitability into vocabulary, knowledge, and contextualization for cybersecurity QA.
  • Analyzes how two distinct fine-tuning regimes (knowledge-focused vs instruction-focused) differently affect small LLM capabilities.
  • Shows that pre-fine-tuning scores can anticipate the direction of post-tuning changes, enabling model screening before costly adaptation.
  • Identifies an abstention-driven collapse of closed-book knowledge under instruction-focused tuning while retrieval-grounded performance stays stable.