Powered by OpenAIRE graph
Found an issue? Give us feedback
addClaim

Security Knowledge Distillation for Enhancing LLM Safety in Code Generation Authors

Authors: Sarah Mitchell; Jason Li; Daniel Thompson;

Security Knowledge Distillation for Enhancing LLM Safety in Code Generation Authors

Abstract

We propose a distillation framework that transfers secure coding expertise into a compact model trained using expert demonstrations, static-analysis labels, and secure patterns. The distilled model (7B parameters) achieves 83% security compliance, nearly matching GPT-4's 89% performance while requiring significantly less compute. Evaluated across CWE-20, CWE-78, CWE-89, the distilled model reduces injection vulnerabilities by 62% relative to baseline models. This work demonstrates that targeted distillation can teach smaller models to respect security best practices.

Related Organizations
  • BIP!
    Impact byBIP!
    selected citations
    These citations are derived from selected sources.
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    0
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Average
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Average
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Average
Powered by OpenAIRE graph
Found an issue? Give us feedback
selected citations
These citations are derived from selected sources.
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
0
Average
Average
Average
Upload OA version
Are you the author of this publication? Upload your Open Access version to Zenodo!
It’s fast and easy, just two clicks!