AnyGoal: World Model Generalization Beyond Expert TrajectoriesAnyGoal: On World Model Generalization Beyond Expert Rollouts
AnyGoal evaluates world models under goal shifts: LeWM's planning success rate is 84.70% on Push-T and 3.30% on Avoid-T.
- If a world model only fits expert trajectories, it may memorize goal-related state–action couplings rather than reusable action-conditioned dynamics. When the goal changes, whether new combinations of familiar factors can support planning lacks controlled evaluation.
- AnyGoal performs goal shifts on four base environments so that the marginal support of states and actions remains within the training range while the joint combination enters a combinatorial gap. Models are trained only on base tasks, then rollout error and CEM-MPC are compared, and oracle state predictors are used to separate representation from dynamics.
- End-to-end planning is low on Avoid-T: LeWM is 84.70% on Push-T and 3.30% on Avoid-T (Table 12). Oracle free-space planning mostly holds up, while contact-rich tasks still decline. The authors say the failures are related to representation, dynamics, and metrics.
- The authors list mechanism identification on offline trajectories and extrapolation of contact-rich dynamics as open questions (Section 6, Appendix J). The experiments cover 4 base environments, 8 variants, and 8 predictors, with seeds 0, 1, 2; the paper does not report significance tests.
- Evaluated models
- LeWorldModel (LeWM)Sensorimotor World Model (SMWM)DINO-WMDriftWorldIRASimAdaLNAction-ConcatenatedToy-DriftWorld
- Benchmarks
- AnyGoalTwoRoomTR-RoutePush-TAvoid-TStack-TPush-T AntigoalInsert-PegAvoid-PegExtract-PegOGBench CubeCube-HopCube-Diagonal
- Metrics
- 规划成功率rollout MSE联合 in-distribution 比例action sensitivity
The researchers propose AnyGoal, using goal-shifted task variants to test whether world models can recombine familiar states and actions into valid dynamics, and release a companion open-source library. In each task, individual state factors and actions remain within the training support, but their combinations are underrepresented in expert trajectories. Across multiple environments and multiple world model families, existing models consistently fail under these recombinations. The authors analyze where the failures occur at the dynamics and representation levels, across model families, interaction modes, and evaluation metrics, providing a foundation for evaluating world models for new planning tasks.
Paper analysis
What problem does this paper attempt to solve?
Whether a world model on expert trajectories can recombine familiar states and actions to complete planning after a goal shift.
Beyond expert trajectories, can a world model recombine separately seen state factors and actions into dynamics that remain plannable?
- Scenario: The authors argue that for a world model to let an agent plan and simulate action consequences, the learned dynamics must not hold only on the state–action combinations seen in expert rollouts. In-distribution evaluation cannot distinguish reusable dynamics from memorization of training behavior biases. Figure 1 illustrates this with training on Push-T and testing on Avoid-T.
- Existing shortcomings: The authors argue that covering the relevant joint space in high-dimensional control is unrealistic. Offline data often comes from goal-directed policies that reach task-relevant states, bringing strong state–action correlations; after mixing multiple policies, it is still hard to judge whether coverage is sufficient when the true reachable set is unknown. In the offline setting, targeted rollouts are also hard to collect.
- Evaluation gap: The authors argue that introducing states or factors outside the training support may exceed the generalization that reusable dynamics should support. What is missing is systematic evaluation of this generalization, rather than only testing extrapolation to unseen factors.
- Core observation: The authors formalize the criterion as compositional generalization and connect it to goal shifts and training behavior biases. Push-T expert trajectories couple states far from the block with actions toward the block; the authors argue the model may learn this regularity rather than the effect of a given action.
- This paper proposes: AnyGoal: goal-shift variants built from commonly used world model environments, plus an open-source evaluation library. The variants keep the marginal support of states, actions, task-relevant factors, and physical rules, change the joint combinations induced by training behavior, and point to undercovered regions. The authors then examine, by model family, interaction type, and metric, whether failures come from prediction or representation.
What related research exists?
The authors place AnyGoal between two lines of work: compositional generalization diagnostics and world model coverage mismatch.
Compositional Generalization Diagnostics and Benchmarks
- Sequence and visual composition: SCAN (Lake & Baroni, 2018) and CFQ (Keysers et al., 2020) use controlled compositional splits to expose recombination failures in sequence models. CLEVR (Johnson et al., 2017), Winoground (Thrush et al., 2022), and CVR (Zerroug et al., 2022) apply the same diagnostic to objects, attributes, and relations.
- Recent diagnostics: ConceptMix (Wu et al., 2024) reports that text-to-image models degrade when required to jointly compose more familiar concepts. Assouel et al. (2026), Camposampiero et al. (2026), and Pacela et al. (2026) respectively address object-attribute and relational composition, scalable compositional protocols, and using compositional shifts as a mechanistic interpretability diagnostic. The paper describes this work without comparing it paper by paper.
World Model Generalization
- Existing lines: Zhao et al. (2022) do object-centric compositional dynamics; Wang & Huang (2025) use language-guided composable causal components to model unseen environments; Georgiev et al. (2025)'s PWM learns multi-task world models; Warrier et al. (2026) evaluate with environment-level queries; Zhang & Du (2026) do action-conditioned planning.
- Differences the authors name: Hansen & Wang (2026) study detection and mitigation of world model hallucination. The introduction states that this setting is the closest, but this paper evaluates generalization in a controlled space with explicit state-action support checks. Maes et al. (2026a), Wang et al. (2026), and Li et al. (2025) introduce states or factors outside training support; the authors consider such settings valuable but potentially beyond the generalization expected of reusable dynamics.
Support Mismatch in Offline RL
- Policy side: Fujimoto et al. (2019), Kumar et al. (2019), and Levine et al. (2020) discuss how fixed behavior data causes methods to fail in poorly covered state-action regions. Subsequent work constrains or regularizes policies to covered regions (Gao et al., 2025a;b; Laroche et al., 2019; Chen et al., 2025; Kumar et al., 2020; Tang et al., 2025).
- Model side: Model-based offline RL uses uncertainty or pessimistic objectives in poorly covered regions (Yu et al., 2020; Kidambi et al., 2020; Yu et al., 2021; Rigter et al., 2022). D4RL (Fu et al., 2021) shows that dataset composition strongly affects offline policy improvement. The authors state that AnyGoal is complementary to these approaches: it evaluates whether a world model learns reusable dynamics under goal shift, rather than pulling the policy back to covered regions.
Baselines and Benchmarks: This paper does not propose a new world model training algorithm. What is evaluated is LeWorldModel, Sensorimotor World Model, DINO-WM, DriftWorld, IRASim, and three oracle state predictors: AdaLN, Action-Concatenated, and Toy-DriftWorld. The environments come from TwoRoom, Push-T, DMC Manipulator Insert-Peg, and OGBench Cube, and the goal-shift variants form AnyGoal.
The authors position this paper as: bringing compositional generalization to world models, checking whether expert-trained models can generalize to recombinations of familiar states and actions induced by new goals, without extrapolating to unseen states, actions, or visual factors.
How does the paper address this problem?
AnyGoal preserves marginal support, changes goal-induced joint combinations, and evaluates both prediction error and MPC planning.
The authors define reusable dynamics as compositional generalization, use AnyGoal to construct goal shifts within the marginal support where the joint combination changes, and then look at prediction and planning together.
Problem setting and formalization
- Objects: The true state zt contains only the semantic factors that vary in the training distribution, and the observation is st = f(zt). A trajectory can also be written as physical factors and an action sequence, with horizon H. An action-conditioned world model should take st and a given action at and predict st+1.
- Behavioral degeneration: Offline data is collected by a behavior policy π, and the observed transitions are state–action pairs induced by π, not arbitrary interventions at every state. The authors argue that when the conditional action support is limited, the predictor may degenerate into ignoring the given action and only fitting behavior-induced transitions. This degeneration is written as T̂(st+1∣ st,at)≈ Tπ(st+1∣ st).
- Combinatorial gap: The training objective and the test objective induce different behavior policies, while the environment transition T is unchanged. The combination space is the Cartesian product of the marginal training support of each factor and the action support, i.e., C×:=(∏k=1K Zktr)× Atr. AnyGoal requires the test support to lie within this product, not be contained in the training joint support, and to have mass in undercovered regions. The test introduces no new physical factors or actions, only new combinations.
- Why measure the gap directly: The authors cite Wiedemer et al. (2024b) as saying that predictors consistent on the training support may still be inconsistent on new combinations. Appendix A uses an action-agnostic predictor to show that zero training error on expert rollouts does not imply action-conditioned dynamics.
AnyGoal tasks and support tests
- Scale: Base tasks are TwoRoom, Push-T, DMC Manipulator Insert-Peg, and OGBench Cube. Eight variants: one free-space variant per base task; besides TwoRoom, there are also one or two contact-rich variants. Each variant releases 400 episodes and provides tools for further collection. Throughout the paper, AnyGoal is treated only as a test set.
- What the variants test: Figure 2: TR-Route follows waypoints; Avoid-T reaches a corner without touching the block; Stack-T stacks into a plus shape; Push-T Antigoal pushes the block away from the original goal; Avoid-Peg goes around the box to avoid the peg; Extract-Peg pulls the peg out and moves it to the destination; Cube-Hop moves the end effector without deliberately moving the cube; Cube-Diagonal uses a diagonal grasp. The dynamics are the same as the base tasks.
- Factor-level tests: For each base task–variant pair, range, Mahalanobis, and KDE are performed. Mahalanobis uses the reference 0.99 quantile as the threshold, with at least 95% of query samples below that threshold; KDE uses the reference density 0.01 quantile as the threshold, with at least 95% above that threshold. The final judgment is the conjunction of the three. The main text says range requires all query samples to fall within the reference coordinate range; the range criterion in Appendix C is at least 99%, and circular variables are not range-tested. The authors say all variants are designed to pass these tests, and the factors in Table 3 are all pass.
- Joint overlap: Concatenating actions, agent state, task objects, or goal state, a full-dimensional Gaussian KDE is fitted to the reference vectors, the threshold is the empirical 0.01 quantile of log density, and the proportion of target vectors exceeding that threshold is reported. The authors use a lower joint score to indicate less overlap and more falling into the combinatorial gap. The visualization in Figure 4(a) additionally marks regions below 1% of peak density in gray, which is not the same rule as the formal KDE threshold.
Models, prediction, and planning protocol
- End-to-end models: LeWorldModel jointly learns an encoder and an AdaLN-conditioned transformer predictor, and uses SIGReg. Sensorimotor World Model uses the same encoder–predictor family, plus an inverse dynamics objective. DINO-WM freezes DINOv2 and concatenates actions onto patches. DriftWorld directly predicts observations with an action-conditioned spatiotemporal U-Net. IRASim uses a frozen pretrained VAE and a Diffusion Transformer to predict future latents from action trajectories.
- Oracle predictors: AdaLN, Action-Concatenated, and Toy-DriftWorld replace the visual encoder with task-relevant states given by the simulator, corresponding to the AdaLN, action-concatenation, and a reduced DriftWorld backbone, respectively. The authors use them to separate dynamics failures from visual representation failures. State variables for each environment are in Table 5 of Appendix F.
- Training and forward settings: All models use frame skip 5 and make one-step predictions. Except for SMWM, which keeps the original history length of 1, the history length is 3. Some base tasks use official checkpoints, and the rest are trained per Appendix G; for Insert-Peg, all five end-to-end models are trained by the authors.
- Two metrics: Rollout MSE is computed in each model's native space, which can be a learned latent, oracle state, or pixels. Autoregressive horizons are 5 and 25 environment steps; 100 episodes are sampled per seed, and results are averaged over all valid starting points within an episode. Planning uses the same CEM-MPC from Stable-WorldModel, with a planning horizon of 25 environment steps, and replanning after executing the whole action segment. Both metrics are reported on seeds 0, 1, 2.
- Planning details: Appendix H: the goal is the future state 25 raw steps after the initial state on the same trajectory; each round has 300 candidates, 30 iterations, and 30 lowest-cost elites; the cost is the squared Euclidean distance between the terminal prediction and the goal in normalized state space; an episode has at most 50 environment steps. Success requires satisfying the position or angle thresholds in Table 8 at least once within these 50 steps.
Behavioral shortcut diagnostics and theoretical conditions
- Action sensitivity: Fix a training state, replace the observed action with actions from a fixed intervention set, and measure the response to the given action by the average L2 of the predicted representation difference. The authors state that a smaller score means less sensitivity, but does not necessarily equal prediction error. The deviation coordinate is chosen per environment, e.g., distance to the narrow gap, distance to the block. Specific values of the intervention set are in Appendix E.
- Theoretical direction: Section 6 is not an implemented training algorithm. The authors give an illustrative sufficient condition: if within each interaction interval, each factor at the next step depends only on a small subset of state–action coordinates, and the test only queries local inputs already covered by training, then globally new combinations need not extrapolate each mechanism. Proposition 1 in Appendix J gives the corresponding error bound.
What experiments did the paper conduct?
LeWM's planning success rate on Avoid-T is 3.30%, while on Push-T it is 84.70% (Table 12).
Experimental Setup
- Models evaluated: End-to-end models are LeWorldModel (LeWM), Sensorimotor World Model (SMWM), DINO-WM, DriftWorld, and IRASim. Oracle state predictors are AdaLN, Action-Concatenated (written as Action Dup. in Table 12), and Toy-DriftWorld. Models are trained only on the corresponding base dataset.
- Data: Base environments TwoRoom, Push-T, Insert-Peg, OGBench Cube; eight AnyGoal variants, 400 episodes per variant. The three factor-level support checks all pass in Table 3.
- Prediction: Native-space autoregressive MSE, horizons of 5 and 25 environment steps, frame skip of 5. 100 episodes sampled per seed. Seeds are 0, 1, 2. Avoid-T episodes are too short and are not included in the 25-environment-step prediction (Appendix I.1).
- Planning: Same CEM-MPC, horizon 25, at most 50 environment steps, success rule as in Table 8. The paper states that planning is also reported on seeds 0, 1, 2, but does not state the number of planning episodes and does not report variance across seeds.
- Evaluation: No LLM judge. Success is determined by rules such as position and angle. The paper does not report significance tests.
- Other measurements: Figure 4 reports joint KDE overlap; Figure 9 and Appendix E perform intervention action sensitivity on four environments.
Main Results
Planning success rate (%), according to Table 12. Oracle rows use simulator state, not end-to-end visual world models.
Swipe horizontally to read the table
Model Push-T Avoid-T Insert-Peg Extract-Peg Cube LeWM 84.70 3.30 26.67 8.00 30.70 SMWM 84.70 4.70 70.00 23.33 72.70 DINO-WM 74.00 6.70 35.33 15.33 60.00 DriftWorld 43.30 0.70 63.33 23.33 30.70 IRASim 5.30 0.00 2.43 9.33 10.70 AdaLN (oracle) 92.70 100.00 74.00 16.66 30.00 Action Dup. (oracle) 92.00 100.00 71.33 25.33 20.70 Toy-Drift (oracle) 89.30 99.30 71.33 19.33 25.30 - The authors state that on free-space variants, after removing visual abstraction, MPC maintains or improves relative to the base task; contact-rich variants decline. Therefore the AnyGoal gap cannot be viewed solely as a failure of visual representation. On Stack-T, which is not included in Table 12, AdaLN is 70.70%, Action Dup. is 66.70%, and Toy-Drift is 54.00%.
- The authors state that rollout error and planning sometimes diverge: free space often has multiple achievable trajectories, while contact-rich tasks have fewer feasible sequences, and the two metrics are more consistent. Prediction errors are computed in different spaces, and the authors state that absolute errors across families should not be ranked directly.
- End-to-end does not decline in every cell. In Table 12, IRASim's Extract-Peg is 9.33%, higher than its Insert-Peg column; DriftWorld's Cube-Hop is 64.70%, higher than its Cube column. IRASim's Push-T column is itself 5.30%, so Avoid-T at 0.00% cannot be treated alone as a large shift.
Prediction Error and Representation
- What was measured: The error ratio of each variant relative to the base task (Table 10 for 5 environment steps, Table 11 for 25 environment steps), and the planning gap between end-to-end and oracle (Figure 6, Figure 7). Absolute base-task MSE is in Table 9.
- Results: Oracle error ratios on contact-rich variants can be very high: in Table 10, Stack-T's AdaLN is 501.14, Action Dup. is 113.55, and Toy-Drift is 70.24. Free space also has ratios below 1: Avoid-Peg's Toy-Drift is 0.08, and TR-Route's DriftWorld is 0.012. From TwoRoom to TR-Route, LeWM planning goes from 89.30% to 60.70%, and the three oracle predictors go from 100.00%, 100.00%, 99.30% to 100.00% (Table 12).
- Authors' interpretation: End-to-end also faces observation-level shifts caused by unseen factor combinations; correct training-time factor inference need not extend to new combinations. On TwoRoom, agent position is the only varying factor; on TR-Route, position is still within marginal support, and the authors state that observations are still within visual support, yet end-to-end still degrades while oracle remains stable, and they attribute this to latent-space geometry. Figure 8 labels TwoRoom-Route prediction error as JEPA-Style ×13.41, Generative ×0.46, Oracle-State ×0.015. In Table 10, the three oracle one-step ratios for TR-Route are 0.045, 1.03, 0.014; the paper does not state how Figure 8 aggregates them. The text conversion cannot see the clusters on the t-SNE plot, so their distribution is not described.
Action Sensitivity
- What was measured: Replacing the intervention actions of Appendix E on training states, observing changes in predicted representations, and comparing against coordinates strongly constrained by expert behavior (Figure 9).
- Results: The main text does not give sensitivity scores. The deviations stated in the figure caption are: TwoRoom favors narrow gaps; Push-T approaches the block first and then pushes; Insert-Peg carries the grasped peg toward the target; Cube favors vertical motion at low end-effector heights.
- Authors' interpretation: These strongly goal-constrained regions show reduced sensitivity to intervention actions, consistent with the degradation in Section 3.1. The authors believe the model can partially rely on goal-directed priors rather than the given action.
Other Ablations and Analyses
- Table 11 five-step error ratios: Action Dup. is 1202.22 on Cube-Diagonal, AdaLN is 245.45 on Cube-Hop, 158.5 on Stack-T, and 34.39 on Extract-Peg.
- Table 10 one-step error ratios: on Cube-Diagonal, AdaLN is 940.34, Action Dup. is 1026.48, and Toy-Drift is 0.58; on the same task IRASim is 0.97, lower than its Cube base-task error.
- TR-Route one-step error ratios: LeWM 14.56, SMWM 19.11, DINO-WM 6.56, IRASim 0.9, AdaLN 0.045 (Table 10).
- Planning counterexamples (Table 12): DriftWorld's Cube-Diagonal is 42.00%, higher than Cube's 30.70%; LeWM's Avoid-Peg is 31.33%, higher than Insert-Peg's 26.67%; SMWM's Avoid-Peg is 32.67%, lower than Insert-Peg's 70.00%.
- Figure 4 state-action joint in-distribution: TR-Route 62.68%, Avoid-T 17.82%, Stack-T 23.12%, Push-T Antigoal 23.91%, Avoid-Peg 0.00%, Extract-Peg 0.00%, Cube-Hop 0.04%, Cube-Diagonal 45.00%.
- Appendix I.3: The authors state that oracle state does not always yield higher planning; on Cube and Cube-Diagonal, several end-to-end models are higher than the corresponding oracle predictors. The authors believe state observability and planning suitability are not the same property, and that the difference between end-to-end and oracle predictors goes beyond the input space.
What are some points that can be further explored?
The authors list identification of reusable mechanisms and extrapolation of contact-rich dynamics as open problems for future work.
Limitations and future directions noted by the authors
- Mechanism identification: Section 6 states that fitting training trajectories does not guarantee the predictor has learned reusable action-conditioned mechanisms; this is harder when interactions are rich and action effects vary with state and interval. Characterizing from offline trajectories when these mechanisms can be identified is called an open question by the authors.
- Behavior outside support: Section 6 states that even with the correct mechanism identified, behavior on new state–action combinations generally still requires additional structural assumptions to be determined. Interaction-free dynamics is the favorable case; when contact is rich and action effects vary with joint configuration and interval, extrapolation is harder, which the authors call a future direction.
- Scope of the theoretical condition: Appendix J states that sparse local mechanisms are only an illustrative sufficient condition, not a complete solution; it does not by itself resolve mechanism identification, interval discovery, or extrapolation to genuinely new local interactions.
- Evaluation requirement still unresolved: The conclusion calls "predicting on new joint state–action combinations within the product of marginal training supports" a reasonable but still unresolved requirement for reusable dynamics.
Scope of experimental coverage
- Base environments are TwoRoom, Push-T, Insert-Peg, and OGBench Cube; AnyGoal has 8 variants, each with 400 episodes (Section 4, Figure 2).
- There are 5 end-to-end models and 3 oracle state predictors; prediction and planning are both reported on seeds 0, 1, 2 (Section 5). For prediction, 100 episodes are sampled per seed; the paper does not state the number of episodes for planning success rate.
- The prediction metric is native-space MSE, with horizons of 5 and 25 environment steps and frame skip 5; Avoid-T is not in the 25-environment-step results (Section 4.2, Appendix I.1). Errors of JEPA and generative models are not in the same space (Section 5.1).
- Planning uses the same CEM-MPC: 300 candidates, 30 iterations, horizon 25, at most 50 environment steps; success rules are in Table 8 (Appendix H). Factor-level support tests are in Table 3, and joint KDE is in Figure 4.
- Action sensitivity covers TwoRoom, Push-T, Insert-Peg, and Cube (Figure 9). The paper does not report significance tests, variance across seeds, or the number of queries or time cost of MPC.
Summarize the main content of the paper
AnyGoal uses controlled goal shifts to test whether world models can recombine familiar factors, and reports failures in prediction and planning.
AnyGoal is a set of goal-shift test tasks used to check whether world models trained only on expert trajectories have learned recombinable action-conditioned dynamics.
- Problem: Expert rollouts couple states, objects, and actions together. Accurate in-distribution prediction may still just be reproducing the behavior policy. What the authors want is: after the joint combination changes while the physical rules and the marginal support of states and actions stay unchanged, can the model still predict and plan?
- Approach: Four base environments are extended into eight variants, each with 400 episodes, used only for testing. Factor-level range, Mahalanobis, and KDE tests are used to confirm marginal support; full-dimensional KDE is used to see how sparse the joint combination is. Five end-to-end models plus three oracle state predictors all use frame skip 5, and both native-space rollout MSE and planning success rate with the same CEM-MPC are reported.
- Planning: In Table 12, LeWM is 84.70% on Push-T and 3.30% on Avoid-T; DriftWorld is 0.70% on Avoid-T. AdaLN is 100.00% on Avoid-T, but 16.66% on Extract-Peg, and 74.00% on Insert-Peg. There are also cells that do not drop: DriftWorld is 64.70% on Cube-Hop, higher than 30.70% on Cube.
- Prediction: Error ratios on contact-rich tasks can be very high. In Table 11, Action-Concatenated's five-step error ratio on Cube-Diagonal relative to Cube is 1202.22. Free space also has ratios below the base task, e.g., in Table 10, DriftWorld on TR-Route is 0.012.
- Authors' conclusion: Goal-shift failures are not homogeneous and are related to representation, dynamics prediction, task structure, and evaluation metrics. The authors argue that covering all state–action combinations is neither realistic nor necessary; what is needed is coverage of local mechanism inputs, and objectives or structures that can identify action-conditioned mechanisms rather than behavior-policy shortcuts. How to identify these mechanisms from offline trajectories, and how contact-rich dynamics extrapolate, are listed by the authors as open questions.