返回
Code Detection for Hardware Acceleration Using Large Language Models
DOI:10.1109/ACCESS.2024.3372853.png)
摘要
En 中文
Large language models (LLMs) have been massively applied to many tasks, often surpassing state-of-the-art approaches. While their effectiveness in code generation has been extensively studied (e.g., AlphaCode), their potential for code detection remains unexplored. This work presents the first analysis of code detection using LLMs. Our study examines essential kernels, including matrix multiplication, convolution, fast-fourier transform and LU factorization, implemented in C/C++. We propose both a preliminary, naive prompt and a novel prompting strategy for code detection. Results reveal that conventional prompting achieves great precision but poor accuracy (67.5%, 22.5%, 79.5% and 64% for GEMM, convolution, FFT and LU factorization, respectively) due to a high number of false positives. Our novel prompting strategy substantially reduces false positives, resulting in excellent overall accuracy (91.2%, 98%, 99.7% and 99.7%, respectively). These results pose a considerable challenge to existing state-of-the-art code detection methods.
Keyword:
Codes
Task analysis
Computational modeling
Convolution
Kernel
Hardware acceleration
Transforms
Detection algorithms
Program processors
Large language models
Code detection
compilers
heterogeneous computing
high-performance computing
large language model
期刊
IF:
3.6
论文数:
9.8W
被引数:
29.4W
机构
引用论文
So what if ChatGPT wrote it? Multidisciplinary perspectives on opportunities, challenges and implications of generative conversational AI for research, practice and policy如果ChatGPT写了呢?多学科视角的机遇,挑战和生成会话AI对研究,实践和政策的影响
Research on the Efficiency of Wireless Power Transfer System Based on Multi-Auxiliary Transmitting Coils基于多辅助发射线圈的无线电能传输系统效率研究
A survey on hardware accelerators: Taxonomy, trends, challenges, and perspectives硬件加速器调查: 分类、趋势、挑战和展望

