arXiv:2412.05562cs.CCcs.AI2024-12被引 10

MHN神经网络需借助思维链才能解决复杂计算问题

Modern Hopfield Networks Require Chain-of-Thought to Solve $\mathsf{NC}^1$-Hard Problems

  • 用电路复杂度理论分析现代霍普菲尔德网络的表达能力
  • 标准MHN无法解决图连通性等NC¹难题,因受限于TC⁰类
  • 引入思维链后可突破限制,解决如置换群词问题等串行任务

现代霍普菲尔德网络(MHNs)已成为深度学习中强大的组件,可替代池化层、LSTM和注意力机制。尽管其存储容量和检索效率显著提升,其基本理论边界仍不明确。本文通过电路复杂度理论严格刻画了MHN的表达能力:具有多项式精度、常数深度和线性隐藏维度的MHN属于DLOGTIME-统一TC⁰复杂度类。因此,在假设TC⁰ ≠ NC¹的前提下,这些架构无法解决诸如无向图连通性和树同构等NC¹-hard问题。该不可行性结果进一步扩展至核化霍普菲尔德网络。然而,我们证明,若为MHN引入思维链(CoT)机制,即可突破TC⁰限制,从而解决本质上为串行的置换群S₅词问题。研究结果清晰界定了标准MHN与带推理步骤的MHN之间的能力边界。

原文摘要 · Abstract (English)

Modern Hopfield Networks (MHNs) have emerged as powerful components in deep learning, serving as effective replacements for pooling layers, LSTMs, and attention mechanisms. While recent advancements have significantly improved their storage capacity and retrieval efficiency, their fundamental theoretical boundaries remain underexplored. In this paper, we rigorously characterize the expressive power of MHNs through the lens of circuit complexity theory. We prove that $\mathrm{poly}(n)$-precision MHNs with constant depth and linear hidden dimension fall within the $\mathsf{DLOGTIME}$-uniform $\mathsf{TC}^0$ complexity class. Consequently, assuming $\mathsf{TC}^0 \neq \mathsf{NC}^1$, we demonstrate that these architectures are incapable of solving $\mathsf{NC}^1$-hard problems, such as undirected graph connectivity and tree isomorphism. We further extend these impossibility results to Kernelized Hopfield Networks. However, we show that these limitations are not absolute: we prove that equipping MHNs with a Chain-of-Thought (CoT) mechanism enables them to transcend the $\mathsf{TC}^0$ barrier, allowing them to solve inherently serial problems like the word problem for the permutation group $S_5$. Collectively, our results delineate a fine-grained boundary between the capabilities of standard MHNs and those augmented with reasoning steps.

神经网络复杂度理论思维链图问题

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。