Programmatic Video Prediction Using Large Language Models
Hao Tang, Kevin Ellis, Suhas Lohit, Michael J. Jones, Moitreya Chatterjee
TL;DR
ProgGen tackles video frame prediction by learning a world model through neuro-symbolic states and a triad of LLM/VLM-synthesized programs for perception, dynamics, and rendering. It combines a perception program $\mathcal{P}$, a dynamics program $\mathcal{D}$ with global parameters $\theta$, and a rendering program $\mathcal{R}$ to encode frames into interpretable states $s_i$, forecast future states, and render them back into RGB frames, guided by Affordance Rules. Training follows a two-stage approach, first discovering the programs and then optimizing continuous parameters, with a surrogate state-level loss to improve efficiency. Empirically, ProgGen achieves strong, data-efficient performance on PhyWorld and Cart Pole, outperforming diffusion baselines in out-of-distribution settings and enabling counterfactual editing and interpretable video generation, underscoring its potential for sample-efficient, controllable video synthesis in robotics and perception tasks.
Abstract
The task of estimating the world model describing the dynamics of a real world process assumes immense importance for anticipating and preparing for future outcomes. For applications such as video surveillance, robotics applications, autonomous driving, etc. this objective entails synthesizing plausible visual futures, given a few frames of a video to set the visual context. Towards this end, we propose ProgGen, which undertakes the task of video frame prediction by representing the dynamics of the video using a set of neuro-symbolic, human-interpretable set of states (one per frame) by leveraging the inductive biases of Large (Vision) Language Models (LLM/VLM). In particular, ProgGen utilizes LLM/VLM to synthesize programs: (i) to estimate the states of the video, given the visual context (i.e. the frames); (ii) to predict the states corresponding to future time steps by estimating the transition dynamics; (iii) to render the predicted states as visual RGB-frames. Empirical evaluations reveal that our proposed method outperforms competing techniques at the task of video frame prediction in two challenging environments: (i) PhyWorld (ii) Cart Pole. Additionally, ProgGen permits counter-factual reasoning and interpretable video generation attesting to its effectiveness and generalizability for video generation tasks.
