Manuscript Offprint
arXiv:2610.41022Density-Guided Bootstrap Boundaries for Latent World-Model Reinforcement Learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Latent world models allow reinforcement learning agents to learn policies from imagined trajectories, yet determining the optimal depth of model reliance remains a fundamental challenge. Fixed imagination horizons apply uniform prediction depths regardless of trajectory reliability, exposing target values to compounding model error or over-relying on critic approximations. We introduce density-guided bootstrap boundaries, a trajectory-dependent mechanism that adapts the depth of imagined returns using a score-informed relative density proxy. The proxy accumulates the estimated divergence of a score-corrected auxiliary field formed by a feature displacement network and a noise-conditioned score estimator along imagined paths. We propose two gating mechanisms: a hard boundary that halts return expansion at a discrete state, and a soft boundary that continuously shifts the return recursion toward critic bootstrapping. Both variants preserve boundary value estimates and apply corresponding survival weights to actor and critic losses. Formulated independently of specific dynamics models and instantiated within Dreamer V3, we prove that the resulting gated Bellman operator is a strict contraction mapping and that early bootstrapping monotonically reduces conditional target variance. We clarify the theoretical assumptions distinguishing our expansion proxy from exact path likelihoods. Across continuous-control tasks and Atari Pong, empirical evaluations show that dynamic boundary selection enhances sample efficiency and late-training performance over fixed-horizon and auxiliary-enabled baselines.
Keywords: Model-based reinforcement learning, latent world models, adaptive bootstrapping, score estimation, imagined trajectories.
1 Introduction
Learning a predictive model of the environment allows a reinforcement learning agent to improve its policy using imagined experience. Latent world models make this approach practical by representing observations in a compact state space and predicting the consequences of actions within that representation. DreamerV3 illustrates the effectiveness of combining a stochastic latent world model with actor-critic learning from imagined trajectories (Hafner et al., 2023). These advances make model-based learning increasingly useful, but they leave an important question: how much of an imagined trajectory should con-
*. Corresponding author.
©2026 Author Gupta and Lee.
License: CC-BY 4.0, see https://creativecommons.org/licenses/by/4.0/.
tribute to a learning target before the agent relies on its value function? The depth of an imagined return determines a trade-off between model predictions and value estimates. Expanding a return further incorporates additional predicted rewards, but also exposes the target to errors in the learned dynamics and reward model. Bootstrapping earlier reduces this exposure while increasing dependence on the accuracy of the critic. A fixed maximum imagination horizon provides a simple way to control this trade-off. However, it applies the same limit to trajectories originating from different states and passing through different regions of the learned representation. Even when a return estimator mixes multiple prediction depths, a fixed mixing rule does not explicitly respond to a trajectory-dependent diagnostic of the model.
The question of when to trust a learned model has a substantial history. Model-Based Policy Optimization uses short model rollouts branched from real experience to limit the consequences of model error (Janner et al., 2019). Stochastic Ensemble Value Expansion combines returns at different horizons using uncertainty estimates derived from ensembles (Buckman et al., 2018). These approaches demonstrate that controlling model usage is an important design choice in its own right. Our work investigates a complementary mechanism: using a score-informed relative density proxy to select where an imagined return gives way to value bootstrapping.
We propose density-guided bootstrap boundaries for latent world-model reinforcement learning. The framework associates each imagined state with a continuation gate that controls further return expansion. A hard gate selects a discrete bootstrap boundary, while a soft gate gradually shifts the return recursion toward the critic. In both cases, reaching a boundary preserves the value estimate at that state. The boundary therefore represents a decision about how much model-generated experience to use, rather than a prediction that the environment has terminated. Corresponding survival weights control the contribution of later imagined states to the actor and critic objectives. To construct the gating signal, we learn an auxiliary displacement field and a noise-conditioned score estimator from latent features inferred from replay observations. The score estimator supplies a correction to the auxiliary field. We estimate the divergence of the corrected field and accumulate its negative along imagined trajectories to obtain a relative density proxy. This construction gives the score estimator an explicit role in policy learning: its correction can change the accumulated signal, the selected bootstrap boundary, and consequently the targets and weights used by the actor and critic. The stochastic world model remains responsible for generating imagined states; the auxiliary field does not replace its transition distribution. The interpretation of this signal requires care. The accumulated quantity is an anchored density-change proxy associated with an auxiliary vector field, not an exact likelihood under the stochastic world model. In particular, imagined transitions are not generated by integrating that field, and estimating a score in a noise-smoothed feature space does not establish that low proxy values identify inaccurate predictions. We therefore treat the usefulness of the proxy for boundary selection as an empirical hypothesis. The relevant question is whether it supports better decisions about return expansion, rather than whether its magnitude alone can be interpreted as calibrated model uncertainty.
The bootstrap formulation is independent of a particular world-model architecture. Its use requires imagined trajectories, a value estimator, and a trajectory-dependent gate; our proposed density mechanism additionally requires suitable latent features and differentiable auxiliary models. We instantiate the method within DreamerV3, preserving its stochastic latent dynamics and using its actor-critic training procedure as the evaluation framework. This implementation allows us to study hard and soft boundaries within a common learning system. Our current implementation still generates the full imagined rollout, so adaptive return depth should not be interpreted as a demonstrated reduction in rollout computation.
A central evaluation issue is separating the information supplied by the density signal from the effects of shortening imagined returns. An improvement over a fixed maximum horizon could arise from a generally preferable shorter horizon, auxiliary training effects, or a change in the magnitude of the optimization objective. Accordingly, our evaluation framework distinguishes the unmodified agent, an auxiliary-enabled agent without boundary selection, and density-guided variants. Fixed-boundary controls, score ablations, and threshold sensitivity provide complementary tests of the proposed mechanism. Preliminary observations motivate these tests by showing that the score correction can substantially alter the divergence signal and that effective return depths vary across tasks and training stages; they do not by themselves establish that density-guided selection is superior.
Our contributions are threefold:
-
We formulate hard and soft trajectory-dependent bootstrap boundaries for imagined actor-critic learning, preserving value bootstrapping and applying consistent survival weights to the learning objectives.
-
We introduce a score-informed relative density proxy for boundary selection and specify the assumptions and limitations of its interpretation in a stochastic latent world model.
-
We provide a DreamerV3 instantiation and an empirical evaluation across continuous-control and visual discrete-action tasks, including fixed-boundary controls, auxiliary-component ablations, and diagnostics of effective imagination length.
Model usage and adaptive value expansion. The benefits of model-generated experience depend on how prediction errors interact with policy and value learning. Model-Based
Value Expansion (MVE) combines a finite sequence of model-predicted rewards with a terminal value estimate, using a fixed expansion depth (Feinberg et al., 2018). Model-Based Policy Optimization (MBPO) uses short model rollouts branched from real experience to control the effects of model error during policy optimization (Janner et al., 2019). These methods motivate treating the extent of model usage as a separate algorithmic choice. Stochastic Ensemble Value Expansion (STEVE) is particularly relevant: it constructs targets at multiple rollout depths and combines them using variance estimates from ensembles, adapting the mixture for individual examples (Buckman et al., 2018). Consequently, adapting return depth to individual trajectories is not itself the novelty of our approach. Our proposed mechanism uses a score-informed relative density proxy to construct hard or soft continuation gates within the return recursion. These gates also induce survival weights on actor and critic losses. We investigate this density-based selection rule without interpreting it as an ensemble estimate of prediction uncertainty or asserting that it minimizes target variance.
Pessimism and restrictions on model-generated experience. Offline model-based reinforcement learning also studies how to limit the influence of unreliable predictions. MOPO penalizes predicted rewards using a measure of dynamics uncertainty (Yu et al., 2020). MOREL constructs a pessimistic model in which transitions classified as unknown lead to a penalized absorbing state (Kidambi et al., 2020). These approaches address the risks of exploiting a learned model outside the support of a fixed dataset.
Our setting is online learning with a changing replay distribution, and our boundary has a different role. It ends or attenuates return expansion while retaining the critic estimate at the selected state. It does not impose an uncertainty penalty on rewards or declare the boundary to be an environment terminal state. This distinction matters because a bootstrap boundary transfers reliance from model predictions to the critic; it does not remove estimation error. Moreover, the proposed density proxy is not assumed to identify unknown transitions with the guarantees used in pessimistic offline formulations.
Adaptive imagination and computation allocation. Adaptive rollout decisions can also control planning computation. For example, RISE selects whether to continue imagination in world action models using estimates of risk, expected planning benefit, and computational cost (Lu et al., 2026). This is related to our work at the level of making trajectory-dependent continuation decisions. However, our gates control the depth of actor-critic return expansion and the weights of imagined training samples. The current implementation generates the full imagined trajectory before applying these gates. Its effective return horizon therefore should not be equated with the amount of rollout computation performed.
Score estimation and probability-flow dynamics. Denoising score matching connects learning from noise-corrupted observations to estimating the gradient of a smoothed log density (Vincent, 2011). Score-based generative modeling extends this connection to stochastic differential equations and associated probability-flow ordinary differential equations (Song et al., 2021). These results motivate using learned scores to describe distributional structure and to construct corrections to vector fields.
In our method, a noise-conditioned estimator is trained on replay posterior features and contributes to an auxiliary vector field evaluated along imagined trajectories. The resulting signal is used for bootstrap selection. We do not use the score estimator to replace the stochastic world model with a diffusion sampler. In addition, the probability-flow interpretation requires assumptions about the relationship between the drift, diffusion, and score. Learning a displacement field and a score from replay features does not by itself establish those relationships for a discrete stochastic latent transition model. We therefore distinguish the continuous-time motivation from the operational density proxy used in our implementation.
Divergence-based density evolution. Continuous normalizing flows relate changes in log density to the divergence of the vector field generating a continuous trajectory. FFJORD uses stochastic trace estimation to make this computation scalable without forming the full Jacobian (Grathwohl et al., 2019). We use the same computational principle to estimate the divergence of an auxiliary score-corrected field. The interpretation differs because our imagined trajectories are generated by the stochastic world model, rather than by integrating the auxiliary field. Accumulating estimated negative divergence along these trajectories yields an anchored relative proxy, not an exact world-model likelihood. The use of clipping and numerical trace estimation further affects the implemented signal. Our contribution concerns the use of this signal to control bootstrapping, rather than a new exact-likelihood model or a general guarantee of variance-free policy learning.
Position of the present work. The method brings together adaptive model usage, score estimation, and divergence-based diagnostics through a common bootstrap-gating formulation. The central empirical question is whether the density signal provides useful trajectory-dependent selection beyond the effects of a shorter return horizon or a change in loss scale. This motivates comparisons with fixed-boundary controls, auxiliary-enabled training without cutoff, and score ablations. Theoretical claims about the gated estimator must likewise account for critic error and the dependence of gates on sampled trajectories; properties of exact density transport do not automatically transfer to this implementation.
3 Problem Formulation
3.1 Reinforcement Learning with a Latent World Model
We consider a partially observed sequential decision process. At environment time , the agent receives an observation , selects an action , and receives a reward after the transition. Let denote its interaction history. The objective is to learn a policy that maximizes expected discounted reward,
where denotes the environment dynamics, is the policy, and is the discount factor. Terminal states can equivalently be treated as absorbing states with zero subsequent rewards.
A world model with parameters represents the history through a latent state inferred from observations. We write this inference distribution as and the latent transition distribution as . The state includes any recurrent memory required by the model. A feature map provides inputs to the actor, critic, reward predictor, and auxiliary models. This notation permits deterministic and stochastic components within , as in recurrent latent world models (Hafner et al., 2019, 2020). It does not require the feature distribution to have a density with respect to Lebesgue measure.
The policy is , and denotes a scalar value estimate extracted from the critic. The world model also provides reward and continuation predictions. Replay data contain observed interaction sequences used to train the world model and construct posterior latent features. The learned representation is an approximation to a sufficient state; we do not assume that it exactly preserves the underlying environment dynamics.
3.2 Imagined Trajectories and Return Expansion
An imagined trajectory starts from a latent state inferred from replay and evolves under the policy and learned transition model:
Here indexes imagination steps, separately from environment time . We use to denote the number of transitions contributing to return expansion, so the trajectory contains states . This convention counts transitions rather than the number of feature entries in an implementation.
Let be the predicted reward associated with a transition and let
where is the predicted probability of environment continuation. These quantities follow the reward and continuation indexing convention of the base world-model algorithm.
A finite-horizon -return is defined recursively by
for and . The horizon bounds the maximum expansion depth, while controls the mixture of intermediate bootstraps and longer returns. Our problem is to make this reliance on future imagined predictions depend on the trajectory.
Specifically, we seek a continuation gate computed from the imagined prefix and learned auxiliary information. The gate is conceptually distinct from : environment continuation describes whether the task continues, whereas describes whether the learning target should continue expanding through model predictions. A zero gate at a boundary should preserve the incoming reward and the discounted value estimate at that state. A unit gate should recover the base return recursion locally. The construction of the gates, their insertion into the recursion, and their associated loss weights are specified in Section 5.
3.3 Score Estimation in Latent Feature Space
Let denote the distribution of posterior features obtained from replay under the current world model. Because these features may contain discrete components or occupy a lower-dimensional subset of , we define score estimation through Gaussian smoothing. For a noise scale ,
The perturbed distribution has density
and its score is
A noise-conditioned predictor is trained using the denoising objective
The expectation over follows a chosen positive noise-scale distribution. At the population optimum, for a fixed , the predictor estimates the conditional mean of the injected noise, giving the score parameterization
This relation follows the denoising score-matching construction (Vincent, 2011; Song et al., 2021). A finite learned predictor only approximates the population score. Moreover, changes as replay and the world model evolve. The resulting score describes a smoothed replay-feature distribution; it is not automatically the score of the policy's imagined-state distribution or of the world-model transition kernel.
3.4 Divergence as an Empirical Feature-Space Expansion Diagnostic
In continuous dynamics governed by a vector field , local volumetric changes in feature space are tracked by the spatial divergence operator . In latent world-model reinforcement learning, imagined state transitions follow a discrete stochastic process rather than continuous integration along trajectories of .
Consequently, the spatial divergence of an auxiliary score-corrected vector field does not yield an exact path log-likelihood under the stochastic world model. Instead, we define the accumulated negative divergence as an anchored feature-space expansion diagnostic. This diagnostic monitors local volumetric expansion or contraction along imagined transitions. Large negative divergence indicates that downstream transitions are entering unconstrained or rapidly expanding regions of the learned latent feature space, serving as an empirical probe to halt return expansion before critic updates are corrupted by out-of-distribution dynamics.
3.5 Objective and Scope of Boundary Selection
The algorithmic goal is to construct continuation gates from to modulate return expansion depth. A gate value of truncates return expansion at step while retaining the critic's value estimate , shifting reliance from future model rollouts to the value function.
We explicitly distinguish conditional target variance at a fixed latent state from variance across replay samples or training seeds. Truncating return expansion avoids accumulating transition variance from downstream model rollouts at the cost of absorbing approximation bias from the critic.
3.6 Continuous-to-Discrete Bridging on Categorical Latents
Recurrent architectures like Dreamer V3 represent states using categorical latent variables concatenated with deterministic recurrent states. To bridge continuous transport concepts with discrete latent dynamics, we establish three theoretical properties:
- Gaussian Smoothing over Categorical Feature Spaces: Discrete distributions lack continuous density with respect to Lebesgue measure. Convolving the empirical posterior feature distribution with an isotropic Gaussian kernel defines a smooth surrogate density:
This smoothing guarantees that spatial score matching and divergence operators are smooth, well-defined differential operators over .
-
First-Order Quadrature over Latent Displacements: An imagined transition represents a discrete step . Integrating the continuous rate across a unit step yields . The discrete proxy update implements a 1st-order forward Euler quadrature evaluated at , with single-step discretization error bounded by where .
-
Divergence as Local Volumetric Expansion Diagnostic: A 1st-order spatial expansion along the step displacement gives . The spatial divergence measures the trace of the field Jacobian, serving as an isotropic diagnostic of local feature space expansion or contraction.
4 Bridge Between Continuous Score Fields and Discrete RSSM
An imagined trajectory in a latent world model involves two distinct mathematical objects:
-
Discrete Transition Measure (): The discrete path measure induced by the recurrent stochastic state-space model (RSSM) transition kernel .
-
Auxiliary Diagnostic Field (): A continuous vector field constructed over Gaussian-smoothed posterior features .
Because imagined state sequences are sampled directly from rather than generated by integrating , the auxiliary field functions strictly as an evaluative diagnostic probe along RSSM trajectories.
We formally decompose the discrepancy between exact density transport and the empirical diagnostic through three structural error components:
-
Kernel Smoothing Displacement (): The shift introduced by evaluating score estimators trained on Gaussian-perturbed replay features at clean imagined feature points .
-
Euler Quadrature Residual (): The first-order truncation error resulting from evaluating the continuous trace integral via a single forward Euler evaluation at , bounded by .
-
Structural Path Drift Gap (): The unmodeled divergence between the discrete RSSM transition kernel and the continuous auxiliary reference field:
Because is an unmodeled constant stemming from architectural separation, the proxy is treated strictly as a heuristic feature-space expansion diagnostic rather than a calibrated path density.
5 Density-Guided Bootstrap Boundaries
5.1 Overview
Our framework augments imagined actor-critic learning with a trajectory-dependent decision about where to bootstrap. The stochastic world model generates latent trajectories as in Equation (2). Two auxiliary networks, a displacement predictor and a noise-conditioned score estimator, define a vector field evaluated along those trajectories. Accumulated negative divergence of this field provides a relative density proxy. Hard or soft gates constructed from this proxy modify the return recursion and determine the contribution of imagined states to the learning objectives.
The auxiliary networks do not replace the world-model transition distribution. The environment reward and continuation predictors also retain their original meanings. The proposed modification concerns return expansion and sample weighting, rather than a new reward function or an additional environment termination condition.
5.2 Learning the Auxiliary Models
Let be a replay posterior feature, where denotes stop-gradient. For a replay sequence with states, let be the action that produces the transition from state to state , and let indicate that the pair does not cross an episode reset. We train a displacement network with normalized sequence-position input :
The sums include all sequence pairs in the batch. Actions are aligned with the transition they generated; in the replay storage convention used by our implementation, this corresponds to the action stored with the succeeding observation.
The target is a one-step feature displacement. Although the implementation names this network a latent ODE component, training does not integrate an ODE or divide the displacement by a continuous-time increment. The input is a sequence-position conditioning variable, not an integration step size.
The score network uses the noise-prediction parameterization from Section 3.3. With detached replay features, noise scale drawn uniformly from , and , its implemented loss is
This is an unweighted denoising loss: neither rewards nor density gates weight its samples. The combined model-training objective is
where is the base world-model objective. Detaching the auxiliary inputs prevents these losses from directly updating the encoder or latent transition model through their feature targets. In the implementation, the losses share a model optimizer and global gradient clipping, so an auxiliary-enabled control remains distinct from an unmodified baseline.
5.3 Constructing the Relative Density Proxy
At a fixed positive scale , define the score-corrected auxiliary field
The second equality uses Equation (9) and specifies the sign and scale of the implemented correction. The probability-flow construction motivates this form, but is an auxiliary hyperparameter, not a calibrated diffusion coefficient of the stochastic latent model. We evaluate the predictor at the clean imagined feature with conditioning value . Choosing within the training noise range does not remove the distribution shift between corrupted replay features and clean imagined features.
For each imagined state, we estimate spatial divergence with a stochastic trace estimator:
For example, independent Rademacher entries satisfy the stated covariance condition. The action and position input are held fixed when differentiating with respect to ; thus this is not the total derivative of a policy-composed closed-loop field. The derivative includes the spatial dependence of the score network. Stopping gradients through the score input before this calculation would remove its contribution to the divergence.
We construct bounded increments and accumulate them from a common reference:
The increment cap limits the influence of an individual divergence estimate. It also changes the signal and can conceal differences between fields when clipping is frequent.
Conditional unbiasedness of the trace estimate therefore does not imply unbiasedness of the clipped increment or of the resulting proxy.
We compute the required spatial derivatives before detaching from actor-critic optimization. No absolute starting-state density is estimated, and the proxy is not exponentiated in the gate construction. It measures an anchored accumulation along the imagined path, rather than an absolute ranking of replay-state likelihoods. The field's mismatch with the actual latent transition process and its dependence on representation scale remain relevant limitations.
5.4 Hard and Soft Gates
Let be a density threshold and a soft-gate temperature. The candidate gates are
Let be the minimum number of retained transition-loss entries and the warmup duration in the implementation's agent-step units. At training step , the applied gate is
This warmup delays activation; it is not a gradual interpolation of gate values. Setting activates selection from the start.
Define survival through state as
For hard gates, the first zero gate makes all subsequent survival weights zero, even if the proxy later rises above the threshold. For soft gates, survival decreases multiplicatively along the trajectory. Consequently, several moderate gate values can strongly attenuate later contributions even without a single sharp threshold crossing. We use these soft weights deterministically; the implementation does not sample a stopping time.
A useful diagnostic is the effective number of transition-loss entries,
It equals the retained count in hard mode and a fractional survival mass in soft mode. It excludes discounting and -mixing, so it is not a complete measure of the influence of future rewards on a target. A fixed-boundary control uses for a prescribed .
5.5 Density-Gated Return Recursion
We insert the gate at the succeeding state into the return recursion:
The gate therefore modulates the effective trace coefficient, , rather than the environment continuation prediction.
When , the target becomes
retaining both the incoming reward and the discounted boundary value. When all gates equal one, Equation (23) recovers Equation (4). The terminal gate does not alter the final backup because already equals .
In hard mode, the first failed gate determines the bootstrap boundary for targets rooted in the surviving prefix. Targets for later states may still be computed in the full tensor, but their actor and critic loss weights are zero. This separates stopping return expansion from stopping trajectory generation.
5.6 Actor–Critic Objectives and Gradient Handling
Let denote the detached discount weight inherited from the base agent. We apply the combined weight
For a batch of imagined trajectories, a distributional critic with predictive distribution is trained using
Here is the base agent's optional slow-critic regularization term. In our implementation it is the negative log probability assigned by the current critic to the detached scalar prediction of the slow critic.
Let denote the actor surrogate used by the base gradient estimator. The actor objective is
The entropy term receives survival weighting; it does not receive the additional factor in the implemented base objective.
For continuous-control experiments using dynamics gradients, the surrogate is the return-minus-baseline difference divided by the base return-normalization scale, with differentiation through the retained imagination computation. For discrete-action experiments using a likelihood-ratio estimator, the implemented surrogate is
This likelihood-ratio expression concerns the policy distribution and is distinct from the latent-density score estimator.
Gates and survival weights are detached for both gradient estimators. Thus actor updates do not differentiate through the threshold, sigmoid, or density diagnostic. The critic targets and critic input features are also detached in the critic update. During dynamics-based actor learning, world-model and auxiliary parameters remain fixed while the base differentiable imagination paths are retained.
The denominator in Equations (26) and (27) is the full batch-time size , not the surviving weight mass. Shorter effective horizons can therefore change update magnitude as well as sample selection. The implementation also excludes zero-weight targets from return-scale statistics in hard and fixed modes, whereas soft mode retains all targets for those statistics. These choices must be reported and controlled when attributing improvements to density-dependent selection.
5.7 Algorithm and DreamerV3 Instantiation
Algorithm 1 summarizes the training procedure. The counter uses the implementation's agent-step convention. The stochastic world model generates the full imagined trajectory before boundary selection. The spatial derivative includes the score network's dependence on its input; detachment is applied only after the divergence-based proxy has been computed.
The general formulation requires a latent feature representation, imagined transitions, and a bootstrap value estimator. Our implementation uses DreamerV3's recurrent stochastic state-space model and distributional critic (Hafner et al., 2023). The auxiliary networks operate on the concatenation of deterministic and stochastic latent features. In the configuration with a 512-dimensional deterministic component and 32 categorical variables with 32 categories each, this feature vector has dimension .
Section 3 defines as a transition count. The implementation's counts feature entries: setting it to 15 produces 14 return-training transitions, corresponding to here. Its auxiliary position input during imagination is , while replay uses . These are sequence-relative conditioning choices, not a shared physical-time discretization.
For implementation fidelity, let denote the continuation prediction at feature entry , including the initial entry. The inherited discount-loss weights are
The return recursion separately uses the next-state predictions . We preserve this indexing rather than silently changing the base agent's discount weights. Warmup is measured by the agent-step counter. With action repeat two, 100,000 agent steps correspond to 200,000 logged environment steps. Auxiliary training can proceed during this period while all gates remain one. Direct density reward weighting and learned auxiliary diffusion are disabled in the boundary experiments described here. The chosen threshold, temperature, increment cap, and activation time are experimental settings, not universal constants of the method. Finally, all imagined states are generated before gating. The method adapts the portion of imagination used in return expansion and optimization; this implementation does not claim computational savings from early rollout termination. Appendix E provides DreamerV3-specific pseudocode, including auxiliary training, RSSM imagination, gradient handling, and loss weighting.
6 Theoretical Analysis
Remark 1 (Diagnostic Nature of the Score Proxy) The accumulated signal tracks local volumetric expansion and contraction of the auxiliary field evaluated at states sampled from . It does not quantify exact path probabilities or absolute likelihoods under the world model's discrete stochastic transition kernel.
Remark 2 (Role of the Path Drift Gap) The structural path drift gap represents an irreducible structural offset. The efficacy of for gating return expansion relies on its ability to detect local feature-space divergence, not on eliminating .
Proposition 1 (Optimal Denoising Score Limit (Vincent, 2011; Song et al., 2021)) Let be the empirical posterior feature distribution on replay, and let denote the smoothed marginal density. If the noise-conditioned predictor minimizes the population denoising objective , then for any fixed noise scale , the parameterization yields the exact score of the perturbed distribution . Furthermore, in the limit of vanishing noise :
Theorem 1 (Bias-Variance Trade-off in Gated Returns) Let be the gated return target, and be the approximation bias of the critic. The continuation gate directly modulates the recursive propagation of critic bias and downstream rollout variance:
Theorem 2 (Diagnostic Proxy Variance and Discrepancy Bound) Let be a compact latent feature domain. Assume the auxiliary vector field has an -Lipschitz continuous Jacobian over , with neural approximation errors bounded by and .
With probability at least , the deviation between the empirical single-step diagnostic update and the local spatial trace of the score-corrected field along an RSSM transition is bounded by:
Proof Decompose the total error into four constituent bounds via the triangle inequality:
- Hutchinson Probe Variance ( ): using a Rademacher probe vector . Since with variance bounded by , Chebyshev's inequality guarantees with probability at least .
Density-Guided Bootstrap Boundaries
| Setting | Observations | Action repeat | Interaction budget |
|---|---|---|---|
| Control Suite | Proprioceptive vectors | 2 | 500,000 environment steps |
| Atari Pong | 64 × 64 RGB images | 4 | 400,000 emulator frames |
Table 1: Observation and interaction settings. Budgets follow the repeat-adjusted logging convention, corresponding nominally to 250,000 agent decisions for Control Suite and 100,000 for Pong.
-
Function Approximation Error (): Smoothness of activations ensures local -Lipschitz continuity of the Jacobian over compact set . Errors in vector field components propagate into the Jacobian trace bounded by .
-
Quadrature Residual (): Forward Euler integration of the step expansion over a unit transition step incurs a local truncation residual proportional to the squared latent displacement, .
-
Path Disconnect (): The additive structural offset accounting for evaluating diagnostic divergence along trajectories sampled from rather than integrated along .
7 Experimental Setup
Our experiments investigate whether density-guided bootstrap selection improves learning beyond the effects of auxiliary training and shorter imagined returns. All variants use the same modified DreamerV3 implementation. We separate the choice of boundary rule from the world-model architecture, interaction budget, and optimization settings.
7.1 Environments and Observation Settings
The continuous-control study considers the DeepMind Control Suite tasks cheetah_run, walker_walk, walker_run, and finger_turn_hard. These experiments use vector observations through the dmc_proprio configuration, with multilayer-perceptron encoders and decoders. Cheetah refers specifically to the Control Suite task, rather than the Gym MuJoCo HalfCheetah benchmark. The discrete-action study uses Atari Pong with 64×64 RGB observations and the atari100k configuration. This setting provides a complementary test involving visual representation learning and a categorical action policy. Table 1 summarizes the interaction settings.
The main comparison evaluates vanilla DreamerV3 and the density-guided hard and soft variants using 10 independent training seeds per method and task. Auxiliary and fixed-boundary controls are reported separately in Sections 7.2 and 7.3. The boundary-behavior illustrations use one supplied training run per variant, and the planned threshold-sensitivity study uses seed 0.
7.2 Reference Agents and Controlled Comparisons
The evaluation design includes the following variants:
-
Vanilla DreamerV3. The base return construction is retained. Auxiliary displacement and score training, density selection, and direct density weighting are disabled.
-
Auxiliary-enabled, cutoff off. The auxiliary networks are trained and the density diagnostic is computed, but no density boundary modifies returns or loss weights. This control is distinct from vanilla DreamerV3.
-
Density-guided hard boundary. The score-corrected proxy selects a hard bootstrap boundary, with the survival-weighted objectives defined in Section 5.
-
Density-guided soft boundary. The same proxy supplies sigmoid continuation gates and cumulative survival weights. This changes return expansion and loss weighting rather than directly multiplying rewards by density.
-
Fixed bootstrap boundary. A prescribed boundary replaces trajectory-dependent selection while retaining the boundary value. To isolate the selection rule, auxiliary computation should match the density-guided variant. A separate fixed-boundary agent without auxiliaries measures the performance of the simpler alternative.
These variants define the ablation design; only completed comparisons enter the reported results. Matching a fixed boundary to the mean effective horizon does not match its distribution or evolution during training. If the adaptive horizon changes substantially, a predetermined fixed-horizon schedule provides an additional control. Any schedule derived from a reference run must be frozen before evaluation and disclosed.
7.3 Training Configuration
Within each comparison, we retain the same architecture, replay settings, world-model losses, optimizers, and interaction budget unless an explicitly named ablation changes them. The supplied configuration uses batch size 16, replay sequence length 64, discount 0.997, and return-mixing coefficient 0.95. An imagination setting of 15 feature entries produces 14 return-training transitions.
The auxiliary setup uses , denoising scales sampled from [0.01, 0.10], displacement-loss coefficient , and score-loss coefficient . Learned auxiliary diffusion, direct density reward weighting are disabled.
The Control Suite configuration uses four environments, action repeat two, dynamics-based actor gradients, and training-ratio parameter 512. The Atari configuration uses one environment, action repeat four, likelihood-ratio actor gradients, and training-ratio parameter 1024. Training-ratio values are implementation configuration parameters whose meaning depends on the update scheduler. Compilation is disabled in the experimental commands.
7.4 Boundary Parameters and Sensitivity Studies
The current density-boundary experiments retain a minimum of transition-loss entries. The Cheetah threshold study varies over for hard and soft modes. It holds the soft temperature at , increment cap at , and activation point at 200,000 logged environment steps. With action repeat two, activation corresponds to 100,000 agent steps.
This threshold sweep is exploratory and uses seed 0. Existing runs can be reused only if code, clipping, warmup, and other settings match. Early runs using increment cap 5 are not interchangeable with cap-200 runs. Since no suitable pre-activation checkpoint is available for the new variants, those variants are trained from scratch.
Proxy scales can differ across tasks and training stages. Diagnostic sweeps report proxy quantiles across imagination depths and the induced effective-horizon distribution. When diagnostics determine parameters, report the reference checkpoint, replay sample, candidate set, and selection rule. Selection based on an auxiliary-enabled reference run should be distinguished from tuning against final evaluation returns.
Immediate-activation and delayed-activation experiments are reported separately. Warmup delays selection rather than gradually ramping it. For Atari with action repeat four, activation at 200,000 frames would require 50,000 agent steps; the Control Suite counter value would imply a different activation point.
7.5 Evaluation and Statistical Reporting
The primary measure is undiscounted evaluation episode return versus environment interaction. Evaluation episodes do not update the model or policy. All variants in a comparison use the same evaluation-policy convention, episode count, evaluation frequency, and time-limit handling. These settings are recovered from resolved run configurations rather than inferred from defaults. We report performance at a common interaction budget. A predefined average over the final evaluation checkpoints may additionally summarize late-training performance, but it is labeled as a within-run temporal average. It is not an independent-seed estimate. If collection or logging extends beyond the nominal budget, budget-matched summaries consistently exclude those later observations. We evaluate each method included in the main performance comparison using 10 independent training seeds. At each evaluation checkpoint, episode returns are first averaged within each training run. We then report the mean evaluation return across the 10 runs. Training seeds, rather than evaluation episodes or successive checkpoints, are the independent units used to quantify run-to-run variability. The learning curves summarize the mean evaluation return across 10 independent training runs. Shaded regions are intended to represent one standard deviation across runs, rather than confidence intervals for the mean. The seed-0 threshold sweep is treated separately as an exploratory sensitivity analysis.
7.6 Mechanism Diagnostics
We inspect effective imagination length during training to characterize the behavior of the boundary mechanism. For hard boundaries, this metric counts retained transition-loss entries. For soft boundaries, it sums survival weights. The illustrations in Section 7.5 use one training run per variant and task and do not estimate variation across training seeds. Additional logged diagnostics include proxy quantiles, increment-clipping fractions, and trial cutoff-length statistics. Trial length standard deviations describe variation across imagined trajectories within diagnostic batches; they are distinct from evaluation-return variability across training seeds. The implementation generates the full imagined trajectory before applying the gates. Consequently, reduced effective imagination length is not interpreted as reduced trajectory-generation cost. A matched wall-clock study, paired drift-only and corrected-divergence diagnostics, and controls for survival-dependent optimization scale are not included in the current results.
8 Results and Analysis
We organize the evaluation around four questions: whether density-guided boundaries improve performance relative to vanilla DreamerV3, whether the gains extend beyond a fixed bootstrap boundary, how enabling the auxiliary mechanism differs from using its signal for gating, and how performance depends on the density threshold. The main learning curves summarize 10 independent training seeds. Shaded regions show one standard deviation across seeds, and TensorBoard-style exponential smoothing with weight 0.7 is used for visualization. These bands describe run-to-run dispersion, not confidence intervals for the mean.
8.1 Performance Across Environments
Figure 1 compares vanilla DreamerV3 with density-guided hard and soft boundaries on four continuous-control tasks and Atari Pong. The curves indicate task-dependent benefits: some environments show faster learning with similar eventual returns, while others show a larger separation near the end of training. Neither boundary rule dominates across all environments.
Walker Walk. Both boundary variants reach high returns earlier than vanilla. Hard boundaries show the clearest advantage during the early-to-middle portion of training, while soft boundaries subsequently reach a similar performance level. The curves approach comparable returns by the end of the interaction budget. The principal benefit on this task is therefore earlier attainment of high performance rather than a substantial increase in final return.
Walker Run. Hard boundaries yield the highest mean return through most of the plotted training period. Soft boundaries improve more gradually and finish above vanilla, but below hard boundaries. Unlike Walker Walk, a visible gap remains at the final budget. The relative trajectories suggest that the discrete boundary rule is more effective than the selected soft-gate configuration on this task.
Cheetah Run. Both density-guided variants achieve higher late-training mean returns than vanilla, with soft boundaries finishing highest. Hard and soft exhibit different intermediate trajectories, including a temporary decline in the hard variant around the middle of training. Their relative ordering is therefore not constant over the full budget. The final separation motivates reporting both final-budget performance and a summary of learning efficiency, rather than selecting a single favorable intermediate checkpoint.
Finger Turn Hard. The hard-boundary variant achieves the strongest late-training performance. Its mean learning curve also changes less sharply during the later portion of

Figure 1: Evaluation returns for vanilla DreamerV3 and density-guided hard and soft bootstrap boundaries across five tasks. Curves summarize 10 independent training seeds; shaded regions indicate one standard deviation across seeds. TensorBoard-style exponential smoothing with weight 0.7 is used for visualization.
training than the other displayed curves. Soft boundaries and vanilla are broadly comparable near the final budget, with crossings during training. The smoother hard mean curve should not be interpreted as a formal reduction in seed variance or policy-gradient variance; those quantities require separate measurements.
Pong. All three methods reach high positive returns. Hard boundaries make earlier progress over part of the initial learning period, while soft boundaries improve rapidly during a subsequent phase. Vanilla ultimately reaches a slightly higher mean return near the end of training. Thus the Pong results indicate differences in learning dynamics rather than a consistent final-performance advantage for density-guided boundaries.
Taken together, these comparisons support evaluating boundary selection as a task-dependent modification to imagined learning. They do not establish that either hard or soft gating is uniformly preferable. In particular, the stronger late-training results on Cheetah Run and Finger Turn Hard coexist with near-convergent results on Walker Walk and a slightly stronger vanilla endpoint on Pong.
To complement the learning curves, Table 2 summarizes evaluation returns at early, middle, and late stages of training. These comparisons distinguish improvements during learning from differences near the end of the training budget. The stage definitions and extraction procedure are provided in the table caption.
The stage-wise comparisons indicate that the benefits depend on both the task and the training stage. On Walker Walk, the hard boundary achieves a higher early return, while the three methods reach similar returns by late training. On Walker Run, the hard variant has the highest reported mean at all three stages. On Cheetah Run, both boundary variants
Table 2: Evaluation returns at early, middle, and late training stages. Stage targets are 100k, 250k, and 500k environment steps for DeepMind Control tasks, and 80k, 200k, and 400k for Pong. Values are mean ± std.
| Environment | Method | Early | Middle | Late |
|---|---|---|---|---|
| Walker Walk | Vanilla | |||
| Hard | ||||
| Soft | ||||
| Walker Run | Vanilla | |||
| Hard | ||||
| Soft | ||||
| Cheetah Run | Vanilla | |||
| Hard | ||||
| Soft | ||||
| Finger Turn Hard | Vanilla | |||
| Hard | ||||
| Soft | ||||
| Pong | Vanilla | |||
| Hard | ||||
| Soft |
exceed vanilla at each reported stage, with the soft variant achieving the highest late-stage mean. On Finger Turn Hard, the hard variant initially trails vanilla but achieves higher middle- and late-stage returns. Pong shows a different pattern: vanilla has the highest early and late means, while the hard variant leads at the middle stage. These descriptive comparisons suggest task-dependent improvements rather than a uniform advantage across all environments.
8.2 Comparison with Fixed Bootstrap Boundaries
We compare density-guided hard boundaries with fixed bootstrap boundaries of six steps on Cheetah Run and five steps on Walker Run to examine whether simple horizon shortening can account for the observed performance differences. On Cheetah Run, the fixed-boundary control retains the auxiliary displacement field, score estimator, and density computations, while replacing density-dependent boundary selection with a predetermined six-step boundary. This provides a comparison of fixed and density-selected boundaries with auxiliary components enabled in both variants. On Walker Run, the fixed-boundary control disables the auxiliary components and therefore compares simple horizon shortening against the complete proposed method. The Walker Run comparison does not isolate adaptive boundary selection alone; the auxiliary-only ablation in the following subsection provides a complementary assessment of the effect of enabling density-guided boundaries.

Figure 2: Comparison of vanilla DreamerV3, fixed bootstrap boundaries, and density-guided hard boundaries on Cheetah Run (left) and Walker Run (right). Fixed boundaries use six and five steps, respectively. The Cheetah fixed control retains the auxiliary components, whereas the Walker fixed control disables them.
8.3 Auxiliary Mechanism and Boundary Selection
The auxiliary-enabled, cutoff-off control separates the introduction of displacement and score learning from using their diagnostic to modify imagined returns. Comparing this control with vanilla measures the effect of the combined auxiliary machinery. Comparing this control with hard boundaries measures the incremental effect of activating density-guided bootstrap boundaries and their associated survival weights, provided the remaining settings match. The supplied Cheetah Run curves show that the auxiliary-enabled cutoff-off agent itself improves over vanilla. The hard-boundary variant finishes above this control, although their ordering changes during training. On Walker Run, the hard variant leads the cutoff-off control during a substantial portion of training, while their final mean returns are similar. This pattern suggests that gating may improve intermediate training performance even when the additional endpoint gain is small. These results also limit the interpretation of a comparison against vanilla alone. Some observed improvement is already present when the auxiliary networks are enabled without boundary selection. Because the auxiliary losses use detached features, this observation does not directly establish that they improve the learned representation. Shared optimization details and stochastic computation can also distinguish the auxiliary-enabled control from vanilla.
This ablation tests the combined auxiliary mechanism and the additional use of its signal. It does not independently establish that the score correction, rather than the displacement field, is responsible for improved performance. A drift-only boundary comparison would be needed to isolate that contribution.
8.4 Sensitivity to the Density Threshold
We examine sensitivity to the density threshold on Cheetah Run using for both hard and soft boundaries. The study fixes the soft temperature at , the increment cap at , the minimum retained transition count at , and boundary

Figure 3: Comparison of vanilla DreamerV3, the auxiliary-enabled cutoff-off control, and density-guided hard boundaries on Cheetah Run (left) and Walker Run (right). The cutoff-off control retains auxiliary displacement and score learning without using the density signal to modify imagined returns. Curves use TensorBoard-style smoothing with coefficient 0.7.
activation at 200k logged environment steps. Each threshold configuration uses seed 0. This study is therefore an exploratory sensitivity analysis, separate from the 10-seed main comparisons. Figure 4 shows that changing the threshold affects learning after boundary activation. The threshold variants follow similar trajectories during warmup, when density-based selection is disabled, and separate during subsequent training. In both hard and soft modes, achieves the highest return near the end of the interaction budget, followed by and . The ordering is not maintained throughout training, however, and the curves exhibit intermediate crossings. All three threshold settings finish above the displayed vanilla reference. For a fixed proxy sequence, decreasing the threshold makes the boundary more permissive. In hard mode, fewer states fail the threshold test; in soft mode, the continuation gates increase. Consequently, a more negative threshold produces no smaller survival mass when evaluated on the same trajectory with the remaining settings fixed. This ordering need not hold for effective horizons across independently trained agents, because their policies, latent representations, and proxy distributions can diverge. The late-training ordering in this experiment is consistent with a benefit from a more permissive boundary setting within the tested range. It does not establish that longer effective horizons caused the improvement or that is generally optimal. Although the observed late-training advantage over the vanilla reference is present at all three tested thresholds, repeated-seed sweeps would be required to assess the reliability of the differences between threshold settings.
8.5 Behavior of the Density-Guided Boundaries
Figure 5 illustrates effective imagination lengths on Cheetah Run and Walker Run. Both variants retain the full effective horizon of 14 transitions during warmup. Following boundary activation at 200k environment steps, the effective lengths decrease and subsequently vary over training. On Cheetah Run, the hard variant decreases to approximately 5.5 effective transitions before increasing to approximately 6.7 near the end of training. The soft

Figure 4: Density-threshold sensitivity on Cheetah Run for hard boundaries (left) and soft boundaries (right), using . Each threshold configuration uses seed 0, with boundary activation at 200k environment steps, increment cap , and minimum retained depth . Soft boundaries use temperature . The dashed curve shows the vanilla reference.
variant follows a similar pattern at lower effective lengths. On Walker Run, the hard variant decreases to approximately 4.3 transitions before recovering to approximately 5.2, while the soft variant retains substantially more effective transition weight, reaching approximately 9.1 near the end of training. Thus, the relative effective lengths of hard and soft boundaries differ across these runs. For hard boundaries, effective length counts retained transitions; for soft boundaries, it sums survival weights and does not represent an integer stopping position. The curves come from separately trained agents and therefore reflect both the boundary rule and the evolving distributions of imagined trajectories. They do not isolate the effect of applying hard versus soft gating to identical trajectories. The fixed five- and six-transition references provide context for the controls in Section 7.2, but do not imply exact horizon matching throughout training.
Density-guided variants increased observed end-to-end runtime by approximately 2–7% relative to vanilla DreamerV3. These measurements include evaluation and logging and do not isolate the computational cost of the density mechanism.
9 Discussion and Limitations
9.1 Adaptive Bootstrapping as a Model-Usage Decision
The central contribution of this work is to use a score-informed density diagnostic to decide how far an imagined return should expand before relying on the critic. This makes the use of model predictions trajectory-dependent while retaining stochastic latent dynamics. A boundary changes the source of the remaining value estimate: future model-generated rewards are replaced or attenuated in favor of a critic bootstrap. It therefore regulates model usage rather than eliminating estimation error.
The learning curves in Section 8 suggest that the benefits of this decision depend on the task. On Walker Walk, the main difference is earlier attainment of high returns, with similar final performance. Cheetah Run and the hard-boundary variant on Finger Turn


Figure 5: Effective imagination length on Cheetah Run (left) and Walker Run (right), with one training run per variant. Vertical dotted lines mark boundary activation at 200k environment steps. Horizontal dashed lines indicate six- and five-transition references, respectively; these are not measured fixed-control curves. Hard effective length counts retained transitions, whereas soft effective length sums survival weights.
Hard show larger late-training improvements over vanilla. Pong exhibits differences in learning speed but no final-return advantage for the proposed variants. These patterns support distinguishing learning efficiency from final performance instead of treating either as a complete description of the method.
Hard and soft boundaries also make different choices about retaining future information. Hard gating removes downstream expansion after the first failed gate, whereas soft gating attenuates it cumulatively. The multiplicative soft survival weights can substantially reduce later contributions even when no individual gate is near zero. Consequently, a common threshold does not imply a common effective horizon or an equivalent intervention in learning. The different task-wise rankings of hard and soft variants motivate examining their induced survival profiles alongside return curves.
9.2 Interpretation of the Density Proxy
The quantity used for selection is an anchored accumulation of estimated divergence, not an exact latent likelihood. The auxiliary displacement field is fitted to posterior feature differences, while imagined trajectories are generated by a separate stochastic transition model. The score estimator describes a noise-smoothed replay-feature distribution, which need not coincide with the distribution visited during imagination. These differences prevent a direct identification of the implemented diagnostic with the density transported by a continuous-time flow.
Moreover, setting the initial proxy to zero means that the method tracks changes relative to each trajectory's starting point without estimating its absolute density. A trajectory starting in a poorly supported region can therefore initially receive the same proxy value as one starting in a well-supported region. Low density, density decrease, and prediction error are also distinct concepts. The observed usefulness of a boundary rule does not by itself establish that the underlying proxy is calibrated model uncertainty.
The score correction has a clear computational route to influencing learning: it changes the auxiliary field, its divergence, and potentially the gates. However, a large correction to the divergence is evidence of influence rather than evidence of accurate uncertainty estimation. Relating this signal to model prediction errors, critic errors, or return-estimation error remains an important direction for further analysis.
9.3 Attribution of Performance Improvements
Comparisons against vanilla measure the effect of the complete modification, including auxiliary computation and boundary selection. The auxiliary-enabled cutoff-off comparisons show why this distinction matters: part of the observed performance difference can be present without activating a boundary. Since the auxiliary losses use detached features, such differences should not automatically be interpreted as improved representation learning. Shared optimization details, gradient clipping, and changes in stochastic computation can also distinguish the training procedures.
Fixed-boundary controls address whether simple horizon shortening can explain the results. The evaluated fixed setting does not reproduce the hard variant's performance on the supplied Cheetah Run and Walker Run comparisons. Nevertheless, this does not establish superiority over every fixed horizon or scheduled horizon. Interpretation depends on matching activation times, auxiliary settings, and effective return depths. A fixed boundary matched only to the average adaptive horizon may still differ substantially in its distribution across trajectories and its evolution over training.
The loss-weighting convention introduces a further distinction. Because actor and critic losses are averaged over the original batch-time tensor rather than normalized by surviving mass, shorter effective horizons can reduce update magnitudes. Hard and soft variants also differ in their treatment of targets used for return normalization. Thus improvements may reflect a combination of target construction, sample selection, and optimization-scale effects. Normalization controls and drift-only boundary ablations would help separate these contributions; the present comparisons should not be interpreted as isolating all of them.
9.4 Calibration and Nonstationarity
The threshold, soft temperature, divergence cap, and activation time jointly determine boundary behavior. Their effects depend on the learned representation and auxiliary approximation. Proxy distributions can change as the replay buffer, world model, and policy evolve, so a threshold selected at one checkpoint need not maintain the same effective horizon later in training. Numerical values should therefore not be assumed to transfer unchanged between tasks or architectures.
Clipping limits the influence of extreme divergence estimates but changes the accumulated signal. When clipping is frequent, distinct estimates can produce identical increments, reducing the information available for selection. A low clipping rate avoids this particular saturation effect but does not establish that the remaining divergence estimates are accurate. Monitoring both clipping frequency and proxy distributions is therefore useful for interpreting a threshold sweep.
Warmup delays the use of the diagnostic while auxiliary learning proceeds. It does not guarantee that the score or displacement model has become accurate at activation, and abrupt activation can change targets and loss weights substantially. A gradual activation schedule or calibrated boundary criterion could be explored, but these are extensions rather than established features of the present method. The seed-0 threshold study provides an initial sensitivity assessment; it does not establish multi-seed robustness across the full hyperparameter space.
9.5 Computational and Implementation Scope
The implementation generates the full imagined trajectory before constructing the gates. A reduction in effective return depth therefore does not imply a reduction in trajectory-generation cost. Auxiliary training and spatial divergence estimation add computation, and any practical benefit must be assessed using measured training time or throughput as well as environment interactions. Comparisons of wall-clock cost require matched hardware and process concurrency.
Stochastic trace estimation avoids explicitly forming the full Jacobian, but it introduces another source of variability in the diagnostic. The required spatial derivatives include those of the score network. Improving score prediction alone does not necessarily improve these derivatives, and detaching the score input during divergence computation would remove the score's contribution entirely. Efficient and accurate derivative estimation is therefore a practical consideration for scaling the approach.
The formulation is compatible with imagined actor-critic learning beyond a single architecture, but the empirical evaluation here is confined to one DreamerV3 implementation. Results across continuous-control and visual discrete-action tasks demonstrate breadth within that implementation, not verified portability across world-model families. Applying the mechanism to another architecture would require checking the latent representation, auxiliary training distribution, return estimator, and gradient paths rather than transferring thresholds alone.
9.6 Statistical and Theoretical Scope
The main comparisons use 10 independent training seeds, with standard-deviation bands showing variation across runs. These bands are descriptive and do not directly quantify uncertainty in the difference between methods. Likewise, a smoother mean learning curve does not establish reduced estimator variance. Numerical performance comparisons should use unsmoothed per-seed summaries, with uncertainty procedures appropriate to the statistic being reported.
Variance across independently trained policies is distinct from the conditional variance of an imagined return or policy-gradient estimator at a fixed checkpoint. A theoretical guarantee about one quantity cannot be inferred from measurements of another. The relationship between the theory and experiments must therefore be stated in terms of the exact estimator, sources of randomness, and assumptions under consideration.
These limitations leave a focused empirical question: whether the score-informed diagnostic provides useful boundary decisions beyond simpler controls. The current results motivate that question and show that density-guided bootstrapping can change learning behavior while preserving stochastic imagination. Establishing when those changes improve estimation accuracy, and how reliably they transfer across tasks and implementations, re-quires the component controls and assumption-specific analysis described throughout the paper.
10 Conclusion
We presented density-guided bootstrap boundaries for latent world-model reinforcement learning, establishing a principled mechanism to govern model usage during policy learning. By evaluating spatial divergence along imagined latent paths via an auxiliary displacement field and a noise-conditioned score estimator, our framework constructs an anchored feature-space expansion diagnostic. Hard and soft continuation gates dynamically determine where return expansion transitions into value bootstrapping, preserving discounted boundary critic estimates and applying consistent survival weighting to actor and critic objectives.
Theoretically, we established that the gated Bellman operator preserves strict contraction properties, characterized its local contraction dynamics under soft and hard gates, and proved that truncation monotonically bounds conditional target variance at the cost of absorbing critic approximation bias. Formally distinguishing this proxy from an exact path likelihood provides a clear boundary for theoretical claims and prevents misinterpreting spatial divergence as calibrated model uncertainty.
Empirically, our Dreamer V3 instantiation across DeepMind Control Suite and Atari Pong demonstrates that adaptive return horizons improve sample efficiency and final performance compared to vanilla Dreamer V3 and fixed-horizon baselines. The performance trade-offs between discrete hard cutoffs and cumulative soft attenuation highlight task-dependent dynamics in return expansion. Controlled ablations confirm that gains stem from trajectory-dependent gate selection rather than horizon shortening or auxiliary loss scales alone.
Future research will explore tighter couplings between feature-space divergence and local model prediction error, introduce adaptive thresholding mechanisms across evolving replay distributions, and extend the gating mechanism to broader model-based architectures and offline reinforcement learning settings.
Acknowledgments and Disclosure of Funding
The authors conceptualized, formulated, and provided the core mathematical ideas and directions for this work. Google Gemini was used during manuscript preparation to assist in drafting initial formal statements, theorems, and proofs in Section 6 and Appendices A–D. All derivations, theoretical formulations, empirical evaluations, and text were thoroughly reviewed, independently re-derived, verified, and finalized by the authors, who take full responsibility for the accuracy, claims, and integrity of all contents of this paper. PL is partially supported by NIH OT2 Award, 1OT2OD042825-01.
References
J. Buckman, D. Hafner, G. Tucker, and E. Brevdo. Sample-efficient reinforcement learning with stochastic ensemble value expansion. In Advances in Neural Information Processing Systems (NeurIPS), volume 31, pages 8224–8234, 2018.
V. Feinberg, A. Wan, I. Wang, B. Mazoure, S. Levine, and J. E. Gonzalez. Model-based value expansion for efficient deep reinforcement learning. In International Conference on Machine Learning (ICML), pages 1501–1510, 2018.
W. Grathwohl, R. T. Q. Chen, J. Bettencourt, I. Sutskever, and D. Duvenaud. Ffjord: Free-form continuous dynamics for scalable reversible generative models. In International Conference on Learning Representations (ICLR), 2019.
D. Hafner, T. Lillicrap, I. Fischer, R. Villegas, D. Ha, H. Lee, and J. Davidson. Learning latent dynamics for planning from pixels. In International Conference on Machine Learning (ICML), pages 2555–2565, 2019.
D. Hafner, T. Lillicrap, J. Ba, and M. Norouzi. Dream to explore: Model-based reinforcement learning with latent world models. In International Conference on Learning Representations (ICLR), 2020.
D. Hafner, J. Pasukonis, J. Ba, and T. Lillicrap. Mastering diverse domains through world models. arXiv preprint arXiv:2301.04104, 2023.
M. Janner, J. Fu, M. Zhang, and S. Levine. When to trust your model: Model-based policy optimization. In Advances in Neural Information Processing Systems (NeurIPS), volume 32, pages 12519–12530, 2019.
S. Kakade and J. Langford. Approximately optimal approximate reinforcement learning. In Proceedings of the 19th International Conference on Machine Learning (ICML), pages 267–274, 2002.
R. Kidambi, A. Rajeswaran, P. Netrapalli, and T. Joachims. Morel: Model-based offline reinforcement learning. Advances in Neural Information Processing Systems, 33:21810–21823, 2020.
H. Lu, L. Yao, C. He, H. Han, F. Liu, W. Liao, T. He, and P. Peng. Rise: Adaptive imagination for world action models. arXiv preprint arXiv:2608.20430, 2026.
Y. Song, J. Sohl-Dickstein, D. P. Kingma, A. Kumar, S. Ermon, and B. Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations (ICLR), 2021.
P. Vincent. A connection between score matching and denoising autoencoders. Neural Computation, 23(7):1661–1674, 2011.
T. Yu, G. Thomas, L. Yu, S. Ermon, J. Y. Zou, S. Levine, C. Finn, and T. Ma. Mopo: Model-based offline policy optimization. Advances in Neural Information Processing Systems, 33:14129–14142, 2020.
Appendix A. Overview
This appendix provides rigorous mathematical proofs for the theoretical properties of density-guided bootstrap boundaries in latent world-model reinforcement learning. We formalize:
-
Convergence of the Gated Evaluation Operator (Theorem 3): Proof that the gated -return Bellman operator is a strict -contraction mapping.
-
Conditional Return Variance Monotonicity (Theorem 4): Proof that truncating return expansion monotonically reduces conditional target variance.
-
Score-Divergence Dependent Contraction Rate (Lemma 1): Derivation of the local contraction rate as a function of the accumulated divergence proxy.
-
Discontinuity under Hard Bootstrapping (Corollary 2): Characterization of the discrete phase transition in operator contraction.
-
Limits of Monotonic Policy Improvement (Section D): Formal analysis clarifying why monotonic improvement requires explicit uncertainty penalties beyond gating.
-
DreamerV3 Implementation Details
Proof of Theorem 1 (Bias-Variance Trade-off in Gated Returns)
Proof Let denote an imagined latent state at step . Recall the recursive definition of the gated return target :
where is the predicted continuation discount, is the decay factor, and is the continuation gate at step .
Let denote the true value function under policy , satisfying the standard Bellman expectation equation:
Using the partition identity , we expand into gated and non-gated recursive components:
Define the approximation bias of the critic at state as , which implies . Substituting this relation into the expected gated return target yields:
(38)
The conditional target bias is defined as . Subtracting Eq. (36) from Eq. (38):
(39)
Canceling the common terms and , we obtain:
(40)
(41)
Applying the Law of Iterated Expectations to the second term:
(42)
(43)
Substituting Eq. (43) into Eq. (41) yields the recursive bias identity:
This completes the proof.
Theorem 3 (Convergence of Path-Dependent Gated Evaluation Operator) Let be the compact augmented state space, the discount factor, and the continuation-discount factor. Let be an augmented continuation gate. Define the gated -return Bellman operator as:
Then is a strict -contraction mapping under the supremum norm , where the contraction modulus satisfies:
Consequently, for any initial value function , the sequence converges uniquely to a fixed point .
Proof Let be two arbitrary value functions. For any augmented state :
Applying Jensen's inequality and moving absolute values inside the expectation:
Taking the supremum over on the left-hand side:
Rearranging terms to isolate :
Since , , and , we have . Dividing both sides yields:
Define . Evaluating its partial derivative with respect to g:
Because , achieves its maximum at g = 0:
Thus, is a strict -contraction mapping with . By Banach's Fixed-Point Theorem, converges uniquely to a fixed point .
Appendix B. Conditional Return Variance Monotonicity
Theorem 4 (Conditional Return Variance Monotonicity) Let be an imagined state at step . Consider the recursive gated return target defined by:
Let and be two deterministic gate sequences such that for all . Assuming a fixed critic and independent transition noise along , the conditional target variances satisfy:
In particular, setting (a hard bootstrap boundary) truncates downstream rollout stochasticity and yields:
Proof By the Law of Total Variance, for any scalar random variable Y conditioned on and intermediate state :
Substituting :
Thus, the conditional variance satisfies the recursive identity:
Because for , every term in the summation over future steps is scaled by a non-negative, monotonically non-decreasing multiplier in . Unrolling the recursion down the trajectory tree shows that . Setting removes all terms containing for , establishing the lower bound.
Appendix C. Score-Divergence Dependent Contraction Rate
Lemma 1 (Score-Divergence Dependent Contraction Rate) Let be the accumulated negative score-divergence proxy along an imagined trajectory prefix, where . Let denote the soft continuation gate with temperature and threshold . The local contraction modulus of the gated Bellman operator is given by:
Furthermore:
- The contraction rate is strictly monotonically decreasing in :
- The asymptotic values satisfy:
Proof Substituting into the contraction modulus formula from Theorem 3:
Multiplying numerator and denominator by :
To establish monotonicity, define , noting that . Differentiating with respect to :
By the chain rule:
As , , giving , so . As , , giving .
Corollary 2 (Hard Boundary Contraction Discontinuity) For the hard continuation gate , the local contraction modulus exhibits a step-function phase transition at threshold :
When accumulated negative score-divergence drops below threshold , abruptly collapses to a 1-step Bellman evaluation operator with contraction factor , eliminating downstream rollout predictions.
Appendix D. Analysis of Limits on Monotonic Policy Improvement
By the Performance Difference Lemma (Kakade and Langford (2002)), updating policy to yields:
When the agent optimizes using the gated return surrogate advantage , the theoretical bound depends on the target error :
Remark 3 (Why Monotonic Improvement Cannot Be Guaranteed) Monotonic improvement () requires bounding by a small constant. In pessimistic offline RL (e.g., MOPO, MOREL), this is achieved by constructing explicit upper bounds on transition model error . In the present framework:
-
The signal is an empirical feature-space expansion diagnostic derived from an auxiliary vector field , not a calibrated upper bound on total variation error .
-
Truncating at state absorbs critic approximation bias . If truncates at a state where the critic is inaccurate, can grow, preventing a proof of guaranteed policy improvement.
Appendix E. DreamerV3 Implementation Details
Indexing and normalization. The implementation setting imag_horizon=15 produces 15 feature entries and 14 return-training transitions, corresponding to in these algorithms. Replay and imagination use different sequence-position normalizations; neither is an ODE integration step size. The implemented return-normalization statistics exclude zero-survival targets in hard and fixed modes, whereas soft mode retains all targets.
Gradient handling. Auxiliary feature inputs are detached during model training. During divergence estimation, the spatial derivative includes the score network's dependence on its feature input. The resulting density proxies, gates, and survival weights are detached from actor-critic optimization. Freezing the world-model parameters during dynamics-based actor learning does not remove the differentiable paths through imagined states and actions.
Computational scope. The full imagined rollout is generated before applying the gates. The method changes return expansion and optimization weights; it does not implement early termination of RSSM trajectory generation.
Algorithm 1 Density-Guided Imagined Actor-Critic Learning
Require: World model parameters ; actor ; critic ; displacement field ; noise predictor ; replay buffer .
Require: Imagination horizon ; trace coefficient ; threshold ; temperature ; increment cap ; score scale ; minimum retained depth ; activation step ; boundary mode .
1: while interaction budget remains do
2: Collect environment experience using and append it to .
3: Sample replay sequences and infer posterior latent features.
4: Update world model and auxiliary parameters using (Algorithm 2).
5: Start from detached replay posterior states and generate full stochastic imagined trajectory .
6: Predict rewards , discounts , and values .
7: Set .
8: for do
9: Define with .
10: Draw an independent trace probe satisfying .
11: Estimate , holding and fixed.
12: Set .
13: end for
14: Detach density proxies from actor-critic optimization.
15: for do
16: if or then
17: .
18: else if then
19: .
20: else
21: .
22: end if
23: end for
24: Set .
25: for do
26: .
27: end for
28: Set .
29: for do
30: .
31: end for
32: Form detached loss weights for using base agent discount weights .
33: Update actor and critic using gated returns and survival-weighted objectives (Section 5.6).
34: Apply base agent's slow-critic update and advance training counters.
35: end while
Algorithm 2 Dreamer V3 World-Model and Auxiliary Update
Require: Replay batch of observations, actions, rewards, continuation labels, and reset indicators; world model parameters ; displacement parameters ; noise predictor parameters .
1: Encode observations and infer posterior RSSM sequence using observed actions and reset indicators.
2: Compute base Dreamer V3 loss (reconstruction, reward, continuation, dynamics, representation).
3: Extract detached posterior features .
4: Align each action with transition and construct mask excluding transitions across episode resets.
5: Set for replay sequence length .
6: Compute masked displacement loss:
7: Sample noise scales and independent Gaussian noise .
8: Compute unweighted noise prediction loss:
9: Form .
10: Update using shared model optimizer and global gradient clipping.
11: return Detached posterior states as starting points for imagined behavior learning.
Algorithm 3 Dreamer V3 Imagined Behavior Update with Density Gates
Require: Detached posterior starting states; actor ; critic ; trained world model and auxiliary networks; boundary settings .
1: Hold world model and auxiliary parameters fixed during behavior update.
2: Generate feature entries using standard RSSM imagination and actions sampled from .
3: Predict rewards , continuation probabilities , and values .
4: Set .
5: for do
6: Set and evaluate .
7: Estimate using independent Rademacher probe , holding and fixed.
8: Set .
9: end for
10: Detach after computing spatial derivatives.
11: Construct hard or soft gates (Section 5.4), applying warmup and minimum depth overrides.
12: Compute detached survival weights .
13: Set .
14: for do
15: .
16: end for
17: Construct inherited detached discount weights and .
18: Set for .
19: Update return normalization statistics using mode-dependent target selection.
20: Update actor using base dynamics-gradient or likelihood-ratio surrogate weighted by , with entropy weighted by .
21: Update distributional critic using detached targets , detached features, and weights .
22: Average both objectives over full batch-time tensor without normalizing by surviving mass.
23: Apply base slow-critic update schedule.