テンソルプログラムの出力空間による同値検査
The Output-Space Hypothesis: Enumerative Equivalence Checking for Tensor Programs
この論文をやさしく読む
ひとことで言うと
最適化したテンソル処理が正しいかを、入力をランダムに試す代わりに、出力の一箇所について全入力を対象に調べる方法です。
何に役立つ?
AIが生成したCUDAカーネルの、ランダム比較では見つけにくい微妙な誤りの検出に役立ちます。
この研究の面白いところ
記号実行の向きを変え、差分テストで正しいとされた6,988個から600個の不具合を発見しました。その発見した不具合の97.3%を2分以内に見つけています。
どこまで分かった?
97.3%は発見した600個についての速度指標です。すべての潜在バグの97.3%を検出したという網羅率や、残るカーネルの正しさの証明ではありません。
v1のアブストラクトに基づくAI解説。日本語訳とは別に、用途の解釈を含みます。
アブストラクトの日本語訳
テンソルプログラムは小さな性能改善が学習・推論全体に波及するが、最適化はバグを生み得る。従来はランダム入力で参照との差分テストを行ったが、巨大テンソルでは値に正確な関係を持つ低確率の入力が必要になる。そこで量化の順序を反転し、1つの入力で全出力位置を調べる代わりに、1つの出力位置の同値性をすべての入力について調べる方法を提案する。新しい記号実行戦略でdirigoに実装した。差分テストでは正しいとされたAI生成CUDAカーネル6,988件で、実際にバグのある600件を発見し、その97.3%を2分以内に見つけた。
v1の要旨から自動生成。本文の精読・人による確認は未実施。
- 初稿
- 2026-09-17(UTC)
- 最新改訂
- 2026-09-17 · v1
- 査読・掲載
- 査読状況未確認
更新履歴
- v1 2026-09-17 この版を読む
取得できた版を表示。版の更新は査読済みを意味しません。過去版の本文差分は未解析です。
原文の要旨
Tensor programs, as used in deep learning models, are a prime target for optimization, as small performance improvements can have a large impact across training or inference workloads. However, such optimizations are complicated and can produce subtle bugs. Traditionally, correctness is assumed when differential testing against a reference on random inputs fails to reveal bugs. However, the inputs to these programs are massive tensors, and finding bugs can require generating extremely low likelihood inputs with precise relationships among their values. We propose a novel way to find bugs more consistently by flipping the quantifiers. Rather than generating a single input and checking all output tensor locations for equivalence, what if you could check a single output tensor location's equivalence for all inputs? We implement this idea in a system, \dirigo, by using a novel symbolic execution strategy. We demonstrate that \dirigo can find bugs effectively in a public dataset of 6,988 AI-written CUDA kernels that are all marked correct by differential testing. Of these, \dirigo finds 600 kernels that are actually buggy, and finds 97.3\% of those bugs within two minutes.
arXiv ID: 2609.19611 / 要約の誤りについて