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

通过余代数视角追踪AI编译器中的来源

Provenance Tracking in AI Compilers through the Lens of Coalgebra

OmniVision Technology Singapore(奥米视觉技术(新加坡));Black Sesame Technology Singapore(黑 sesame 技术(新加坡))

Zilu Tian, Liying Liu

AI总结:

针对AI编译器中图重写导致来源难以追踪的问题,提出基于观测语义的轻量级方法,利用余代数和互模拟形式化,并在原型编译器COVAN中验证。

摘要:

AI编译器通过规范化、降级和优化积极重写计算图,使得跨编译追踪张量和运算符的来源变得困难。可靠的来源对于附加平台特定的后处理、调试编译器行为以及验证变换至关重要,然而现有解决方案在非单射图重写下要么是侵入式的,要么是特设的。我们提出了一种基于观测语义的轻量级生成式方法来追踪来源。我们不通过编译器传递传播标识符,而是观测图变换并根据可观测的计算行为推理来源。我们使用余代数模型和互模拟形式化了这种方法,即使中间节点被消除,也能保留来源。此外,我们在原型AI编译器COVAN中实现了该方法,展示了在编译流水线中稳定的来源追踪,且工程开销最小。

英文摘要:

AI compilers aggressively rewrite computation graphs through normalization, lowering, and optimization, making it difficult to track the provenance of tensors and operators across compilation. Reliable provenance is essential for attaching platform-specific postprocessing, debugging compiler behavior, and validating transformations, yet existing solutions are either invasive or ad hoc under non-injective graph rewrites. We present a lightweight, generative approach to provenance tracking based on observational semantics. Instead of propagating identifiers through compiler passes, we observe graph transformations and reason about provenance in terms of observable computational actions. We formalize this approach using a coalgebraic model and bisimulation, which preserves provenance even when intermediate nodes are eliminated. Furthermore, we implement this approach in a prototype AI compiler COVAN, demonstrating stable provenance across compilation pipelines with minimal engineering overhead.

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

↑