- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 2
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper presents a theoretical analysis of the conditions under which it is possible to extract an accurate world model from the Q-values generated by goal-conditioned RL. The work analyses different MDP classes (e.g., deterministic/stochastic, discrete/continuous) and provides the assumptions and conditions required by each class for recovering a good transition model (Tab. 1). The methodology for extracting the transition model P (P-learning), based on the inversion of the Bellman equation, is provided together with a theoretical analysis about i) the convergence of the P-learning algorithm, ii) its (P) recovery capability in finite deterministic MDPs, finite stochastic MDPs, and continuous deterministic MDPs. Finally, an empirical analysis shows that the world models generated by the P-learning algorithm across different MDP classes, under the relevant conditions, confirm the theoretical analysis.
Strengths and weaknesses
Strengths:
- Relevance to the conference: The topic of the paper perfectly matches the NeurIPS topics. I think the work could get the interest of the RL community
- Significance/Impact: The paper develops an interesting bridge between model-free and model-based reinforcement learning and provides a mathematically rigorous framework for reasoning about when value functions uniquely determine environment dynamics. I think this kind of theoretical work is also useful for generating stronger applications in the context of model-based RL and world models.
- Writing quality: The paper is well written and organized. The mathematical notation seems to be correct and well-defined. Concepts are defined in a logical order.
- Technical soundness: although I couldn't check all details, my impression is that the theoretical analysis is sound.
Weaknesses:
- Originality: The main idea of the paper is basically to make explicit the transition model in the Q-value Bellman equation (Eq. 1 and 2) and to solve the related equation system on P, considering Q known (Eq. 3). The theoretical results are basically related to the conditions that must be satisfied to solve this problem, depending on the class of MDP. According to Sec. 6, paper [43] "showed that converged Q-values encode dynamics under a “reverse Lipschitz” assumption on V^\pi which rarely holds in practice, and is limited to deterministic MDPs and a single goal", paper [44] "proved that V^* recovers deterministic MDPs up to isomorphism, but not in stochastic environments", paper [45] "provide mechanistic-interpretability evidence that model-free agents develop implicit forward models". The authors only say that their work "invokes weaker assumptions than this prior literature, and operates in a more practical setting." This is a very general analysis, and, as reported on the next points, in my opinion, the proposed analysis hardly works in practical settings. I think a stronger analysis of the actual contribution of this paper to the SOTA should be provided to allow the reader to understand what is actually new. In particular, differences and improvements with respect to [43] should be clearly stated, since it looks to be the closest work in the literature.
- Practical relevance and interpretation of the theoretical results: The identifiability results appear to depend critically on rank and injectivity assumptions that are largely imposed rather than derived. While the results seem mathematically correct, conditional on these assumptions, it is unclear whether they can characterize practical goal-conditioned RL systems or if they are limited to unrealistic, theoretically favorable conditions. In other words, the strongest theoretical guarantees rely on assumptions that may be difficult to satisfy in practice and are only loosely connected to the experimental setup.
- Statistical robustness: A weakness that I see is related to the limited analysis of statistical robustness when Q-functions are learned imperfectly with neural function approximation or using limited datasets. What the paper does not provide is, for instance, a sample complexity result. How much data is needed to get a good recovery? How does recovery quality scale with Q-function estimation error?
- Reproducibility: several details are provided in the appendix, but in my opinion, the code is important to allow other researchers to evaluate the proposed methodology
- Limited empirical analysis: The empirical evaluation is relatively small-scale and does not demonstrate scalability to more challenging modern RL domains. This point is also related to the second weakness described above.
- Notation: some notation should be better defined. For instance, in line 116: "when Pφ has full support" -> the term support has not been defined before. What does it mean?
- Bibliography: the bibliography has a very heterogeneous format and some elements (e.g., page numbers) are often missing.
Questions
- What are the main differences between the contribution of this paper and that of [43, ICLR 2025]? Please make them clear so we can fully evaluate the paper's novelty.
- Regarding the third weakness that I have identified, I'd like to ask the authors if they have (also preliminary) answers to the following questions: How much data is needed to get a good recovery? How does recovery quality scale with Q-function estimation error?
- How would you evaluate the practical relevance of the theoretical results provided in this paper? Do you have experiments showing that the proposed framework can also provide useful knowledge in realistic domains?
Limitations
Yes.
Paper formatting concerns
No concerns.
Final justification
The authors have answered my questions quite comprehensively. I am now more convinced of the paper's originality, particularly regarding the differences from Richens et al., as well as the plausibility of its assumptions and the statistical robustness of the approach (specifically, the relationship between recovery quality and Q-function estimation error).
Regarding novelty, I view the specific inverse-Bellman formulation, the identifiability results, and the practical model-extraction algorithm as original contributions. However, the broader conceptual claim seems less novel than the paper’s framing sometimes suggests. For example, General Agents Need World Models (Richens, Everitt & Abel, ICML 2025, https://raw.githubusercontent.com/mlresearch/v267/main/assets/richens25a/richens25a.pdf) already shows that sufficiently competent goal-conditioned agents determine an approximate transition model and provides procedures for extracting such a model from the agent’s policy.
Some aspects still seem improvable, and it is difficult to predict how they will ultimately be incorporated into the final version of the paper (e.g., the theorems for continuous state spaces presented in the rebuttal).
On balance, I am increasing my final rating from weak reject to weak accept, but I still see a weakness in the methodological and empirical comparison with the state of the art, which I believe could be substantially strengthened.
We thank the reviewer for these excellent questions. Please find our responses to each point below.
Our main contribution is to provide the first demonstration of world model recovery from real RL agents, with a practical algorithm that can support further research in this important direction. Instead, Richens et al. show that goal-conditioned agents contain implicit world models under three unrealistically strong assumptions, which make it difficult to build on their theorems empirically:
A1. The agent must be trained to achieve goals specified by Linear Temporal Logic (LTL) expressions, whereas real goal-conditioned agents are trained on more general goals parameterised by reward functions like rg(s)=1[∥s−g∥<σ] or rg(s)=−∥s−g∥, which cannot be formulated in the LTL framework.
A2. The agent must satisfy a strict regret bound for all LTL goals of a given depth N>1, implying a goal set of size ∣G∣=O(∣S∣N), whereas real agents are trained on a set of simple (N=1) goals no larger than ∣G∣=O(∣S∣), and typically much smaller (∣G∣=O(1)).
A3. The agent must be trained on discrete state-action spaces, but many agents are trained in continuous environments (MuJoCo, OGBench, autonomous vehicles, real-world continuous control).
Hence, their paper contains no demonstration of recovering world models from extant goal-conditioned RL agents, theoretically or empirically. In fact, the authors themselves prove that it is not possible to recover a world model from the policy of an agent with simple goals (Theorem 2). These important limitations are acknowledged in their paper, and overcoming them required the leverage of value functions, significant theoretical work, and the resulting method of P-learning.
We aim to make minimal assumptions on the underlying MDP, agent policies/value functions, discount factors and reward functions, in order to provide the broadest sufficient conditions for which world models are uniquely determined. But, as our experiments show, often we can do with less in practice. Our results for deterministic, sparse and fully-stochastic MDPs in the finite case, we argue, are highly relevant in practice; we exemplify this in the gridworld experiments of Appendix F, where all three settings are studied and shown to validate theoretical predictions, and often exceed them.
For continuous state spaces, we acknowledge the apparent gap between theory and practice, and are excited to share a clearer bridge via two novel theorems that delineate why a small number of sparse goals are often sufficient for world model recovery, as detailed below.
For deterministic MDPs and finitely many goals, a world model is uniquely identified by (π,Qπ) if the Bellman map m:Rd→RL is injective (see Appendix D.4), where m(s)=(mg1(s),…,mgL(s)) and mg(s)=rg(s)+γDg(s)Vgπ(s). However, injectivity may fail for any finite goal set without additional regularity assumptions. For instance, if the MDP has a trivial transition kernel given by P(s,a)=s, then for sparse goals with termination on arrival, the Bellman map is simply mg(s)=1[∥s−g∥<σ]. In particular, m(s)=(mg1(s),…,mgL(s)) is a discrete map taking finitely many values, and therefore cannot be injective.
If m:Rd→RL were instead smooth, injectivity would still be impossible for L<d, yet would “generically” be satisfied for L≥2d+1. (More precisely, the set of injective maps is dense in the C∞ topology, so any smooth map can be approximated arbitrarily well by an injective one.) In particular, two sources of smoothness can allow us to expect that a finite goal set can induce injectivity, even for sparse goals. First, if value functions are learnt, the Vgπ term in the Bellman map can ''smoothen out'' the reward function via continuity/smoothness of the underlying neural network, allowing m to take infinitely many values and possibly becoming injective. This is what we observe in our MountainCar and Reacher experiments, as diagnosed further down. Alternatively, this smoothing effect can be understood in light of Theorem 8, where we proved that a finite number of Gaussian goals is sufficient for injectivity, noting that the Gaussian reward can be viewed as a smooth version of the sparse reward, with the intuition that function approximators lead to similar smoothness. Since submission, we have strengthened this result in two ways: (a) Gaussian goals can be replaced by an arbitrarily light smoothing of sparse goals, making explicit the bridge from infinite to finite goals, and (b) under additional structural assumptions including real analyticity of Vπ, as few as 2d+1 Gaussian goals suffice, in harmony with the “generic” property described above.
For further details, including a diagnostic that guarantees world model recovery using a finite number of sparse goals, please see our response to Reviewer QYsz.
Our bounds in Theorems 2(b) and 3(b) address this directly, not with respect to data (which does not in itself guarantee how accurate Q-values will be, since we are agnostic with respect to the agent’s learning algorithm), but with respect to Q-function accuracy, which is the meaningful metric of “consistency” for an agent.
Nonetheless, we do empirically demonstrate the amount of data required for good recovery in Figure 5 of Appendix E, where the WM error is shown as a function of PQN update steps (1 update = 16,666 environment steps, but we have now updated the figures to have environment steps on the x-axis for clarity). For example, in part (d) of the plot, it is shown that the recovered WM is already highly accurate (MSE<10−3) at 1M timesteps (10% of training), provided the Q-network is sufficiently large.
Although this is addressed in part by Appendix E (see our previous answer, noting that our experiments are all performed with neural function approximators), we also ran a new experiment to measure the errors in Q-values and recovered WM across 20 training checkpoints of a MountainCar agent. As predicted by our theory, WM error consistently decreases with Q-value error (Spearman ρ=0.83±0.03), and the recovered model is always one to two orders of magnitude more accurate than the corresponding Q-function (for example, WMNMSE=7×10−3 vs QNMSE=0.22 on a randomly selected checkpoint).
For a more detailed analysis of recovery quality in terms of on-support Q-function error rather than uniform error, please see our response to Reviewer QYsz, including new corollaries and experiments.
Our experimental verification scales up to MuJoCo environments like Reacher, which is far beyond the existing work of Richens [42] and Adamczyk [43], who only consider tabular agents in tiny environments of up to 25 states and 5 actions. We instead consider real RL agents in continuous environments up to 6D, with neural-network function approximation. Scaling to higher-dimensional settings is beyond the scope of our paper, which focuses on conceptual and theoretical contributions, hence submitted to the theory track.
This is a standard assumption in order to justify the log-derivative trick. It means that the distribution has non-zero density everywhere on its domain, which we have now clarified in the paper.
Thank you for pointing this out, we have now fixed all references.
We have open-sourced the code, including detailed indications to reproduce all numbers and figures, and have shared an anonymized link with the AC.