From Next Token Prediction to (STRIPS) World Models -- Preliminary Results
Carlos Núñez-Molina, Vicenç Gómez, Hector Geffner
TL;DR
This work investigates whether transformer-based next-token prediction can yield accurate, interpretable world-models in propositional STRIPS domains by learning from action traces alone. It introduces the STRIPS Transformer, a differentiable architecture that mimics B-RASP computations and can recover an exact STRIPS model $M$ from labeled traces, yielding a symbolic model $M_{\bar{\theta}}$ when binarized. The approach demonstrates strong generalization: with sufficient, diverse training traces, the learned domain matches the ground-truth domain and generalizes to longer unseen traces, across multiple domains. The study bridges symbolic planning and neural sequence models, offering a pathway to learn domain-independent planning models from data and highlighting interpretability and potential extensions to lifted STRIPS domains and multimodal inputs.
Abstract
We consider the problem of learning propositional STRIPS world models from action traces alone, using a deep learning architecture (transformers) and gradient descent. The task is cast as a supervised next token prediction problem where the tokens are the actions, and an action $a$ may follow an action sequence if the hidden effects of the previous actions do not make an action precondition of $a$ false. We show that a suitable transformer architecture can faithfully represent propositional STRIPS world models, and that the models can be learned from sets of random valid (positive) and invalid (negative) action sequences alone. A number of experiments are reported.
