arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.10588cs.SEcs.AI
收藏

S3LLM:利用源代码、元数据和文档通过大语言模型理解大规模科学软件

S3LLM: Large-Scale Scientific Software Understanding with LLMs using Source, Metadata, and Document

University of North Texas(北得克萨斯大学);Oak Ridge National Laboratory(橡树岭国家实验室);Argonne National Laboratory(阿贡国家实验室);Saint Louis University(圣路易斯大学)

Kareem Shaik, Dali Wang, Weijian Zheng, Qinglei Cao, Heng Fan, Peter Schwartz, Yunhe Feng

AI总结:

S3LLM利用开源LLaMA-2模型,将自然语言查询转为FQL以分析代码,并集成RAG和LangChain查询文档,实现大规模科学软件的高效交互式理解。

摘要:

大规模科学软件的理解因其多样化的代码库、庞大的代码长度和目标计算架构而面临重大挑战。生成式人工智能,特别是大语言模型(LLM)的出现,为理解此类复杂科学代码提供了新途径。本文提出了S3LLM,一个基于LLM的框架,旨在通过用户友好的界面,以交互式、对话式的方式,结合文本技术报告,实现对源代码、代码元数据和摘要信息的检查。S3LLM利用开源LLaMA-2模型,通过将自然语言查询自动转换为领域特定语言(DSL)查询来增强代码分析。具体来说,它将查询转换为特征查询语言(FQL),从而能够高效扫描和解析整个代码库。此外,S3LLM能够处理多种元数据类型,包括DOT、SQL和自定义格式。更进一步,S3LLM集成了检索增强生成(RAG)和LangChain技术,以直接查询大量文档。S3LLM展示了使用本地部署的开源LLM快速理解大规模科学计算软件的潜力,无需广泛的编码专业知识,从而使该过程更加高效和有效。S3LLM可在https://github.com/ResponsibleAILab/s3llm获取。

英文摘要:

The understanding of large-scale scientific software poses significant challenges due to its diverse codebase, extensive code length, and target computing architectures. The emergence of generative AI, specifically large language models (LLMs), provides novel pathways for understanding such complex scientific codes. This paper presents S3LLM, an LLM-based framework designed to enable the examination of source code, code metadata, and summarized information in conjunction with textual technical reports in an interactive, conversational manner through a user-friendly interface. S3LLM leverages open-source LLaMA-2 models to enhance code analysis through the automatic transformation of natural language queries into domain-specific language (DSL) queries. Specifically, it translates these queries into Feature Query Language (FQL), enabling efficient scanning and parsing of entire code repositories. In addition, S3LLM is equipped to handle diverse metadata types, including DOT, SQL, and customized formats. Furthermore, S3LLM incorporates retrieval augmented generation (RAG) and LangChain technologies to directly query extensive documents. S3LLM demonstrates the potential of using locally deployed open-source LLMs for the rapid understanding of large-scale scientific computing software, eliminating the need for extensive coding expertise, and thereby making the process more efficient and effective. S3LLM is available at https://github.com/ResponsibleAILab/s3llm.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑