Tadashi:实现具备正确性保证的基于AI的自动化代码生成
Tadashi: Enabling AI-Based Automated Code Generation With Guaranteed Correctness
AI总结:
本文提出端到端系统Tadashi,利用多面体模型支持基于ML的代码生成数据集整理,能应用、验证和评估候选变换,并正式证明其能保证生成变换的合法性,具有低运行时开销和广泛适用性。
摘要:
自动生成代码的框架和领域特定语言传统上依赖人类专家来实现确保代码变换合法性的严格方法。最近,机器学习(ML)在生成针对特定硬件目标优化的代码方面获得了关注。然而,ML方法——尤其是黑盒神经网络——无法保证其生成的变换的正确性或合法性。为了解决这一差距,我们引入了Tadashi,这是一个利用多面体模型来支持研究人员为基于ML的代码生成整理关键数据集的端到端系统。Tadashi提供了一个端到端系统,能够以可靠性和实用性在多面体调度上应用、验证和评估候选变换。我们正式证明了Tadashi能保证生成变换的合法性,展示了其低运行时开销,并展示了其广泛的适用性。Tadashi可在https://github.com/vatai/tadashi/获取。
英文摘要:
Frameworks and domain-specific languages for auto-generating code have traditionally depended on human experts to implement rigorous methods ensuring the legality of code transformations. Recently, machine learning (ML) has gained traction for generating code optimized for specific hardware targets. However, ML approaches-particularly black-box neural networks-offer no guarantees on the correctness or legality of the transformations they produce. To address this gap, we introduce Tadashi, an end-to-end system that leverages the polyhedral model to support researchers in curating datasets critical for ML-based code generation. Tadashi provides an end-to-end system capable of applying, verifying, and evaluating candidate transformations on polyhedral schedules with both reliability and practicality. We formally prove that Tadashi guarantees the legality of generated transformations, demonstrate its low runtime overhead, and showcase its broad applicability. Tadashi available at https://github.com/vatai/tadashi/.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。