Constructing a Good Behavior Basis for Transfer using Generalized Policy Updates

Safa Alver, Doina Precup

Introduction: The Brittleness of Reinforcement Learning

Standard Reinforcement Learning (RL) is notoriously brittle. An agent trained to pick up red apples might completely fail if suddenly asked to pick up green pears, usually requiring thousands of new trials to adapt. To solve this, researchers use Transfer Learning, specifically a framework called Generalized Policy Updates. This approach uses "Successor Features" (which map out what an agent expects to see in the future) and "Generalized Policy Improvement" (GPI, which picks the best action across a library of known policies).

However, a major question has remained: Which policies should we put in our library to ensure we can solve any future task? If your library only contains "walking" and "running," you'll never be able to "jump." This paper defines exactly what that "behavior basis" should look like to enable instantaneous transfer to new tasks.

Methods: Building a Set of Independent Policies (SIP)

The authors propose the concept of a Set of Independent Policies (SIP). Think of the SIP as an alphabet. If you have a clean set of letters, you can write any word. Previous "diverse" policy methods were like learning random syllables; they might be diverse, but they don't necessarily give you the full alphabet needed for all possible tasks.

The approach relies on three core components:

  1. Successor Features (SFs): Decoupling the environment's physics (how things move) from the rewards (what the agent wants).
  2. Independent Features (SIF): Assuming the world has distinct features (e.g., "picking up a triangle" vs. "picking up a diamond") that can be achieved independently.
  3. The SIP Algorithm: An iterative algorithm where, instead of training on random tasks, the agent is trained on specific "preference vectors."

For each feature, the agent learns a policy that maximizes that specific feature while actively avoiding all others. By building this "clean" library where each policy does exactly one thing in isolation, the agent creates a basis that can be mathematically recombined to handle complex, multi-objective tasks.

Independent policies isolating specific features

Experimental Setup: The 2D Item Collection Environment

The researchers evaluated their approach using a 2D Item Collection Environment. The setup consists of a 10x10 grid where an agent must collect or avoid different types of items, such as red or green triangles and diamonds.

The 2D Item Collection Environment, preference vectors, and resulting agent trajectories

While the grid is physically small, the state space—considering all possible item positions—is massive (roughly $10^{15}$ states), requiring deep RL and function approximation. The authors tested both deterministic environments (perfect movement) and stochastic environments (where the agent might "slip" with a 12.5% or 25% probability).

Key Results and Insights

  • Zero-Shot Transfer: The most striking insight is that with a SIP, the agent doesn't just learn faster—it can perform optimally on a new task the very first time it sees it (zero-shot), provided the new task is a linear combination of the known features.
  • Full Task Coverage: The proposed SIP algorithm achieved high performance across the entire task space. In contrast, existing diversity-seeking algorithms like DIAYN (Diversity is All You Need) and DSP failed to cover all quadrants of the task space because they didn't focus on strict feature independence.
  • Bootstrapping Complex Tasks: Even when a task is too complex to be a simple linear combination (like a sequential task: "get the red item, THEN the green one"), having a SIP provides a much better starting point for a meta-policy to learn from than starting from scratch.
  • Lifelong Learning: In a scenario where tasks changed every 500,000 steps, the SIP-based agent adapted almost instantly. Standard Deep Q-Networks (DQN) suffered from "catastrophic forgetting," failing on tasks they had already mastered earlier in their "life."
  • Robustness: While the theory was built for deterministic worlds, the experiments proved the SIP approach still significantly outperformed baselines in noisy, stochastic environments.

Limitations and Future Work

The method relies heavily on having a "Set of Independent Features" (SIF) already defined. If the features are fundamentally entangled (e.g., you cannot do A without doing B), the current theory hits a wall. Because the paper assumes we know what the features are, a critical next step is developing a "feature extraction" preprocessing step that can automatically identify these independent building blocks from raw data. Finally, while the experiments worked well in stochastic settings, the formal mathematical proofs are currently limited to deterministic transitions. Expanding the theory to cover high-noise environments remains a clear path forward.

Summary updated

BibTeX
@inproceedings{alver2022constructing,
  author = {Safa Alver and Doina Precup},
  title = {{Constructing a Good Behavior Basis for Transfer using Generalized Policy Updates}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=7IWGzQ6gZ1D},
}
Figure