Pages and contents
Pages
CL1 — C
Reinforcement Head
The reinforcement head is responsible for converting the learned representations in , , and into action selection and value estimates. It should remain lightweight: provides dense perceptual state, provides temporal context, and provides relevant historical trajectories. The reinforcement head combines these representations but does not introduce another persistent latent space. Its outputs are
and
where is the policy and estimates the expected future return.
State Representation
Because
is a dense perceptual representation, it must first be reduced into information relevant for the current decision.
The temporal state can query using attention
The controller therefore receives a compact representation
Here is simply an intermediate neural-network activation rather than a new latent space. The actor and critic are then small neural heads:
Thus the basic reinforcement path is
Actor-Critic Learning
The value head estimates the expected discounted future return
For sparse rewards, we want reward information to propagate backward through states that occurred well before the reward was observed. We can use bootstrapped -returns:
Here may be a slowly updated target critic for additional training stability. The critic is trained with
The corresponding advantage estimate is
The policy can then be trained using a standard actor-critic objective such as PPO:
This provides the ordinary model-free reinforcement signal from trajectories actually experienced by the agent.
Retrieving Candidate Plans From
The memory system provides an additional mechanism for making decisions when historical experience may be useful. Given the current state,
retrieves memories whose contexts are similar to the current situation:
Where denotes the continuation component of a historical trajectory . For planning, we are particularly interested in the historical action continuations
These sequences should not be interpreted as predictions that history will repeat. Instead, they are candidate strategies that were used in similar situations.
Adapting Retrieved Plans
A retrieved trajectory may originate from a similar but non-identical situation. It should therefore not necessarily be replayed exactly. Instead, each retrieved action sequence can define the center of a small local search:
For continuous action spaces, candidate trajectories can initially be generated using small perturbations:
For discrete actions, individual actions can instead be replaced by nearby alternatives or actions sampled from the current policy:
The important principle is that constrains the search toward historically plausible behaviors. Searching local variations of historically relevant trajectories is computationally efficient.
Novelty-Triggered Exploration
Memory retrieval also provides a natural measure of whether the current situation is familiar. Given the current memory query and memory keys , define the maximum historical similarity
If no stored episode lies within a required similarity bound, the current state is treated as insufficiently represented in episodic memory. Define the novelty indicator
When , memory-based trajectory proposals are considered unreliable and the controller increases exploration rather than exploiting weakly related historical experience.
Evaluating Candidate Plans With
Each adapted trajectory is evaluated from the current latent state rather than from the historical state in which the memory was created. For candidate trajectory , initialize The world model then recursively predicts the consequences of the proposed actions:
For a short planning horizon, may initially be held fixed to reduce computational complexity. A later model could recursively update an imagined temporal state as well.
The reward head predicts the reward associated with each imagined transition:
The cumulative predicted reward over the planning horizon is
Because long world-model rollouts accumulate prediction error, planning should remain relatively short. The critic can estimate the value beyond the final imagined state. First construct the terminal control representation
The complete trajectory score is then
The first term evaluates consequences inside the world-model rollout, while the terminal value estimates consequences beyond the planning horizon.
Sparse Reward and Episodic Memory
Sparse reward creates two related problems:
1. Determining which previous states and actions contributed to a delayed reward.
2. Rediscovering rare successful action sequences in the future.
The critic primarily addresses the first problem. Through bootstrapped value learning, information about a delayed reward propagates backward through earlier states. helps address the second problem.
Because reward is one of the triggers used to create episodic memory anchors, rare successful trajectories are explicitly preserved. When a similar context occurs again, the successful continuation can be retrieved and evaluated from the new state.
Surprise-based anchors are also useful because an important transition may occur without immediate reward. Large surprise indicates that something occurred which the current world model did not expect. Such experiences may be worth remembering even if their behavioral importance is not yet understood.
Distilling Planning Into the Policy
Memory retrieval and world-model rollouts are more computationally expensive than directly evaluating the policy. The agent should therefore learn from successful planning so that behaviors which initially require deliberation can eventually be produced directly by the actor.
Suppose the planner evaluates candidate trajectories with scores These scores can be converted into a distribution over candidate plans:
Each trajectory proposes an initial action . The actor can then be trained to assign greater probability to the initial actions of high-value plans:
The planner therefore acts as a teacher for the direct policy. This allows a useful behavior to transition from expensive deliberation to cheap habitual execution:
while later
Planning therefore does not need to be performed at every timestep.
Reinforcement Objective
The complete reinforcement objective can combine policy learning, value learning, planner distillation, and entropy regularization:
The entropy term encourages continued exploration, which is especially important before useful reward trajectories have been discovered.