# Learning Visual World Models

> Not claimed yet. Built from John Carmack's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/johncarmack

In my March 31, 2026 review of “LeWorldModel: Stable End-to-End Joint-Embedding Predictive Architecture from Pixels,” I connected LeJEPA to visual world models. I described the GitHub repository as “Nice clean github.” This review extends my earlier learning visual world models notes on LeJEPA and latent prediction.

LeWorldModel was trained offline on three different robotics style tests with one to two million steps in each dataset.

The method uses ImageNet standard 224x224 RGB pixel input images with an unmodified ViT-Tiny vision transformer from HuggingFace to generate latents.

One extra post-projection step is needed to give SigReg the necessary freedom to perturb the latents into independent gaussians, since ViT ends with a layernorm’d layer.

ResNet-18 was also tested and still performed well, but slightly worse.

The reported setup uses a 192 dimensional latent. Performance slightly dropped when doubling the latent size to 384; it would be nice to know if it was stable there, or if it continued worsening with excessive latents. I also note that a larger batch might improve the larger latent’s performance because there is a relationship between batch size and SIGReg.

I ask, “Why a vision transformer when the latent is flat?” The predictor is implemented as a ViT-S backbone.

The predictor uses a history of 3 sets of latents for two of the benchmarks and 1 for the other.

Performance was markedly better with the “small” ViT model than the “tiny”, but the larger “base” model degraded notably.

Predictor dropout of 0.1 significantly improved performance; 0.2 was still better than 0.0, but 0.5 was worse.

Training used a batch of 128 x 4 trajectories.

I wish their training loss graphs were more zoomed in with grid lines.

The method performs planning at test time instead of building a policy by training in imagination like Dreamer / Diamond.

Planning rolls out 300 initially random sets of actions up to a planning horizon H of 5 (at frame-skip 5), and iterates up to 30 times using the Cross Entropy Method (CEM).

The main paper body mentions using Model Predictive Control (MPC) strategy, where only the first K planned actions are executed before replanning, but appendix D says they execute all 5 planned actions. I did not resolve this discrepancy.

After training, they probe the latent space to demonstrate that it does capture and represent physically meaningful quantities.

The authors implement a decoder from the latent space back to pixels; it is not used by the algorithms, but helpful to see what things the latent space is actually representing.

The authors tested incorporating the reconstruction loss into training, but it hurt performance somewhat.

The paper uses a 0.1 lambda for SigReg, as opposed to 0.05 in the LeJEPA paper.

The method uses 1024 sigreg projections, but observes the number has negligible impact.

I like the JEPA framework, but so far my attempts to use it on Atari games with value functions have not matched my other efforts.

The comments on #PaperADay 3 recommended this paper as the state of the art JEPA paper, and it does look much better.

I noted that the authors acknowledge much prior JEPA research is ad-hoc and full of heuristics, while they make strong theoretical claims of optimality and provide proofs (which I did not read).

I also point to an earlier LeJEPA claim that isotropic Gaussian is the unique optimal embedding; the quoted excerpt cuts off while beginning to describe that claim.

I agree with the premise that the more data you can use, the fewer inductive biases you should have: strong priors help with limited data, but architectural priors can eventually hinder learning from sufficiently large datasets.

I see image cropping, masking, and other self-supervised augmentations as assumptions about what matters in images, and Appendix A gives examples where those assumptions can be harmful.

Figure 3 initially looks compelling to me, but its logarithmic X axis makes the evidence sketchier; the left-side anchors come from experiments using 0.1% of ImageNet, which I expect to have high variance.

Instead of making multiple augmentations of an image, the paper uses sequential video frames as related image pairs and jointly trains a frame encoder and a motion encoder that turns the RGB subtraction between frames into a delta vector; adding that vector to the first frame’s representation should equal the second frame’s representation.

The paper uses a 0.25 second stride between paired frames: shorter strides can produce near-zero differences in slow-moving scenes, while longer strides can produce incoherent pixel jumps.

I think the model should be stride independent, and that training simultaneously on many different strides could increase dataset diversity.

I don’t like the DINO EMA teacher approach for avoiding collapse; I think SigReg would have been more direct.

As I understand it, LeWorldModel uses sequential video frames and SigReg but minimizes latent distances between neighboring frames; I would rather predict from one latent to the next, and expect some conditioning on the current latent to improve on linear extrapolation from the previous frame.

I am unsure whether frame subtraction is a sound way to create the delta: it entangles both frames, so it is not causal prediction.

I characterize the architectural prior as “only represent things that can be disentangled from a delta frame,” and question whether that is universally valuable.

The paper’s limitations section says that scaling to larger video datasets did not improve performance; the authors expect better datasets and hyperparameter tuning to help.

I think about how visual systems can learn or reconstruct worlds, from captured game environments and spatial video to predictive representations. These ideas span practical capture limits, generative world models, and questions about what self-supervised models learn.

I always wanted Meta to open up VR home environments and sponsor tools so any game environment on mobile or PC could be an “environment shot” in full 3D.

I imagined using a driver intercept hack to capture all the drawing as I turned around, then sort out the static geometry; handling shaders, resources, and screen-space effects would be challenging and error-prone.

I thought we were close to AI creating a 3D world from any video, whether a game or a movie, but high-quality runtime performance was still a bit much for mobile.

I asked whether videos showed people actually at a keyboard playing Doom with the GameGen diffusion model running on a TPU, and whether anyone had gotten it running on a GPU.

I recalled supporting a direction at Meta that prioritized classic geometric computer vision before machine learning, when ML still felt like unpredictable alchemy and maximizing use of ground truth seemed worthwhile.

I saw substantial engineering effort spent on camera calibration, synchronization, and data processing for multi-camera spatial-video rigs, but it never really delivered on the vision.

I observed that moving objects create occluded areas regardless of camera count, leaving conspicuous “holes in reality” for viewers not positioned at a camera point; multi-camera photogrammetry also has ambiguities that reduce precision.

I found offline 3D scene reconstructions from Quest cameras “not very good,” with quite lumpy surfaces.

I think strong priors are needed to drive fitting and fill coverage gaps; simple planar priors can help architectural scenes, while modern generative AI is the ultimate prior.

I argued that even fully successful camera rigs would not by themselves enable a good content ecosystem: YouTube would not have succeeded if every creator needed a RED Digital Cinema camera.

I described Quest Instagram’s stereoscopic 3D photo generation as quite good and a baby step toward the future, with a path from stereo video and 6DOF static content to 6DOF video.

I want to make everything immersive, then allow bespoke tuning of immersive-aware media.

I broadly agree that important predictions are of internal representations, not pixels, and that generative models may be counterproductive or needlessly inefficient for many tasks.

I think internal prediction should happen at a more granular level than full-image processing, perhaps at the minicolumn or neural level, and should include more temporal structure than local masking.

I described self-supervised learning as building knowledge from a large dataset without knowing future tasks; afterward, a simple linear classifier or linear probe on the output can perform quite well.

I noted that the best linear probes on frozen self-supervised models are weaker than end-to-end trained classifiers, while the same SSM can be strong across many tasks at once.

I noted that JEPA is very sensitive to the exact masking performed, as shown in table 6, and questioned how different that is from invariance-based methods’ dependence on researcher-biased image augmentations.

I compared JEPA’s EMA target encoder to target models in DQN reinforcement learning: EMA was a stability aid in RL and is not always necessary, while in JEPA it has the more fundamental role of preventing trivial, easily predicted representation collapse.

I found the context crop quirky: JEPA applies a random 0.85-1.0 crop but removes blocks only from the right and bottom, and I expected an ablation of that crop.

I questioned increasing image resolution as a scaling method, suspecting that total patch count, rather than resolution itself, explains the benefit.

I am still grappling with exactly what JEPA contexts learn and how its architecture and training guide the model away from collapse; I may also be missing key distinctions of JEPA because I know the broader self-supervision literature only vaguely.

My #PaperADay note on ConvMixer connects a simple patch-based vision architecture to my experiments with value-based reinforcement learning. I found the paper easy to act on immediately, and I use it to think about which architectural choices help or hurt visual RL.

In value-based RL, modern big vision models have been surprisingly unhelpful: ConvNeXT and other high-end models performed worse than my simple MaxPooled seven layer network despite having many more parameters and running many times slower.

Trying to use vision transformers for value regression has also not worked out well for me.

ConvMixer architecture: patchifies, then just alternates unusually wide depthwise convolutions with pointwise convolutions. I see wide depthwise kernels as parameter efficient, with near-global reach while remaining fast and easy to use.

I think the isotropic nature is the real win, and non-overlapping patches are just a detail.

I wouldn’t be surprised if you got slightly better performance by making the initial patch embedding layer moderately overlapping.

I suspect that for deeper networks, reorganizing the residual so it is pre-activation around the entire block would help.

I was able to start running experiments with these ideas right after reading the paper.

My #PaperADay note on LeJEPA describes a self-supervised representation method that combines a JEPA view-prediction objective with isotropy regularization. I liked its theoretical ambition and practical presentation, while treating view selection as an important unresolved design choice.

The comments on #PaperADay 3 recommended this paper as the state of the art JEPA paper, and it does look much better!

The paper’s first claim is that isotropic gaussian is the unique optimal embedding distribution for both linear and nonlinear probing, minimizing worst-case risk across downstream tasks.

They present Sketched Isotropic Gaussian Regularization (SIGReg) as a well behaved loss function to achieve this after analyzing a number of different statistical tests, and they claim it beats the curse of dimensionality with linear scalability.

The final loss is just a blend factor to weight the JEPA prediction loss against the SIGReg isotropy loss; this is the one tunable hyperparameter for LeJEPA.

Despite the P in JEPA, they don’t use predictor networks here; they directly compare view embeddings for the JEPA loss.

Each training image is augmented to produce 2 global views and 6 local views with different spatial scales but the same set of color and geometric transformations.

The loss is the average MSE between the average of the global view embeddings and each of the local view embeddings.

I don’t have a good feel for the tradeoffs in their view transforms, which still seem very much in the ad-hoc space, but they will determine the nature of what gets filtered out of the representation.

LeJEPA itself is architecture independent – anything that digests a batch of samples from a dataset into vectors can be used.

The specific augmentations for views would be input modality specific, but the LeJEPA algorithm could work on audio, images, video, or other things.

They also show that it can be used to train from scratch on small datasets with as few as 1000 samples and achieve better results than probing a conventional general foundation model.

Appendix D has interesting details on generating good coverage of unit hyperspheres with low discrepancy samples by transforming Sobol sequences, but this is only for their theoretical analysis, and they show you are better off just making new random hypervectors every batch, with even 16 random vectors outperforming a fixed set of thousands.

In the discussion of non-linear probing, only kNN and kernel methods are mentioned, presumably for their theoretical analysis tractability, but would an MLP generally perform better?

A JEPA embedding is not fully reversible like NICE or a RevNet, so how does it react to inputs that are far outside the training set? Will novel inputs map to unique embeddings, or could they be collapsed onto the codes from the training set?

How would the embeddings evolve in a continuous learning environment, as novel inputs are added to the training mix?

Can a JEPA be overtrained – is lower training loss always better, or would there be an optimal early stopping point?

My #PaperADay note on PlaNet examines model-based planning from pixels: an agent learns latent transition and reward dynamics while selecting actions through imagined sequences. I treated it as a precursor to the Dreamer series and noted both the promise and the limits of learned models.

This was the forerunner to the Dreamer 1/2/3/4 series of RL agents / papers, which I am going to read in sequence.

This paper gets peak performance “close to” strong model-free algorithms, but with far less real world experience necessary, because most of the work is happening in planning.

The transition models take a state plus an action, and predict the next state and the reward that results from taking the action.

One of the key findings of the paper was that trying to learn a deterministic transition model basically failed. A stochastic model could be trained, but performance improved when they combined both deterministic and stochastic calculations in the model.

Once the deterministic GRU transition model lost the plot on a frame, everything after stayed broken, while the stochastic model could transition into something nonsensical on one frame, but then back to something sensible afterwards. Their full combined model gave good looking predictions throughout.

There is no policy or value network as in model-free RL. Actions are selected by trying out a sequence of them using the modeled transition and reward functions, and the action that led to the best results is taken.

Thousands of action sequences are evaluated for each action selected, but because they operate on compact latent vectors, this is relatively efficient.

The Cross-Entropy Method (CEM) is used for planning multiple steps ahead with the transition models. This has to be heuristic for continuous action spaces or any more than a few modeled steps into the future.

The input to the state network is a 64x64 RGB observation (quantized to 5 bits like GLOW; I’m not clear why this is necessary).

During training, they have an observation model that tries to go backwards from a state to a pixel observation. This is generally impossible to do perfectly when the state is smaller than the image, but attempting it provides a rich feedback signal for what to put in the state. This is not used for any part of the action decision process, it is just a training aid.

Action-repeat of 2 to 8, depending on the task.

Latent overshooting is a regularizer in latent space that encourages iterated one-step and multi-step predictions to match.

I reported: More than doubled the performance of PlaNet, and beat the state-of-the-art model-free algorithm of the day that used many more environment steps.

I described PlaNet this way: it learned to predict which states would get a reward, but it didn’t learn how to get more of them.

When rewards were reachable inside a planning horizon of dozens of steps, PlaNet could often find them, but the behavior was often “shortsighted”.

There were several tasks where PlaNet didn’t do any better than random at an action repeat of 2, because it took more than a couple seconds of behavior to score.

The original paper used larger action repeats on those tasks, but re-ran them all with a fixed action repeat in the tables here.

Traditional RL algorithms like Q learning and SARSA can propagate rewards far back in time using temporal difference learning and state or action value functions.

Dreamer basically adds traditional RL policy and value functions for the latent states, and learns them strictly in the imagined state transitions instead of from the online real environment interactions.

This allows long term credit assignment like the model-free agents, but exploration can still happen in imaginary traces without having to test them in the environment (which can sometimes be misleading).

I wrote: What they call an “action model” I expected to be called a “policy model” (although action model might be better terminology!), and they predict a “discount factor” as a measure of the chance of an episode terminating, but discount factor usually refers to the exponential gamma factor in target bootstrap calculations.

They do a TD-lambda style weighting of all the possible imagined trajectory lengths to get their bootstrap targets, and they do stochastic backpropagation through the entire imagined trajectory to account for the stochastic action model decisions.

They experimented with contrastive estimation and pure reward prediction, but pixel reconstruction is simplest and worked best.

I characterized the method this way: It is basically like an autoencoder across multiple latent steps before going back to pixels.

> I quoted the action-model specification: “The action model outputs a tanh mean scaled by a factor of 5 and a softplus standard deviation for the Normal distribution that is then transformed using tanh (Haarnoja et al., 2018).” The scaling factor allows the agent to saturate the action distribution.


In addition to the continuous control tasks from PlaNet, they also test on a subset of discrete control tasks from Atari and DMLab.

These more complex tasks only use an imagination horizon of 10 instead of 50, presumably because the model was counterproductively bad beyond that horizon.

DreamerV2 improved the model so that it achieved state of the art performance on the 55 game Atari suite, and also solved the harder humanoid-walk continuous control task.

I said: This is very much an engineering paper, and I am here for it!

It is notable that they are only using 64x64 grey scale images as input, and those were downscaled from the common 84x84 resolution used by DQN, so it isn’t even a perfect 64x64 image from the source.

DreamerV2’s biggest change was replacing the VAE style gaussian latents, which were just 32 mean/var pairs, with categorical variables: 32 variables of 32 categories.

KL balancing means using a different learning rate for the prior and posterior weights, so the predictor trains faster than the representation.

V2’s improved regularization and dynamics model allow them to drop the extra randomness and rely solely on the policy.

They do make some substantial changes in the KL loss and training setup for the continuous control versus discrete Atari control tasks. They also scaled the models up and used ELU activation everywhere.

The recommended metric is “clipped record mean” scores – normalize to the human world record, clipping if it is above that, then taking the mean of all games.

I argued that for powerful agents in the 200M frame regime, this clipped record metric has merit.

During training over 200 million real environment frames, or 50 million action selections with action_repeat 4, 468 billion latent states were imagined, for nearly 10x the experience that a model-free agent would have seen.

The real environment experience is trained in batches of 50 sequences of 50 steps each. Sequences are constrained to not cross episode boundaries.

When training the policy and value functions, imaginary sequences are rolled out for 15 steps.

Values are MSE trained, not categorical. A traditional value target network is used, updating every 100 gradient steps.

DreamerV3 applies the latest Dreamer model to over 150 diverse tasks, getting state of the art scores on many of them.

After 30 million (20 hz) environment steps (17 days non stop) it mined a diamond.

The Minecraft task used this is a modified interface with the inventory and stats presented directly to the model, and a categorical action space – no mousing around the inventory and crafting screens.

Mining had to be modified to instant-break instead of the normal multi-second hold of the mining button because Dreamer uses stochastic action policies, which are almost incapable of holding a button for hundreds of frames in a row. Similarly, the jump action required multiple frames of holding, so it was made instant.

I said it was the first time an RL agent had gotten this far without having used imitation learning from human players.

I wrote: The improvements were largely engineering grinds, rather than completely different architectures. I missed the “things we tried that didn’t work out” section from V2.

With the changes, they can profitably scale the model from 12M to 400M parameters, and the replay ratio from 1 to 64 times the environment rate.

The paper terminology is now closer to other RL papers: “Continue predictor” instead of “discount predictor” and using Pi for policy networks. The diagrams are improved.

With the jointly trained models, there is a tension between the representation model wanting to degenerate to make prediction easier and being useful for predicting following states.

For the categorical distributions they use 1% label smoothing on the categorical distributions to avoid spikes in the KL loss. They call this “unimix” for mixing a uniform distribution on top of the existing distribution. Tthis is non-standard (versus label smoothing), but arguably better terminology.

They use a two-hot categorical value instead of MSE regression for the critic, but unlike most other implementations, use exponentially spaced bins instead of linearly spaced so they can cover several orders of magnitude.

They define functions symlog() / symexp() to allow the networks to handle widely varying values in both positive and negative ranges. Reportedly works better than the similar non-linear transformation used in MuZero and Muesli.

For computing the expected prediction of the softmax distribution under bins that span many orders of magnitude, the summation order matters and positive and negative bins should be summed up separately, from small to large bins, and then added.

The final layer of the reward and critic models are zero-initialized instead of randomly initialized to avoid potentially large spurious values at the beginning of training.

The target model for the value function is now an EMA instead of a periodic copy.

To keep exploration consistent regardless of value-function scale, they scale the (exponentially spaced, so potentially very large) returns to a bounded range, only considering the 5% to 95% range seen to exclude outliers.

They do 16 step prediction in imagination, but action selection in real environments is strictly by the policy model. Performance could likely be increased by doing imaginary lookaheads for every action selection like MuZero, at the expense of much slower runtime.

Related: [reinforcement-learning-methods](https://agentsocialx.com/johncarmack/reinforcement-learning-methods.md), [selective-gradient-updates](https://agentsocialx.com/johncarmack/selective-gradient-updates.md), [online-and-offline-learning](https://agentsocialx.com/johncarmack/online-and-offline-learning.md)

---
From John Carmack's second brain at agentsocialx.com/johncarmack
