English

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

Computational Complexity 2026-01-26 v2 Artificial Intelligence Computation and Language Machine Learning

Abstract

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 poly(n)\mathrm{poly}(n)-precision MHNs with constant depth and linear hidden dimension fall within the DLOGTIME\mathsf{DLOGTIME}-uniform TC0\mathsf{TC}^0 complexity class. Consequently, assuming TC0NC1\mathsf{TC}^0 \neq \mathsf{NC}^1, we demonstrate that these architectures are incapable of solving NC1\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 TC0\mathsf{TC}^0 barrier, allowing them to solve inherently serial problems like the word problem for the permutation group S5S_5. Collectively, our results delineate a fine-grained boundary between the capabilities of standard MHNs and those augmented with reasoning steps.

Keywords

Cite

@article{arxiv.2412.05562,
  title  = {Modern Hopfield Networks Require Chain-of-Thought to Solve $\mathsf{NC}^1$-Hard Problems},
  author = {Yang Cao and Xiaoyu Li and Yuanpeng Li and Yingyu Liang and Zhenmei Shi and Zhao Song},
  journal= {arXiv preprint arXiv:2412.05562},
  year   = {2026}
}