VeriContaminated: Assessing LLM-Driven Verilog Coding for Data Contamination
Authors:
- 26 June 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 117-123
Abstract
Large Language Models (LLMs) have revolutionized code generation, achieving exceptional results on various established benchmarking frameworks. However, concerns about data contamination—where benchmark data inadvertently leaks into pre-training or fine-tuning datasets—raise questions about the validity of these evaluations. While this issue is known, limiting the industrial adoption of LLM-driven software engineering, hardware coding has received little to no attention regarding these risks. For the first time, we analyze state-of-the-art (SOTA) evaluation frameworks for Verilog code generation (VerilogEval and RTLLM), using established methods for contamination detection (CCD and Min-K% Prob). We cover SOTA commercial and open-source LLMs (CodeGen2.5, Minitron 4b, Mistral 7b, phi-4 mini, LLaMA-{1,2,3.1}, GPT- {2,3.5,4o} , Deepseek-Coder, and CodeQwen 1.5), in baseline and fine-tuned models (RTLCoder and Verigen). Our study confirms that data contamination is a critical concern. We explore mitigations and the resulting trade-offs for code quality vs fairness (i.e., reducing contamination toward unbiased benchmarking). Codes are open-sourced at https://github.com/DfX-NYUAD/VeriContaminated.Keywords
All Related Versions
This publication has 20 references indexed in Scilit:
- Survey of Different Large Language Model Architectures: Trends, Benchmarks, and ChallengesIEEE Access, 2024
- AutoBench: Automatic Testbench Generation and Evaluation Using LLMs for HDL Design2024
- LLMs and the Future of Chip Design: Unveiling Security Risks and Building Trust2024
- AssertLLM: Generating Hardware Verification Assertions from Design Specifications via Multi-LLMs2024
- RTLCoder: Outperforming GPT-3.5 in Design RTL Generation with Our Open-Source Dataset and Lightweight Solution2024
- Discovering and exploring cases of educational source code plagiarism with DolosSoftwareX, 2024
- RTLLM: An Open-Source Benchmark for Design RTL Generation with Large Language Model2024
- Invited Paper: VerilogEval: Evaluating Large Language Models for Verilog Code Generation2023
- GPT4AIGChip: Towards Next-Generation AI Accelerator Design Automation via Large Language Models2023
- Chip-Chat: Challenges and Opportunities in Conversational Hardware Design2023