Causally Aligned Curriculum Learning

Mingxuan Li, Junzhe Zhang, Elias Bareinboim

Introduction

Reinforcement Learning (RL) frequently suffers from the "curse of dimensionality"—as environments become more complex, finding the optimal policy becomes exponentially harder. Curriculum Learning (CL) attempts to solve this by training agents on a sequence of progressively easier "source tasks" before tackling the final, difficult "target task."

Standard Curriculum Learning

The fundamental assumption of CL is that the optimal way to act in a simplified task translates directly to the harder task. However, this assumption often breaks down in the presence of unobserved confounders—hidden variables that influence both the state of the world and the resulting rewards.

For example, in a modified Sokoban game, a hidden variable might determine both the box color and whether pushing it yields a reward. If a curriculum generator "simplifies" the task by fixing the box color to yellow, it might break the causal link the agent needs to understand. This leads the agent to learn a sub-optimal policy that fails miserably in the real, confounded target environment.

A Causal Framework for Curriculum Design

To address these failures, this research approaches curriculum design through the lens of Structural Causal Models (SCMs). The proposed method acts as a "causal filter" that can be seamlessly integrated into existing automatic curriculum generators.

1. Causally Aligned Source Tasks

The authors define a source task as "aligned" if its optimal decision rules are invariant with respect to the target task. If a task is aligned, the skills learned will reliably transfer.

2. Editable States via Graphical Criteria

They derive a sufficient condition based on d-separation. Essentially, a set of variables is considered "editable" (safe to change for a curriculum) if modifying them does not create a new causal path that leaks information about the reward in a way that differs from the target task.

3. The FINDMAXEDIT Algorithm

To operationalize this, the paper introduces the FINDMAXEDIT algorithm. This polynomial-time algorithm takes a causal diagram of the environment and identifies the largest possible set of variables that a curriculum generator is allowed to safely modify.

4. Avoiding Policy Overwriting

The paper also identifies a secondary failure mode where learning a new skill in a subsequent task causes the agent to "forget" the optimal rule learned previously. They prove that for a class of "soluble" tasks, training in a reverse topological order of actions prevents this destructive overwriting, allowing the agent to build a stable library of skills.

Experimental Validation

The authors evaluated their approach on three confounded environments specifically designed to "trap" non-causal curriculum generators:

  • Colored Sokoban: A grid-world where box color acts as a proxy for a hidden reward-determining variable.
  • Button Maze: An agent must push a button to turn a goal green to receive a reward. However, the goal blinks randomly before the button is pressed, creating a confounding effect.
  • Continuous Button Maze: A high-dimensional version of the Button Maze with continuous state and action spaces.
Colored Sokoban Curriculum

They tested their "causal augmentation" on four state-of-the-art curriculum generators: ALP-GMM, PLR, Goal-GAN, and Currot.

Key Results and Insights

The experiments revealed stark contrasts between standard and causally-aligned methods:

  • Failure of Standard Methods: In all confounded test cases, standard curriculum generators failed to converge or performed significantly worse than training directly on the target task. In the Button Maze, roughly 87% to 90% of the tasks proposed by standard generators were found to be "misaligned," teaching the agent sub-optimal shortcuts based on visual proxies rather than true causes.
  • Causal Success: When augmented with the authors' causal filter, all four curriculum generators successfully converged to the optimal policy. By restricting the generator to only "editable" states, the framework guarantees that every proposed task is helpful.
  • Efficiency: The causally augmented curricula reached optimal performance much faster than direct training on the target task. This effectively overcomes the curse of dimensionality while maintaining safety and alignment.

Limitations and Future Directions

While powerful, the method currently requires a qualitative causal diagram of the task as input. In many real-world settings, this diagram might not be fully known. Additionally, the theoretical guarantees for curriculum ordering apply primarily to "soluble" tasks (where the history is summarized by the current state), which may not cover all complex, partially observable environments.

Future work could combine this approach with Causal Discovery algorithms—which learn causal diagrams directly from data—to remove the reliance on human-provided diagrams and further automate safe curriculum generation.

Summary updated

BibTeX
@inproceedings{li2024causally,
  author = {Mingxuan Li and Junzhe Zhang and Elias Bareinboim},
  title = {{Causally Aligned Curriculum Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=hp4yOjhwTs},
}
Figure