English

Transformers are Stateless Differentiable Neural Computers

Computation and Language 2026-03-23 v1 Artificial Intelligence Computer Vision and Pattern Recognition Machine Learning

Abstract

Differentiable Neural Computers (DNCs) were introduced as recurrent architectures equipped with an addressable external memory supporting differentiable read and write operations. Transformers, in contrast, are nominally feedforward architectures based on multi-head self-attention. In this work we give a formal derivation showing that a causal Transformer layer is exactly a stateless Differentiable Neural Computer (sDNC) where (1) the controller has no recurrent internal state, (2) the external memory is a write-once matrix of value vectors, (3) content-based addressing via keys implements attention, and (4) multi-head attention corresponds to multiple parallel read heads. We further extend this equivalence to cross-attention, showing that encoder-decoder Transformers are precisely sDNCs with distinct read-from and write-to memories. Our results provide a unified memory-centric interpretation of Transformers and contribute to the ongoing effort to place modern large language models in a principled computational framework.

Keywords

Cite

@article{arxiv.2603.19272,
  title  = {Transformers are Stateless Differentiable Neural Computers},
  author = {Bo Tang and Weiwei Xie},
  journal= {arXiv preprint arXiv:2603.19272},
  year   = {2026}
}

Comments

7 pages

R2 v1 2026-07-01T11:28:44.343Z