Video generators often produce scenes that break 3D geometry. Walls bend as the camera moves, textures slide across surfaces, and objects change shape when the camera looks back at them. One cheap fix needs no retraining. A differentiable score of how geometrically wrong a video is serves as a correction signal, and the generator's random input is nudged downhill on that score during generation. GeCo does exactly this on CogVideoX-5B. But pushing a video toward lower geometric error can also reward cheating. The easiest way to have no rigidity violations is to have no motion, and the easiest way to pass simple pairwise checks is flat, collapsed geometry, a failure VideoGPA documents for epipolar constraints, i.e. rules that tie where a point appears in one frame to a line in another.
We propose to treat geometric correction as sampling from a well-defined target distribution rather than as minimization. The target is the generator's own Gaussian input distribution, reweighted by a geometric likelihood. We sample it with Hamiltonian Monte Carlo (HMC), a sampler that gives the state a momentum and simulates frictionless motion on an energy landscape, so it can travel far per step in high dimensions and still remain correct through an accept/reject test. The claim to test is concrete. At matched compute, a correctly specified sampler that respects the input prior and is calibrated to the geometric error of real video should fix geometry without freezing motion or collapsing diversity. Plain gradient guidance, with or without momentum, should fix geometry by also suppressing motion.
Core Claim
Let $z \in \mathbb{R}^N$ be the initial noise of a few-step distilled video generator $\Phi$, which maps noise to video in one to four network calls. Let $E(\Phi(z))$ be a differentiable geometric error. We sample
$$\pi(z) \propto \exp\left(-\tfrac{1}{2}\|z\|^2 - \lambda\, E(\Phi(z))\right),$$
where the first term is the generator's own prior and $\lambda$ is a temperature. We do not set $\lambda$ for maximum geometric improvement. Instead, $\lambda$ is chosen so that the average error of samples under $\pi$ matches the error that the same metric assigns to real camera-captured video. GeCo already measures this "noise floor" on DL3DV. A target calibrated this way does not ask for geometry cleaner than reality, and that is the regime where motion-freezing shortcuts stop paying off.
This differs from the closest prior work in three ways. GeCo takes first-order descent steps through its own metric, with no prior term, momentum, or accept/reject correction. Consistency Posterior Sampling uses the same noise-space formulation, but only for single 2D images under linear degradations, with first-order Langevin dynamics, i.e. gradient steps plus fresh noise, after an Adam warm-start. Diffusion-HMC runs HMC with a diffusion model in the loop, but over two cosmological parameters, not over the generated field itself. No work in the file samples video noise under a 3D geometric likelihood. None asks whether sampling, as opposed to optimizing, protects motion and diversity.
Research Program
The first component is the sampler, built for dimensions near $10^6$. Because the prior is a standard Gaussian, we use a split integrator. The Gaussian part of the motion is solved exactly as a rotation in the plane of $z$ and its momentum. The leapfrog-style momentum updates ("kicks") come only from the geometric gradient $\lambda \nabla_z E(\Phi(z))$. This keeps $\|z\|$ on the prior's typical shell, the thin high-dimensional region where almost all probability mass lies, regardless of step size. The Metropolis test then corrects only the error from the likelihood term. Standard HMC analysis in Geometry and Dynamics for Markov Chain Monte Carlo gives a step-size cost growing as $N^{1/4}$, against $N^2$ for random-walk proposals. We will measure whether that advantage holds when the prior dominates and the likelihood is rugged.
Each step backpropagates through $\Phi$ and the geometry estimators, which is expensive. We will use gradient checkpointing and short chains: an initial draw from the prior, 4–16 leapfrog steps per proposal, and a few proposals per video. Total compute is budgeted against GeCo-style guidance.
The second component is the energy and its dynamic-content problem. GeCo's motion cue penalizes independent object motion, which in a sampler is a real bias rather than a harmless false positive. We will compare two energies. One is GeCo's fused motion-plus-structure error. The other uses only GeCo's structure cue, depth reprojection in co-visible static regions, with robust heavy-tailed residuals, so that a minority of moving pixels cannot dominate the gradient. This is a cheaper alternative to the motion head that GeoVideo trains.
The third component is analysis. We will record acceptance rates, energy traces, and agreement across independent chains on summary statistics such as mean flow magnitude and depth range. We will also compare the local curvature of the pairwise epipolar energy with that of the multi-view reprojection energy, to see which landscape the sampler can actually traverse. This directly addresses the degeneracy VideoGPA identifies.
Baselines
The do-nothing reference is the distilled generator sampled from its prior with no correction. Every metric is reported relative to it.
The direct competitor is GeCo's training-free first-order guidance, run with the same energy, the same generator, and a matched count of generator-plus-estimator gradient evaluations. No reported number was found on Lacuna for GeCo's guidance gains, so we rerun it.
The compute-matched selection baseline is best-of-K. We draw K prior samples and keep the one with the lowest geometric error, where K is set so total compute equals the HMC budget. This tests whether gradients are needed at all.
The strongest existing method is offline alignment. VideoGPA's DPO-tuned adapters report a 76.0% VideoReward win rate on image-to-video with CogVideoX, against 66.0% for epipolar-DPO and 35.0% for supervised fine-tuning. On DL3DV, GeoVideo reports a Multi-View Consistency Score (MVCS) of 77.2, against 61.2 for base CogVideoX-5B. Where those checkpoints or recipes can be reproduced on our base model, we compare on the same prompts and camera paths. We count an offline method as beaten if HMC on the untuned model matches its held-out geometric score while keeping higher motion magnitude and diversity. HMC applied on top of the DPO-tuned model is also reported, because the two are complementary.
Three ablations isolate the key ingredients. The first is momentum gradient descent on $z$ with the prior term, which keeps the dynamics but removes noise and the accept/reject test. The second is HMC without the Metropolis test. The third is HMC with an ordinary leapfrog integrator instead of the prior-exact split. All ablations get the same tuning budget, a fixed grid over step size and steps per proposal selected on a held-out prompt set.
Why not just…?
Why not just fine-tune the model with geometric preferences, as VideoGPA does? It is fast at test time and works well on average: 76.0% is a strong win rate. But it adjusts the model globally and cannot adapt to one unusual camera path at generation time. It also bakes in whatever errors the teacher estimators make. We do not argue against it. We test whether sampling adds value on top of it, and on paths outside its training distribution.
Why not just use gradient descent with momentum, or Adam, on the noise and add a norm penalty? This is the most serious threat. If the gain comes only from keeping $z$ near the prior shell, a regularized optimizer captures most of it at lower cost. The first ablation exists to settle this. If it matches HMC on held-out geometry, motion magnitude, and per-prompt diversity, the honest conclusion is that "keep the prior and stop at the real-video error floor" is the contribution and the sampler is optional. We expect a difference in diversity specifically, because optimization from different starting points tends to collapse toward the same low-error videos. But we treat this as an open empirical question.
Why not just draw many samples and keep the most consistent one? Selection is unbiased and simple, but the chance of drawing a fully consistent long camera sweep from the prior may be tiny. Its cost grows with how rare such samples are, not with dimension. The compute-matched best-of-K baseline measures this directly. If best-of-K wins at realistic K, gradient-based correction is not worth its overhead for this task.
Why not just hardcode epipolar attention, as CamCo does? CamCo reduces the COLMAP reconstruction failure rate on RealEstate10K to 3.8%, against 64.3% for base Stable Video Diffusion. But this requires architectural retraining, assumes rigid scenes, and is exactly the pairwise constraint VideoGPA shows can be satisfied by degenerate flat geometry. Our method is test-time and model-agnostic. Applying it on top of an epipolar-attention model is a valid extension, not a competitor.
Proposed Experiments
Static-scene geometry is evaluated on RealEstate10K and DL3DV camera trajectories. We report three held-out geometric measures: MVCS, the COLMAP reconstruction failure rate as used by CamCo, and reprojection error. The reprojection error is computed with depth and pose estimators different from those inside the guidance energy, so the sampler cannot game its own judge. Dynamic content is evaluated on a WebVid and Panda-70M subset with moving subjects, reporting mean optical-flow magnitude in foreground regions, VBench subject consistency and motion smoothness, and FVD. Diversity is measured as pairwise perceptual distance among eight samples per prompt and camera path. WarpBench and OccluBench serve only to check, before sampling, that the energy actually detects deformation and occlusion errors. GeCo reports 71.59% AP on CO3D-Warp for its motion cue, against 6.82% for MEt3R.
The decisive check is a single plot per method, held-out geometric error against foreground motion magnitude, with all methods at matched compute. The proposal succeeds if calibrated HMC moves geometric error toward the real-video floor while staying at the base model's motion level. GeCo-style descent and regularized momentum descent should reach lower in-loop energy but slide toward lower motion and lower diversity. A second check sweeps $\lambda$ past the calibrated value and confirms that over-tightening reproduces the freezing failure in the sampler too. That would show the calibration, not just the dynamics, is doing work. A third check reports acceptance rates and cross-chain agreement. If acceptance collapses at $10^6$ dimensions despite the split integrator, the method falls back to its unadjusted variant and the claim of exactness is withdrawn.
References
- GeCo: A Differentiable Geometric Consistency Metric for Video Generation
- Distilling Geometry Priors for 3D-Consistent Video Generation
- Consistency Posterior Sampling for Diverse Image Synthesis
- Diffusion-HMC: Parameter Inference with Diffusion Model driven Hamiltonian Monte Carlo
- Geometry and Dynamics for Markov Chain Monte Carlo
- GeoVideo: Introducing Geometric Regularization into Video Generation Model
- CamCo: Camera-Controllable 3D-Consistent Image-to-Video Generation