Pages and contents
Pages
- Non-Generative World Model Research
- Literature Review
- Literature Notes
- Attention
- Memory
- Planning
- Reviews
- Reinforcement Learning
- Decision Transformer
- Efficient Zero V2
- Compositional Transduction
- Schema Networks
- Universal Value Function Approximators
- World Model Papers
- Biological
- World Models
- Representation
- Training
- Template
- Important Concepts
- Models
- Resources
Universal Value Function Approximators
https://proceedings.mlr.press/v37/schaul15.pdf 2015
Problem
A standard value function or estimates return for a single reward function or goal. If an agent wants to pursue many different goals, one approach is therefore to learn a separate value function for every goal . This scales poorly and ignores the fact that related goals often induce closely related value functions.
The paper proposes a Universal Value Function Approximator (UVFA) that generalizes over both states and goals. Instead of separately learning , learn a single function or . The important idea is that structure in the goal space can be exploited in the same way ordinary function approximation exploits structure in the state space. This can allow the agent to estimate values, and therefore construct policies, for goals that were never directly trained.
Method
Goal-Conditioned Value Functions
Each goal defines its own pseudo-reward function and pseudo-discount . The pseudo-discount can also act as a termination condition, with when the goal terminates.
The goal-conditioned action-value function obeys
and every goal therefore has an associated optimal policy and value function,
A UVFA replaces the collection of separate goal-conditioned value functions with one parameterized function:
or
The same parameters are therefore used to answer the question "how valuable is this state/action for this goal?" for many different .
State and Goal Embeddings
The simplest architecture just concatenates state and goal:
The more interesting architecture factorizes the calculation into a state embedding and a goal embedding:
which are combined by another function :
A particularly simple choice is a dot product:
The interpretation is that describes the state in terms of features relevant to many possible goals, while describes what features matter for reaching a particular goal. Their interaction determines the value.
If goals and states use similar representations, the networks for and can share features. In special symmetric environments it is even possible to use . The learned embeddings can recover meaningful topology in the environment even though this structure is not directly supervised.
Low-Rank Factorization
The authors observe that the complete collection of values can be viewed as a matrix whose rows are states and columns are goals:
If value functions for different goals share significant structure, this matrix should admit a useful low-rank approximation:
where and are low-dimensional state and goal embeddings.
The paper therefore proposes a two-stage learning procedure.
First, factorize the known entries of the value matrix to obtain target embeddings and . Then train neural networks to predict those embeddings:
The resulting UVFA can estimate missing entries of the value matrix,
including combinations of states and goals that were never directly observed together. In the experiments, relatively low-rank representations were often sufficient to recover good policies even when they did not perfectly reconstruct the numerical value function.
Learning From Reinforcement
The paper considers two ways to obtain the value information required for a UVFA.
The first uses Horde, where many separate goal-specific value functions are learned off-policy from the same experience. These values populate the state-goal value matrix, which is then factorized to train the UVFA. The UVFA can subsequently generalize beyond the particular goals represented by the Horde.
The second removes the intermediate Horde and trains the UVFA directly using a goal-conditioned Q-learning update:
A transition can therefore provide a learning update for some goal , even though the behavior that generated the transition was not specifically pursuing that goal.
Direct bootstrapping while simultaneously learning representations across goals can be unstable. One stabilization used in the paper is to constrain the interaction between state and goal embeddings using a distance-based function such as
so states embedded close to a goal have high value and distant states have lower value.
Generalization and Transfer
The central benefit is that learning about one goal can improve predictions about other goals. A UVFA can interpolate between observed goals and, when state and goal representations share sufficient structure, sometimes extrapolate to previously unseen regions of goal space.
The resulting representation also has several possible uses. can act as a predictive representation of state, and each goal implicitly defines a policy through . Thus a UVFA can be viewed as approximately representing a large family of goal-conditioned options with one function approximator.
The paper largely assumes that the goal space and its representation are already available. In the simple environments, goals are usually states themselves, while the Ms. Pacman experiment uses hand-defined pellet coordinates. It therefore does not solve the harder problem of discovering useful goals or abstractions from experience. Generalization also depends strongly on there being exploitable structure between the training and unseen goals. Extrapolation is considerably harder than interpolation, and direct TD learning of the UVFA can become unstable because the system is simultaneously bootstrapping its values and learning a representation across goals.
UVFAs also generalize across goals, not arbitrary tasks. The transition dynamics are assumed to remain the same while the reward or goal changes. This distinguishes the method from general multitask RL where different tasks may have different dynamics. Related work includes Sutton's General Value Functions and Horde, which learns many separate predictions from a common experience stream; options, since a goal-conditioned value function can induce a temporally extended policy toward that goal; parameterized skills and multitask policy search; and Foster and Dayan's earlier work on discovering shared structure across collections of value functions. The main UVFA contribution is to compress a potentially very large family of goal-conditioned value functions into a single function that explicitly generalizes across the goal dimension.