# Inside xAI: Building Grok Imagine in 3 Months, Videogen vs World Models, and Video Agents— Ethan He
<!--
ref: @content/youtube/latent-space/2026-06-01-inside-xai-grok-imagine-video-world-models
version: 3
updated_at: 2026-10-31T19:16:30.423Z
-->
Ethan He (Latent Space, 2026-06-01): He's headline claim is that most recent gains in generative video are not coming from the video model at all — they come from the language model wrapped around it.
*Synthesized from Ethan He on Latent Space, 2026-06-01.*
Ethan He built Grok Imagine's video and world-model work at xAI (joining May 2025) after leading NVIDIA's Cosmos video foundation model and Megatron MoE, and earlier working at FAIR under Yann LeCun.
## Core Thesis
He's headline claim is that most recent gains in generative video are not coming from the video model at all — they come from the language model wrapped around it. Diffusion technology is mature enough that the marginal improvement now flows from prompt rewriting, thinking, and tool use, which is why he expects "video agents" (an LLM orchestrating generation models alongside FFmpeg, editors and other deterministic tools) to be the next inflection. He defines a world model narrowly and usefully: real-time, interactive, long-horizon video — three separable engineering problems, of which long horizon is the one he attacked first at xAI via video extension with full historical context.
## Key Insights
- The zero-to-shipped story: He joined xAI in May 2025 when there was no infra, no data and no model for video, and a handful of engineers shipped Grok Imagine 0.9 in three months. Cosmos, his prior build, took about a year — the second time around he knew the shape of the problem. What made three months possible: strong existing data and model infrastructure, very few meetings (roughly one sync a day), and a small team with low communication bandwidth pulling toward one goal.
- The metric he optimizes is iterations per day — acquiring new data, designing an algorithm, training a smaller-scale model, and evaluating whether it beat the previous iteration. More compute buys iteration speed, which buys error tolerance and bug-catching headroom. And the boring truth: most quality gains come from finding small bugs in the data pipeline and training pipeline, not from new algorithms.
- Better coding models may re-bottleneck compute. Previously, writing a new synthetic data generator or algorithm took weeks, during which you had no experiments to run; now the implementation lands in hours, so you need enough compute to try every idea. He notes coding models were not there in May 2025 and produced unmaintainable thousand-line spaghetti, but were extremely good by December 2025.
- The data for image and video generation is 100% synthetic language pairs, because internet videos don't naturally carry relevant text — a mountain scene captioned "I'm so happy today" has no correlation to its content. VLMs caption the videos, but the bootstrap problem is real: before any VLM exists, humans write the captions. Cosmos's labeling protocol was to describe everything — objects, characters, interactions, dialogue — so that a blind person hearing the text could reconstruct the video. A small percentage of unlabeled data is kept in generative training so the model learns to generate without text instruction, which helps generalization.
- You must train an image model before a video model, for two reasons: images are cheaper, and the language-to-visual mapping is far denser. A diffusion model's entire understanding of language comes from that mapping, so training on only ~10 million videos never exposes enough language tokens for the model to understand human intention.
- Pixel-space training is out of reach — a 1000x1000 image is a million tokens — so everything runs through a tokenizer/VAE into a continuous latent, mapping 16x16 pixel patches to fixed-length vectors of 16 or 48 dimensions. Using MP4 compression directly as tokens has been tried; the latent space is not comprehensible to the model and is extremely hard to train on. The design tension is temporal compression: Wan 2.1's VAE uses an 8x8x4 rate, folding four temporal tokens into one, versus 8x8x1 frame-by-frame which quadruples context length. Frame-by-frame's payoff is interactivity — streaming output frame by frame means the model can respond to a user request immediately, while temporal compression bakes in lag.
- The cost of video training is comparable to a medium-scale LLM, but storage is the hidden line item. A billion videos at ~5MB each is 5 petabytes; the stored VAE features are comparable in size again, so tens of petabytes total. On S3 Standard that is roughly $100k/month for 5PB and ~$200k for tens of PB, and egress dominates — every training run pulls the corpus at least once — putting the storage-and-network bill in the low millions per month. Open-source video models run around 19B dense parameters with MoE variants around 20B active / 100B total, and Cosmos trained on tens of trillions of visual tokens. Video training is also more I/O bound than LLM training; Cosmos required significant optimization to avoid that.
- Inference cost is a separate story, and the lever is step distillation (distinct from LLM knowledge distillation). Flow matching typically needs ~100 steps and older diffusion ~1000; you train a 10-step model to imitate the 100-step teacher. His intuition for why it works: the teacher models the entire internet's distribution, while the student only has to model a fixed model's much simpler distribution. Cosmos served at 4 and 8 steps, and Cosmos Transfer runs image-to-image translation in a single step. He points out GANs were the original one-step distillation, and distribution matching distillation uses a GAN discriminator as one of its losses — asking "does this look real" is a far easier objective than reconstructing a specific ground-truth image. Production few-step models typically combine consistency models, distribution matching and GAN losses.
- Grok Imagine 0.9 was, He believes, the first joint audio-video generation model deployed at large scale. The hard part is modality alignment. Audio has a discrete component (speech, essentially text tokens with characteristics) and a continuous one (music) that cannot be modeled as discrete tokens. Most VLMs don't understand audio at all, so synthetic captioning plus human effort is required, and LLMs are bad at describing beat, tone and musical detail — the captioning bar is that a deaf reader could reconstruct how the music sounds. Crucially, audio and video need *time-step* alignment, unlike the loose, coarse alignment between text and video, which forces the model to be time-aware.
- His world model definition has three components with three different difficulty profiles. Interaction: keyboard, mouse, voice, with a reasonable response. Real time: a CS:GO player wants sub-10ms, 300 FPS means 3ms, and most video models cannot do it; a digital human tolerates ~200ms, which is still hard given temporal compression. Long horizon: minutes and hours rather than the few seconds most video models produce.
- Long horizon is a context-length problem in disguise. In Cosmos, 5 seconds of video is roughly 50-60K tokens, so 50 seconds is ~500K and anything longer explodes into millions. The naive creator hack — feed the last frame in as the first frame of the next clip — degrades badly after a few rounds, and Veo 3's 1-second conditioning window is better but has the same failure: no long-range knowledge, so a speaker's voice drifts across a minute-long stitched video. Grok Imagine's video extension carries historical context over all previous generated video — who is speaking, which objects have appeared.
- Two intermediate solutions to the context explosion. Reference-to-video lets you condition on up to seven uploaded images (characters, objects, scenes) so the model doesn't need the full history in context. And FramePack's heuristic keeps the maximum sequence length fixed by giving the most recent ~1 second full resolution and progressively shrinking older history. He expects these heuristics to be replaced by learned, model-level context selection — and notes that video is slightly *ahead* of LLMs here, since LLM context pruning still lives in the harness rather than the model.
- The generative UI thesis, illustrated by Flipbook (a browser whose entire UI, including subpages generated on click, is imagined by an image model in real time) and Neural OS (a video-model-simulated operating system running Doom and Firefox). His argument: coding models write code, which compiles to binary, which renders pixels — so why not go from user intention straight to pixels. He expects a future where powerful LLMs and coding models run the back end and a diffusion model *is* the front end, letting each user's email client look however they want. The overfitting objection has a rebuttal: video models trained on the internet, which contains no supernatural footage, can still generate supernatural scenes, so a Neural OS trained on standard screen recordings should be able to imagine genuinely new interfaces.
- The cost math on generative UI: at roughly $1/hour of H100 time, 8 hours a day for 30 days is $240/month, more expensive than a Claude Max subscription — nobody pays that today. He assumes compute cost halves annually and puts the arrival at a few years out; the hosts counter that the LLM figure is more like 100x to 1000x improvement per 12-18 months for a given capability level, which is model progress and compute cost combined.
- The core claim about where visual intelligence lives. In Cosmos, the video model was only 7B parameters and the prompt rewriter (Llama or Mixtral) was larger. Diffusion models take instructions literally — because their training captions were exhaustively detailed, "a cat" yields a static cat on a white background, since you didn't describe motion or setting. The prompt rewriter converts terse user intent into that exhaustive description, and it is now the site of thinking and agentic behavior: GPT Image's ~3 minutes is mostly thinking, and a rewriter asked for "an image of today's news" will fetch, digest and lay out the news first. He notes a happy-sheep Cosmos generation looked CGI without rewriting and beautiful with it — no joint training involved.
- Architecture taxonomy he lays out: a separate language model plus separate diffusion model (Cosmos); a single model with a language backbone and diffusion head doing thinking and tool calling before generation (his read of Gemini Omni, and the hosts note Nano Banana and GPT Image are autoregressive-with-diffusion-head); and pure language models over discretized image tokens. The reasoning advantage of the head architecture is that generated images can be re-encoded through a ViT encoder and fed back for iterative refinement, though that likely wants joint training.
- Video agents are the practical form of the thesis: an LLM calling generative models, Photoshop-style image editors, video editors and FFmpeg as tools, iteratively refining — which is how human creators actually work, since the video that looks good is often good because of the editing, not the model. Grok Imagine Agent Beta is the first attempt; asked for a one-minute video, it generates clips and stitches with FFmpeg. He argues jointly training would help because language models are better at prompting AI models than humans are, and that deterministic tools handle precision tasks ("add this text at this timestamp") that video models won't hit reliably.
- His timing prediction: video agents become a big hit and cross production-grade quality by the end of the year, at which point enterprise budgets open up — agents cost more than raw generation because they produce many variations — and growth goes exponential past that usability threshold.
- On robotics, He is the rare world-model researcher who does not treat embodiment as the endgame. His prediction is that physical AI may get solved without being in the real world: once models trained on screen recordings can use computers and predict future computer state very well, a robot becomes just another tool a powerful AI controls.
- Watermarking and detection: Grok Imagine carries watermarks in countries that require them, and takedowns run fast because xAI already runs a social platform. He's view on SynthID is that the paper is public and it is reverse-engineerable, and will likely remain so; visual tells (six fingers) are gone, and his own detection heuristic is now whether the video makes logical sense — the hosts add audio mismatch, too-studio-quality sound, too-perfect lighting and skin.
- His forward-looking LLM bet, carried over from video: models should manage their own context. Today a model doesn't know its own context length, auto-compaction fires around 80% without the model's awareness, and time-awareness only exists because harnesses like OpenClaw staple the local time onto every message. Context removal, addition and compaction are all heuristic harness engineering that he expects to be absorbed into models — extending to a model that can read and modify its own harness code at test time, choosing whether to read a document in chunks or take the first 200 lines and discard the rest. He calls this the model programming itself online at test time.
- Career note on mobility within ML: He worked with the ResNet authors (including Jian Sun) ten years ago on image recognition, detection, tracking and network compression, was rejected by every top PhD program he applied to, went to FAIR for self-supervised learning, then NVIDIA for Cosmos and Megatron MoE — the first open-source framework to train MoEs from hundreds of billions to trillions of parameters efficiently at 40% MFU. His conclusion: the core principles of training large models are largely the same across modalities, and switching is easier than people assume. He left xAI because the research he now wants to do is on the language side.
- xAI's stated culture, in three phrases: move fast; no goal is too ambitious; first principles. He applies first-principles thinking to schedule rather than physics — how fast can data be acquired, what is the end-to-end training iteration time, how much would more GPUs compress it, what is the human-data turnaround — and derives the minimum number of days in which a thing is achievable.
## Actionable Takeaways
1. Budget storage and egress explicitly when planning video training — a billion 5MB videos plus their cached VAE features is tens of petabytes, on the order of $200k/month to store and more to move, and each training run pulls the whole corpus at least once.
2. Train an image model before a video model. Video tokens are expensive and sparse in language, so the text-to-visual mapping that gives the model its language understanding has to be built on images first.
3. Caption for reconstruction, not for search: the working standard is that a blind reader of the caption can rebuild the video in their head, and for audio, that a deaf reader can reconstruct the music. Keep a small share of unlabeled data in generative training for generalization.
4. Pick your VAE's temporal compression against your latency requirement, not just your context budget — 8x8x4 quarters your sequence length but builds in lag; 8x8x1 costs 4x context and buys frame-by-frame interactivity.
5. Serve with step distillation, not the training-time model: target 4-8 steps (1 step for image-to-image translation), and combine consistency-model, distribution-matching and GAN losses rather than picking one.
6. If your video quality is disappointing, invest in the prompt rewriter before the diffusion model — in Cosmos the rewriter was larger than the 7B video model, and rewriting alone turned CGI-looking output into good output with no joint training.
7. For long-form video, condition on selected references (Grok Imagine takes up to 7 images) or use FramePack's fixed-budget heuristic (full resolution for the last ~1 second, progressive downscaling for older history) rather than trying to hold all history in context.
8. Set real-time targets by use case before choosing an architecture: ~3ms for 300 FPS gaming, ~200ms for a conversational digital human — the latter is achievable, the former is out of reach for current video models.
9. Build video pipelines as agents with deterministic tools in the loop (FFmpeg, editors) rather than expecting one model call to produce a finished minute of footage; that is how professional creators already work.
## Notable Quotes
> "I have a pretty big claim. The entire visual intelligence are actually mostly coming from language." — Ethan He
> "A lot of the improvements does not come from new algorithms. It comes from finding small bugs here and there in the data pipeline." — Ethan He
> "So compute might be the bottleneck of iterating speed again." — Ethan He
> "World model is real-time interactive long horizon videos." — Ethan He
> "In the future, the diffusion model will actually be the front end to show stuff to you." — Ethan He
> "So the model can program itself online in test time." — Ethan He
---
*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*
*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*