Continual Offline Reinforcement Learning (CORL) promises a future where autonomous agents—like industrial robots—can sequentially learn a repertoire of skills from static, pre-collected datasets. This approach avoids the safety risks and costs associated with live trial-and-error. However, building these long-term autonomous agents introduces significant challenges in managing environment dynamics, reward functions, and behavior policies across different tasks.
To address these challenges, researchers have introduced Hierarchical Task-Aware Composition (HTAC), a novel framework that solves the "stability-plasticity" dilemma by organizing learned knowledge into a hierarchy. By separating coarse-grained domain knowledge from fine-grained task details, HTAC allows agents to learn new skills by effectively reusing old ones, achieving state-of-the-art performance on robotic manipulation benchmarks.
The Stability-Plasticity Dilemma
The core challenge in CORL is balancing two competing needs:
- Plasticity: The agent's ability to quickly adapt to and learn a new task.
- Stability: The agent's ability to retain knowledge of previously learned tasks, avoiding "catastrophic forgetting."
Existing CORL methods typically employ "flat" knowledge-sharing mechanisms. They either treat every task as an entirely separate entity or attempt to force all knowledge into a single set of shared parameters. This flat structure makes it difficult for a model to recognize shared underlying mechanics—for instance, that "pushing a puck" and "pushing a wall" share a common "pushing" domain but have distinct task-specific requirements. As a result, these models often suffer from catastrophic forgetting or fail to transfer useful knowledge to accelerate new learning.
Methodology: The HTAC Framework
Built upon the Decision Transformer (DT) architecture, HTAC replaces flat structures with a four-part hierarchical system designed to balance plasticity and stability through dual-level task encoding and soft composition mechanisms:
- Hierarchical Semantic Task Representation: HTAC utilizes a frozen S-BERT model to convert textual task descriptions (e.g., "Hammer a screw") into semantic embeddings. Learnable "domain prototypes" then categorize these tasks into broad domains (like "pushing" or "closing") alongside specific task identities.
- Dual-level Expert Network: Instead of relying on a single monolithic network, HTAC dynamically creates Domain Experts (shared across similar tasks) and Task Experts (unique to specific tasks). A crucial feature is its "warmup evaluation": if the agent can already solve a new task using existing experts, it bypasses creating a new one, significantly improving parameter efficiency.
- Adaptive Knowledge Composition: When confronted with a task, the model employs an attention mechanism to "listen" to relevant historical experts. Crucially, it composes their outputs at the hidden layer level rather than just blending final policy outputs. This allows for fine-grained knowledge reuse, remixing internal representations to adapt to similar but non-identical tasks.
- Task Adapters: To prevent the routing logic from degrading as new tasks are introduced, HTAC utilizes per-task adapters. These adapters preserve historical routing weights, protecting the pathways to old knowledge and ensuring that learning a new task does not overwrite the retrieval path for an older one.
Experimental Setup and Key Results
The researchers evaluated HTAC on the Offline Continual World (OCW) benchmark, utilizing two primary sequences:
- OCW-10: A sequence of 10 diverse robotic manipulation tasks (e.g., hammering, closing a faucet, unplugging a peg).
- OCW-20: The same 10 tasks repeated twice, specifically designed to test "revisitation"—the model's ability to recognize a previously seen task and immediately perform at a high level.
HTAC significantly outperformed traditional regularization, rehearsal, and structure-based baselines:
- Near-Optimal Performance: On OCW-10, HTAC achieved an average success rate of 0.72, closely approaching the "Multi-Task Learning" upper bound of 0.75 (where a model has simultaneous access to all data).
- Massive Forward Transfer: On the extended OCW-20 sequence, HTAC achieved a Forward Transfer (FWT) score of 0.38. In contrast, the best structure-based baseline managed only 0.03. This demonstrates HTAC's superior ability to leverage historical knowledge to jumpstart new tasks.
- Negative Forgetting: HTAC exhibited essentially zero—and in some cases, negative—forgetting. Negative forgetting indicates that the model actually improved at earlier tasks (e.g., Task 1) after learning subsequent tasks (e.g., Task 5), as the shared domain knowledge became more robust over time.
Limitations and Future Directions
While HTAC represents a major step forward for CORL, the authors identify a few areas for future improvement. Currently, the system relies heavily on high-quality textual descriptions for task encoding. Future iterations could benefit from multi-modal representations that directly incorporate trajectory data. Additionally, while robotic manipulation is a standard and rigorous testbed, validating HTAC on broader, more heterogeneous CORL benchmarks—such as autonomous driving or diverse gaming environments—remains an important goal for future research.
Summary updated