Implicit Planning through Trajectory Stitching

This direction is merged into another direction: trajectory stitching. Its last version stays readable and citable here.

Version 1 of 19 papers15 conceptsfrozen 2026-10-04

Reinforcement learning (RL) agents often struggle with long-horizon tasks where the path from a starting state to a distant goal is never observed in a single, continuous sequence. Traditional RL relies on experiencing a full success to learn, but in complex environments—like a robot navigating a warehouse or manipulating objects—data is often fragmented.

A growing body of research suggests that agents do not need to see a complete solution to learn one. Instead, they can perform implicit planning by "stitching" together independent, short-horizon trajectories. By propagating value information backward through historical experiences, models can synthesize a global strategy from local fragments.

The Stitching Problem

Imagine an offline dataset containing two separate robot demonstrations: one where the robot opens a drawer, and another where it picks up a tool from an already open drawer. If the robot is never shown the full sequence of "open drawer and then pick up tool," a standard imitation learning approach will fail to connect the two.

To solve this, Actionable Models by Yevgen Chebotar, Karol Hausman, and colleagues introduces the concept of goal chaining. Rather than labeling a transition with a simple binary success (did I reach the final goal?), the framework labels transitions with the estimated value of reaching distant states. By treating every state reached in the dataset as a potential goal, the model learns a value function that acts as a bridge. If state $B$ is reachable from $A$, and $C$ is reachable from $B$, the value of $C$ flows back to $A$, even if the sequence $A \to B \to C$ was never executed as one piece.

Value Propagation as Implicit Planning

This mechanism transforms episodic memory from a static database into a tool for active reasoning. In Generalizable Episodic Memory for Deep Reinforcement Learning, Hao Hu, Zhizhou Ren, and their co-authors demonstrate how to propagate reward values backward through stored trajectories.

This "twin back-propagation" mechanism allows the agent to evaluate counterfactuals. By comparing the actual returns stored in memory with the network’s current estimates of future potential, the agent can identify critical early actions that lead to high-value outcomes later. This is effectively planning without a transition model; the agent "plans" by traversing its own history and identifying the optimal intersections between different experiences.

Why It Works: Building the Value Scaffold

The intuition behind these methods lies in the density of the signal.

  1. Beyond Binary Rewards: In sparse-reward settings, an agent learns nothing until it hits the goal. By using distant states as goals (as seen in Actionable Models), every transition becomes informative.
  2. Recursive Refinement: As the agent propagates values backward, it builds a "scaffold." A state that was once considered neutral becomes valuable because it is a known gateway to a successful outcome observed in a different trajectory.
  3. Generalization to New Goals: Because the planning is implicit in the value function or the memory retrieval process, the agent can navigate to new targets by simply querying the "distance" or "value" between its current state and the target, effectively finding the shortest path through its stitched-together experience.

By focusing on how values flow across trajectory boundaries, these researchers have moved RL away from simple trial-and-error and toward a more sophisticated synthesis of past experiences, enabling robots to solve tasks far more complex than any single demonstration they have seen.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_implicit_planning_through_trajectory_sti_85b6fc54,
  title = {Implicit Planning through Trajectory Stitching},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/implicit-planning-through-trajectory-stitching/rdr_85b6fc54b6044710b2c5e97e057c1ed1},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_implicit_planning_through_trajectory_sti_85b6fc54_v1,
  title = {Implicit Planning through Trajectory Stitching},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/implicit-planning-through-trajectory-stitching/rdr_85b6fc54b6044710b2c5e97e057c1ed1/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}