We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Artificial Intelligence & Machine Learning/LifeGPT: topology-agnostic generative pretrained transformer model for cellular automata
PeriodicalsArtificial Intelligence & Machine Learning

LifeGPT: topology-agnostic generative pretrained transformer model for cellular automata

Checking your access to this record.

Abstract & Overview

Conway’s Game of Life (Life), a famous cellular automata (CA) algorithm, exhibits complex, initial condition-sensitive dynamics. Modeling Life without knowing the system’s topology presents a challenge, motivating the development of algorithms capable of generalizing across grid configurations and boundary conditions. We introduce LifeGPT, a decoder-only generative pretrained transformer (GPT) model with rotary positional embedding (RoPE) and forgetful causal masking (FCM), capable of computing a single-timestep global state transition in Life on a toroidal grid without prior knowledge of grid size or boundary conditions. LifeGPT is topology-agnostic, achieving near-perfect accuracy in capturing the deterministic rules of Life given sufficiently diverse training data. We show recursive simulation of Life is possible using LifeGPT within an autoregressive loop. LifeGPT can also be trained on grids of varying sizes while retaining near-perfect accuracy. Finally, we propose future research, like using LifeGPT-like models to infer CA rulesets from real-world data, which could advance predictive modeling.

Cite this record

Jaime Berkovich, Markus J. Buehler (2025). LifeGPT: topology-agnostic generative pretrained transformer model for cellular automata. npj Artificial Intelligence, 1(1), 23. https://doi.org/10.1038/s44387-025-00014-w

Copy in another style

Berkovich, J., & Buehler, M. J. (2025). LifeGPT: topology-agnostic generative pretrained transformer model for cellular automata. npj Artificial Intelligence, 1(1), 23. https://doi.org/10.1038/s44387-025-00014-w
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.