Structure Detection for Contextual Reinforcement Learning
Tianyue Zhou, Jung-Hoon Cho, Cathy Wu
TL;DR
The paper tackles CRL in CMDPs by introducing Structure Detection MBTL (SD-MBTL), a framework that infers the underlying generalization structure from observed transfer performance and selects an appropriate MBTL algorithm accordingly. Its instantiation, M/GP-MBTL, switches between Mountain-structured clustering (M-MBTL) and Gaussian Process MBTL (GP-MBTL) to balance sample efficiency and robustness. Across synthetic and real CMDP benchmarks, including CartPole, BipedalWalker, IntersectionZoo, and CyclesGym, M/GP-MBTL achieves the strongest aggregated performance, outperforming prior MBTL methods by up to 12.49% and closely approaching the Myopic Oracle. The work highlights online structure detection as a promising direction for scalable, robust source-task selection in complex CRL environments, while noting limitations and avenues for extending to richer CMDP structures and higher-dimensional contexts.
Abstract
Contextual Reinforcement Learning (CRL) tackles the problem of solving a set of related Contextual Markov Decision Processes (CMDPs) that vary across different context variables. Traditional approaches--independent training and multi-task learning--struggle with either excessive computational costs or negative transfer. A recently proposed multi-policy approach, Model-Based Transfer Learning (MBTL), has demonstrated effectiveness by strategically selecting a few tasks to train and zero-shot transfer. However, CMDPs encompass a wide range of problems, exhibiting structural properties that vary from problem to problem. As such, different task selection strategies are suitable for different CMDPs. In this work, we introduce Structure Detection MBTL (SD-MBTL), a generic framework that dynamically identifies the underlying generalization structure of CMDP and selects an appropriate MBTL algorithm. For instance, we observe Mountain structure in which generalization performance degrades from the training performance of the target task as the context difference increases. We thus propose M/GP-MBTL, which detects the structure and adaptively switches between a Gaussian Process-based approach and a clustering-based approach. Extensive experiments on synthetic data and CRL benchmarks--covering continuous control, traffic control, and agricultural management--show that M/GP-MBTL surpasses the strongest prior method by 12.49% on the aggregated metric. These results highlight the promise of online structure detection for guiding source task selection in complex CRL environments.
