Skip to main content
QUICK REVIEW

[Paper Review] In-Context Planning with Latent Temporal Abstractions

Baiting Luo, Yunuo Zhang|arXiv (Cornell University)|Feb 21, 2026
Reinforcement Learning in RoboticsComputer Science0 citations
TL;DR

I-TAP unifies in-context adaptation with online planning by planning over a learned discrete latent temporal-abstraction space, enabling robust decision-making under partial observability and stochastic dynamics without test-time gradient updates.

ABSTRACT

Planning-based reinforcement learning for continuous control is bottlenecked by two practical issues: planning at primitive time scales leads to prohibitive branching and long horizons, while real environments are frequently partially observable and exhibit regime shifts that invalidate stationary, fully observed dynamics assumptions. We introduce I-TAP (In-Context Latent Temporal-Abstraction Planner), an offline RL framework that unifies in-context adaptation with online planning in a learned discrete temporal-abstraction space. From offline trajectories, I-TAP learns an observation-conditioned residual-quantization VAE that compresses each observation-macro-action segment into a coarse-to-fine stack of discrete residual tokens, and a temporal Transformer that autoregressively predicts these token stacks from a short recent history. The resulting sequence model acts simultaneously as a context-conditioned prior over abstract actions and a latent dynamics model. At test time, I-TAP performs Monte Carlo Tree Search directly in token space, using short histories for implicit adaptation without gradient update, and decodes selected token stacks into executable actions. Across deterministic MuJoCo, stochastic MuJoCo with per-episode latent dynamics regimes, and high-dimensional Adroit manipulation, including partially observable variants, I-TAP consistently matches or outperforms strong model-free and model-based offline baselines, demonstrating efficient and robust in-context planning under stochastic dynamics and partial observability.

Motivation & Objective

  • Address planning bottlenecks in offline RL for continuous control by introducing latent temporal abstractions to shorten horizons and reduce branching.
  • Enable in-context adaptation to unobserved latent dynamics through history-conditioned priors.
  • Integrate an online planner (MCTS) that operates in latent token space to overcome suboptimal offline data.
  • Learn discrete latent representations via a residual-quantized VAE conditioned on observations and macro-actions.
  • Demonstrate robustness across deterministic and stochastic MuJoCo environments and high-dimensional Adroit manipulation.

Proposed method

  • Discretize observation–macro-action sequences with an observation-conditioned residual-quantized VAE (RQ-VAE) producing depth-D token stacks.
  • Train a temporal Transformer to autoregressively predict token stacks conditioned on short history and current observation.
  • Learn a context-conditioned latent prior over latent code stacks via an autoregressive model that factorizes across time and depth.
  • Perform Monte Carlo Tree Search directly in latent token space using a context-guided prior to select macro-actions and then decode to primitive actions.
  • Mask high-variance returns (G_t) during training to stabilize learning, while keeping short-horizon returns (G_t^(L)) in context for regime identification.
  • Decode selected latent stacks into executable action sequences to interact with the environment without gradient updates at test time.

Experimental results

Research questions

  • RQ1Can planning in a learned discrete latent temporal-abstraction space improve planning efficiency and robustness under partial observability and latent dynamics?
  • RQ2Does context-conditioned latent modeling plus online planning outperform offline model-free and model-based baselines across stochastic and high-dimensional tasks?
  • RQ3How do macro-action length, context size, planning horizon, and residual depth affect performance and adaptation?
  • RQ4Is in-context adaptation via history enough to infer latent environment parameters and guide planning without test-time gradient updates?

Key findings

  • I-TAP matches or outperforms strong offline RL and planning baselines across deterministic and stochastic MuJoCo tasks and high-dimensional Adroit manipulation.
  • Planning over latent tokens with a context-conditioned prior reduces branching and horizon, enabling robust in-context adaptation.
  • Residual-quantized VAE with depth-D codes provides scalable discrete representations that preserve decoding fidelity for high-dimensional observations and macro-actions.
  • Context length and planning horizon have a systematic impact on performance; longer context improves adaptation, and deeper look-ahead mitigates partial observability effects.
  • I-TAP maintains top performance even under partial observability (POMDP) settings, outperforming baselines that lack integrated planning and in-context adaptation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.