Compositional Reinforcement Learning

Definition

Compositional reinforcement learning builds a larger RL system from smaller learned components, subtasks, options, reward machines, shields, or subsystem policies whose interfaces make composition explicit.

Why It Matters

Large safety-critical tasks are often too opaque for monolithic end-to-end RL to verify. Compositional structure can expose entry conditions, exit conditions, task stages, local guarantees, or reusable skills so that training, testing, and verification can focus on smaller pieces while still supporting system-level claims.

Formalism / Key Objects

  • Neary et al.’s subsystem schema is:

where I_c is an entry set, F_c is an exit set, T_c is a time horizon, and pi_c is the learned policy.

  • A subtask success condition can be written:
  • A high-level meta-policy chooses which subsystem to execute next; the chosen subsystem runs until it reaches an exit condition or exhausts its time horizon.
  • In ICRL pMDP Specification Decomposition, a high-level pMDP uses one parameter p_c per subsystem to represent a lower bound on successful subtask completion.
  • Reward-machine approaches compose through finite task automata; shield-composition approaches compose through local safety obligations; pMDP approaches compose through probabilistic subsystem-success interfaces.

Connections

Common Confusions

  • Compositional RL is not automatically safe; the guarantee depends on correct interfaces and trustworthy local performance bounds.
  • Hierarchical RL can be compositional for sample efficiency without providing formal verification. Neary et al.’s contribution is specifically the verification-oriented high-level model.
  • A high-level model can predict system success only to the extent that its subsystem parameters lower-bound real subsystem behavior.

Key Sources