Skip to content
Search
paperApril 2026Unreviewed

SafeTune: Mitigating Data Poisoning in LLM Fine-Tuning for RTL Code Generation

Mahshid Rezakhani, Nowfel Mashnoor, Kimia Azar, Hadi Kamali

Abstract

As large language models (LLMs) are increasingly fine-tuned for hardware tasks like RTL code generation, the scarcity of high-quality datasets often leads to the use of rapidly assembled or generated training data. These datasets frequently lack security verification and are highly susceptible to data poisoning attacks. Such poisoning can cause models to generate syntactically valid but insecure hardware modules that bypass standard functionality checks. To address this, we present SafeTune, a f

Categories

Framework mappings

OWASP Top 10 for LLM Applications
  • LLM04Data and Model Poisoning
MITRE ATLAS
  • AML.T0020Poison Training Data

Suggested from the entry's categories.

Cite

@misc{rezakhani2026safetune,
  title = {{SafeTune: Mitigating Data Poisoning in LLM Fine-Tuning for RTL Code Generation}},
  author = {Mahshid Rezakhani and Nowfel Mashnoor and Kimia Azar and Hadi Kamali},
  year = {2026},
  month = apr,
  eprint = {2604.27238},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.27238}
}