Papers
Topics
Authors
Recent
Search
2000 character limit reached

Hierarchical IQL-TD-MPC

Updated 18 March 2026
  • Hierarchical IQL-TD-MPC is a model-based RL algorithm that integrates implicit Q-learning with TD-MPC to address long-horizon, sparse-reward challenges.
  • It employs a two-level hierarchy where a Manager plans abstract actions and generates intent embeddings that guide an off-the-shelf Worker agent.
  • Empirical results on D4RL benchmarks demonstrate significant performance improvements over traditional flat offline RL methods.

Hierarchical IQL-TD-MPC is a model-based hierarchical reinforcement learning (RL) algorithm that extends Temporal Difference Learning for Model Predictive Control (TD-MPC) by integrating Implicit Q-Learning (IQL) in a temporally abstract manner. The approach addresses the challenges of long-horizon, sparse-reward tasks, particularly in offline RL, by employing a two-level hierarchy: a “Manager” based on IQL-TD-MPC, which plans using temporally extended abstract actions and intent embeddings, and a “Worker,” which can be any off-the-shelf offline RL agent leveraging the guidance provided by the Manager’s intent embeddings. This structure allows for efficient long-term planning and demonstrates significant empirical improvements on difficult navigation benchmarks (Chitnis et al., 2023).

1. Hierarchical Architecture and Role Separation

In hierarchical IQL-TD-MPC, the system is partitioned into a Manager and a Worker:

  • Manager (IQL-TD-MPC):
    • Operates at a temporal abstraction of kk environment steps per Manager step.
    • Learns a latent dynamics model, reward predictor, critic QMQ^M, value VMV^M, and a discrete policy πM\pi^M using an offline model-based RL framework combining TD-MPC and IQL losses.
    • At evaluation, executes Model Predictive Control (MPC) in latent space for a planning horizon of HH abstract steps (kHk \cdot H environment steps), generating a sequence of abstract actions atM,,at+kHMa^M_{t},\ldots,a^M_{t+kH}.
    • From the first abstract action atMa^M_t, derives an intent embedding gtg_t approximating a subgoal kk steps ahead.
  • Worker (Off-the-Shelf Offline RL Agent):
    • Operates at the environment’s native time scale.
    • Receives input state augmented with the intent embedding: QMQ^M0.
    • Utilizes standard optimization routines and loss functions (e.g., AWAC, TD3-BC, DT, CQL) without algorithmic modifications, aside from input dimensionality.

The intent embedding QMQ^M1 is defined as QMQ^M2, where QMQ^M3 is the Manager’s latent state encoding, and QMQ^M4 is the learned latent forward model. This formulation allows the Worker to resolve long-term ambiguities in offline data by leveraging the Manager’s temporal abstractions and subgoal representations.

2. Mathematical Formulation and Optimization

The algorithm integrates IQL and TD-MPC objectives in both state and latent spaces, structured as follows:

2.1 IQL Objective in State Space

  • Asymmetric Regression for Value Function (Expectile, QMQ^M5):

QMQ^M6

  • TD Loss for Critic:

QMQ^M7

QMQ^M8

2.2 TD-MPC Losses in Latent Space

  • Latent Consistency (Model) Loss:

QMQ^M9

  • Reward Prediction Loss:

VMV^M0

  • Latent-space Critic TD Loss:

VMV^M1

  • Latent-space Policy Improvement Loss:

VMV^M2

2.3 Integrated Optimization

The full IQL-TD-MPC loss is expressed as:

VMV^M3

with weighting coefficients: VMV^M4, VMV^M5, VMV^M6, and typical values VMV^M7, VMV^M8 set via AWR weight VMV^M9. The policy output can be either Gaussian (continuous) or categorical (discrete), reflecting the action space of the underlying task (Chitnis et al., 2023).

3. Manager Pre-training on Temporally Abstracted Data

3.1 Temporal Abstraction and Abstract Transitions

The Manager is pretrained to model temporally abstract transitions:

  • Coarsening parameter πM\pi^M0:
    • One Manager step corresponds to πM\pi^M1 environment steps.
  • For a trajectory πM\pi^M2, create transitions:

πM\pi^M3

  • Abstract action (inverse model):

πM\pi^M4

3.2 Model Architecture

  • Encoder πM\pi^M5: multilayer perceptron mapping πM\pi^M6 to πM\pi^M7 (πM\pi^M8).
  • Inverse model πM\pi^M9: maps HH0 to logits of HH1 discrete categorical variables, each with HH2 classes (HH3, HH4).
  • Forward model HH5, reward predictor HH6, critic HH7, value HH8, and policy HH9, each parameterized as MLPs with 2–3 hidden layers.

3.3 Pre-training Regimen

  • Losses are identical to standard IQL-TD-MPC but applied to abstract transitions.
  • Optimization performed end-to-end via Adam (kHk \cdot H0, batch size 256, 300K steps).
  • After pretraining, all Manager parameters are frozen (Chitnis et al., 2023).

4. Worker Integration with Intent Embeddings

At each environment step kHk \cdot H1:

  • Compute kHk \cdot H2.
  • Compute kHk \cdot H3 (kHk \cdot H4 from kHk \cdot H5 during rollout).
  • Intent embedding: kHk \cdot H6.
  • Worker policy input: kHk \cdot H7.

Worker agents retain their canonical loss functions and optimizer configurations; only the observation input shape is modified. No additional regularization or auxiliary objectives are introduced for the Worker. Worker algorithms used include AWAC, TD3-BC, DT, and CQL, with hyperparameters aligned to CORL defaults except for the augmented state dimension (Chitnis et al., 2023).

5. Empirical Evaluation and Quantitative Results

5.1 Experimental Protocol

  • Environments:

D4RL AntMaze variants (umaze, medium, large, ultra, play/diverse splits), maze2d-medium-v1, halfcheetah-medium-v2.

  • Data:

Offline datasets with 200K–1M transitions, sparse reward structure.

  • Manager Hyperparameters:

kHk \cdot H8, kHk \cdot H9, atM,,at+kHMa^M_{t},\ldots,a^M_{t+kH}0, atM,,at+kHMa^M_{t},\ldots,a^M_{t+kH}1, atM,,at+kHMa^M_{t},\ldots,a^M_{t+kH}2, atM,,at+kHMa^M_{t},\ldots,a^M_{t+kH}3, atM,,at+kHMa^M_{t},\ldots,a^M_{t+kH}4, 300K steps.

  • Worker Hyperparameters:

As per CORL defaults. Only change is state dimension augmented by atM,,at+kHMa^M_{t},\ldots,a^M_{t+kH}5.

5.2 Results Table

Task AWAC BC DT IQL TD3-BC CQL
antmaze-medium-play 0 → 36 0 → 52 0 → 43 70 → 64 0.2 → 60 0.8 → 33
antmaze-medium-diverse 0.8 → 16 0.2 → 20 0.2 → 33 63 → 30 0.4 → 21 0.2 → 14
antmaze-large-play 0 → 67 0 → 50 0 → 53 54 → 70 0 → 46 0 → 19
antmaze-large-diverse 0 → 40 0 → 38 0 → 31 31 → 46 0 → 29 0 → 16
maze2d-medium-v1 43 → 67 3 → 70 13 → 71 32 → 78 101 → 47 104 → 16
halfcheetah-medium-v2 49 → 45 42 → 45 42 → 47 47 → 43 47 → 44 46 → 44

Green “→” denotes statistically significant improvement (atM,,at+kHMa^M_{t},\ldots,a^M_{t+kH}6). In AntMaze tasks, baseline offline RL scores are near zero; augmenting with Manager-derived intent provides normalized scores in the 30–70 range (Chitnis et al., 2023).

6. Ablations and Analytical Insights

6.1 Random-Vector Ablation

Replacing atM,,at+kHMa^M_{t},\ldots,a^M_{t+kH}7 with i.i.d. random vectors removes performance gains, indicating Workers ignore non-informative intent and that atM,,at+kHMa^M_{t},\ldots,a^M_{t+kH}8 encodes relevant goal structure.

6.2 Architectural and Hyperparameter Sensitivity

  • Embedding dimension: best performance at atM,,at+kHMa^M_{t},\ldots,a^M_{t+kH}9; lower or higher dimensions yield suboptimal results.
  • Abstract step size atMa^M_t0: empirically atMa^M_t1 balances abstraction and fidelity.
  • Manager pretraining: performance plateaus beyond 200–300K steps.

6.3 Limitations

  • In fine-grained locomotion tasks (e.g., halfcheetah-medium-v2), appending atMa^M_t2 may degrade performance, plausibly due to the lack of natural hierarchical structure or misleading intent information.
  • Manager’s MPC planning at inference is computationally non-trivial.
  • Fixed atMa^M_t3 may limit adaptability; variable abstraction lengths represent a direction for future research (Chitnis et al., 2023).

7. Significance and Outlook

Hierarchical IQL-TD-MPC demonstrates that augmenting standard offline RL agents with structured, temporally abstract information from a pretrained Manager can robustly resolve long-horizon planning in complex sparse-reward domains. This paradigm achieves significant gains in navigation and manipulation benchmarks where flat agents underperform, substantiating the efficacy of hierarchical abstraction and model-based planning in the offline RL regime. Future research may address limitations relating to task suitability, computational efficiency, and the flexibility of abstraction mechanisms (Chitnis et al., 2023).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Hierarchical IQL-TD-MPC.