TL;DR
ViterbiPlanNet introduces a Differentiable Viterbi Layer (DVL) that explicitly injects structured procedural knowledge into video planning models during training. By replacing non-differentiable operations with smooth relaxations, it enables end-to-end optimization that forces the neural network to learn structure-aware visual representations, outperforming massive LLM- and diffusion-based planners with up to three orders of magnitude fewer parameters.
What Problem Does This Paper Address?
Imagine trying to teach a robot to make a sandwich given only a picture of the ingredients (start state) and the final product (goal state). To succeed, the robot must infer a logical sequence of intermediate actions: place bottom bread $\rightarrow$ add turkey $\rightarrow$ add lettuce $\rightarrow$ place top bread.
This task is known as video procedural planning. Humans excel at this because we possess innate procedural knowledge—we know you can't add fillings before laying down the first slice of bread.
Current state-of-the-art AI planners (relying on Transformers, Large Language Models, or Diffusion Models) try to learn these complex rules implicitly from massive datasets. This makes them data-inefficient, computationally bloated, and prone to generating physically impossible sequences. Furthermore, the field suffers from fragmented evaluation protocols, making fair comparisons between these massive models incredibly difficult.
Methods
ViterbiPlanNet shifts the burden of learning procedural structures away from neural network weights and into an explicit, structured framework. It decomposes the problem into four main stages:
- Encoding Procedural Knowledge: The system pre-computes a Procedural Knowledge Graph (PKG) from training data statistics, where nodes represent actions and edge weights represent transition probabilities.
- Visual Encoding: A frozen visual backbone and a learnable projection layer encode the start ($v_s$) and goal ($v_g$) video frames.
- Emission Probabilities: A lightweight transformer encoder predicts step-wise emission probabilities—essentially estimating how compatible a given action is with the visual observations at any time step $t$.
- Structured Decoding via the DVL: Instead of using the standard Viterbi algorithm purely as a post-processing step at inference time, the authors introduce a Differentiable Viterbi Layer (DVL). By replacing standard
maxandargmaxoperations with smooth relaxations (log-sum-expandsoftmax), gradients from the planning loss ($\mathcal{L}_{plan}$) can flow all the way back through the decoding graph to train the emission network end-to-end.
Datasets
The model was rigorously evaluated across three standard benchmarks:
- CrossTask: 2,750 videos covering 18 tasks.
- COIN: A large-scale dataset with 11,827 videos across 180 tasks.
- NIV: A smaller dataset containing 150 videos for 5 tasks.
Crucially, the authors open-source a unified evaluation pipeline to address widespread inconsistencies in prior literature, standardizing data splits, metric implementations, and reporting 90% confidence intervals via bootstrapping. They also introduce a novel cross-horizon testing protocol to evaluate how well models generalize when tested on shorter action sequences than they were trained on.
Key Insights and Ideas
- Guidance, Not Just Correction: Most prior methods use Viterbi decoding as a post-hoc patch to fix broken predictions at inference time. ViterbiPlanNet proves that using a differentiable version during training fundamentally changes what the network learns. It frees the neural model from memorizing sequence rules, allowing it to focus purely on mapping visual states to clean action emissions.
- Decoupled Representations: As shown qualitatively in the paper, standard models bake transition probabilities directly into their visual predictions, causing confusion. ViterbiPlanNet's emissions are cleanly decoupled from the graph, leaving room for flexible, alternative decodings when visual states change.
- Extreme Sample Efficiency: Because the model doesn't need to implicitly memorize the entire procedural graph, it learns remarkably fast. ViterbiPlanNet trained on just 10% to 25% of the training data frequently outperforms competing architectures trained on 100% of the data.
Key Results
- State-of-the-Art Accuracy: On CrossTask ($T=3$), ViterbiPlanNet achieves a 38.45% Success Rate (SR), outperforming the previous best structured model, SCHEMA (37.24%), and massive LLM-based planners like PlanLLM (36.84%).
- Unparalleled Parameter Efficiency: ViterbiPlanNet achieves these top-tier results using only ~5.5M parameters. For comparison, it matches or beats diffusion models like MTID (1B+ parameters) and completely blows away giant foundation models like Gemini 2.5 Pro and Qwen2.5-32B in zero/few-shot prompting setups.
- Cross-Horizon Generalization: In the tough cross-horizon setup (training on length-6 sequences but testing on length-3), ViterbiPlanNet achieved a 27.77% SR, outperforming the next best learning-based model by an absolute margin of +11.65%.
Limitations and Future Work
While highly effective, ViterbiPlanNet relies on a pre-computed, fixed Procedural Knowledge Graph derived from training data statistics. If the training data contains noisy or incomplete transitions, the performance of the DVL could be bottlenecked by the quality of the graph.
The authors suggest that future work could explore dynamically updating or learning the graph structure jointly with the emission probabilities, or extending the framework to open-world settings where the action taxonomy is not predefined.
Summary updated