Saved in:
Bibliographic Details
Main Author: Liu, Yuxi
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.12469
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913945623724032
author Liu, Yuxi
author_facet Liu, Yuxi
contents This paper explores the computational complexity of diffusion-based language modeling. We prove a dichotomy based on the quality of the score-matching network in a diffusion model. In one direction, a network that exactly computes the score function of some initial distribution can only perform language modeling within the $\mathsf{TC}^0$ complexity class, reflecting limitations tied to rapid convergence. In the other direction, we show that if there is no requirement for the network to match any score function, then diffusion modeling can simulate any Turing machine in a certain sense. This dichotomy provides a theoretical lens on the capabilities and limitations of diffusion models, particularly concerning tasks requiring sequential computation. We conjecture extensions of our theoretical results, including for the case where the diffusion model is not perfect, but merely good. We also discuss the wider context and practical implications, and hypothesize that a machine learning architecture that can interpolate between sequential and parallel modes of operation would be superior to both Transformers and diffusion models.
format Preprint
id arxiv_https___arxiv_org_abs_2507_12469
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Perfect diffusion is $\mathsf{TC}^0$ -- Bad diffusion is Turing-complete
Liu, Yuxi
Computational Complexity
Computation and Language
Machine Learning
This paper explores the computational complexity of diffusion-based language modeling. We prove a dichotomy based on the quality of the score-matching network in a diffusion model. In one direction, a network that exactly computes the score function of some initial distribution can only perform language modeling within the $\mathsf{TC}^0$ complexity class, reflecting limitations tied to rapid convergence. In the other direction, we show that if there is no requirement for the network to match any score function, then diffusion modeling can simulate any Turing machine in a certain sense. This dichotomy provides a theoretical lens on the capabilities and limitations of diffusion models, particularly concerning tasks requiring sequential computation. We conjecture extensions of our theoretical results, including for the case where the diffusion model is not perfect, but merely good. We also discuss the wider context and practical implications, and hypothesize that a machine learning architecture that can interpolate between sequential and parallel modes of operation would be superior to both Transformers and diffusion models.
title Perfect diffusion is $\mathsf{TC}^0$ -- Bad diffusion is Turing-complete
topic Computational Complexity
Computation and Language
Machine Learning
url https://arxiv.org/abs/2507.12469