Learning Partially Observable Models Using Temporally Abstract Decision Trees

Erik TalvitieNeurIPS 2012

This paper introduces a novel approach to reinforcement learning in complex environments where the agent cannot see everything at once (partial observability). By extending traditional decision trees with "timestamps," the author creates a model that can "remember" key events from the distant past to make accurate predictions about the future.

The Challenge of Partial Observability

In many real-world and simulated environments, an agent's current observation doesn't tell the whole story. For example, if you are looking for your keys, your current view of the kitchen doesn't show them, but you might remember putting them on the counter ten minutes ago.

Standard approaches to this problem often fall into two traps:

  1. Finite Suffix Models (like U-Trees): These only look at the last $N$ steps. If the key event happened $N+1$ steps ago, the model forgets it.
  2. State-Machine Models: These try to track "internal state" over time. While powerful, they are notoriously difficult to train in high-dimensional spaces (like raw video frames) because they treat observations as atomic units rather than complex features.

The author seeks a middle ground: a model that can handle high-dimensional data (like pixels) while jumping back to specific, relevant moments in history regardless of how long ago they occurred.

Introducing Timeline Trees

The core innovation of this work is the Timeline Tree. It builds on the classic decision tree but introduces two specific mechanisms to handle temporal abstraction:

Example of a Timeline Tree structure utilizing dynamic timestamps
  • Timestamps: While a standard tree might split on "What did I see 5 steps ago?", a timeline tree can split on "What did I see relative to the last time I saw the key?"
  • Timestamp Features ($\xi^f$): This is the crucial mechanism. The tree can ask: "Has feature $f$ occurred since the last recorded timestamp?" If the answer is yes, the model creates a new timestamp at the exact moment that feature most recently occurred.

By nesting these splits, the tree can build a chain of "key events." For example: "Find the last time I saw the key ($m_1$). Now, look at what I did immediately after $m_1$." This allows the model to ignore thousands of irrelevant intermediate steps and focus only on the "history that matters."

The trees are trained using a variation of the ID3/C4.5 algorithm, greedily selecting splits that provide the highest information gain, with a penalty applied to complex "compound" features to prevent overfitting.

Evaluation Domains

The model was evaluated on three distinct simulated domains:

  1. Shooting Gallery: A high-dimensional task where the agent must predict a target's movement based on its last known trajectory.
  2. Three Card Monte: A classic "shell game" requiring the agent to track an invisible "ace" through a series of swaps.
  3. Snake: A complex version of the arcade game where the next food pellet is invisible until the agent is adjacent to it, requiring the agent to remember the pellet's location from a brief earlier glimpse.
The Snake domain, requiring the agent to remember unseen food locations

Key Insights and Results

  • Temporal Abstraction: The paper argues that we don't need to remember when something happened (e.g., "142 steps ago"), but rather that it happened and what the context was. This effectively "abstracts away" time.
  • Feature Selection over History: Because it uses a decision tree, the model can look at raw pixels. It doesn't need a human to define "the key"; it can learn that "pixel (10,15) turning blue" is the key event that triggers a new timestamp.
  • Outperforming Baselines: In the Shooting Gallery, timeline trees learned more accurate models with significantly less data than "Prediction Profile Models" (the previous state-of-the-art), largely because they could learn directly from raw pixels rather than requiring hand-crafted abstractions.
  • Success in Snake: In the Snake domain, the timeline tree successfully learned to track the invisible food and the movement of the snake's tail. Interestingly, a planning agent using the timeline tree actually performed better than one using the "true" model of the game, because the tree's slight inaccuracies accidentally encouraged the agent to avoid risky wall-hugging behaviors.
  • A Notable Failure: The model struggled with Three Card Monte. Because that game requires tracking a state through a long, recursive sequence of swaps, the non-recurrent nature of the timeline tree (it doesn't have "loops") made it less efficient than finite state machine approaches.

Limitations and Future Work

The authors acknowledge that timeline trees are not a "silver bullet" for all Partially Observable Markov Decision Processes (POMDPs). Their main limitation is a lack of recurrency; they cannot easily represent cycles or count events (e.g., "counting how many times I've seen a red car").

Future work suggests extending these ideas to regression trees for continuous environments and exploring more sophisticated induction methods to improve sample efficiency and reduce the risk of overfitting in even more complex, real-world scenarios.

Summary updated

BibTeX
@inproceedings{talvitie2012learning,
  author = {Erik Talvitie},
  title = {{Learning Partially Observable Models Using Temporally Abstract Decision Trees}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2012},
}
Figure