arXiv:2610.16763cs.LGOct 2026

Manuscript Offprint

arXiv:2610.16763

Relational Learning as World Modeling

Zheyu Zhang, Gjergji Kasneci

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Zheyu Zhang & Gjergji Kasneci

Technical University of Munich

Munich Center for Machine Learning (MCML)

Github Model

Relational learning typically predicts from a database state, but decision making asks a different question: how will that state change under an action? In operational systems, the answer depends on system-specific dynamics that may not be visible in the database itself. We view each such system as a relational “world” and ask whether a model can infer how it behaves from observed executions. We introduce TabWM (Tabular World Model) and WORLDREL, a generator of executable relational worlds for pretraining. Given executions from an unseen world, TabWM uses them as context to predict the sparse structured edits caused by a new action without parameter updates. Across 512 held-out worlds, complete-edit F1 rises from 0.016 with no observed executions to 0.685 with 64, where a correct edit must match its operation, relational location, and value. Because these predictions are explicit relational edits, they can be applied recursively to imagine candidate futures and compare actions before they are taken. Broader search over these predicted futures improves the realized return of selected action sequences. Together, these results suggest that relational dynamics can be learned in context, broadening relational learning from modeling system state to modeling how that state changes under action.

Correspondence: zheyu.zhang@tum.de

(a) one action can change multiple related records

Figure

(b) the consequence is a sparse set of edits

(c) TabWM identifies the active dynamics from observed transitions

Figure 1 Relational learning as world modeling. (a) An action can affect both referenced and linked records. (b) Its consequences form a sparse edit set. (c) TabWM uses observed executions from the same world to predict edits for a new action without parameter updates.

1 Introduction

Relational foundation models are rapidly expanding what a single pretrained model can learn from databases. Recent models transfer across unseen schemas and tasks [Ranjan et al., 2026a, Hudovernik et al., 2026], scale through synthetic relational pretraining [Kothapalli et al., 2026], and adapt to new prediction problems from context [Wang et al., 2026, Ranjan et al., 2026b]. Yet these advances largely share the same learning interface, using a relational database state S to predict a target y. This formulation treats the database primarily as a dataset. In many applications, however, the database is also the observable state of a running system, shaped by users, software, and operational processes [Klein and Hoffart, 2025, 2026]. Choosing an action requires asking how it would change that state. This calls for an action-conditioned transition model from (St,At)(S_t, A_t) to St+1S_{t+1}, the core abstraction of world modeling that allows a model to imagine how a system evolves under candidate actions [Ha and Schmidhuber, 2018, Ding et al., 2025, Hafner et al., 2025]. We ask whether relational learning can make this shift from prediction to world modeling.

Consider an order that is predicted to arrive late. Knowing that it will be late does not tell us what will change if we expedite it. In Figure 1a, expediting O-4711 updates its order and shipment, consumes the remaining inventory, and pushes back O-4712 although the action does not name it. Similar what-if questions arise in prescriptive process monitoring and business-process simulation [Dasht Bozorgi et al., 2023, Camargo et al., 2020, 2022, Chapela-Campa et al., 2025]. We represent these direct and propagated changes as a sparse set of structured edits ΔSt\Delta S_t (Figure 1b). Each edit specifies an operation, its relational location, and a value when needed. Applying the edits updates the affected records without regenerating unchanged data. The action specifies what is done, but the system dynamics determine where its effects propagate and what values result.

These dynamics depend on operational rules that may not be apparent from the database records [Klein and Hoffart, 2025, 2026]. We call a relational system with a particular schema, set of actions, and transition mechanism a world. Its executions are observable, but we assume its mechanism is hidden. In a controlled experiment across 200 pairs of worlds, executing the same action from identical relational states produces different structured edits in 65% of probes. The current state and action therefore leave the consequence ambiguous across worlds. Past executions provide evidence about how actions behave in the current world. Intuitively, states show what a system looks like, while transitions show how it behaves.

Learning from these executions is often approached by discovering or calibrating a simulator for a particular process [Camargo et al., 2020, 2022, Chapela-Campa et al., 2025]. In-context system identification offers another route. A model trained across a class of dynamical systems can infer the behavior of a new one from its observed history [Forgione et al., 2023, Rufolo et al., 2025]. We ask whether the same idea can be extended to relational systems. Instead of fitting a separate model for every new world, a single pretrained model would use observed executions as context to predict the outcome of a new action in that world (Figure 1c).

We realize this idea with TabWM (Tabular World Model), trained across executable relational worlds generated by WORLDREL. WORLDREL extends the PluRel relational prior [Kothapalli et al., 2026] with executable actions and world-specific transition mechanisms. Within a task, the observed executions and query share the same dynamics, while those dynamics vary across tasks. This extends prior-data fitted learning [Müller et al., 2022, Wang et al., 2026] from static relational prediction to action-conditioned transitions. TabWM preserves relational structure together with which actions produced which observed consequences. It then predicts the consequence of a new action as a sparse set of edits that specify what changes, where it changes, and what value is written. At test time, the model adapts to a new world through observed executions without updating its parameters.

Across 512 held-out worlds, complete-edit F1 rises from 0.016 with no behavioral context to 0.685 with 64 observed executions, where a correct edit must match its operation, relational location, and value. Context remains useful when action mappings, schemas, and mechanism compositions change, and the same pattern persists when relational structure and values are derived from real databases. A single pretrained model can therefore improve its predictions from experience in a new world without updating its parameters.

A world model is useful not only for predicting what happens next, but for deciding what to do next. Because TabWM predicts explicit edits, it can roll candidate actions forward into future relational states and compare the resulting trajectories through model-based planning [Hafner et al., 2019, Chua et al., 2018]. At a fixed three-step horizon, expanding the candidate pool from 16 to 64 improves the selected return in 30 of 40 held-out worlds. This gives TabWM two ways to improve at test time. More observed executions improve consequence prediction, while broader search over predicted futures improves action selection.

References (74)