Skip to content

Video understanding, tracking, generation, and world models · World models and dynamic 3D · VID063 · Model

Genie

Learns an interactive generative environment from videos without externally supplied action labels. A latent-action model discovers controls between observations, and a dynamics model uses those controls to generate…

Explained here Component demo, not a trained model CodeSplash's run and the reference's record

In CodeSplash

Documented in the Academy only. There's no Set up button.

Availability
Explained here
Code example
Component demo, not a trained model
Who ran it
CodeSplash's run and the reference's record
CodeSplash's run
The reference's example ran in Python and R here, and they agree.
The reference's record
Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.

Purpose

Learns an interactive generative environment from videos without externally supplied action labels. A latent-action model discovers controls between observations, and a dynamics model uses those controls to generate subsequent frames.

Question / objective

Predict, control or reconstruct dynamic visual scenes under an explicit observation/action/camera model. This is a learning or inference objective, not a test of a statistical null hypothesis.

Method type and supervision

model · World models and dynamic 3D. Mixed: passive video learning, interaction-conditioned learning, or scene fitting from calibrated observations.

Architecture / computational structure

Video tokenizer, discrete latent-action inference module and action-conditioned dynamics generator.

Assumptions

Inputs must satisfy the temporal, modality and annotation protocol described below. Latent actions need not correspond to unique real-world commands. Camera motion, confounding and missing interaction coverage can produce controls that are inconsistent outside the training domain.

Formula / computational definition

at=qϕ(xt,xt+1)a_t=q_\phi(x_t,x_{t+1}), pθ(xt+1∣x≤t,at)p_\theta(x_{t+1}\mid x_{\le t},a_t) schematically express latent-action inference and conditioned dynamics. Discrete bottlenecks encourage a reusable action vocabulary; the paper defines the tokenizer and training details.

Parameters and notation

Learned/estimated quantities: Learned quantities depend on the system: dynamics/representation weights or scene-specific geometry, motion, appearance and opacity; planning actions are optimized inputs. Symbols specific to the objective are defined with the equation. Hyperparameters and design choices: Latent-action vocabulary, video tokenizer, context length, dynamics capacity and source-video domain affect controllability.

Fitting, fine-tuning, and adaptation

Adapt dynamics and action inference together only when action semantics remain interpretable. Domain transfer can change latent-action meaning; assess controllability, not merely reconstruction. Use a separate adaptation validation split, monitor the target metric and retention of previously useful behavior, and save the exact preprocessing and training configuration.

How to use and calibrate

Fix the input protocol and target before fitting; choose design settings on held-out source videos, then freeze the evaluation procedure. Evaluate action consistency, controllability, rollout coherence and generalization, distinguishing qualitative examples from systematic control benchmarks.

Example application

Create an interactive toy environment from passive video examples.

Interpretation / pitfalls

Watch out

An optimized training objective or a favorable example does not establish generalization. Evaluate action consistency, controllability, rollout coherence and generalization, distinguishing qualitative examples from systematic control benchmarks. The example below isolates one mechanism and cannot substantiate a full-model benchmark claim.

Python and R code examples

Component: Map observed changes to a toy latent-action vocabulary. Dependencies: NumPy in Python; base R in R; run the shared setup above. Python component: executed successfully. R component: unexecuted. No complete model training or pretrained inference was executed.

Full implementation route — Python: Use the original research specification for a custom reproduction with separate tokenizer, latent-action and dynamics modules. R: Prototype discrete latent transitions in R; use Python for full video-token and dynamics training, without assuming original model weights are public.

Python and R

The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.

Python

Component demo, not a trained model — Map observed changes to a toy latent-action vocabulary.

Shared setup for this chapter
import numpy as np

def softmax(x):
    z = np.asarray(x, dtype=float)
    e = np.exp(z - z.max())
    return e / e.sum()
observed_change = np.array([-.8,.1,.9])
action_prototypes = np.array([-1.,0.,1.])
latent_action = np.abs(observed_change[:,None]-action_prototypes[None,:]).argmin(axis=1)
print("latent action IDs",latent_action)
print("toy predicted next state",2.+action_prototypes[latent_action])
# These clusters are illustrative and do not identify causal real-world actions.
R

Component demo, not a trained model — Map observed changes to a toy latent-action vocabulary.

Shared setup for this chapter
softmax <- function(x) {
  e <- exp(x - max(x))
  e / sum(e)
}
changes <- c(-.8,.1,.9); prototypes <- c(-1,0,1)
latent_action <- apply(abs(outer(changes,prototypes,"-")),1,which.min)
print(latent_action-1L); print(2+prototypes[latent_action])
# Cluster IDs do not establish causal control semantics.

Sources

From the CodeSplash reference, entry VID063.