The Efficient Learning of Multiple Task Sequences

Satinder SinghNeurIPS 1991

TL;DR

This paper introduces Compositional Q-Learning (CQ-Learning), a modular framework that allows reinforcement learning (RL) agents to solve complex sequences of tasks by reusing elemental skills. By treating complex goals as temporal concatenations of simpler ones, the proposed architecture learns to decompose unknown sequences and transfer knowledge across tasks, drastically outperforming agents that attempt to learn every task from scratch.

The Scaling Problem in Reinforcement Learning

In traditional RL, agents typically focus on mastering a single task. However, as we move toward autonomous agents in the real world, these systems must handle a multitude of sequential goals.

The primary hurdle is the "scaling problem": as tasks become more complex and sequences get longer, the probability of an agent randomly stumbling upon a reward becomes vanishingly small. If an agent has to learn to "go to the kitchen, grab a cup, and fill it with water," learning this as one giant, monolithic task is incredibly inefficient. This paper asks: Can an agent learn individual sub-tasks (elemental tasks) and then "compose" them to solve complex sequences (composite tasks) without being explicitly told how the sequence is structured?

Compositional Q-Learning (CQ-L) Architecture

To address this, the author proposes a modular architecture called CQ-L (Compositional Q-Learning).

CQ-Learning Architecture

The architecture consists of three main components:

  1. Expert Q-Networks: Multiple sub-networks, each specializing in an "elemental" task (e.g., navigating to a specific point).
  2. Gating Network: A module that observes the current task command and decides which "expert" should be in control at any given moment.
  3. Bias Network: A crucial theoretical addition. The paper proves that the Q-value (expected reward) for a sub-task within a sequence is simply the Q-value of that task in isolation plus a constant offset ($K$). The bias network learns this offset.

The Secret Sauce: The core innovation is the mathematical insight that if tasks share the same environment dynamics and costs, the solution to a composite task can be constructed by computationally inexpensive modifications of the elemental solutions. Instead of relearning how to navigate to "Point A" every time it appears in a new sequence, the agent only needs to learn the "offset" required to transition to the next task in the chain.

Experimental Setup: Navigation Testbed

The paper utilizes a custom 2D Navigation Testbed featuring a simulated planar robot. The robot uses 16 sensor inputs (8 distance and 8 gray-scale sensors) to navigate its environment.

The agent is evaluated on three elemental tasks (Go to A, B, or C) and three composite tasks (e.g., "Visit A then C," or "Visit A, then B, then C"). Crucially, the agent is given a "task command" (a bit vector) but is not told the decomposition. It must figure out through trial and error that a specific command translates to a sequence of elemental tasks.

Key Insights

  • Temporal Decomposition: The architecture doesn't just learn to act; it learns to parse. It discovers the boundaries between sub-tasks automatically by switching between expert networks.
  • The $K$ Function: The realization that $Q_{composite} = Q_{elemental} + K$ reduces a massive high-dimensional learning problem to a much simpler search for a scalar constant.
  • Knowledge Sharing: Because the same expert networks are used across different composite tasks, every time the agent practices "Task A" as part of a sequence, it gets better at "Task A" for all future sequences, enabling powerful transfer learning.

Results: CQ-L vs. Baseline

The author compared CQ-L against a "one-for-one" architecture, where each task gets its own dedicated, non-sharing network.

Learning curves comparing CQ-L and a one-for-one baseline across tasks of increasing complexity
  1. Elemental Tasks (Left Graph): The baseline was slightly faster initially because it lacked the overhead of a gating mechanism.
  2. Simple Sequences (Middle Graph): For two-step tasks (e.g., A then C), CQ-L was significantly faster, benefiting from the transfer of its elemental skills.
  3. Complex Sequences (Right Graph): For the three-step task (A $\rightarrow$ B $\rightarrow$ C), the baseline failed completely. The probability of randomly completing three specific goals in a row is so low that the baseline never received enough informative payoff to start learning. CQ-L succeeded because it had already "pre-learned" the pieces of the puzzle.

Limitations and Future Work

  • Curriculum Dependency: The advantage of CQ-L depends heavily on the sequence of training. If the agent only sees complex tasks without first experiencing elemental ones, discovering the decomposition becomes much harder.
  • State Space Assumptions: The current theory assumes that the cost of actions is independent of the task, which might not hold in environments where completing one task physically alters the difficulty of the next (e.g., draining a battery).
  • Undiscounted Rewards: The specific proof for the $K$ offset assumes an undiscounted reward setting ($\gamma = 1$), which can lead to convergence issues in infinite-horizon problems. Expanding this to discounted RL remains a clear next step.

Summary updated

BibTeX
@inproceedings{singh1991efficient,
  author = {Satinder Singh},
  title = {{The Efficient Learning of Multiple Task Sequences}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1991},
}
Figure