A Comprehensive Fine-Grained Evaluation of LLMs in Data Race Detection
Yuqi GuoSiwei WeiLuxia Linxudong zhangShihao ZhuYCYan Cai
Yuqi Guo
Siwei Wei
Luxia Lin
xudong zhang
Shihao Zhu
YCYan Cai
+6
This paper introduces DRDBench, a benchmark of 1,003 pthreads-based programs containing 549 line-level annotated data races, and FineEval-Race, a framework that evaluates LLMs at the individual data race level by establishing fine-grained correspondences between model outputs and ground truth. Using three response aggregation strategies, it assesses 25 open-source LLMs, finding significant performance variation; DeepSeek-R1 and DeepSeek-V3 achieved top recall of 75.23% and 55.19%, respectively. The study also identifies two failure modes shared across models, causing up to 92% and 98% performance degradation on these models, offering actionable insights for applying LLMs to race detection.

OpenReview · September 18, 2025