Data Race Detection Using Large Language Models
Open Access
- 12 November 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 215-223
Abstract
Large language models (LLMs) are demonstrating significant promise as an alternate strategy to facilitate analyses and optimizations of high-performance computing programs, circumventing the need for resource-intensive manual tool creation. In this paper, we explore a novel LLM-based data race detection approach combining prompting engineering and fine-tuning techniques. We create a dedicated dataset named DRB-ML, which is derived from DataRaceBench, with fine-grain labels showing the presence of data race pairs and their associated variables, line numbers, and read/write information. DRB-ML is then used to evaluate representative LLMs and fine-tune open-source ones. Our experiment shows that LLMs can be a viable approach to data race detection. However, they still cannot compete with traditional data race detection tools when we need detailed information about variable pairs causing data races.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- ChatGPT for good? On opportunities and challenges of large language models for educationLearning and Individual Differences, 2023
- Large Language Models Meet NL2Code: A Survey2023
- DRLIC: Deep Reinforcement Learning for Irrigation Control2022
- DeepRace: A learning-based data race detector2021
- MB2C2020
- OCTOPUS2019
- DataRaceBench2017
- ompVerify: Polyhedral Analysis for the OpenMP Programmer2011
- RELAY2007
- LOCKSMITHACM SIGPLAN Notices, 2006