arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2311.16267cs.CLcs.SE
收藏

面向大语言模型工程代码生成的数据嵌入新型预处理技术

Novel Preprocessing Technique for Data Embedding in Engineering Code Generation Using Large Language Model

Ansys(安西斯公司)

Yu-Chen Lin, Akhilesh Kumar, Norman Chang, Wenliang Zhang, Muhammad Zakir, Rucha Apte, Haiyang He, Chao Wang, Jyh-Shing Roger Jang

AI总结:

该研究提出数据拆分修复、可信度评估、IKEC提示等四项预处理技术,结合RAG方法,在RedHawk-SC案例的MapReduce代码生成任务中取得73.33%的正确行占比。

摘要:

我们提出四项核心贡献以提升大语言模型(LLM)生成领域特定代码的性能:其一,采用基于LLM的数据拆分与数据修复技术,改善嵌入空间的语义表征;其二,引入由LLM驱动的修复可信度密度链(CoDRC)以及自适应文本修复(ATR)算法,用于评估数据修复的可靠性;其三,提出隐式知识扩展与沉思(IKEC)提示技术;其四,借助LLM有效重构现有脚本,生成全新的高质量脚本。我们以工程仿真软件RedHawk-SC为案例研究,验证了所提数据预处理方法在脚本扩展与分类方面的有效性。这些技术与IKEC结合后,可增强检索增强生成(RAG)方法检索更相关信息的能力,最终在MapReduce应用的代码生成问题上实现了73.33%的“正确行占比”。

英文摘要:

We present four main contributions to enhance the performance of Large Language Models (LLMs) in generating domain-specific code: (i) utilizing LLM-based data splitting and data renovation techniques to improve the semantic representation of embeddings' space; (ii) introducing the Chain of Density for Renovation Credibility (CoDRC), driven by LLMs, and the Adaptive Text Renovation (ATR) algorithm for assessing data renovation reliability; (iii) developing the Implicit Knowledge Expansion and Contemplation (IKEC) Prompt technique; and (iv) effectively refactoring existing scripts to generate new and high-quality scripts with LLMs. By using engineering simulation software RedHawk-SC as a case study, we demonstrate the effectiveness of our data pre-processing method for expanding and categorizing scripts. When combined with IKEC, these techniques enhance the Retrieval-Augmented Generation (RAG) method in retrieving more relevant information, ultimately achieving a 73.33% "Percentage of Correct Lines" for code generation problems in MapReduce applications.

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

↑