一种面向SKILL代码自动补全的机器学习方法
A Machine Learning Approach Towards SKILL Code Autocompletion
AI总结:
本文首次将transformer应用于SKILL代码自动补全,提出数据高效的数据集构建与T5微调方法,在人工评判和BLEU分数上优于基线,但极小数据量仍限制可靠补全。
摘要:
随着摩尔定律持续提升电子系统的复杂性,电子设计自动化(EDA)必须不断进步以满足全球需求。EDA技术的一个重要示例是SKILL,这是一种用于定制和扩展EDA软件的脚本语言。近年来,采用transformer架构的代码生成模型在学术环境中取得了令人瞩目的成果,甚至已被用于商业开发者工具以提高开发者生产力。据我们所知,本研究首次将transformer应用于SKILL代码自动补全,以提升硬件设计工程师的生产力。在本研究中,我们提出并实验验证了一种新颖的、数据高效的SKILL代码生成方法。更具体地说,我们提出了一种新颖的方法,用于:(i) 创建包含无标签和有标签数据的高质量SKILL数据集;(ii) 一种训练策略,将在通用编程语言代码上预训练的T5模型,通过无监督和监督学习在我们定制的SKILL数据集上进行微调;(iii) 评估合成的SKILL代码。我们表明,使用所提方法训练的模型在人工评判分数和BLEU分数方面均优于基线模型。我们面临的一个主要挑战是可用于训练transformer模型生成SKILL代码的可用SKILL代码数据量极其有限。尽管我们验证了改进效果,但可供我们使用的极小数据集仍不足以训练出一个能够可靠地自动补全SKILL代码的模型。我们讨论了这一限制以及其他限制,以及未来可以解决这些限制的工作。
英文摘要:
As Moore's Law continues to increase the complexity of electronic systems, Electronic Design Automation (EDA) must advance to meet global demand. An important example of an EDA technology is SKILL, a scripting language used to customize and extend EDA software. Recently, code generation models using the transformer architecture have achieved impressive results in academic settings and have even been used in commercial developer tools to improve developer productivity. To the best of our knowledge, this study is the first to apply transformers to SKILL code autocompletion towards improving the productivity of hardware design engineers. In this study, a novel, data-efficient methodology for generating SKILL code is proposed and experimentally validated. More specifically, we propose a novel methodology for (i) creating a high-quality SKILL dataset with both unlabeled and labeled data, (ii) a training strategy where T5 models pre-trained on general programming language code are fine-tuned on our custom SKILL dataset using unsupervised and supervised learning, and (iii) evaluating synthesized SKILL code. We show that models trained using the proposed methodology outperform baselines in terms of human-judgment score and BLEU score. A major challenge faced was the extremely small amount of available SKILL code data that can be used to train a transformer model to generate SKILL code. Despite our validated improvements, the extremely small dataset available to us was still not enough to train a model that can reliably autocomplete SKILL code. We discuss this and other limitations as well as future work that could address these limitations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。