用神经网络精确模拟任意算法,揭示其推理极限。
Quantifying The Limits of AI Reasoning: Systematic Neural Network Representations of Algorithms
- 将逻辑、动态规划等推理任务转为电路,再用ReLU网络逐层模拟。
- 任意算法可被零误差模拟,网络规模与电路复杂度直接相关。
- 突破传统逼近定理,适用于算法仿真与复杂推理任务。
当前人工智能研究的一个核心问题是:当神经网络被完美训练时,能执行何种形式的推理。本文通过将推理任务视为电路仿真来回答这一问题——门类型定义了推理类型,如布尔门用于命题逻辑,热带电路用于动态规划,算术与解析门用于符号数学表达,混合结构则支持更深层推理(如高阶逻辑)。我们提出一种系统性元算法,可将任意电路转化为具有ReLU激活函数的前馈神经网络,通过迭代替换每个门为标准的ReLU MLP模拟器实现。在任意数字计算机上,该构造能精确模拟电路行为——无近似、无舍入误差,含模溢出处理——证明没有任何推理任务超出神经网络的能力范围。生成网络中的神经元数量(参数复杂度)随电路复杂度增长,且网络计算图结构与原电路一致。这形式化了神经网络以空间复杂度(神经元数)换取算法运行时间(电路运行时间)的常识。我们推导出一系列应用:可在立方规模神经网络中模拟图上的最短路径算法;用近二次规模网络模拟停机图灵机;甚至可模拟随机布尔电路。最后证明,该结果严格强于经典通用逼近定理:任何通用函数逼近器均可编码为电路,并由神经网络直接模拟。
原文摘要 · Abstract (English)
A main open question in contemporary AI research is quantifying the forms of reasoning neural networks can perform when perfectly trained. This paper answers this by interpreting reasoning tasks as circuit emulation, where the gates define the type of reasoning; e.g. Boolean gates for predicate logic, tropical circuits for dynamic programming, arithmetic and analytic gates for symbolic mathematical representation, and hybrids thereof for deeper reasoning; e.g. higher-order logic. We present a systematic meta-algorithm that converts essentially any circuit into a feedforward neural network (NN) with ReLU activations by iteratively replacing each gate with a canonical ReLU MLP emulator. We show that, on any digital computer, our construction emulates the circuit exactly--no approximation, no rounding, modular overflow included--demonstrating that no reasoning task lies beyond the reach of neural networks. The number of neurons in the resulting network (parametric complexity) scales with the circuit's complexity, and the network's computational graph (structure) mirrors that of the emulated circuit. This formalizes the folklore that NNs networks trade algorithmic run-time (circuit runtime) for space complexity (number of neurons). We derive a range of applications of our main result, from emulating shortest-path algorithms on graphs with cubic--size NNs, to simulating stopped Turing machines with roughly quadratically--large NNs, and even the emulation of randomized Boolean circuits. Lastly, we demonstrate that our result is strictly more powerful than a classical universal approximation theorem: any universal function approximator can be encoded as a circuit and directly emulated by a NN.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。