Code Detection for Hardware Acceleration Using Large Language Models
Not on the map. Why?
Abstract (arXiv)
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, and fast-fourier transform, 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 (68.8%, 22.3%, and 79.2% for GEMM, convolution, and FFT, respectively) due to a high number of false positives. Our novel prompting strategy substantially reduces false positives, resulting in excellent overall accuracy (91.1%, 97.9%, and 99.7%, respectively). These results pose a considerable challenge to existing state-of-the-art code detection methods.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 26 of its 50 references that are in the map. First posted on arXiv 19 Jul 2023.
Builds on
26 of 50 references.
References · 26
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
14 more
- 2022Robust Speech Recognition via Large-Scale Weak Supervisioncited by 4,057
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2023A Survey of Large Language Modelscited by 2,576
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,375
- 2022Survey of Hallucination in Natural Language Generationcited by 2,075
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 619
- 2023Augmented Language Models: a Surveycited by 403
- 2014Caffe: Convolutional Architecture for Fast Feature Embeddingcited by 288
- 2023ChatGPT: Jack of all trades, master of nonecited by 204
- 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 110
- 2023Matching Linear Algebra and Tensor Code to Specialized Hardware Acceleratorscited by 3
Built on by
Not cited yet.