betaFeedback

WorksComputer Science

Neurosymbolic Learning of Interpretable World Models

Abstract

World models aim to learn compact representations of an environment from observations, enabling agents to predict future states and plan their behaviour. However, most existing approaches learn black-box representations, with limited ability to incorporate prior knowledge about the world. We introduce Concept-Grounded World Models (CGWMs), a neurosymbolic world model design that instead learns interpretable concept representations. We learn these concepts from observations using explicit and complete knowledge, expressed in temporal logic, that specifies the valid world states and the temporal relations governing their dynamics. Furthermore, we directly use this knowledge by formulating planning as differentiable reasoning, optimising the agent's actions by gradient ascent to satisfy a goal. We experimentally compare CGWM with a purely neural baseline and a neurosymbolic baseline on two game environments. We find that CGWMs ground concepts much more accurately, even over long horizons, resulting in significantly more robust planning both in and out of distribution.

Introduction

One of the longstanding goals of artificial intelligence is to accurately model the world around us [39, 44]. This research has been reinvigorated since the deep learning revolution [25], and especially in recent years, motivated by attempts to enable AI in the physical world, like robotics [22]. However, most of these approaches are purely neural, modelling transitions over opaque latent representations [17, 26]. Therefore, while world models are becoming more effective at predicting future states of the environment, they are difficult to inspect, adapt, and safely plan in.

We instead argue for a neurosymbolic world model design called Concept-Grounded World Models (CGWM) that uses symbolic transition systems acting on interpretable, abstract concepts [31]. CGWM grounds these abstract representations in real-world data using an encoder neural network that bridges the continuous world with the symbolic concepts. After grounding, we can directly plan in the transition system with flexible goals that can include safety constraints. Furthermore, when the grounding of concepts from real-world data is robustly learned, CGWM can transfer zero-shot to new environments by merely adapting the transition system.

Central to these benefits is learning a robust grounding of concepts. In this work, we study how learning from temporal knowledge and weak environment supervision may provide such groundings. For this, CGWM uses techniques from the field of neurosymbolic learning, where the goal is to ground concepts using a mix of weakly supervised data and background knowledge [23]. To model the kind of temporal knowledge required for world models, CGWM uses FLTLf_f (Andreoni et al., [4]), which relaxes LTLf_f formulas with fuzzy semantics (Badreddine et al., [7]; van Krieken et al., [49]). The fuzzy semantics ensure the differentiability of the LTLf_f knowledge to enable direct integration with neural networks. To effectively minimise these losses, CGWM includes several training techniques to prevent poor local minima and ensure that concepts are properly grounded. Finally, in addition to training the encoder, we also apply FLTLf_f to successfully plan in CGWMs.

Contributions (i) We introduce CGWM, a neurosymbolic world model design with a neural encoder that grounds a symbolic state of concepts, and a symbolic transition system encoded in LTLf_f. (ii) We develop algorithms for robust learning and planning in CGWMs using FLTLf_f, a fuzzy relaxation of the LTLf_f knowledge. (iii) We experimentally compare CGWM with a purely neural baseline and a neurosymbolic baseline on two game environments2, and find that CGWM grounds concepts much more accurately, which results in improved robustness of planning both in and out of distribution, and that the choice of fuzzy semantics plays a crucial role in learning and planning.

Background

Linear Temporal Logic on Finite Traces

The knowledge relevant to our setting is inherently temporal, we formalize it with temporal logics over traces. In several application domains, such as planning, system dynamics are naturally captured by unbounded but finite traces (De Giacomo et al., [19]). This led to LTL on finite traces (LTLf_f) (De Giacomo & Vardi, [18]). An LTLf_f formula φ\varphi over a set of dd concepts C\mathcal{C} extends propositional logic with temporal operators (strong) next XX and (strong) until UU, and follows the syntax:

φ:=⊤∣⊥∣C∣¬φ∣φ∧φ∣φ∨φ∣φ→φ∣Xφ∣φUφ(1)\varphi:= \top\mid\bot\mid C \mid\neg\varphi\mid\varphi\land\varphi\mid\varphi\lor\varphi\mid\varphi\to\varphi\mid X\varphi\mid\varphi U\varphi \tag*{(1)}

where C∈CC \in\mathcal{C}, the symbols ⊤\top and ⊥\bot are the true and false constants, respectively, and ¬\neg, ∧\land, ∨\lor, →\to are Boolean connectives for NOT, AND, OR, and implication. The other temporal operators are defined in terms of these, e.g., Fφ≡⊤UφF\varphi\equiv\top U\varphi, and Gφ≡¬F¬φG\varphi\equiv\neg F\neg\varphi for the eventually and globally operators.

The semantics of LTLf_f is defined over sequences of time steps, each mapping every concept to either 0 (for false) or 1 (for true). Formally, a trace of length nn is a list of dd-dimensional vectors C=⟨c0,…,cn−1⟩\mathcal{C} = \langle c_0, \ldots, c_{n-1}\rangle in which, for each time step t=0,…,n−1t = 0, \ldots, n - 1, the tt-th vector ct∈{0,1}dc_t \in\{0,1\}^{d} assigns a truth value to each concept C∈CC \in\mathcal{C}.

Intuitively, at time step tt, XφX\varphi states that there is a next time step t+1t + 1 in which φ\varphi holds; φ1Uφ2\varphi_1 U\varphi_2 states that φ2\varphi_2 holds in time step tt or a later time step s>ts > t, and in all time steps in between, i.e., t≤t′<st \le t' < s, φ1\varphi_1 holds. FφF\varphi states that there is a future step t′≥tt' \ge t in which φ\varphi holds; and GφG\varphi states that φ\varphi holds in all future steps t′≥tt' \ge t. Appendix A contains a complete formal introduction to LTLf\mathrm{LTL}_f.

Fuzzy Evaluation of Temporal Formulas

In this work, we employ FLTLf\mathrm{FLTL}_f to integrate temporal knowledge expressed in LTLf\mathrm{LTL}_f into the learning process, and we evaluate formulas with ∂LTLf\partial\mathrm{LTL}_f, the neurosymbolic framework that implements this semantics [4]. FLTLf\mathrm{FLTL}_f interprets LTLf\mathrm{LTL}_f formulas with differentiable fuzzy logic operators to enable compatibility with gradient-based learning [49]. FLTLf\mathrm{FLTL}_f generalises the notion of trace defined above by relaxing the space of each truth vector ct\mathbf{c}_t from Booleans {0,1}\{0,1\} to the interval [0,1][0,1], which yields the fuzzy trace Z=⟨z0,…,zn−1⟩\mathbf{Z} = \langle\mathbf{z}_0, \ldots, \mathbf{z}_{n-1} \rangle. Here, zt,iz_{t,i} denotes the degree of truth of a concept Ci∈CC_i \in\mathcal{C} at time step tt. We denote by v(φ,Z,t)∈[0,1]v(\varphi,\mathbf{Z},t) \in[0,1] the degree of truth of an FLTLf\mathrm{FLTL}_f formula φ\varphi over a fuzzy trace Z\mathbf{Z} at time step t≥0t \ge0.

Logical connectives ¬,∧,∨,→\neg,\land,\lor,\to are evaluated by applying a fuzzy operator (namely, the negation ⊖\ominus, the t-norm ⊗\otimes, the t-conorm ⊕\oplus, and the implication ⇒\Rightarrow, respectively) to the degrees of truth of their subformulas. For instance, v(φ1∧φ2,Z,t)=v(φ1,Z,t)⊗v(φ2,Z,t)v(\varphi_1 \land\varphi_2,\mathbf{Z},t) = v(\varphi_1,\mathbf{Z},t) \otimes v(\varphi_2,\mathbf{Z},t). Temporal operators like XX and UU instead relate the degree of truth at time step tt to those at subsequent time steps: v(Xφ,Z,t)=v(φ,Z,t+1)v(X\varphi,\mathbf{Z},t) = v(\varphi,\mathbf{Z},t+1) if t<n−1t < n-1 and 00 otherwise, and v(φ1Uφ2,Z,t)=v(φ2,Z,t)⊕(v(φ1,Z,t)⊗v(X(φ1Uφ2),Z,t))v(\varphi_1 U \varphi_2,\mathbf{Z},t) = v(\varphi_2,\mathbf{Z},t) \oplus(v(\varphi_1,\mathbf{Z},t) \otimes v(X(\varphi_1 U \varphi_2),\mathbf{Z},t)).

We write v(φ,Z)=v(φ,Z,0)v(\varphi,\mathbf{Z}) = v(\varphi,\mathbf{Z},0) for the degree of truth of φ\varphi in Z\mathbf{Z}. We employ two instances of the FLTLf\mathrm{FLTL}_f family: the Gödel semantics, where α⊗β=min⁡(α,β)\alpha\otimes\beta= \min(\alpha,\beta) and α⊕β=max⁡(α,β)\alpha\oplus\beta= \max(\alpha,\beta), and the product semantics, where α⊗β=αβ\alpha\otimes\beta= \alpha\beta and α⊕β=α+β−αβ\alpha\oplus\beta= \alpha+ \beta- \alpha\beta. Both use the standard negation ⊖α=1−α\ominus\alpha= 1-\alpha and interpret implication as the material implication α⇒β=(⊖α)⊕β\alpha\Rightarrow\beta= (\ominus\alpha) \oplus\beta.

In this work, we primarily use the temporal operators Globally (GG) and Eventually (FF). To compute their degrees of truth, we use the following characterisation from Andreoni et al. [4]:

v(Fφ,Z)=⨁t=0n−1v(φ,Z,t),v(Gφ,Z)=⨂t=0n−1v(φ,Z,t),(2)v(F\varphi,\mathbf{Z}) = \bigoplus_{t=0}^{n-1} v(\varphi,\mathbf{Z},t), \qquad v(G\varphi,\mathbf{Z}) = \bigotimes_{t=0}^{n-1} v(\varphi,\mathbf{Z},t), \tag*{(2)}

where ⨁\bigoplus and ⨂\bigotimes denote the iterated application of the t-conorm ⊕\oplus and of the t-norm ⊗\otimes, respectively.

Concept-Grounded World Models

We introduce Concept-Grounded World Models (CGWMs), a type of neurosymbolic world model trained from LTLf\mathrm{LTL}_f formulas (see Figure 1). Existing neural world models use a purely neural latent state, and their features are not trained to have human-interpretable semantics [17, 26]. Instead, our CGWMs represent latent states as truth values for each concept, enabling direct human interpretation. We use prior knowledge about the environment, expressed in LTLf\mathrm{LTL}_f over the same concepts, in three ways: to ground concepts in observations during training using only a small number of weak labels per trajectory; to replace the transition function of the world model; and to specify the goal at planning time.

Figure 1. CGWMs are interpretable world models that ground concepts in images and use a symbolic transition system. This improves data efficiency, provides zero-shot transfer to new environments and allows for flexible and safe planning for new goals.

Problem Setting

We assume that, at each time step tt, the environment provides an image oto_t and the agent executes an action at∈Aa_t \in\mathcal{A}. From this, we define a trajectory as a sequence τ=⟨o0,a0,o1,…,aT−1,oT⟩\tau= \langle o_0, a_0, o_1, \ldots, a_{T-1}, o_T \rangle with T≤Tmax⁡T \le T_{\max}. In this paper, we assume that the environment is deterministic and fully observable, and that complete knowledge about the environment is available and exactly determines state transitions. We discuss extensions of this setting in Section 7.

A CGWM receives three types of rules about the environment as LTLf\mathrm{LTL}_f formulas over concepts C\mathcal{C}. Constraints κ∈K\kappa\in\mathcal{K} represent rules that should hold on every trajectory, like G(¬agent1,2∧wall1,2)G(\neg agent_{1,2} \land wall_{1,2}). Transition rules T\mathcal{T} describe transitions in concept space, defining the symbolic state at time step t+1t+1 from the state and action at time step tt, such as (agent1,2∧right∧¬wall1,3)→Xagent1,3(agent_{1,2} \land right \land\neg wall_{1,3}) \to Xagent_{1,3}. Finally, we have a set Ω={ω1,…,ωM}\Omega= \{\omega_1,\ldots,\omega_M\} of specification formulas which, unlike constraints, hold only on some trajectories and not on others. One example is ωm=Fat_goal\omega_m = F at\_goal, which states that the agent is eventually in the same cell as the goal. In particular, each training trajectory comes with a binary label ymy_m per specification formula, equal to 1 if C⊨ωm\mathcal{C} \models\omega_m and to 0 otherwise. These labels provide only weak supervision: we do not give labels for individual concepts ctc_t. Each formula is written for every cell, and Appendix B lists the knowledge of each environment.

Model

A CGWM consists of two components, an encoder and a predictor (Figure 2). The encoder maps an image to a symbolic state, which assigns a degree of truth in [0,1][0,1] to every concept CC. The predictor computes the symbolic state at time step t+1t+1 from the symbolic state and the action at time step tt:

Figure 2. Overview of CGWM during learning.

Encoder: zt=Enc⁡θ(ot)∈[0,1]d,Predictor: z^t+1=Pred⁡(zt,at).(3)\text{Encoder: } \mathbf{z}_t = \operatorname{Enc}_{\theta}(o_t) \in[0,1]^d,\qquad\text{Predictor: } \hat{\mathbf{z}}_{t+1} = \operatorname{Pred}(\mathbf{z}_t,a_t). \tag*{(3)}

The encoder is a neural network with dd output channels, one per concept, followed by a sigmoid function, so that the entry zt,iz_{t,i} is the degree of truth of concept CiC_i at time step tt. The predictor has no learnable parameters, and it applies the transition rules T\mathcal{T} to the current state and action, evaluated with ∂LTLf\partial\mathrm{LTL}_f (Section 2.2). Since these rules are written over the same concepts C\mathcal{C}, the predicted state is again an assignment of degrees of truth to those propositions. Constraints and specification formulas are evaluated on a fuzzy trace Z\mathbf{Z} in the same way. We write v(ω,Z)v(\omega,\mathbf{Z}) and v(κ,Z)v(\kappa,\mathbf{Z}) for the degrees of truth of a specification formula ω\omega and of a constraint κ\kappa on a fuzzy trace Z\mathbf{Z}, which are both differentiable with respect to the encoder parameters θ\theta.

Learning

Only the encoder parameters θ\theta are learned, with the loss

L(θ)=Lspec+Lcons+Lpred+λHLH.(4)\mathcal{L}(\theta)=\mathcal{L}_{\mathrm{spec}}+\mathcal{L}_{\mathrm{cons}}+\mathcal{L}_{\mathrm{pred}}+\lambda_H\mathcal{L}_H. \tag*{(4)}

The specification loss Lspec\mathcal{L}_{\mathrm{spec}} is the binary cross-entropy between v(ωm,Z)v(\omega_m,\mathbf{Z}) and the label ymy_m, averaged over formulas and trajectories. It is the only term that uses supervision, and it constrains the trace as a whole rather than any single proposition. The constraint loss Lcons\mathcal{L}_{\mathrm{cons}} is the average of −log⁡v(κ,Z)-\log v(\kappa,\mathbf{Z}) over the constraints κ∈K\kappa\in\mathcal{K}, and is minimised when every constraint is fully satisfied. The prediction loss Lpred\mathcal{L}_{\mathrm{pred}} is the binary cross-entropy between the predicted next state z^t+1=Pred⁡(Enc⁡θ(ot),at)\hat{\mathbf{z}}_{t+1}=\operatorname{Pred}(\operatorname{Enc}_{\theta}(o_t),a_t) and the state zt+1=Enc⁡θ(ot+1)\mathbf{z}_{t+1}=\operatorname{Enc}_{\theta}(o_{t+1}) encoded from the next observation. Although the CGWM predictor does not have learnable parameters, it is differentiable, so gradients still reach the encoder parameters θ\theta. The entropy term LH\mathcal{L}_H is the negated binary entropy of Z\mathbf{Z}, averaged over concepts and time steps. Its weight λH\lambda_H decreases linearly to zero during the first half of training. Minimising LH\mathcal{L}_H prevents concept truth values from prematurely saturating to 0 or 1 at the beginning of training, which we found helps to avoid poor local minima.

Many constraints κ∈K\kappa\in\mathcal{K} are implications of the form G(α→β)\mathrm{G}(\alpha\rightarrow\beta). In an environment with an agent and walls, an example constraint is G(agent1,2∧right∧X agent1,2→wall1,3)\mathrm{G}(\mathrm{agent}_{1,2} \land\mathrm{right} \land\mathrm{X}\,\mathrm{agent}_{1,2} \rightarrow\mathrm{wall}_{1,3}); if the agent moves right and remains in the same cell, then the cell to its right is a wall. Here, the antecedent is about agent and is used as evidence, and the consequent is about wall, the concept that receives the evidence. A fuzzy implication can become true either by raising the degree of truth of the consequent β\beta (modus ponens), or by lowering that of the antecedent α\alpha (modus tollens) [49]. By default, minimising Lcons\mathcal{L}_{\mathrm{cons}} enables both directions. However, the modus tollens direction changes the concepts that provide the evidence, and it admits local minima in which the antecedent is false everywhere, satisfying the constraint trivially. In our example, the encoder can set agent to false in every cell. We therefore prevent gradients from flowing into the antecedent, which we denote by α\alpha, and write the constraint as G(α→β)\mathrm{G}\left(\alpha\to\beta\right).

Planning

After the world model has been trained, it can be leveraged to plan towards a goal, which can be expressed as an LTLf\mathrm{LTL}_{f} specification ψ\psi. Rather than relying on classical planning, we formulate planning as a differentiable optimisation problem to enable future hybrid world models with both symbolic and continuous variables (§ 7). When planning with CGWM, we freeze the encoder parameters and apply the encoder to the first image of the episode, z^0=Enc⁡θ(o0)\hat{z}_0 = \operatorname{Enc}_{\theta}(o_0) (Figure 3). Afterwards, no other observations are received and planning happens only on the imagined symbolic states. A plan is parameterised by a matrix U∈RTmax⁡×∣A∣U \in\mathbb{R}^{T_{\max} \times\lvert A\rvert}, whose rows utu_t are transformed into action truth degrees At∈[0,1]∣A∣A_t \in[0,1]^{\lvert A\rvert} according to the fuzzy semantics used for planning. Starting from z^0=Enc⁡θ(o0)\hat{z}_0 = \operatorname{Enc}_{\theta}(o_0), the predictor uses AtA_t in place of the discrete action ata_t and produces the imagined fuzzy trace Z^(A)=⟨z^0,…,z^Tmax⁡⟩\hat{Z}(A) = \langle\hat{z}_0,\ldots,\hat{z}_{T_{\max}}\rangle:

Figure 3. Overview of CGWM during planning.

z^t+1=Pred⁡(z^t,At),t=0,…,Tmax⁡−1.(5)\hat{z}_{t+1} = \operatorname{Pred}(\hat{z}_t, A_t), \qquad t = 0,\ldots,T_{\max}-1. \tag*{(5)}

We then plan by searching for matrices AA that maximise the degree of truth of the goal formula:

A∗=arg max⁡A  v(ψ,Z^(A)).(6)A^{*} = \underset{A}{\operatorname{arg\,max}}\; v\left(\psi,\hat{Z}(A)\right). \tag*{(6)}

Since the encoder is frozen and the predictor has no parameters, gradients only propagate to the matrix UU. We optimise Equation (6) by gradient ascent, running several independent initialisations of UU in parallel. We execute the best imagined plan by taking, at each time step tt, the action ata_t with the highest degree of truth arg max⁡atAt,at\operatorname{arg\,max}_{a_t} A_t,a_t.

The encoder is used only to recognise the concepts in CC in the first image, while transition rules T\mathcal{T} and goal formula ψ\psi specify how the world evolves and what the task is. As a consequence, the same trained CGWM world model can plan in environments with different layouts or grid sizes, with different dynamics by replacing T\mathcal{T}, and for different tasks by replacing ψ\psi, as long as the set of concepts CC is unchanged (§ 4).

Fuzzy Semantics for Learning and Planning

Which fuzzy semantics of FLTLf\mathrm{FLTL}_{f} (see § 2.2) best suit learning and planning in CGWM? Product semantics smoothly propagates gradients through multiple operands and is generally well suited for learning, while the sparse gradients of Gödel semantics are often seen as inefficient for learning [49]. However, recent work on the Gödel Trick, which adds noise to the Gödel semantics, found that it can outperform product semantics on combinatorial problems [15]. This suggests that the Gödel Trick may be particularly well suited for planning, which requires searching over discrete actions. We test this hypothesis by evaluating both semantics in both phases, computing product semantics in logarithmic space for numerical stability [8]. During learning, we use the two semantics directly, without adding noise. During planning, we add noise to explore different plans. For Gödel semantics, we use the Gödel Trick and follow the categorical-variable construction of Daniele & van Krieken [15]. For product semantics, we instead use Gumbel-Softmax [29] to obtain the action truth values AtA_t. Noise is sampled at every optimisation step to enable escaping local minima. We report variants without noise in Table 8.

Two RoomsIce Slider
easymediumhardlava dense periodic doorT=20T=20T=T∗T=T^*
Gödel
Gödel Trick100.0 (0.0)100.0 (0.0)96.3 (0.8)88.4 (2.8)94.9 (1.0)100.0 (0.0)100.0 (0.0)
softmax100.0 (0.0)84.4 (3.4)88.5 (2.6)86.2 (3.5)81.7 (4.1)100.0 (0.0)100.0 (0.0)
log-product
Gumbel-Softmax100.0 (0.0)100.0 (0.0)90.4 (1.9)68.6 (5.5)84.3 (3.3)99.8 (0.4)90.4 (1.7)
softmax99.9 (0.3)100.0 (0.0)80.6 (3.4)51.7 (5.3)76.9 (3.4)99.4 (0.7)84.8 (3.2)

Table 8. Percentage of planning instances solved in the environment for each semantics and mode. Mean and standard deviation (in parentheses) over the seeds.

Experimental Setup

We evaluate CGWM on two grid-world environments with different dynamics and compare it with LeWorldModel (LeWM) [35], a purely neural world model, and NeSy-MM [21], a neurosymbolic Markov model that we adapt to our setting. The experiments address four research questions.

RQ1: Does CGWM learn to recognise the concepts in CC from images using only trajectory labels and knowledge, while requiring fewer training trajectories than the baselines?

RQ2: Is the grounding preserved in the imagined trace as the rollout horizon grows?

RQ3: Can CGWM plan safely and effectively both in the environments it has been trained on and in environments with different layouts or dynamics?

RQ4: How does the choice of fuzzy semantics affect learning and planning?

Next, we describe the environments, baselines, and protocols (more settings in Appendices § 10 and § 12).

Environments. The first environment is Ice Slider (Figure 4a) [9], a puzzle in which the agent slides along the chosen direction until it hits a rock or the grid border, the episode ends when it stops on the goal. Its concepts are CIS={agent,rock,goal}C_{IS} = \{\text{agent}, \text{rock}, \text{goal}\}. The second environment, Two Rooms (Figure 4b), is built with MiniHack [41] to reproduce a NetHack level [33]: a grid divided by a wall into two rooms, where the agent must reach the goal in the other room by first stepping on a button that opens the door, while avoiding lava, which ends the episode. Its concepts are CTR={agent,goal,wall,lava,button,door}C_{TR} = \{\text{agent}, \text{goal}, \text{wall}, \text{lava}, \text{button}, \text{door}\}, and it has richer dynamics than Ice Slider. We consider three variants of Two Rooms of increasing complexity: Two Rooms (easy) has only the agent, the goal and the walls; Two Rooms (medium) adds the button and the closed door; and Two Rooms (hard) adds the lava. The layouts are randomised in every episode for Ice Slider (rocks and goal), Two Rooms (easy) (goal), Two Rooms (medium) (goal and button), and Two Rooms (hard) (inner wall, lava and all objects). To test generalisation, we derive two environments from Two Rooms (hard): Two Rooms (lava dense) (Figure 4c) keeps the dynamics but changes the layout, with three times as many lava cells, while Two Rooms (periodic door) (Figure 4d) changes the dynamics: once the button is pressed, the door opens and closes at each time step, crushing any agent standing on the door cell as it closes. Appendix B describes all environments in detail, alongside used formulas.

Figure 4. Initial observations of the environments: (a) Ice Slider, (b) Two Rooms (hard), (c) Two Rooms (lava dense), and (d) Two Rooms (periodic door), where the door has closed on the agent.

Baselines. To evaluate the benefits of explicit symbolic states and of training on prior knowledge, we compare CGWM against LeWM, a JEPA world model that uses neural networks for both the encoder and the predictor [35]. We give LeWM a latent vector for each cell of the grid, to match the spatial structure of CGWM. We also give LeWM a reward at every frame (whereas CGWM only receives per-trajectory labels), for instance when the agent is at the goal or first presses the button, and a negative reward when it steps on lava. LeWM learns to predict this reward from its latent state with a reward head. At planning time, LeWM optimises the actions by gradient descent on the predicted reward. Unlike CGWM, which plans once from the first image, LeWM gets environment observations every five actions and re-plans. Although these changes depart from the original LeWM, they all favour the baseline. We further motivate them in Appendix § 12.§ 2.

We also compare CGWM with NeSy-MM [21], a neurosymbolic Markov model with a neural encoder and a predictor based on a symbolic probabilistic logic program, which makes it close to our assumptions. However, De Smet et al. [21] either provide symbolic states, or only model the agent’s position, with direct supervision on the agent’s final position. We therefore give it the same concepts, knowledge, and trajectory labels as CGWM. NeSy-MM does not come with a planning procedure, so we only compare on concept grounding.

Protocol and Metrics. We evaluate data efficiency by varying the number of training trajectories N∈{50,200,800,3200}N \in\{50, 200, 800, 3200\}, using ten random seeds for each setting. We give LeWM approximately four times as many optimisation steps as CGWM to ensure convergence. All reported results are the mean and standard deviation over the ten seeds. We evaluate the learned world models along two dimensions. We measure the quality of the learned concept representations with the F1 score, and measure planning performance by the fraction of test instances successfully solved. Protocols specific to each evaluation are described alongside the corresponding results in § 5.

Results

In this section, we answer the four research questions of § 4. The complete results are reported in Appendix § 11. To answer RQ1 and RQ2, we measure concept recognition using the F1 score, both on states encoded from observations and along imagined rollouts of increasing horizon. Since LeWM has no explicit concepts, we train a linear probe on its latent states using the ground-truth concepts of the training trajectories. Figure 5 summarises the results.

Figure 5. CGWM with log-product, learns accurate grounding from weak supervision and knowledge. F1 on the concepts along the imagined trace, for the largest and smallest training sets.

RQ1: Grounding from observations. Trained with log-product semantics, CGWM learns an explicit symbolic state whose concepts are almost always grounded perfectly. Its F1 remains perfect as the size of the training set decreases, with only slightly lower performance on the Two Rooms environment with 50 trajectories (Figure 5). Instead, when trained with Gödel semantics, it does not ground the concepts at any training set size. NeSy-MM, which receives the same knowledge and trajectory labels as CGWM, grounds only part of the concepts (more details in Appendix § 11), and its performance degrades with smaller training set sizes in the Two Rooms environment. Additionally, Appendix § 11.§ 1 ablates the entropy loss term LH\mathcal{L}_{H} and the blocking of modus tollens gradients (§ 3.3). The ablations have poor grounding performance resulting from local minima. Finally, after training a linear probe from ground-truth concepts, LeWM recognises the concepts just as well as CGWM on single observations, but it differs when imagining the next steps.

RQ2: Long-horizon grounding. CGWM and NeSy-MM imagine next steps with the transition rules rather than with a learned predictor. As a consequence, when the grounding is perfect, the predicted symbolic state should remain correct at every horizon, since the environments are deterministic. For CGWM, this is confirmed by the results on the longest rollouts (Figure 5). NeSy-MM, instead, starts from an imperfect grounding and propagates initial errors to subsequent time steps. LeWM starts from a nearly perfect initial state, but its performance degrades with longer horizons.

A simple explanation is that prediction errors accumulate by repeatedly applying the learned dynamics, whereas CGWM can apply the given transition rules exactly. This is supported by the results at smaller training set sizes, where LeWM’s performance degrades more rapidly with rollout steps, suggesting that the learned dynamics do not generalise accurately when trained on less data.

RQ3: Planning. To answer RQ3, we evaluate CGWM and LeWM on the same 100 test instances per seed. CGWM optimises the goal formula ψ=F_at goal\psi= F\_\text{at goal} on its imagined trace, whereas LeWM optimises its predicted reward. Plans have a maximum horizon of 40 actions in Two Rooms and 20 in Ice Slider, and all test instances are solvable within these horizons.

In Two Rooms, LeWM is trained separately on each of the three variants, while CGWM always uses the world model trained on Two Rooms (hard). We next evaluate generalisation without retraining on Two Rooms (lava dense) and Two Rooms (periodic door). In the latter, CGWM only replaces the transition rules, while keeping its encoder unchanged. Planning performance is measured as the fraction of test instances solved. We note that if CGWM finds a plan, it is automatically safe, as the transition rules state that lava ends the episode, and so the agent fails to reach the goal. The results are summarised in Table 1. In Two Rooms (easy), both methods solve nearly every instance. As the environment becomes more complex, the success rate of LeWM drops substantially, whereas CGWM continues to solve most instances. The difference persists under generalisation: without retraining, CGWM solves most instances in both Two Rooms (lava dense) and Two Rooms (periodic door), while LeWM rarely reaches the goal. In Ice Slider, CGWM with the Gödel Trick solves every instance with a maximum horizon of T=20T = 20. We therefore test whether it can also find an optimal plan by setting the horizon for each instance to the length T∗T^* of its shortest plan. CGWM with the Gödel Trick still solves every instance, while log-product solves 90.4% and LeWM only 3.6%.

Two RoomsIce Slider
easymediumhardlava denseperiodic doorT=20T=20T=T∗T=T^*
CGWM (Gödel Trick)100.0 (0.0)100.0 (0.0)96.3 (0.8)88.4 (2.8)94.9 (1.0)100.0 (0.0)100.0 (0.0)
CGWM (log-product)100.0 (0.0)100.0 (0.0)90.4 (1.9)68.6 (5.5)84.3 (3.3)99.8 (0.4)90.4 (1.7)
LeWM95.8 (1.2)37.8 (2.8)22.0 (9.0)9.6 (6.9)7.2 (3.6)69.1 (12.6)3.6 (2.9)

Table 1. CGWMs learn representations that allow for robust planning both in and out of distribution. Percentage of planning instances solved in the environment, mean and standard deviation (in parentheses) over 10 seeds. For CGWM, the semantics used for planning is in parentheses.

In Two Rooms, instead, CGWM does not solve every instance. We investigate whether these failures are associated with planning difficulty, using the length of the optimal plan as a proxy. We group test instances by their optimal plan length and report the fraction solved in each group in Figure 6. Failures concentrate on instances requiring longer plans. LeWM mostly succeeds when the optimal plan is short and almost never when it requires more than 15 actions. CGWM remains effective at substantially longer horizons, although its success rate also decreases for the longest plans.

Figure 6. CGWM can plan over long horizons. Fraction of instances solved, grouped by the length of their optimal plan, with the number of instances per group in parentheses.

RQ4: Fuzzy semantics. The choice of fuzzy semantics has opposite effects on learning and planning. During learning, only log-product grounds the concepts, whereas Gödel fails across all training set sizes. This can be explained by the sparse gradients discussed in § 3.5. Conversely, during planning, the Gödel Trick outperforms log-product (Table 1), supporting the hypothesis put forward in § 3.5. Importantly, CGWM can learn with log-product and plan with the Gödel Trick, without retraining the encoder or rewriting any formula.

Related Work

Learning world models. CGWMs learn latent states from observations, relating our work to state representation learning, which learns compact states that evolve with the agent’s actions [34]. Such methods encode observations with a neural network and mainly differ in the training objective. Generative world models train the encoder jointly with a decoder that reconstructs observations from the latent state [26, 25]; some models also predict rewards for a given task [27, 42]. Like CGWMs, world models based on Joint Embedding Predictive Architectures (JEPA) avoid reconstruction and are trained to predict the latent encoding of the next observation [17]. Their encoders are either pre-trained and frozen [52, 6], or trained jointly with the predictor using a regularization term that prevents collapse [43, 35]; CGWM instead constrains the latent state with logical knowledge and needs no regularisation. Another line of work learns discrete latent states, using reconstruction losses [5, 1] or regularized prediction losses [14]. Their variables, however, have no predefined meaning, which must be recovered after training by probes that map the latent to ground-truth concepts; in CGWM, concepts are named in advance, so the latent state needs no probe to be interpreted. Finally, some works use LLMs to write programs describing state transitions, but these operate only on symbolic inputs and outputs [46].

Neurosymbolic world models. Neurosymbolic learning integrates knowledge into deep learning through differentiable logics, usually under fuzzy or probabilistic semantics [7, 37, 51]. Recent work extends this integration to temporal logic, where knowledge constrains sequences rather than single inputs [47, 3, 36, 4].

Several methods integrate knowledge into world models. Ramachandra et al. [40] inject knowledge about spatial rotations to regularise continuous latent state dynamics during training. Tamassia et al. [45] propose a generative world model in which additional symbolic properties, predicted from latent states, can define rewards for planning. Closer to CGWM, De Smet et al. [21] model the environment as a Markov model whose symbolic state describes relations between objects, and whose transitions are probabilistic logic programs [20]. However, the model either receives symbolic states, or grounds initial agent positions to generate a sequence of images following an action sequence. Neither of the latter two world models is used for planning. Xi et al. [50] learn action preconditions and effects from observations in which only the first and last symbolic states are observed. The predicates are given in advance together with the constraints that the action model must satisfy. In Ahmed et al. [2], the predicates and operators of a planning domain are given as symbolic abstractions, and a large language model synthesizes the low-level transition functions as programs from observed transitions; observations are symbolic game states rather than images, and planning uses a classical planner over the operators. Finally, temporal specifications are also used to define the reward of a learning agent, either by assuming symbols are given [28, 24] or by learning to ground them in observations [48].

Conclusion

We introduced CGWM, a neurosymbolic approach to learning interpretable world models that support planning and robust generalisation. As a first step, we deliberately focused on a restricted setting that isolates these aspects, assuming (i) complete knowledge of the symbolic dynamics, (ii) concepts that are fully observable from a single observation, and (iii) deterministic dynamics. These assumptions constitute limitations of the current work and motivate several directions for future research.

Hybrid latent states and predictors could combine symbolic knowledge with learned continuous components, either to represent genuinely continuous variables or to model aspects of the state and dynamics not covered by the available knowledge. Our use of differentiable planning is deliberate in this respect: by optimising actions through backpropagation, the planner can potentially be extended to jointly optimise symbolic and continuous components. With incomplete knowledge, an alternative is to learn the missing symbolic rules from data [16, 12] (Bizzaro & Daniele 2026), although weaker knowledge may introduce reasoning shortcuts [38]. Partial observability additionally requires extending the state beyond information available in a single observation. Overall, CGWM demonstrates how explicit knowledge can connect interpretable representations, dynamics, and planning within a unified world model, while providing a flexible foundation for future developments.

AI Statement

In this work, we used generative AI tools to implement part of the method, the code that generates the synthetic datasets, to aid writing part of the paper, to provide feedback on drafts, and to edit it for readability. We have not used generative AI tools to develop theoretical models or conceptual frameworks, propose or refine hypotheses, design or provide feedback on research methodology or experiments, clean and reformat dataset, support qualitative and thematic data analysis, interpret results, and the paper contains no mathematical claims or proofs. The code, its outputs, and all the text drafted with AI assistance was reviewed and edited by the authors. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.

Supplementary Material on LTLf_f and FLTLf_f

In this appendix, we complement the background information about LTLf_f and FLTLf_f presented in § 2.1 and § 2.2.

LTLf_f

As described in § 2.1, the semantics of the syntax described in Equation (1) for an LTLf_f formula φ\varphi is explicitly defined over finite traces C=⟨c0,…,cn−1⟩\mathcal{C} = \langle c_0, \ldots, c_{n-1} \rangle, where the vectors ct∈{0,1}dc_t \in\{0, 1\}^{d} have a Boolean value, either 00 (false) or 11 (true), for every concept C∈CC \in\mathcal{C}.

The syntax in Equation (1) extends propositional logic on C\mathcal{C} with formulas employing the temporal operators X\mathrm{X} and U\mathrm{U}, respectively representing (strong) next and (strong) until, which are then used as a basis for defining further operators such as F\mathrm{F} and G\mathrm{G}.

Formally, for an LTLf_f formula φ\varphi, a trace C\mathcal{C}, and a time step t∈{0,…,n−1}t \in\{0, \ldots, n - 1\}, we inductively define that φ\varphi is true in time step tt of C\mathcal{C}, written C,t⊨φ\mathcal{C}, t \models\varphi, as in De Giacomo & Vardi [18]:

C,t⊨C∈Cif ct,C=1C,t⊨¬φif C,t⊭φC,t⊨φ1∨φ2if C,t⊨φ1 or C,t⊨φ2C,t⊨Xφif t<n−1 and C,t+1⊨φC,t⊨φ1 U φ2if C,s⊨φ2 for some s s.t. t≤s≤n−1 andC,t′⊨φ1 for every t′ s.t. t≤t′<s\begin{aligned} \mathcal{C}, t &\models C \in\mathcal{C} &&\text{if } c_{t,C}=1\\ \mathcal{C}, t &\models\neg\varphi&&\text{if } \mathcal{C}, t \not\models\varphi\\ \mathcal{C}, t &\models\varphi_1 \lor\varphi_2 &&\text{if } \mathcal{C}, t \models\varphi_1 \text{ or } \mathcal{C}, t \models\varphi_2\\ \mathcal{C}, t &\models\mathrm{X}\varphi&&\text{if } t<n-1 \text{ and } \mathcal{C}, t+1 \models\varphi\\ \mathcal{C}, t &\models\varphi_1 \,\mathrm{U}\, \varphi_2 &&\text{if } \mathcal{C}, s \models\varphi_2 \text{ for some } s\text{ s.t. }t\le s\le n-1\text{ and}\\ &&&\mathcal{C}, t' \models\varphi_1 \text{ for every }t'\text{ s.t. }t\le t'<s \end{aligned}

We say that C\mathcal{C} satisfies φ\varphi, written C⊨φ\mathcal{C} \models\varphi, if C,0⊨φ\mathcal{C}, 0 \models\varphi.

The syntax and semantics of the other standard Boolean connectives of Equation (1) ⊤\top, ⊥\bot, ∧\land, →\to are derived as usual: φ1∧φ2≡¬(¬φ1∨¬φ2)\varphi_1 \land\varphi_2 \equiv\neg(\neg\varphi_1 \lor\neg\varphi_2), φ1→φ2≡¬φ1∨φ2\varphi_1 \to\varphi_2 \equiv\neg\varphi_1 \lor\varphi_2, ⊤≡φ∨¬φ\top\equiv\varphi\lor\neg\varphi, and ⊥≡¬⊤\bot\equiv\neg\top. Further key temporal operators are derived from X\mathrm{X} and U\mathrm{U} as presented in Table 2.

OperatorAbbreviationDescription
Weak next (Xw\mathrm{X}_w)Xwφ≡Xφ∨¬X⊤\mathrm{X}_w\varphi\equiv\mathrm{X}\varphi\lor\neg\mathrm{X}\topIf there is a next instant, φ\varphi holds at it.
Eventually (F\mathrm{F})Fφ≡⊤ U φ\mathrm{F}\varphi\equiv\top\,\mathrm{U}\, \varphiφ\varphi holds at some instant of the trace.
Globally (G\mathrm{G})Gφ≡¬F¬φ\mathrm{G}\varphi\equiv\neg\mathrm{F}\neg\varphiφ\varphi holds at every instant of the trace.
Release (R\mathrm{R})φ1 R φ2≡¬(¬φ1 U ¬φ2)\varphi_1 \,\mathrm{R}\, \varphi_2 \equiv\neg(\neg\varphi_1 \,\mathrm{U}\, \neg\varphi_2)φ2\varphi_2 holds up to and including the first instant at which φ1\varphi_1 holds; if φ1\varphi_1 never holds, φ2\varphi_2 holds throughout the trace.
Strong release (M\mathrm{M})φ1 M φ2≡(φ1 R φ2)∧Fφ1\varphi_1 \,\mathrm{M}\, \varphi_2 \equiv(\varphi_1 \,\mathrm{R}\, \varphi_2) \land\mathrm{F}\varphi_1As release, but φ1\varphi_1 is required to hold at some instant.
Weak until (W\mathrm{W})φ1 W φ2≡(φ1 U φ2)∨Gφ1\varphi_1 \,\mathrm{W}\, \varphi_2 \equiv(\varphi_1 \,\mathrm{U}\, \varphi_2) \lor\mathrm{G}\varphi_1As until, but φ2\varphi_2 is not required to hold; if it never does, φ1\varphi_1 holds throughout the trace.

Table 2. Derived temporal operators of LTLf_f.

Note that, for the sake of brevity, we often use predicate logic notation to write long LTLf_f formulas in a compact manner. For example, assume we have a scenario where an agent can move on a matrix of 1,…,N1,\ldots,N cells, but cannot stay on cells occupied by a rock. This knowledge has to be formalised as a long conjunction

(agent⁡(1)→¬rock⁡(1))∧(agent⁡(2)→¬rock⁡(2))∧…∧(agent⁡(N)→¬rock⁡(N))(\operatorname{agent}(1) \to\neg\operatorname{rock}(1)) \land(\operatorname{agent}(2) \to\neg\operatorname{rock}(2)) \land\ldots\land(\operatorname{agent}(N) \to\neg\operatorname{rock}(N))

We abbreviate this long formula with the equivalent predicate logic formula

∀g(agent⁡(g)→¬rock⁡(g))\forall g(\operatorname{agent}(g) \to\neg\operatorname{rock}(g))

where the for all (∀\forall) quantifier ranges over the finite domain of NN cells. Analogously, we use the exists only one (∃!\exists!) quantifier to write formulas such as

∃!g(agent⁡(g))\exists!g(\operatorname{agent}(g))

as a shorthand for ⋁i=1N(agent⁡(i)∧⋀j≠i¬agent⁡(j))\bigvee_{i=1}^{N}(\operatorname{agent}(i) \land\bigwedge_{j\ne i}\neg\operatorname{agent}(j)).

fltlf

Let Z=⟨z0,…,zn−1⟩\mathbf{Z} = \langle\mathbf{z}_0, \ldots, \mathbf{z}_{n-1} \rangle be a fuzzy trace, where each zt∈[0,1]d\mathbf{z}_t \in[0,1]^d assigns to every proposition Ci∈CC_i \in\mathcal{C} its degree of truth zt,iz_{t,i} at time step tt. Recall that v(φ,Z,t)v(\varphi, \mathbf{Z}, t) denotes the degree of truth of the FLTLf_f formula φ\varphi over Z\mathbf{Z} at time step tt. The fuzzy propositional connectives ¬\neg, ∧\land, ∨\lor, →\to are evaluated at each time step tt as follows, where C∈CC \in\mathcal{C} and φ1,φ2\varphi_1, \varphi_2 are FLTLf_f formulas:

v(⊤,Z,t)=1 and v(⊥,Z,t)=0;v(p,Z,t)=zt,p;v(¬φ,Z,t)=⊖v(φ,Z,t);v(φ1∧φ2,Z,t)=v(φ1,Z,t)⊗v(φ2,Z,t);v(φ1∨φ2,Z,t)=v(φ1,Z,t)⊕v(φ2,Z,t);v(φ1→φ2,Z,t)=v(φ1,Z,t)∘ ⁣→v(φ2,Z,t);v(Xφ,Z,t)=v(φ,Z,t+1) if t<n−1, 0 otherwise;v(φ1Uφ2,Z,t)=v(φ2,Z,t)⊕(v(φ1,Z,t)⊗v(X(φ1Uφ2),Z,t)).\begin{aligned} v(\top,\mathbf{Z},t) &= 1 \text{ and } v(\bot,\mathbf{Z},t) = 0;\\ v(p,\mathbf{Z},t) &= z_{t,p};\\ v(\neg\varphi,\mathbf{Z},t) &= \ominus v(\varphi,\mathbf{Z},t);\\ v(\varphi_1 \land\varphi_2,\mathbf{Z},t) &= v(\varphi_1,\mathbf{Z},t) \otimes v(\varphi_2,\mathbf{Z},t);\\ v(\varphi_1 \lor\varphi_2,\mathbf{Z},t) &= v(\varphi_1,\mathbf{Z},t) \oplus v(\varphi_2,\mathbf{Z},t);\\ v(\varphi_1 \to\varphi_2,\mathbf{Z},t) &= v(\varphi_1,\mathbf{Z},t) \mathbin{\circ\mkern-5mu\to} v(\varphi_2,\mathbf{Z},t);\\ v(X\varphi,\mathbf{Z},t) &= v(\varphi,\mathbf{Z},t+1) \text{ if } t<n-1,\ 0 \text{ otherwise};\\ v(\varphi_1 U \varphi_2,\mathbf{Z},t) &= v(\varphi_2,\mathbf{Z},t) \oplus\left(v(\varphi_1,\mathbf{Z},t) \otimes v(X(\varphi_1 U \varphi_2),\mathbf{Z},t)\right). \end{aligned}

where ⊗\otimes, ⊕\oplus, ⊖\ominus, ∘ ⁣→\mathbin{\circ\mkern-5mu\to} are the chosen t-norm, t-conorm (or s-norm), negation function and implication function, respectively. Note that the semantics of UU (until) is given using the recursive formulation based on the expansion law for the until operator Baier & Katoen [10].

We also consider the fuzzy counterparts of the derived LTLf_f operators reported in Table 2, whose semantics is given explicitly below:

v(Xwφ,Z,t)=v(φ,Z,t+1) if t<n−1, 1 otherwise;v(Fφ,Z,t)=v(φ,Z,t)⊕v(XFφ,Z,t);v(Gφ,Z,t)=v(φ,Z,t)⊗v(XwGφ,Z,t);v(φ1Wφ2,Z,t)=v(φ2,Z,t)⊕(v(φ1,Z,t)⊗v(Xw(φ1Wφ2),Z,t));v(φ1Mφ2,Z,t)=v(φ2,Z,t)⊗(v(φ1,Z,t)⊕v(X(φ1Mφ2),Z,t));v(φ1Rφ2,Z,t)=v(φ2,Z,t)⊗(v(φ1,Z,t)⊕v(Xw(φ1Rφ2),Z,t)).\begin{aligned} v(X_w\varphi,\mathbf{Z},t) &= v(\varphi,\mathbf{Z},t+1) \text{ if } t<n-1,\ 1 \text{ otherwise};\\ v(F\varphi,\mathbf{Z},t) &= v(\varphi,\mathbf{Z},t) \oplus v(XF\varphi,\mathbf{Z},t);\\ v(G\varphi,\mathbf{Z},t) &= v(\varphi,\mathbf{Z},t) \otimes v(X_wG\varphi,\mathbf{Z},t);\\ v(\varphi_1 W \varphi_2,\mathbf{Z},t) &= v(\varphi_2,\mathbf{Z},t) \oplus\left(v(\varphi_1,\mathbf{Z},t) \otimes v(X_w(\varphi_1 W \varphi_2),\mathbf{Z},t)\right);\\ v(\varphi_1 M \varphi_2,\mathbf{Z},t) &= v(\varphi_2,\mathbf{Z},t) \otimes\left(v(\varphi_1,\mathbf{Z},t) \oplus v(X(\varphi_1 M \varphi_2),\mathbf{Z},t)\right);\\ v(\varphi_1 R \varphi_2,\mathbf{Z},t) &= v(\varphi_2,\mathbf{Z},t) \otimes\left(v(\varphi_1,\mathbf{Z},t) \oplus v(X_w(\varphi_1 R \varphi_2),\mathbf{Z},t)\right). \end{aligned}

In Andreoni et al. [4], it is shown that FF, GG, XwX_w and RR can still be obtained as abbreviations in the FLTLf_f case, exactly as in Table 2. By contrast, WW and MM must in general be defined explicitly. The only exception is the Gödel semantics, where they can be derived as well. This result also yields the characterisation of FF and GG given in Equation (2).

Environments and Knowledge

This appendix describes the two environments and lists the knowledge given to CGWM, that is, the specification formulas Ω\Omega, the constraints K\mathcal{K}, and the transition rules T\mathcal{T} of each environment.

In this paper, we assume that the environment is deterministic and fully observable, that the size of the grid is known, and that complete knowledge about the environment is available and exactly determines state transitions. We discuss extensions of this setting in § 7. The agent acts in a grid world of size H×WH \times W, represented by cells G=[H]×[W]\mathcal{G} = [H] \times[W], with [n]:={1,…,n}[n] := \{1,\ldots,n\}. At each time step tt, the environment provides an RGB image ot∈RH×W×3\mathbf{o}_t \in\mathbb{R}^{H \times W \times3}, with ll the number of pixels along the side of a cell; and the agent executes an action at∈Aa_t \in\mathcal{A}. The state is described by a finite set C\mathcal{C} of concepts. For each concept c∈Cc \in\mathcal{C} and cell (h,w)∈G(h,w) \in\mathcal{G}, the proposition c(g)c(g) states that concept cc holds in cell g=(h,w)g=(h,w). The symbolic state at time step tt is the binary tensor ct∈{0,1}H×W×∣C∣\mathbf{c}_t \in\{0,1\}^{H \times W \times|\mathcal{C}|} that collects the truth values of all these propositions, and C=⟨c0,…,cT⟩\mathcal{C}=\langle\mathbf{c}_0,\ldots,\mathbf{c}_T\rangle is the symbolic trace of the trajectory, which is not given to the model.

All the formulas are LTLf_f formulas over the propositions c(g)c(g), with the quantifiers over cells introduced in Appendix § 9. Besides the operators of § 2, we use three additional ones. The weak next XwφX_w\varphi is true at the last time step of the trace, and equals XφX\varphi at every other time step. The proposition Last is true only at the last time step of the trace. The formula ∃!g. φ(g)\exists!g.\,\varphi(g) is true when φ\varphi is satisfied in exactly one cell. For each action a∈Aa \in\mathcal{A}, the proposition aa is true at the time steps in which the agent takes action aa. For an agent’s movement in a direction dd and an integer k≥1k \ge1, g+kδdg+k\delta_d denotes the cell kk steps away from gg in the direction dd. Propositions about cells outside the grid are false, and a constraint whose consequent refers to one specific cell g+kδdg+k\delta_d is quantified only over the cells for which g+kδdg+k\delta_d is inside the grid. As in § 3.3, an underlined subformula φ\varphi is evaluated as usual, but no gradient flows through it during training.

Ice Slider

Ice Slider is a game played on an 8×88 \times8 grid of ice cells, some of which contain a rock, and one of which is the goal. At each time step the agent chooses a direction in AIS={N,E,S,W}A_{IS} = \{\mathrm{N},\mathrm{E},\mathrm{S},\mathrm{W}\} and slides along it until the next cell contains a rock or is outside the grid, so it does not move if such a cell is adjacent. Sliding over the goal does not stop the agent. The episode ends when the agent stops on the goal, or after 20 actions. Rocks and goal never move. The concepts are CIS={agent,rock,goal}C_{IS} = \{\mathrm{agent},\mathrm{rock},\mathrm{goal}\}. The dataset contains 3200 training and 800 test trajectories generated by scripted policies, and about 40% of the training trajectories end with the agent on the goal. Table 3 lists the knowledge given to CGWM. We write at_goal for ∃g. agent(g)∧goal(g)\exists g.\ \mathrm{agent}(g) \land\mathrm{goal}(g), and K=7K = 7 for the largest number of cells the agent can slide over with one action. In the transition rules, c′(g)c'(g) is the truth value of c(g)c(g) at the next time step. To simplify notation, we introduce the proposition borderd(g)\mathrm{border}_d(g), which is true when g+δdg + \delta_d is outside the grid. Furthermore, to abbreviate, we write blockedd(g)\mathrm{blocked}_d(g) for rock(g+δd)∨borderd(g)\mathrm{rock}(g + \delta_d) \lor\mathrm{border}_d(g), true when the next cell along direction dd contains a rock or is outside the grid, and freed,k(g)\mathrm{free}_{d,k}(g) for ⋀j=0k−1¬rock(g−jδd)\bigwedge_{j=0}^{k-1} \neg\mathrm{rock}(g - j\delta_d), true when gg and the k−1k-1 cells before it along dd contain no rock. Formulas that contain a direction dd are written once for a generic direction, and the formula given to CGWM is the conjunction of the formulas obtained by replacing dd with each direction in AISA_{IS}.

FormulaMeaning
Specification formulas ΩIS\Omega_{IS}
F at_goalThe agent eventually reaches the goal.
Constraints KIS\mathcal{K}_{IS}
G(at_goal →\rightarrow Last)The agent is on the goal only at the last time step.
G ∃!g. agent(g)\exists!g.\ \mathrm{agent}(g)There is exactly one agent.
G ∃!g. goal(g)\exists!g.\ \mathrm{goal}(g)There is exactly one goal.
∀g. agent(g)→¬rock(g)\forall g.\ \mathrm{agent}(g) \rightarrow\neg\mathrm{rock}(g)The agent does not start on a rock.
G ∀g. (d∧Xw agent(g))→rock(g+δd)\forall g.\ (d \land X_w\ \mathrm{agent}(g)) \rightarrow\mathrm{rock}(g + \delta_d)If the agent stops in gg moving along dd, the next cell along dd contains a rock.
G ∀g. (agent(g)∧d∧Xw ¬agent(g))→¬rock(g+δd)\forall g.\ (\mathrm{agent}(g) \land d \land X_w\ \neg\mathrm{agent}(g)) \rightarrow\neg\mathrm{rock}(g + \delta_d)If the agent leaves gg along dd, the next cell along dd does not contain a rock.
⋀k=1K(G∀g.(agent(g)∧d∧Xw agent(g+kδd))→⋀j=1k−1¬rock(g+jδd))\bigwedge_{k=1}^{K}\left(\mathrm{G}\forall g.\left(\mathrm{agent}(g)\land d\land X_w\ \mathrm{agent}(g+k\delta_d)\right)\rightarrow\bigwedge_{j=1}^{k-1}\neg\mathrm{rock}(g+j\delta_d)\right)The cells the agent slides over contain no rock.
G ∀g. (agent(g)∧d∧Xw at_goal)→⋁k=1Kgoal(g+kδd)\forall g.\ (\mathrm{agent}(g)\land d\land X_w\ \mathrm{at\_goal})\rightarrow\bigvee_{k=1}^{K}\mathrm{goal}(g+k\delta_d)If the agent reaches the goal moving along dd, the goal is on its path.
G ∀g. (Xw at_goal∧d∧Xw goal(g))→⋁k=1Kagent(g−kδd)\forall g.\ (X_w\ \mathrm{at\_goal}\land d\land X_w\ \mathrm{goal}(g))\rightarrow\bigvee_{k=1}^{K}\mathrm{agent}(g-k\delta_d)If the agent reaches the goal in gg moving along dd, it started from a cell behind gg.
Transition rules TIS\mathcal{T}_{IS}
agent′(g)=⋁d(d∧blockedd(g)∧⋁k=0K(agent(g−kδd)∧freed,k(g)))\mathrm{agent}'(g)=\bigvee_d\left(d\land\mathrm{blocked}_d(g)\land\bigvee_{k=0}^{K}\left(\mathrm{agent}(g-k\delta_d)\land\mathrm{free}_{d,k}(g)\right)\right)After a movement dd, the agent is in gg if gg is blocked along dd and the agent was kk cells before gg with no rock in between, where k=0k=0 means that it did not move.
rock′(g)=rock(g),goal′(g)=goal(g)\mathrm{rock}'(g)=\mathrm{rock}(g),\quad\mathrm{goal}'(g)=\mathrm{goal}(g)Rocks and goal do not move.

Table 3. Knowledge given to CGWM in Ice Slider.

Two Rooms

Two Rooms is a game played on a 9×159 \times15 grid surrounded by walls and divided by an inner wall into two rooms, connected by a single door cell in the inner wall. At each time step the agent moves by one cell in a direction in ATR={N,E,S,W}A_{TR} = \{\mathrm{N},\mathrm{E},\mathrm{S},\mathrm{W}\}, and it does not move if the next cell is a wall or the door. The door is closed at the beginning of the episode, opens at the time step after the agent stands on the button, and then stays open. The episode ends when the agent reaches the goal or steps on lava, or after 40 actions. Walls, lava, button and goal never move. The concepts are CTR={agent,goal,wall,lava,button,door}C_{TR} = \{\mathrm{agent},\mathrm{goal},\mathrm{wall},\mathrm{lava},\mathrm{button},\mathrm{door}\}. In Two Rooms (hard), the layout changes in every episode. In the training set, about 24% of the trajectories end with the agent on the goal, about 26% end on the lava, and in about 62% the door is open at the end. Two Rooms (easy) and Two Rooms (medium) have no lava and a fixed inner wall in the middle of the grid. In Two Rooms (easy), the inner wall has an open passage instead of the door and there is no button, the agent starts at a random cell of the left room, and the goal is at a random cell of the right room. Two Rooms (medium) adds the door, which blocks the passage until the button is pressed. Each of these datasets contains 3200 training and 800 test trajectories generated by scripted policies. Two Rooms (lava dense) is generated as Two Rooms (hard), but contains 18 lava cells instead of 6. Two Rooms (periodic door) uses the layouts of Two Rooms (hard) and changes the dynamics. When the agent stands on the button, from the next time step the door alternates between open and closed at every time step. An agent that is on the door cell when the door closes is crushed, and the episode ends. Both variants are test sets of 800 instances, used only for planning. Table 4 lists the knowledge given to CGWM in Two Rooms (hard). We write at goal for ∃g. agent⁡(g)∧goal⁡(g)\exists g.\ \operatorname{agent}(g) \land\operatorname{goal}(g), on lava for ∃g. agent⁡(g)∧lava⁡(g)\exists g.\ \operatorname{agent}(g) \land\operatorname{lava}(g), and door open for ¬∃g. door⁡(g)\neg\exists g.\ \operatorname{door}(g), since the door disappears when it opens. In the transition rules, obstacle⁡(g)\operatorname{obstacle}(g) stands for wall⁡(g)∨door⁡(g)\operatorname{wall}(g) \lor\operatorname{door}(g), and pressed for ∃g. agent⁡(g)∧button⁡(g)\exists g.\ \operatorname{agent}(g) \land\operatorname{button}(g). As in Ice Slider, the formulas written for a generic direction dd stand for the conjunction of the four formulas obtained by replacing dd with each direction in ATR\mathcal{A}_{TR}.

FormulaMeaning
Specification formulas ΩTR\Omega_{TR}
F at_goalThe agent eventually reaches the goal.
F on_lavaThe agent eventually steps on lava.
F door_openThe door is eventually open.
Constraints KTR\mathcal{K}_{TR}
G(at_goal →\to Last)The agent is on the goal only at the last time step.
G(on_lava →\to Last)The agent is on lava only at the last time step.
¬\neg door_openAt the first time step the door is closed.
G∃!g\exists!g. agent(gg)There is exactly one agent.
G∃!g\exists!g. goal(gg)There is exactly one goal.
G∃!g\exists!g. button(gg)There is exactly one button.
G(¬\neg door_open →\to ∃!g\exists!g. door(gg))While the door is closed, it occupies exactly one cell.
∀g\forall g. F agent(gg) →\to ¬\neg wall(gg)A cell the agent occupies at some time step is not a wall.
G∀g\forall g. (agent(gg) ∧d∧Xw\land d \land X_w at_goal) →\to goal(g+δdg+\delta_d)If the agent reaches the goal moving from gg along dd, the goal is the next cell.
G∀g\forall g. (agent(gg) ∧d∧Xw\land d \land X_w ¬\negat_goal) →\to ¬\neg goal(g+δdg+\delta_d)If the agent moves from gg along dd without reaching the goal, the next cell is not the goal.
G∀g\forall g. (XwX_w at_goal ∧d∧Xw\land d \land X_w goal(g+δdg+\delta_d)) →\to agent(gg)If the agent reaches the goal in g+δdg+\delta_d moving along dd, it was in gg.
G∀g\forall g. (agent(gg) ∧d∧Xw\land d \land X_w on_lava) →\to lava(g+δdg+\delta_d)If the agent steps on lava moving from gg along dd, the next cell is lava.
G∀g\forall g. (agent(gg) ∧d∧Xw\land d \land X_w ¬\negon_lava) →\to ¬\neg lava(g+δdg+\delta_d)If the agent moves from gg along dd without stepping on lava, the next cell is not lava.
G∀g\forall g. (agent(gg) ∧d∧Xw\land d \land X_w agent(gg) ∧¬\land\negdoor(g+δdg+\delta_d)) →\to wall(g+δdg+\delta_d)If the agent does not move along dd and the next cell is not the door, the next cell is a wall.
G∀g\forall g. (agent(gg) ∧d∧Xw\land d \land X_w ¬\negagent(gg)) →\to ¬\negwall(g+δdg+\delta_d) ∧¬\land\negdoor(g+δdg+\delta_d)If the agent leaves gg along dd, the next cell is neither a wall nor the closed door.
G∀g\forall g. (agent(gg) ∧d∧¬X\land d \land\neg X door_open ∧XX\land XX door_open) →\to button(g+δdg+\delta_d)If the door is still closed at the next time step and open at the one after, the agent has moved onto the button.
Transition rules TTR\mathcal{T}_{TR}
agent′(g)=⋁d((agent⁡(g−δd)∧d∧¬obstacle⁡(g))∨(agent⁡(g)∧d∧obstacle⁡(g+δd)))'(g)=\bigvee_d\big((\operatorname{agent}(g-\delta_d)\land d\land\neg\operatorname{obstacle}(g))\lor(\operatorname{agent}(g)\land d\land\operatorname{obstacle}(g+\delta_d))\big)The agent moves by one cell along dd, or stays in gg if the next cell is a wall or the closed door.
door′(g)=door⁡(g)∧¬pressed'(g)=\operatorname{door}(g)\land\neg pressedThe door opens at the time step after the agent stands on the button.
c′(g)=c(g)c'(g)=c(g), for c∈{wall⁡,lava⁡,goal⁡,button⁡}c\in\{\operatorname{wall},\operatorname{lava},\operatorname{goal},\operatorname{button}\}Walls, lava, goal and button do not move.

Table 4. Knowledge given to CGWM in Two Rooms (hard).

Table 5 reports the transition rules of Two Rooms (periodic door), which are the only part of the knowledge that changes with respect to Two Rooms (hard). Since Two Rooms (periodic door) is only used for planning, its specification formulas and constraints are never used. Here, we also use the operator YY, which takes the value of φ\varphi at the previous time step. In the transition rules, obstacle′(g)'(g) stands for wall(gg) ∨\lor door′(g)'(g), because the door is assumed to change before the agent moves.

FormulaMeaning
door′(g)=(door(g)∧agent(g))∨(Y door(g)∧¬(door(g)∧pressed))door'(g) = (door(g) \land agent(g)) \lor(\mathsf{Y}\ door(g) \land\neg(door(g) \land pressed))The door stays closed until the button is pressed, and alternates between open and closed afterwards, unless the agent is on it.
agent′(g)=⋁d((agent(g−δd)∧¬door(g−δd)∧d∧¬obstacle′(g))∨(agent(g)∧¬door(g)∧d∧obstacle′(g+δd))∨(agent(g)∧door(g)))agent'(g) = \bigvee_{d} ((agent(g-\delta_d) \land\neg door(g-\delta_d) \land d \land\neg obstacle'(g)) \lor(agent(g) \land\neg door(g) \land d \land obstacle'(g+\delta_d)) \lor(agent(g) \land door(g)))The agent moves as in Two Rooms (hard), with the door of the next time step blocking it, and it stays in gg forever once the door closes on it.
c′(g)=c(g)c'(g) = c(g), for c∈{wall,lava,button,goal}c \in\{wall, lava, button, goal\}Walls, lava, button and goal do not move.

Table 5. Transition rules of Two Rooms (periodic door).

Complete Experimental Results

Tables 6 and 7 report the F1 of the concepts for every training set size, in Two Rooms (hard) and in Ice Slider. We group the concepts into static ones, which do not change position during an episode, and dynamic ones, which do. In Two Rooms the static concepts are goal, wall, lava and button, and the dynamic ones are agent and door. In Ice Slider the static concepts are rock and goal, and the only dynamic one is agent. Each value is the F1 averaged over the concepts of the group, computed on the encoded states for h=0h=0 and on the imagined trace for h>0h>0. The rows of CGWM are labelled with the semantics used for training. LeWM is the version used in the main text, with one latent vector of 32 features per cell of the grid, and LeWM (original) is its original formulation, with a single 192-dimensional latent vector. Since the latent vector of LeWM (original) has no grid structure, the linear probe reads the feature map of its encoder on the encoded states, and the same feature map reconstructed by a decoder from the imagined latent states.

In Ice Slider the F1 on NeSy-MM of agent is higher on the imagined trace than on the encoded state. At h=0h=0 the symbolic state is read from the encoder, while at h>0h>0 it is obtained by sampling initial symbolic states from the encoder and applying the transition rules with the actions of the trajectory, so the knowledge of the dynamics also contributes to the estimate. In Ice Slider the encoder grounds the static concepts perfectly and the agent incorrectly, so the sampled states agree on the rocks and on the goal and may disagree on the position of the agent. The transition rules make the agent slide until it meets a rock or the border, and therefore map many starting positions onto the same stopping cell. Applying them to the samples concentrates the estimate, and since the true agent follows the same rules, it concentrates towards its actual position. In Two Rooms the same phenomenon happens with weaker intensity. For CGWM and LeWM, instead, the imagined state is deterministic, and it can only inherit the errors of the encoded one.

Ablations

Tables 6 and 7 also report an ablation on CGWM trained without the entropy term LH\mathcal{L}_H and without the stop-gradient on the antecedent. Results show that both components are needed to consistently achieve a perfect grounding of the concepts. In Two Rooms, no run of either ablation grounds all the concepts, and in Ice Slider only some of the runs do. The standard deviation over the seeds also becomes much larger, since the runs split between those that ground the concepts and those that do not.

More precisely, we find that both techniques are primarily effective at preventing local minima. In the ablation, only 7 out of 10 runs on Ice Slider (N=3200N=3200) with the no-entropy baseline manage to minimise the constraint losses. These runs have perfect grounding accuracy, like the non-ablated version. All other ablation runs get stuck in local minima.

Fuzzy semantics for learning and planning

Table 8 compares the modes of the two semantics, where the first and the third rows are the configurations used in the main text. Under the log-product semantics, sampling the actions with the Gumbel-Softmax is never worse than the plain softmax, and clearly better in the harder environments. Under the Gödel semantics, the Gödel Trick gives the same kind of improvement over the plain softmax.

Implementation Details

This appendix describes the architectures, the losses and the hyperparameters of CGWM and of the baselines. The environment is a grid of H×WH \times W cells G\mathcal{G}, C\mathcal{C} is the set of concepts, and zt,g,cz_{t,g,c} is the degree of truth that concept cc holds in cell gg at time step tt. A trajectory has at most Tmax⁡T_{\max} actions, 40 in Two Rooms and 20 in Ice Slider.

Implementation Details of CGWM

Encoder. The observations are RGB images, with three colour channels and l=8l=8 pixels per cell, so an image of Two Rooms has 72×12072 \times120 pixels and an image of Ice Slider has 64×6464 \times64, with values rescaled to [0,1][0,1]. The encoder applies three convolutional layers with 2×22 \times2 kernels, stride 2, and 32, 64 and 64 channels, each followed by a ReLU. The three strides reduce each 8×88 \times8 block of pixels to a single position, so the output is one 64-dimensional feature vector per cell, computed only from the pixels of that cell. Two 1×11 \times1 convolutions, the first with 32 channels and a ReLU and the second with ∣C∣|\mathcal{C}| channels, map each feature vector to one logit per concept, and the sigmoid function σ\sigma turns each logit into a degree of truth in [0,1][0,1].

Losses. We consider a batch of BB trajectories, where trajectory bb has TbT_b actions a0b,…,aTb−1ba^b_0,\ldots,a^b_{T_b-1}, labels y1b,…,yMby^b_1,\ldots,y^b_M, and fuzzy trace Zb=⟨z0b,…,zTbb⟩Z^b=\langle z^b_0,\ldots,z^b_{T_b}\rangle. Trajectories shorter than Tmax⁡T_{\max} are padded, and the padded time steps are ignored by every term. Under the log-product semantics, the four terms of Equation (4) are

Lspec=−1BM∑b=1B∑m=1M[ymblog⁡v(ωm,Zb)+(1−ymb)log⁡(1−v(ωm,Zb))],\mathcal{L}_{\mathrm{spec}}=-\frac{1}{BM}\sum_{b=1}^{B}\sum_{m=1}^{M}\left[y^b_m\log v(\omega_m,Z^b)+(1-y^b_m)\log\left(1-v(\omega_m,Z^b)\right)\right],
Lcon=−1B∣K∣∑b=1B∑κ∈Klog⁡v(κ,Zb),\mathcal{L}_{\mathrm{con}}=-\frac{1}{B|\mathcal{K}|}\sum_{b=1}^{B}\sum_{\kappa\in\mathcal{K}}\log v(\kappa,Z^b),
Lpred=1∑bTb∑b=1B∑t=0Tb−1BCE⁡(z^t+1b,zt+1b),z^t+1b=Pred⁡(ztb,atb),\mathcal{L}_{\mathrm{pred}}=\frac{1}{\sum_b T_b}\sum_{b=1}^{B}\sum_{t=0}^{T_b-1}\operatorname{BCE}\left(\hat{z}^b_{t+1},z^b_{t+1}\right),\qquad\hat{z}^b_{t+1}=\operatorname{Pred}(z^b_t,a^b_t),
LH=−1∣C∣∣G∣∑b(Tb+1)∑b=1B∑t=0Tb∑c∈C∑g∈GH(zt,g,cb).\mathcal{L}_{H}=-\frac{1}{|\mathcal{C}||\mathcal{G}|\sum_b(T_b+1)}\sum_{b=1}^{B}\sum_{t=0}^{T_b}\sum_{c\in\mathcal{C}}\sum_{g\in\mathcal{G}}\mathcal{H}\left(z^b_{t,g,c}\right).

The binary cross-entropy is averaged over all the transitions of the batch, the cells and the concepts, and H(x)=−xlog⁡x−(1−x)log⁡(1−x)H(x)=-x\log x-(1-x)\log(1-x) is the binary entropy. The weight of the entropy term at epoch ee is λH(e)=λH0max⁡(0,1−e⌈E/2⌉)\lambda_{\mathrm{H}}(e)=\lambda_{\mathrm{H}}^{0}\max\left(0,1-\frac{e}{\lceil E/2\rceil}\right), where EE is the number of epochs and λH0=1.5\lambda_{\mathrm{H}}^{0}=1.5, so it decreases linearly to zero during the first half of training.

Training. We use Adam [30] with learning rate 3⋅10−43\cdot10^{-4}, and batches of 32 trajectories. The number of epochs is chosen so that every run performs the same number of optimisation steps whatever the training set size, 6,400 in Two Rooms and 3,200 in Ice Slider, up to rounding.

Planning. For each instance, CGWM optimises 128 plans in parallel. The entries of the matrix UU of each plan (Section 3.4) are drawn from N(0,0.12)\mathcal{N}(0,0.1^{2}) and optimised with Adam, with learning rate 0.1, for 300 steps. Under the log-product semantics, the degrees of truth of the actions are sampled with the Gumbel-Softmax [29], At=softmax⁡(ut+gt)A_t=\operatorname{softmax}(u_t+g_t), where the entries of gtg_t are drawn from a standard Gumbel distribution at every step, and the loss is −log⁡v(ψ,Z^(A))-\log v(\psi,\hat{Z}(A)). Under the Gödel semantics, the Gödel Trick perturbs the plan in the same way, u~t=ut+gt\tilde{u}_t=u_t+g_t, and sets At,a=σ(u~t,a−12(u~t(1)+u~t(2)))A_{t,a}=\sigma\left(\tilde{u}_{t,a}-\frac{1}{2}\left(\tilde{u}_t^{(1)}+\tilde{u}_t^{(2)}\right)\right), where u~t(1)\tilde{u}_t^{(1)} and u~t(2)\tilde{u}_t^{(2)} are the two largest entries of u~t\tilde{u}_t. Only the action with the largest perturbed value has a degree of truth above 1/21/2, and the loss is 1−v(ψ,Z^(A))1-v(\psi,\hat{Z}(A)).

Implementation Details of Baselines

LeWM. The encoder of LeWM has the same three convolutional layers as the encoder of CGWM, followed by a 1×11\times1 convolution with 32 output channels and batch normalisation, so that the latent state is a 32-dimensional vector per cell. The predictor receives the latent state and the action, repeated in every cell, and applies a 3×33\times3 convolution with 64 channels followed by residual 3×33\times3 convolutional blocks, two in Two Rooms and six in Ice Slider, and a 1×11\times1 convolution whose output is added to the input latent state. Following Maes et al. (2026), the prediction loss is the mean squared error between the predicted and the encoded latent states, and SIGReg [11] is applied to the latent vectors of the cells, with 64 random projections and weight 0.1. The reward head is a multilayer perceptron with 256 hidden units that maps the latent state to a scalar reward, and is trained with the squared error. The reward is 1 when the agent is on the goal, and, in Two Rooms, −1-1 when the agent is on lava and 0.5 at the first time step in which the agent stands on the button. LeWM is trained with the same optimiser, learning rate, batch size and gradient clipping as CGWM, for 25,600 optimisation steps in Two Rooms and 12,800 in Ice Slider.

To plan, LeWM encodes the current image and optimises 128 plans in parallel, initialised and optimised as those of CGWM, for 300 steps. The objective of a plan is the sum of the rewards predicted along its imagined trace. LeWM then executes the first five actions of the plan with the highest objective and observes the new image. It repeats the same procedure every five actions until Tmax⁡T_{\max} actions have been executed: it encodes the last image, optimises the remaining part of the plan for 50 steps, starting from the previous solution, and executes its next five actions. The original LeWM plans with the cross-entropy method, which is designed for the continuous action spaces of its control tasks, while here an action is one of four directions. We therefore optimise its plans with a gradient-based procedure, as for CGWM, so that the two planners differ only in their objective. We also let LeWM re-observe the environment every five actions, while CGWM plans once from the first image. This is motivated by Table 6 and Table 7, since the concepts that a linear probe recovers from the imagined states of LeWM degrade as the rollout grows, so re-planning from a fresh observation keeps every imagined rollout short. This removes part of the error accumulated when imagining.

Static conceptsDynamic conceptsAll concepts
NNh=0h=040h=0h=010203040h=0h=040
CGWM (log-product)
32001.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)
8001.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)
2001.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)
500.97 (0.07)0.97 (0.07)1.00 (0.00)0.98 (0.05)0.97 (0.08)0.98 (0.07)0.98 (0.06)0.98 (0.05)0.98 (0.07)
CGWM (log-product, no stop-gradient)
32000.23 (0.18)0.23 (0.18)0.30 (0.24)0.21 (0.17)0.18 (0.15)0.19 (0.16)0.19 (0.16)0.25 (0.11)0.21 (0.11)
8000.10 (0.17)0.10 (0.17)0.40 (0.20)0.27 (0.14)0.24 (0.12)0.26 (0.13)0.26 (0.13)0.20 (0.10)0.15 (0.10)
2000.20 (0.19)0.20 (0.19)0.25 (0.25)0.17 (0.17)0.15 (0.15)0.16 (0.16)0.16 (0.16)0.22 (0.13)0.19 (0.12)
500.15 (0.17)0.15 (0.17)0.15 (0.23)0.10 (0.16)0.09 (0.14)0.10 (0.15)0.10 (0.15)0.15 (0.14)0.13 (0.12)
CGWM (log-product, no entropy)
32000.51 (0.25)0.51 (0.25)0.85 (0.32)0.63 (0.33)0.53 (0.30)0.51 (0.29)0.49 (0.29)0.63 (0.27)0.51 (0.26)
8000.52 (0.25)0.52 (0.25)0.93 (0.15)0.65 (0.23)0.53 (0.20)0.50 (0.19)0.48 (0.18)0.66 (0.21)0.51 (0.21)
2000.54 (0.26)0.54 (0.26)0.90 (0.20)0.69 (0.27)0.59 (0.23)0.56 (0.22)0.54 (0.21)0.66 (0.24)0.54 (0.23)
500.46 (0.24)0.46 (0.24)0.90 (0.20)0.68 (0.19)0.56 (0.16)0.52 (0.14)0.50 (0.13)0.60 (0.22)0.47 (0.20)
CGWM (Gödel)
32000.27 (0.16)0.27 (0.16)0.01 (0.01)0.01 (0.01)0.01 (0.01)0.01 (0.01)0.01 (0.01)0.18 (0.11)0.18 (0.11)
8000.33 (0.15)0.32 (0.15)0.01 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.22 (0.10)0.22 (0.10)
2000.27 (0.17)0.27 (0.17)0.01 (0.01)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.18 (0.12)0.18 (0.12)
500.30 (0.19)0.30 (0.19)0.01 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.20 (0.13)0.20 (0.13)
CGWM (Gödel Trick)
32000.21 (0.10)0.21 (0.10)0.12 (0.19)0.08 (0.13)0.07 (0.12)0.07 (0.12)0.08 (0.13)0.18 (0.10)0.16 (0.08)
8000.16 (0.10)0.16 (0.10)0.09 (0.17)0.06 (0.11)0.05 (0.10)0.05 (0.10)0.05 (0.11)0.13 (0.09)0.12 (0.08)
2000.06 (0.08)0.06 (0.08)0.07 (0.15)0.05 (0.10)0.04 (0.09)0.04 (0.09)0.05 (0.10)0.06 (0.09)0.05 (0.07)
500.08 (0.08)0.08 (0.08)0.06 (0.15)0.04 (0.10)0.03 (0.09)0.04 (0.09)0.04 (0.10)0.07 (0.07)0.06 (0.06)
LeWM
32001.00 (0.00)1.00 (0.00)1.00 (0.00)0.90 (0.03)0.86 (0.04)0.86 (0.04)0.86 (0.04)1.00 (0.00)0.95 (0.02)
8001.00 (0.00)1.00 (0.00)1.00 (0.00)0.80 (0.02)0.74 (0.02)0.74 (0.03)0.72 (0.03)1.00 (0.00)0.91 (0.01)
2001.00 (0.00)1.00 (0.00)1.00 (0.00)0.72 (0.02)0.63 (0.01)0.63 (0.02)0.62 (0.01)1.00 (0.00)0.87 (0.00)
501.00 (0.01)1.00 (0.00)1.00 (0.00)0.70 (0.03)0.62 (0.03)0.60 (0.04)0.57 (0.04)1.00 (0.00)0.86 (0.01)
LeWM (original)
32000.89 (0.00)0.50 (0.18)0.90 (0.20)0.00 (0.00)0.00 (0.00)0.01 (0.01)0.01 (0.01)0.90 (0.07)0.34 (0.12)
8000.89 (0.00)0.65 (0.04)0.65 (0.23)0.01 (0.01)0.01 (0.01)0.01 (0.01)0.01 (0.01)0.81 (0.08)0.44 (0.03)
2000.90 (0.01)0.28 (0.02)0.85 (0.23)0.04 (0.01)0.03 (0.01)0.03 (0.01)0.03 (0.01)0.88 (0.08)0.20 (0.01)
500.87 (0.06)0.15 (0.01)1.00 (0.00)0.02 (0.00)0.02 (0.00)0.01 (0.00)0.01 (0.00)0.92 (0.04)0.10 (0.01)
NeSy-SMM
32000.91 (0.11)0.91 (0.11)0.51 (0.21)0.52 (0.28)0.47 (0.31)0.43 (0.33)0.42 (0.33)0.78 (0.07)0.75 (0.16)
8000.82 (0.30)0.82 (0.30)0.46 (0.15)0.56 (0.31)0.52 (0.31)0.50 (0.31)0.49 (0.31)0.70 (0.24)0.71 (0.27)
2000.77 (0.17)0.76 (0.17)0.64 (0.21)0.63 (0.30)0.53 (0.32)0.48 (0.34)0.46 (0.35)0.72 (0.15)0.66 (0.21)
500.57 (0.28)0.57 (0.27)0.45 (0.15)0.41 (0.27)0.32 (0.25)0.26 (0.24)0.25 (0.24)0.53 (0.22)0.46 (0.24)

Table 6. F1 of the concepts in Two Rooms (hard), for each training set size NN and rollout step hh, as mean and standard deviation (in parentheses) over the seeds.

Static conceptsDynamic conceptsAll concepts
NNh=0h=020h=0h=05101520h=0h=020
CGWM (log-product)
32001.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)
8001.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)
2001.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)
501.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)1.00 (0.00)
CGWM (log-product, no stop-gradient)
32000.45 (0.20)0.45 (0.20)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.30 (0.13)0.30 (0.13)
8000.60 (0.35)0.60 (0.35)0.40 (0.49)0.40 (0.49)0.40 (0.49)0.40 (0.49)0.40 (0.49)0.54 (0.39)0.54 (0.39)
2000.75 (0.38)0.75 (0.38)0.70 (0.46)0.70 (0.46)0.70 (0.46)0.70 (0.46)0.70 (0.46)0.74 (0.40)0.74 (0.40)
500.79 (0.34)0.79 (0.34)0.70 (0.46)0.70 (0.46)0.70 (0.46)0.70 (0.46)0.70 (0.46)0.76 (0.37)0.76 (0.37)
CGWM (log-product, no entropy)
32000.77 (0.37)0.77 (0.37)0.80 (0.40)0.73 (0.41)0.74 (0.40)0.73 (0.41)0.73 (0.42)0.78 (0.37)0.75 (0.39)
8000.80 (0.40)0.80 (0.40)0.80 (0.40)0.82 (0.35)0.83 (0.34)0.83 (0.35)0.82 (0.36)0.80 (0.40)0.81 (0.39)
2000.85 (0.32)0.85 (0.32)0.90 (0.30)0.83 (0.34)0.84 (0.33)0.83 (0.35)0.83 (0.35)0.87 (0.31)0.84 (0.33)
500.82 (0.37)0.82 (0.37)0.80 (0.40)0.81 (0.38)0.82 (0.35)0.82 (0.36)0.82 (0.36)0.81 (0.38)0.82 (0.36)
CGWM (Gödel)
32000.57 (0.35)0.57 (0.35)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.38 (0.23)0.38 (0.23)
8000.32 (0.26)0.32 (0.26)0.00 (0.00)0.00 (0.00)0.02 (0.03)0.01 (0.02)0.00 (0.00)0.21 (0.18)0.22 (0.17)
2000.28 (0.20)0.28 (0.20)0.00 (0.00)0.00 (0.00)0.03 (0.03)0.01 (0.02)0.00 (0.00)0.19 (0.13)0.19 (0.13)
500.31 (0.25)0.31 (0.25)0.00 (0.00)0.00 (0.00)0.01 (0.03)0.01 (0.01)0.00 (0.00)0.21 (0.16)0.21 (0.16)
CGWM (Gödel Trick)
32000.31 (0.16)0.31 (0.16)0.47 (0.48)0.03 (0.04)0.05 (0.05)0.03 (0.03)0.06 (0.06)0.36 (0.25)0.23 (0.12)
8000.13 (0.08)0.13 (0.08)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.08 (0.05)0.08 (0.06)
2000.02 (0.05)0.02 (0.05)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.01 (0.04)0.01 (0.04)
500.02 (0.05)0.02 (0.05)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.00 (0.00)0.01 (0.04)0.01 (0.04)
LeWM
32001.00 (0.00)0.98 (0.04)1.00 (0.00)0.98 (0.02)0.98 (0.02)0.96 (0.04)0.95 (0.07)1.00 (0.00)0.97 (0.04)
8001.00 (0.00)0.95 (0.14)1.00 (0.00)0.89 (0.12)0.86 (0.18)0.81 (0.24)0.78 (0.26)1.00 (0.00)0.89 (0.17)
2001.00 (0.00)0.98 (0.04)1.00 (0.00)0.75 (0.02)0.66 (0.02)0.65 (0.03)0.65 (0.02)1.00 (0.00)0.87 (0.03)
501.00 (0.00)1.00 (0.00)1.00 (0.00)0.51 (0.05)0.38 (0.05)0.37 (0.03)0.37 (0.04)1.00 (0.00)0.79 (0.01)
LeWM (original)
32001.00 (0.00)0.63 (0.14)1.00 (0.00)0.01 (0.01)0.03 (0.01)0.02 (0.01)0.02 (0.01)1.00 (0.00)0.43 (0.09)
8001.00 (0.00)0.69 (0.01)1.00 (0.00)0.01 (0.00)0.01 (0.01)0.01 (0.01)0.01 (0.01)1.00 (0.00)0.46 (0.01)
2001.00 (0.00)0.55 (0.01)1.00 (0.00)0.01 (0.01)0.01 (0.01)0.02 (0.01)0.02 (0.01)1.00 (0.00)0.38 (0.01)
501.00 (0.00)0.42 (0.02)1.00 (0.00)0.01 (0.01)0.02 (0.01)0.02 (0.01)0.03 (0.02)1.00 (0.00)0.29 (0.01)
NeSy-MMM
32001.00 (0.01)1.00 (0.01)0.20 (0.40)0.42 (0.29)0.52 (0.24)0.48 (0.26)0.45 (0.28)0.73 (0.13)0.82 (0.09)
8001.00 (0.00)1.00 (0.00)0.10 (0.30)0.35 (0.22)0.46 (0.18)0.43 (0.19)0.40 (0.20)0.70 (0.10)0.80 (0.07)
2001.00 (0.01)1.00 (0.01)0.00 (0.00)0.27 (0.02)0.40 (0.03)0.35 (0.03)0.32 (0.04)0.67 (0.00)0.77 (0.02)
500.99 (0.01)0.99 (0.01)0.20 (0.40)0.40 (0.30)0.49 (0.26)0.45 (0.28)0.41 (0.30)0.73 (0.14)0.80 (0.10)

Table 7. F1 of the concepts in Ice Slider, for each training set size NN and rollout step hh, as mean and standard deviation (in parentheses) over the seeds.

Since the latent state of LeWM does not explicitly contain the concepts, we read them with a linear probe, a 1×11\times1 convolution that maps the latent vector of each cell to one value per concept. The probe is trained with the binary cross-entropy against the true concepts of the encoded states of the first 300 training trajectories of the run, for min⁡(300,N)\min(300,N) epochs (where NN is the number of trajectories) with Adam and a learning rate of 0.01. The probe is then applied to both the encoded and the imagined latent states.

LeWM (original). LeWM (original) follows the original formulation, in which the latent state is a single 192-dimensional vector. The encoder has the same three convolutional layers, followed by a fully connected layer with 256 units, batch normalisation, a ReLU, and a linear layer with 192 outputs. The predictor adds to the latent vector the output of a multilayer perceptron with 512 hidden units, which receives the latent vector and the one-hot action. It is trained with the same losses as LeWM, with SIGReg applied to the latent vectors with 1024 random projections, and with the same reward head, optimiser and number of steps. Since its latent vector has no grid structure, a decoder, consisting of a multilayer perceptron with 256 hidden units, is trained to reconstruct the feature map of the encoder from the latent vector, with no gradient flowing back into the world model. The probe then reads the 64-dimensional feature vector of each cell. On the encoded states it reads the feature map of the encoder, and on the imagined states it reads the feature map reconstructed by the decoder. With this latent state, the probe recovers the dynamic concepts from the encoded states, but its F1 on the imagined states falls close to zero already after a few imagined steps (Table 6 and Table 7). A plan optimised on such rollouts carries no information about where the agent is, which is why the version used in the main text keeps one latent vector per cell.

NeSy-MM. NeSy-MM receives the same concepts, transition rules, constraints and specification formulas as CGWM, and the same trajectory labels. CGWM encodes an image into a fuzzy symbolic state and evaluates every formula once on the resulting fuzzy trace, obtaining a degree of truth, while NeSy-MM uses its perception to define a probability distribution over crisp symbolic states, and evaluates the same formulas with Boolean semantics on states sampled from it. The perception of NeSy-MM has the same architecture as the encoder of CGWM, and outputs a categorical distribution over the cells for agent and goal, and for button in Two Rooms, and a Bernoulli distribution per cell for the other concepts. Given an observation, NeSy-MM samples 100 symbolic states from the distribution provided by the encoder. The transition rules are then applied to each sampled state, with the crisp actions of the trajectory, and since the environment is deterministic and the rules are complete, this results in a crisp symbolic trace. Each constraint and each specification formula is then evaluated on this trace under classical semantics, and is therefore either true or false. NeSy-MM is trained by maximising the log-probability that the constraints are evaluated as true and that the specification formulas match their respective labels. This is estimated over the 1000 samples. The gradient with respect to the sampled concepts is estimated with the RLOO estimator ([32]). NeSy-MM is trained with Adam, batches of 32 trajectories and the same number of optimisation steps as CGWM, with learning rate 10−310^{-3} in Two Rooms and 3⋅10−43 \cdot10^{-4} in Ice Slider. To measure the grounding, for each concept we take the most probable cell if the concept occupies exactly one cell, and all the cells with probability above 1/21/2 otherwise.

Evaluation Protocol

Every model is trained with the ten seeds and with N∈{50,200,800,3200}N \in\{50, 200, 800, 3200\} training trajectories. For a given seed, the NN trajectories are the first NN of a random permutation of the 3200 training trajectories, so the smaller training sets are contained in the larger ones. The seed also determines the initialisation of the model, the order of the batches, and the noise sampled during training for the model that requires it. During planning, for each seed, 100 instances are sampled without replacement from the 800 test trajectories of the environment, and all the methods plan on the same instances. CGWM plans with the world model trained with the log-product semantics and the same seed on 3200 trajectories of Two Rooms (hard) or of Ice Slider. LeWM plans with the model trained with the same seed on the corresponding environment, which also includes Two Rooms (easy) and Two Rooms (medium). An instance counts as solved when executing the plan in the environment brings the agent to the goal. In the setting T=T∗T=T^* of Ice Slider, T∗T^* is the length of the shortest plan of the instance, computed by breadth-first search.

Hardware and Reproducibility

Hardware. All experiments were run on a machine with two Intel Xeon Silver 4410Y processors, 256 GB of RAM, and two NVIDIA RTX A6000 GPUs with 48 GB of memory each.

Reproducibility. We do not distribute the datasets, as they are generated procedurally and deterministically by the code we release. Each dataset is generated from a fixed seed. All the other sources of randomness are seeded as well. The code, together with the configuration file of every run and the versions of the libraries, is available at https://anonymous.4open.science/r/cgwm-726E.

References

  1. [1]Forest Agostinelli and Misagh Soltani. Learning discrete world models for heuristic search. RLJ, 4:1781–1792, 2024. URL https://rlj.cs.umass.edu/2024/papers/Paper225.html.
  2. [2]Zergham Ahmed, Joshua B. Tenenbaum, Christopher Bates, and Samuel J. Gershman. Synthesizing world models for belief planning. Trans. Mach. Learn. Res., 2025, 2025. URL https://openreview.net/forum?id=m9V4JHLJrD.arxiv.org/abs/2503.20124
  3. [3]Riccardo Andreoni, Andrei Buliga, Alessandro Daniele, Chiara Ghidini, Marco Montali, and Massimiliano Ronzani. T-ILR: a neurosymbolic integration for LTLf. In Leilani H. Gilpin, Eleonora Giunchiglia, Pascal Hitzler, and Emile van Krieken (eds.), Proceedings of The 19th International Conference on Neurosymbolic Learning and Reasoning (NeSy 2025), 8-10 September 2025, Santa Cruz, CA, USA, volume 284 of Proceedings of Machine Learning Research, pp. 252–265. PMLR, 2025. URL https://proceedings.mlr.press/v284/andreoni25a.html.arxiv.org/abs/2508.15943
  4. [4]Riccardo Andreoni, Andrei Buliga, Alessandro Daniele, Paolo Felli, Chiara Ghidini, Marco Montali, and Massimiliano Ronzani. Time to reason: Scalable neurosymbolic learning for ltlf via fuzzy semantics. CoRR, abs/2608.16443, 2026. doi: 10.48550/ARXIV.2608.16443. URL https://doi.org/10.48550/arXiv.2608.16443.
  5. [5]Masataro Asai, Hiroshi Kajino, Alex Fukunaga, and Christian Muise. Classical planning in deep latent space. J. Artif. Intell. Res., 74:1599–1686, 2022. doi: 10.1613/JAIR.1.13768. URL https://doi.org/10.1613/jair.1.13768.
  6. [6]Mido Assran, Adrien Bardes, David Fan, Quentin Garrido, Russell Howes, Mojtaba Komeili, Matthew J. Muckley, Ammar Rizvi, Claire Roberts, Koustuv Sinha, Artem Zholus, Sergio Arnaud, Abha Gejji, Ada Martin, Francois Robert Hogan, Daniel Dugas, Piotr Bojanowski, Vasil Khalidov, Patrick Labatut, Francisco Massa, Marc Szafraniec, Kapil Krishnakumar, Yong Li, Xiaodong Ma, Sarah Chandar, Franziska Meier, Yann LeCun, Michael Rabbat, and Nicolas Ballas. V-JEPA 2: Self-supervised video models enable understanding, prediction and planning. CoRR, abs/2506.09985, 2025. doi: 10.48550/ARXIV.2506.09985. URL https://doi.org/10.48550/arXiv.2506.09985.
  7. [7]Samy Badreddine, Artur S. d’Avila Garcez, Luciano Serafini, and Michael Spranger. Logic tensor networks. Artif. Intell., 303:103649, 2022. doi: 10.1016/J.ARTINT.2021.103649. URL https://doi.org/10.1016/j.artint.2021.103649.
  8. [8]Samy Badreddine, Luciano Serafini, and Michael Spranger. LogItn: Differentiable fuzzy logic in the logarithm space. CoRR, abs/2306.14546, 2023. doi: 10.48550/ARXIV.2306.14546. URL https://doi.org/10.48550/arXiv.2306.14546.
  9. [9]Marco Bagatella, Miroslav Olsák, Michal Rolínek, and Georg Martius. Planning from pixels in environments with combinatorially hard search spaces. In Marc’Aurelio Ranzato, Alina Beygelzimer, Yann N. Dauphin, Percy Liang, and Jennifer Wortman Vaughan (eds.), Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, pp. 24707–24718, 2021. URL https://proceedings.neurips.cc/paper/2021/hash/cf708fc1dcef0337aded484f8f4519ae-Abstract.html.arxiv.org/abs/2110.06149
  10. [10]Christel Baier and Joost-Pieter Katoen. Principles of model checking. MIT Press, 2008. ISBN 978-0-262-02649-9.
  11. [11]Randall Balestriero and Yann LeCun. Lejepa: Provable and scalable self-supervised learning without the heuristics. CoRR, abs/2511.08544, 2025. doi: 10.48550/ARXIV.2511.08544. URL https://doi.org/10.48550/arXiv.2511.08544.
  12. [12]Pietro Barbiero, Gabriele Ciravegna, Francesco Giannini, Mateo Espinosa Zarlenga, Lucie Charlotte Magister, Alberto Tonda, Pietro Lio, Frédéric Precioso, Mateja Jamnik, and Giuseppe Marra. Interpretable neural-symbolic concept reasoning. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (eds.), International Conference on Machine Learning, ICML 2023, 23-29 July 2023, Honolulu, Hawaii, USA, volume 202 of Proceedings of Machine Learning Research, pp. 1801–1825. PMLR, 2023. URL https://proceedings.mlr.press/v202/barbiero23a.html.
  13. [14]Davide Bizzaro and Luciano Serafini. Discrete world models via regularization. In Maria De Marsico, Tin Kam Ho, Frédéric Jurie, Cheng-Lin Liu, Daniel P. Lopresti, Ingela Nyström, Jean-Marc Ogier, Arun Ross, and Liang Wang (eds.), Pattern Recognition - 28th International Conference, ICPR 2026, Lyon, France, August 17-22, 2026, Proceedings, Part XIII, volume 16824 of Lecture Notes in Computer Science, pp. 79–93. Springer, 2026. doi: 10.1007/978-3-032-31927-2\_6. URL https://doi.org/10.1007/978-3-032-31927-2\_6.
  14. [15]Alessandro Daniele and Emile van Krieken. Gradient-based optimization on gödel logic as discrete local search. In Renata Wassermann, Marie-Laure Mugnier, and Franz Baader (eds.), Proceedings of the 23rd International Conference on Principles of Knowledge Representation and Reasoning, KR 2026, Lisbon, Portugal, July 20-23, 2026, 2026. doi: 10.24963/KR.2026/84. URL https://doi.org/10.24963/kr.2026/84.
  15. [16]Alessandro Daniele, Tommaso Campari, Sagar Malhotra, and Luciano Serafini. Deep symbolic learning: Discovering symbols and rules from perceptions. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, IJCAI 2023, 19th-25th August 2023, Macao, SAR, China, pp. 3597–3605. ijcai.org, 2023. doi: 10.24963/IJCAI.2023/400. URL https://doi.org/10.24963/ijcai.2023/400.
  16. [17]Anna Dawid and Yann LeCun. Introduction to latent variable energy-based models: A path towards autonomous machine intelligence. CoRR, abs/2306.02572, 2023. doi: 10.48550/ARXIV.2306.02572. URL https://doi.org/10.48550/arXiv.2306.02572.
  17. [18]Giuseppe De Giacomo and Moshe Y. Vardi. Linear temporal logic and linear dynamic logic on finite traces. In Francesca Rossi (ed.), IJCAI 2013, Proceedings of the 23rd International Joint Conference on Artificial Intelligence, Beijing, China, August 3-9, 2013, pp. 854–860. IJCAI/AAAI, 2013. URL http://www.aaai.org/ocs/index.php/IJCAI/IJCAI13/paper/view/6997.
  18. [19]Giuseppe De Giacomo, Riccardo De Masellis, and Marco Montali. Reasoning on LTL on finite traces: Insensitivity to infiniteness. In Carla E. Brodley and Peter Stone (eds.), Proceedings of the Twenty-Eighth AAAI Conference on Artificial Intelligence, July 27 -31, 2014, Québec City, Québec, Canada, pp. 1027–1033. AAAI Press, 2014. doi: 10.1609/AAAI.V28I1.8872.DOI
  19. [20]Lennert De Smet, Pedro Zuidberg Dos Martires, Robin Manhaeve, Giuseppe Marra, Angelika Kimmig, and Luc De Raedt. Neural probabilistic logic programming in discrete-continuous domains. In Robin J. Evans and Ilya Shpitser (eds.), Proceedings of the Thirty-Ninth Conference on Uncertainty in Artificial Intelligence, volume 216 of Proceedings of Machine Learning Research, pp. 529–538. PMLR, 31 Jul–04 Aug 2023. URL https://proceedings.mlr.press/v216/de-smet23.html.arxiv.org/abs/2303.04660
  20. [21]Lennert De Smet, Gabriele Venturato, Luc De Raedt, and Giuseppe Marra. Relational neurosymbolic markov models. In Toby Walsh, Julie Shah, and Zico Kolter (eds.), Thirty-Ninth AAAI Conference on Artificial Intelligence, Thirty-Seventh Conference on Innovative Applications of Artificial Intelligence, Fifteenth Symposium on Educational Advances in Artificial Intelligence, AAAI 2025, Philadelphia, PA, USA, February 25 - March 4, 2025, pp. 16181–16189. AAAI Press, 2025. doi: 10.1609/AAAI.V39I15.33777. URL https://doi.org/10.1609/aaai.v39i15.33777.
  21. [22]Jingtao Ding, Yunke Zhang, Yu Shang, Yuheng Zhang, Zefang Zong, Jie Feng, Yuan Yuan, Hongyuan Su, Nian Li, Nicholas Sukiennik, Fengli Xu, and Yong Li. Understanding world or predicting future? A comprehensive survey of world models. ACM Comput. Surv., 58(3): 57:1–57:38, 2026. doi: 10.1145/3746449. URL https://doi.org/10.1145/376449.
  22. [23]Jonathan Feldstein, Paulius Dilkas, Vaishak Belle, and Efthymia Tsamoura. Mapping the neurosymbolic AI landscape by architectures: A handbook on augmenting deep learning through symbolic reasoning. CoRR, abs/2410.22077, 2024. doi: 10.48550/ARXIV.2410.22077. URL https://doi.org/10.48550/arXiv.2410.22077.
  23. [24]Giuseppe De Giacomo, Luca Iocchi, Marco Favorito, and Fabio Patrizi. Foundations for restraining bolts: Reinforcement learning with ltl/ldf restraining specifications. In J. Benton, Nir Lipovetzky, Eva Onaindia, David E. Smith, and Siddharth Srivastava (eds.), Proceedings of the Twenty-Ninth International Conference on Automated Planning and Scheduling, ICAPS 2019, Berkeley, CA, USA, July 11-15, 2019, pp. 128–136. AAAI Press, 2019. URL https://ojs.aaai.org/index.php/ICAPS/article/view/3549.
  24. [25]David Ha and Jürgen Schmidhuber. World models. CoRR, abs/1803.10122, 2018. URL http://arxiv.org/abs/1803.10122.
  25. [26]Danijar Hafner, Jurgis Pasukonis, Jimmy Ba, and Timothy P. Lillicrap. Mastering diverse domains through world models. CoRR, abs/2301.04104, 2023. doi: 10.48550/ARXIV.2301.04104. URL https://doi.org/10.48550/arXiv.2301.04104.
  26. [27]Nicklas Hansen, Hao Su, and Xiaolong Wang. TD-MPC2: scalable, robust world models for continuous control. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024. URL https://openreview.net/forum?id=Oxh5CStDJU.arxiv.org/abs/2310.16828
  27. [28]Rodrigo Toro Icarte, Toryn Q. Klassen, Richard Anthony Valenzano, and Sheila A. McIlraith. Reward machines: Exploiting reward function structure in reinforcement learning. J. Artif. Intell. Res., 73:173–208, 2022. doi: 10.1613/JAIR.1.12440. URL https://doi.org/10.1613/jair.1.12440.
  28. [29]Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. URL https://openreview.net/forum?id=rkE3y85ee.arxiv.org/abs/1611.01144
  29. [30]Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun (eds.), 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http://arxiv.org/abs/1412.6980.
  30. [31]Patrick Knab, David Steinmann, Christian Bartelt, Kristian Kersting, Bernt Schiele, Thomas Seidl, Udo Schlegel, and Wolfgang Stammer. What’s in the bottle? A survey and roadmap of concept bottleneck models. Trans. Mach. Learn. Res., 2026, 2026. URL https://openreview.net/forum?id=IF5vinqxBEW.DOI
  31. [32]Wouter Kool, Herke Van Hoof, and Max Welling. Buy 4 reinforce samples, get a baseline for free! drlStructPred 2019, 2019.
  32. [33]Heinrich Küttler, Nantas Nardelli, Alexander H. Miller, Roberta Raileanu, Marco Selvatici, Edward Grefenstette, and Tim Rocktäschel. The nethack learning environment. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin (eds.), Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. URL https://proceedings.neurips.cc/paper/2020/hash/569ff987c643b4bedf504efda8f786c2-Abstract.html.arxiv.org/abs/2006.13760
  33. [34]Timothée Lesort, Natalia Díaz Rodríguez, Jean-François Goudou, and David Filliat. State representation learning for control: An overview. Neural Networks, 108:379–392, 2018. doi: 10.1016/J.NEUNET.2018.07.006. URL https://doi.org/10.1016/j.neunet.2018.07.006.
  34. [35]Lucas Maes, Quentin Le Lidec, Damien Scieur, Yann LeCun, and Randall Balestriero. Leworld-model: Stable end-to-end joint-embedding predictive architecture from pixels. CoRR, abs/2603.19312, 2026. doi: 10.48550/ARXIV.2603.19312. URL https://doi.org/10.48550/arXiv.2603.19312.
  35. [36]Nikolaos Manginas, George Paliouras, and Luc De Raedt. Nesya: Neurosymbolic automata. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI 2025, Montreal, Canada, August 16-22, 2025, pp. 5950–5958. ijcai.org, 2025. doi: 10.24963/IJCAI.2025/662. URL https://doi.org/10.24963/ijcai.2025/662.
  36. [37]Robin Manhaeve, Sebastijan Dumancic, Angelika Kimmig, Thomas Demeester, and Luc De Raedt. Deepproblog: Neural probabilistic logic programming. In Samy Bengio, Hanna M. Wallach, Hugo Larochelle, Kristen Grauman, Nicolò Cesa-Bianchi, and Roman Garnett (eds.), Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, December 3-8, 2018, Montréal, Canada, pp. 3753–3763, 2018. URL https://proceedings.neurips.cc/paper/2018/hash/dc5d637ed5e62c36ec7b3654b05ba2a-Abstract.html.arxiv.org/abs/1805.10872
  37. [38]Emanuele Marconato, Samuele Bortolotti, Emile van Krieken, Paolo Morettin, Elena Umili, Antonio Vergari, Efthymia Tsamoura, Andrea Passerini, and Stefano Teso. Symbol grounding in neuro-symbolic AI: A gentle introduction to reasoning shortcuts. J. Artif. Intell. Res., 86, 2026. doi: 10.1613/JAIR.1.22389. URL https://doi.org/10.1613/jair.1.22389.
  38. [39]John McCarthy and Patrick J Hayes. Some philosophical problems from the standpoint of artificial intelligence. In Readings in artificial intelligence, pp. 431–450. Elsevier, 1981.DOI
  39. [40]Ajay Ramachandra, Gesina Schwalbe, and Zoe Falomir. Injecting qualitative spatial reasoning into world models via logic tensor networks. In Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence and the 29th European Conference on Artificial Intelligence, IJCAI/ECAI 2026, Bremen, Germany, 15-21 August 2026, pp. 4016–4025. ijcai.org, 2026. doi: 10.24963/IJCAI.2026/447. URL https://doi.org/10.24963/ijcai.2026/447.
  40. [41]Mikayel Samvelyan, Robert Kirk, Vitaly Kurin, Jack Parker-Holder, Minqi Jiang, Eric Hambro, Fabio Petroni, Heinrich Küttler, Edward Grefenstette, and Tim Rocktäschel. Minihack the planet: A sandbox for open-ended reinforcement learning research. In Joaquin Vanschoren and Sai-Kit Yeung (eds.), Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks 1, NeurIPS Datasets and Benchmarks 2021, December 2021, virtual, 2021. URL https://datasets-benchmarks-proceedings.neurips.cc/paper/2021/hash/fa7cdfad1a5aaf8370ebeda47a1ff1c3-Abstract-round1.html.arxiv.org/abs/2109.13202
  41. [42]Julian Schrittwieser, Ioannis Antonoglou, Thomas Hubert, Karen Simonyan, Laurent Sifre, Simon Schmitt, Arthur Guez, Edward Lockhart, Demis Hassabis, Thore Graepel, Timothy P. Lillicrap, and David Silver. Mastering atari, go, chess and shogi by planning with a learned model. Nat., 588(7839):604–609, 2020. doi: 10.1038/S41586-020-03051-4. URL https://doi.org/10.1038/s41586-020-03051-4.
  42. [43]Uladzislau Sobal, Wancong Zhang, Kyung hyun Cho, Randall Balest riero, Tim G. J. Rudner, and Yann LeCun. Learning from reward-free offline data: A case for planning with latent dynamics models. In Danielle Bel grave, Cheng Zhang, Laura N. Montoya, Hsuan-Tien Lin, Razvan Pascanu, Piotr Koniusz, Marzyeh Ghassemi, Nancy Chen, Iván Vladimirov Meza Ruíz, and Arturo Loaiza-Bonilla (eds.), Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025, San Diego, CA, USA, December 2-7, 2025 / Mexico City, Mexico, November 30 - December 5, 2025, 2025. URL http://papers.nips.cc/paper_files/paper/2025/hash/3e7cf447f21cd11c846463affefce665-Abstract-Conference.html.arxiv.org/abs/2502.14819
  43. [44]Richard S. Sutton. Integrated architectures for learning, planning, and reacting based on approximating dynamic programming. In Bruce W. Porter and Raymond J. Mooney (eds.), Machine Learning, Proceedings of the Seventh International Conference on Machine Learning, Austin, Texas, USA, June 21-23, 1990, pp. 216–224. Morgan Kaufmann, 1990. doi: 10.1016/B978-1-55860-141-3.50030-4. URL https://doi.org/10.1016/b978-1-55860-141-3.50030-4.
  44. [45]Isidoro Tamassia, Lennert De Smet, and Giuseppe Marra. Towards zero-shot task transfer with neurosymbolic world models. CoRR, abs/2608.17959, 2026. doi: 10.48550/ARXIV.2608.17959. URL https://doi.org/10.48550/arXiv.2608.17959.
  45. [46]Hao Tang, Darren Key, and Kevin Ellis. Worldcoder, a model-based llm agent: Building world models by writing code and interacting with the environment. Advances in Neural Information Processing Systems, 37:70148–70212, 2024.arxiv.org/abs/2402.12275
  46. [47]Elena Umili, Roberto Capobianco, and Giuseppe De Giacomo. Grounding ltlf specifications in image sequences. In Pierre Marquis, Tran Cao Son, and Gabriele Kern-Isberner (eds.), Proceedings of the 20th International Conference on Principles of Knowledge Representation and Reasoning, KR 2023, Rhodes, Greece, September 2-8, 2023, pp. 668–678, 2023. doi: 10.24963/KR.2023/65. URL https://doi.org/10.24963/kr.2023/65.
  47. [48]Elena Umili, Francesco Argenziano, and Roberto Capobianco. Neural reward machines. In Ulle Endriss, Francisco S. Melo, Kerstin Bach, Alberto José Bugarín Diz, Jose Maria Alonso-Moral, Senén Barro, and Fredrik Heintz (eds.), ECAI 2024 - 27th European Conference on Artificial Intelligence, 19-24 October 2024, Santiago de Compostela, Spain - Including 13th Conference on Prestigious Applications of Intelligent Systems (PAIS 2024), volume 392 of Frontiers in Artificial Intelligence and Applications, pp. 3055–3062. IOS Press, 2024. doi: 10.3233/FAIA240847. URL https://doi.org/10.3233/FAIA240847.
  48. [49]Emile van Krieken, Erman Acar, and Frank van Harmelen. Analyzing differentiable fuzzy logic operators. Artif. Intell., 302:103602, 2022. doi: 10.1016/J.ARTINT.2021.103602. URL https://doi.org/10.1016/j.artint.2021.103602.
  49. [50]Kai Xi, Stephen Gould, and Sylvie Thiébaux. Learning lifted action models from unsupervised visual traces. CoRR, abs/2604.19043, 2026. doi: 10.48550/ARXIV.2604.19043. URL https://doi.org/10.48550/arXiv.2604.19043.
  50. [51]Jingyi Xu, Zilu Zhang, Tal Friedman, Yitao Liang, and Guy Van den Broeck. A semantic loss function for deep learning with symbolic knowledge. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 5502–5511. PMLR, 10–15 Jul 2018. URL https://proceedings.mlr.press/v80/xu18h.html.arxiv.org/abs/1711.11157
  51. [52]Gaoyue Zhou, Hengkai Pan, Yann LeCun, and Lerrel Pinto. DINO-WM: world models on pre-trained visual features enable zero-shot planning. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu (eds.), Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, volume 267 of Proceedings of Machine Learning Research. PMLR / OpenReview.net, 2025. URL https://proceedings.mlr.press/v267/zhou25t.html.arxiv.org/abs/2411.04983

Paper details

vlnc:W_nh86myxs
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents