LeWM (Latent Encoder World Model) is a JEPA-based vision world model: a ViT encoder compresses 224×224 images into a compact latent vector, and a DiT-style predictor forecasts the next latent given the current state and robot action. It was trained on the PushT environment.
These variants explore:
Architecture changes: Latent bottleneck dimensions, layer counts, hybrid ALAL attention
The encoder's INT8 path uses per-channel symmetric quantization with f32 scales. When we skip INT8 and quantize the encoder directly to Q4:
Encoder INT8: cos=0.9998 vs f32
Encoder Q4: cos=0.93 vs f32 (7% quality drop)
The issue is the ViT encoder has high dynamic range in intermediate activations. INT8 preserves more signal per channel. Q4's 32-element block granularity doesn't match the encoder's channel statistics.
Why Ternary Underperforms
Ternary weights ({-1, 0, +1}) theoretically compress 8x more than Q4. In practice:
Q4 cos: 0.998 vs f32
Ternary cos: ~0.85 vs f32
The predictor's adaLN modulation is sensitive to weight magnitude, not just sign. Ternary destroys the scale information that adaLN relies on.
Q4 weights (integers -8 to 7) decompose into shift-and-add trees. Multiplication by a constant becomes a wire + adder network — no multiplier circuit, no memory fetch.
Modes: full (INT8+Q4), q4-pred (Q4 predictor only), wanda20-q4, wanda40-q4.
Citation
If you use these models or the quantization results, cite the original LeWM paper:
bibtex
1@article{maes2025lewm,
2 title={LeWorldModel: Stable End-to-End Joint-Embedding Predictive Architecture from Pixels},
3 author={Maes, Lucas and Le Lidec, Quentin and Scieur, Damien and LeCun, Yann and Balestriero, Randall},
4 journal={arXiv},
5 year={2025}
6}
For the quantization and architecture experiments, cite this collection:
bibtex
1@misc{lewm_models_2026,
2 title={LeWM Model Collection: Quantized and Architecture Variants},
3 author={Attocoder Team},
4 year={2026},
5 publisher={GitHub},
6 url={https://github.com/attocode/lewm-models}
7}
License
All models are derived from LeWM, which is licensed under CC BY-NC 4.0.
You are free to:
Share: copy and redistribute the material
Adapt: remix, transform, and build upon the material
Under the following terms:
Attribution: You must give appropriate credit to the original LeWM authors
NonCommercial: You may not use the material for commercial purposes