Por favor, use este identificador para citar o enlazar este ítem: https://doi.org/10.1109/ACCESS.2024.3372853

Título: Code Detection for Hardware Acceleration Using Large Language Models
Fecha de publicación: 1-mar-2024
Cita bibliográfica: IEEE Access. Volumen 12, 2024
ISSN: Electronic: 2169-3536
Palabras clave: Code detection
Compilers
Heterogeneous computing
High-performance computing
Large language model
Resumen: 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.
Autor/es principal/es: Martínez Sánchez, Pablo Antonio
Bernabé García, Gregorio
García Carrasco, José Manuel
Facultad/Departamentos/Servicios: Facultades, Departamentos, Servicios y Escuelas::Departamentos de la UMU::Ingeniería y Tecnología de Computadores
URI: http://hdl.handle.net/10201/140462
DOI: https://doi.org/10.1109/ACCESS.2024.3372853
Tipo de documento: info:eu-repo/semantics/article
Número páginas / Extensión: 11
Derechos: info:eu-repo/semantics/openAccess
Descripción: ©2024. This manuscript version is made available under the CC-BY-NC-ND 4.0 license http://creativecommons.org/licenses/by-nc-nd/4.0/ This document is the published, version of a Published Work that appeared in final form in IEEE Access. To access the final edited and published work see https://doi.org/10.1109/ACCESS.2024.3372853
Aparece en las colecciones:Artículos: Ingeniería y Tecnología de Computadores

Ficheros en este ítem:
Fichero Descripción TamañoFormato 
IEEE24.pdf887,05 kBAdobe PDFVista previa
Visualizar/Abrir


Este ítem está sujeto a una licencia Creative Commons Licencia Creative Commons Creative Commons