带指数门的电路恒等性测试
Identity Testing for Circuits with Exponentiation Gates
AI总结:
本文研究带指数门的算术电路恒等性测试问题,提出有限域黑盒查询模型及随机化测试算法,证明其完美完备性与非平凡可靠性,并已被 Mirage 编译器实现验证。
摘要:
受神经网络优化编译器设计中的实际应用驱动,我们发起了对带有指数门的算术电路恒等性测试问题的研究,其中指数门计算实函数 $x\mapsto e^x$。这些电路计算形如 $P(\vec x)/P'(\vec x)$ 的实函数,其中 $P(\vec x)$ 和 $P'(\vec x)$ 均为指数多项式\n \\[\n \sum_{i=1}^k f_i(\vec x)\cdot \exp\left(\frac{g_i(\vec x)}{h_i(\vec x)}\right),\n \\]\n其中 $f_i(\vec x),g_i(\vec x)$ 和 $h_i(\vec x)$ 为多项式。我们在有限域上为这类电路形式化了一个黑盒查询模型,该模型数学上简单,并反映了现实世界神经网络编译器所面临的约束。我们证明了一个简单且高效的随机化恒等性测试算法能够实现完美完备性和非平凡可靠性。与我们的工作同时,该算法已被 Wu 等人(OSDI 2025)实现在优化编译器 Mirage 中,在效率和可靠性误差方面均展示出有前景的经验性能。最后,我们提出一个数论猜想,在该猜想下我们的算法以高概率具有可靠性。
英文摘要:
Motivated by practical applications in the design of optimization compilers for neural networks, we initiated the study of identity testing problems for arithmetic circuits augmented with \emph{exponentiation gates} that compute the real function $x\mapsto e^x$. These circuits compute real functions of form $P(\vec x)/P'(\vec x)$, where both $P(\vec x)$ and $P'(\vec x)$ are exponential polynomials \[ \sum_{i=1}^k f_i(\vec x)\cdot \exp\left(\frac{g_i(\vec x)}{h_i(\vec x)}\right), \] for polynomials $f_i(\vec x),g_i(\vec x)$, and $h_i(\vec x)$. We formalize a black-box query model over finite fields for this class of circuits, which is mathematical simple and reflects constraints faced by real-world neural network compilers. We proved that a simple and efficient randomized identity testing algorithm achieves perfect completeness and non-trivial soundness. Concurrent with our work, the algorithm has been implemented in the optimization compiler Mirage by Wu et al.~(OSDI 2025), demonstrating promising empirical performance in both efficiency and soundness error. Finally, we propose a number-theoretic conjecture under which our algorithm is sound with high probability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。