arXiv:2610.19420cs.ROOct 2026

Manuscript Offprint

arXiv:2610.19420

From Failures to Learnable Worlds: Policy-Conditioned Environment Generation for Navigation Agents

Yue Zhang, Han Lin, Zun Wang, Yidong Huang, Zaid Khan, Mohit Bansal

ABSTRACT

Simulated environments enable scalable training data generation for embodied agents, but more data does not necessarily provide what a particular agent needs to learn. Existing environment-generation pipelines largely optimize generic properties such as realism, diversity, or task coverage, while different pretrained policies can fail for different environmental reasons, with some struggling when targets are hard to see and others when navigation requires long blind paths or multiple room transitions. We therefore introduce WEDGE, a framework for weakness-guided navigation learning in which the failure modes of a pretrained agent guide the generation of training environments at each adaptation round. Rather than assuming a predefined set of tasks or skills to improve, WEDGE derives its generation targets from the policy's own success and failure patterns within the same task. Given a pretrained policy, WEDGE uses an LLM to propose executable weakness features from contrasting successful and failed rollouts, automatically validates them on the diagnostic set, and selects the strongest validated weakness based on its success-rate gap. The validated weaknesses are then mapped to the environmental factors that control them, such as target placement, start configurations, and scene layouts. WEDGE varies these factors to construct environments in the difficulty regimes where the policy struggles, producing targeted training experience for adaptation. Across three navigation agents with different adaptation mechanisms, we find that policies exhibit distinct weakness profiles and benefit from different training environments. Weakness-conditioned adaptation consistently outperforms matched random and hard-example alternatives on ProcTHOR, while the resulting gains for Uni-NaVid and Gemini also extend to HM3D after ProcTHOR adaptation. Iterative re-diagnosis further shows that dominant weaknesses can persist or shift as the policy improves, providing updated guidance for subsequent environment construction. Together, these results show that policy failures are not only diagnostic signals, but actionable guidance for constructing training environments that target a policy's current weaknesses 1^{1}.

1 INTRODUCTION

Simulated environments have become an important source of scalable training data for embodied agents (Wang et al., 2025a; Ye et al., 2026; Seed, 2025; Yang et al., 2024b; Deitke et al., 2022; Chang et al., 2017; Ramakrishnan et al., 2021b), offering controllable worlds, inexpensive interaction, and access to situations that are difficult to collect in the real world. Accordingly, recent environment-generation pipelines have progressed from improving realism and diversity (Yang et al., 2024b; Pan & Liu, 2026; Sun et al., 2025; Hu et al., 2024) to task-conditioned generation, where environments are constructed to support specific embodied tasks (Xia et al., 2026; Yang et al., 2026; Wang et al., 2026; Zala et al., 2024). However, these approaches primarily condition generation on predefined properties of the environment or user-specified embodied tasks (e.g., “Find the mug.”), with limited consideration of what the current policy has already mastered and where it still struggles. As a

1^{1}Website: https://zhangyuejoslin.github.io/WEDGE

Code: https://github.com/zhangyuejoslin/WEDGE

Figure

Figure 1: Overview of WEDGE. Unlike existing environment generators, which are largely policy-agnostic, WEDGE uses agent failures to guide generation. (a) We mine policy-specific weaknesses from successful and failed rollouts. (b) The mined weaknesses determine which environmental factors to control and which learnable regimes to target. Training on the resulting environments improves the agent and can yield cross-domain transfer beyond the generation simulator.

result, the same training environment may be useful for one policy but redundant or overly difficult for another. This raises a central question: how can we generate environments that target what a particular agent has not yet mastered?

This distinction is particularly important when continuing to train a pretrained embodied agent, whose capabilities may already vary substantially across environmental conditions. The same training environment may therefore be redundant for an agent that has already mastered the relevant behavior, informative for another that still struggles with it, or too difficult to provide a useful learning signal. As illustrated in Fig. 1 (top), two agents solving the same navigation task can fail for very different reasons: one may struggle when navigation requires traversing multiple rooms, while another may fail primarily when the target is poorly visible. Generating environments that are simply more realistic, diverse, or difficult does not necessarily address either weakness. Task-conditioned generation provides a stronger form of control by constructing environments around the requirements of a given task, but it does not distinguish why different policies fail within that task. As a result, environments generated for the same task may still target conditions that one policy has already mastered while overlooking those that another policy struggles with. We therefore argue that training environments for continued learning should be generated relative to the current policy.

We introduce WEDGE (Weakness-guided Environment Design, Generation, and Evaluation), a framework for procedural environment generation that closes the loop between policy diagnosis, environment construction, and policy adaptation for object navigation tasks. Given a pretrained navigation policy, we first contrast its successful and failed episodes to identify environmental factors that systematically characterize where the policy struggles. An LLM instantiates these hypotheses as programmatic weakness features, such as target_visibility, blind_path_ratio, and room_hops, which can be computed over individual environments and directly connected to controllable simulator factors (Fig. 1(a)). We evaluate each proposed feature on the full diagnostic set and retain only those that provide sufficiently broad, non-redundant, predictive, and complementary signals of policy failure. These validated weaknesses then serve as actionable specifications for generation, determining which environmental factors should be varied and which failure-associated regimes should be targeted (Fig. 1(b)). A key aspect of WEDGE is that its generation targets are derived from the current policy's own failure patterns rather than specified in advance. By identify-ing the environmental conditions associated with failures within the same task, WEDGE determines which aspects of the environment should be modified and which regimes should be targeted during generation. We then roll out the current policy in each candidate environment and select those that fall within the diagnosed weak regime while remaining challenging but solvable. The selected environments are then used to adapt the policy with its original learning mechanism. We study this framework in 3D indoor navigation, where agents must continuously perceive, navigate, and act in complex environments over long horizons. We further show that weakness-targeted adaptation in ProcTHOR (Deitke et al., 2022) transfers to HM3D (Ramakrishnan et al., 2021a), demonstrating generalization beyond the simulator used for generation.

We evaluate WEDGE across three navigation agents with different model architectures and adaptation mechanisms: a ProcTHOR (Deitke et al., 2022)-trained DD-PPO policy (Zeng et al., 2024), an HM3D (Ramakrishnan et al., 2021a)-trained Uni-NaVid policy (Zhang et al., 2024), and a general-purpose VLM agent (Gemini-3.8-flash (Google DeepMind, 2026)). Despite solving the same navigation task, the agents exhibit different weakness profiles, confirming that useful training environments depend on the current policy rather than the task alone. Across all three agents, weakness-conditioned adaptation consistently outperforms matched random and hard-example alternatives on ProcTHOR. For Uni-NaVid and Gemini, the gains also extend to HM3D after ProcTHOR adaptation, showing that the resulting improvements are not confined to the environment used for training. Iterative re-diagnosis shows that the dominant weakness may persist or shift after adaptation, and using the updated diagnosis to guide a second round of environment generation yields further performance gains. Our additional analysis shows that gains are concentrated in weakness-related cases and that rollout calibration focuses training on environments within the policy's learning range. Together, these results show that policy failures provide not only diagnostic signals, but actionable guidance for constructing training environments that target the policy's remaining weaknesses.

References (52)