TL;DR
THICK (Temporal Hierarchies from Invariant Context Kernels) is a novel framework that learns to segment the world into meaningful "events" rather than just fixed time steps. By forcing a part of its latent memory to change only sparsely, the model naturally discovers high-level temporal abstractions. This enables agents to plan across long horizons and reason about complex, multi-step tasks more effectively than standard "flat" world models.
The Problem with "Flat" World Models
Model-Based Reinforcement Learning (MBRL) agents, like the famous Dreamer series, learn a "world model"—a mental simulator of their environment. However, most state-of-the-art models are "flat," meaning they predict the world at a fixed, fine-grained frequency (e.g., every 1/20th of a second).
This creates two massive headaches for long-horizon tasks:
- Credit Assignment: If a reward happens 500 steps after a crucial action, it is mathematically difficult for a flat model to link the two.
- Planning Horizon: Searching for a sequence of 500 individual actions is computationally explosive.
Humans don't plan this way. We think in "options" or "subgoals" (e.g., "get the key," then "open the door") rather than individual muscle twitches. The challenge in AI is discovering these subgoals automatically without a human programmer hard-coding them.
Introducing THICK: A Two-Level Hierarchy
To address these limitations, the authors introduce THICK, which builds a two-level hierarchical world model.
1. The Low-Level: C-RSSM
The foundation is a modified Recurrent State Space Model (RSSM) called the Context-specific RSSM (C-RSSM). It splits the agent's internal memory into three parts:
- Stochastic state ($z_t$): The "now" (current observations).
- Deterministic state ($h_t$): The "recent past" (standard RNN memory).
- Context ($c_t$): A sparsely changing memory. Using a specialized gate and $L_0$ regularization, the model is penalized whenever $c_t$ changes. This forces the model to keep $c_t$ constant until something "important" happens that changes the fundamental dynamics of the scene.
2. The High-Level: Level 2 World Model
The high-level model ignores the "boring" steps where the context is stable. It specifically learns to predict:
- When the next context change will occur ($\Delta\tau$).
- What the state will look like just before that change.
- High-level "Actions" ($A_t$): Categorical variables representing different possible outcomes or subgoals (e.g., "go left to the water" vs. "go right to the door").
3. Downstream Applications
- THICK Dreamer: Uses high-level "jumpy" predictions to propagate reward information faster during training.
- THICK PlaNet: Uses Monte Carlo Tree Search (MCTS) on the high-level to pick subgoals, and then uses a low-level controller to reach them.
Evaluation Environments
The researchers evaluated THICK across three diverse suites requiring long-horizon reasoning:
- Multiworld: A 3D robotics simulation (Sawyer arm) involving pushing pucks, opening doors, and picking up balls.
- MiniHack: A grid-world based on NetHack. Tasks like KeyRoom and EscapeRoom require complex sequences (find key $\rightarrow$ unlock door $\rightarrow$ fight monster $\rightarrow$ exit).
- VisualPinPad: A challenging task where an agent must touch pads in a specific, hidden order to get a reward.
Key Insights and Results
- Sparsity as an Inductive Bias: By simply penalizing the model for changing its "context" state, the model naturally aligns those changes with meaningful environmental events, like picking up an item or crossing a boundary.
- Blurry but Useful: High-level predictions are often "blurry" (e.g., predicting the agent is near an exit without knowing the exact wall layout). This represents a true abstraction that ignores irrelevant low-level details.
- Long-Horizon Success: In KeyCorridor, as the corridor length increased, flat Dreamer’s performance plummeted, while THICK Dreamer maintained a high success rate.
- Sample Efficiency: In the hardest VisualPinPad task, THICK reached peak performance significantly faster than flat models and hierarchical baselines.
- Zero-Shot Planning: THICK PlaNet solved robotics tasks using offline data much more effectively than flat PlaNet, which often got "lost" in long required action sequences.
Limitations and Future Work
- Hyperparameter Sensitivity: The model relies on a sparsity weight ($\beta^{sparse}$) that controls how "thick" the temporal abstraction is. If set too high, the model never updates its context; too low, and it degrades into a flat model.
- The "Discovery" Catch-22: Like most MBRL methods, if the low-level agent never accidentally stumbles upon a reward or a new area during initial exploration, the high-level has nothing to learn from.
- Future Directions: The authors suggest scaling this to $N$-level hierarchies and integrating "active" exploration where the agent specifically tries to cause context changes to learn more about the world.
Summary updated