The Emergence of Large Language Models in Static Analysis: A First Look through Micro-Benchmarks

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Venkatesh, Ashwin Prasad Shivarpatna, Sabu, Samkutty, Mir, Amir M., Reis, Sofia, Bodden, Eric
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914693128388608
author Venkatesh, Ashwin Prasad Shivarpatna
Sabu, Samkutty
Mir, Amir M.
Reis, Sofia
Bodden, Eric
author_facet Venkatesh, Ashwin Prasad Shivarpatna
Sabu, Samkutty
Mir, Amir M.
Reis, Sofia
Bodden, Eric
contents The application of Large Language Models (LLMs) in software engineering, particularly in static analysis tasks, represents a paradigm shift in the field. In this paper, we investigate the role that current LLMs can play in improving callgraph analysis and type inference for Python programs. Using the PyCG, HeaderGen, and TypeEvalPy micro-benchmarks, we evaluate 26 LLMs, including OpenAI's GPT series and open-source models such as LLaMA. Our study reveals that LLMs show promising results in type inference, demonstrating higher accuracy than traditional methods, yet they exhibit limitations in callgraph analysis. This contrast emphasizes the need for specialized fine-tuning of LLMs to better suit specific static analysis tasks. Our findings provide a foundation for further research towards integrating LLMs for static analysis tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2402_17679
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle The Emergence of Large Language Models in Static Analysis: A First Look through Micro-Benchmarks
Venkatesh, Ashwin Prasad Shivarpatna
Sabu, Samkutty
Mir, Amir M.
Reis, Sofia
Bodden, Eric
Software Engineering
The application of Large Language Models (LLMs) in software engineering, particularly in static analysis tasks, represents a paradigm shift in the field. In this paper, we investigate the role that current LLMs can play in improving callgraph analysis and type inference for Python programs. Using the PyCG, HeaderGen, and TypeEvalPy micro-benchmarks, we evaluate 26 LLMs, including OpenAI's GPT series and open-source models such as LLaMA. Our study reveals that LLMs show promising results in type inference, demonstrating higher accuracy than traditional methods, yet they exhibit limitations in callgraph analysis. This contrast emphasizes the need for specialized fine-tuning of LLMs to better suit specific static analysis tasks. Our findings provide a foundation for further research towards integrating LLMs for static analysis tasks.
title The Emergence of Large Language Models in Static Analysis: A First Look through Micro-Benchmarks
topic Software Engineering
url https://arxiv.org/abs/2402.17679