English

Tadashi: Enabling AI-Based Automated Code Generation With Guaranteed Correctness

Machine Learning 2025-06-03 v2

Abstract

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/.

Keywords

Cite

@article{arxiv.2410.03210,
  title  = {Tadashi: Enabling AI-Based Automated Code Generation With Guaranteed Correctness},
  author = {Emil Vatai and Aleksandr Drozd and Ivan R. Ivanov and Joao E. Batista and Yinghao Ren and Mohamed Wahib},
  journal= {arXiv preprint arXiv:2410.03210},
  year   = {2025}
}

Comments

Submitted to SC25

R2 v1 2026-06-28T19:08:12.274Z