English

Working Memory Capacity of ChatGPT: An Empirical Study

Artificial Intelligence 2024-02-05 v4 Computation and Language Neurons and Cognition

Abstract

Working memory is a critical aspect of both human intelligence and artificial intelligence, serving as a workspace for the temporary storage and manipulation of information. In this paper, we systematically assess the working memory capacity of ChatGPT, a large language model developed by OpenAI, by examining its performance in verbal and spatial n-back tasks under various conditions. Our experiments reveal that ChatGPT has a working memory capacity limit strikingly similar to that of humans. Furthermore, we investigate the impact of different instruction strategies on ChatGPT's performance and observe that the fundamental patterns of a capacity limit persist. From our empirical findings, we propose that n-back tasks may serve as tools for benchmarking the working memory capacity of large language models and hold potential for informing future efforts aimed at enhancing AI working memory.

Keywords

Cite

@article{arxiv.2305.03731,
  title  = {Working Memory Capacity of ChatGPT: An Empirical Study},
  author = {Dongyu Gong and Xingchen Wan and Dingmin Wang},
  journal= {arXiv preprint arXiv:2305.03731},
  year   = {2024}
}

Comments

Accepted at the 38th AAAI Conference on Artificial Intelligence (AAAI-24)

R2 v1 2026-06-28T10:27:13.678Z