Deep learning (DL) compilers optimize tensor computation graphs through transformations that can silently change what a model computes. Existing work generates well-formed computation graphs and tensor inputs but typically judges results through crashes or differential comparison. Tensor algebra offers stronger oracles, such as commutativity and reduction decomposition, but turning an identity into an executable check requires selecting applicable operators, valid inputs, and precision-aware comparisons. We present Propilot, an agentic testing framework that guides LLM agents to construct semantic oracles from tensor algebra. Its core abstraction, the property skeleton, couples a relation with applicability conditions and an oracle template whose compiler-specific slots the agent fills. Propilot comes with sixteen skeletons and twenty data generators. It validates each test before execution and uses rejection reasons, execution results, and usage records to steer generation toward untested combinations. We evaluate Propilot with six agents on three DL compilers against Agent-Only, which uses the same agents without Propilot. Propilot detects 96 distinct compiler root causes, including 25 with silent wrong outputs that Agent-Only misses. It also generates 85.34% fewer invalid tests and covers at least 2.73 times as many operator-property pairs on each compiler. On 161 faulty TVM versions, Propilot detects 100, against 53 for Agent-Only.
翻译:暂无翻译