TL;DR
Current visual tokenizers rely heavily on pixel-level reconstruction, forcing tokens to memorize fine-grained visual details rather than high-level semantic rules needed for reasoning and planning. Discrete-JEPA solves this by uniting the Joint-Embedding Predictive Architecture (JEPA) with vector quantization—learning discrete, abstract semantic tokens strictly in latent space without pixel reconstruction. In autoregressive world-modeling tasks, this prevents error compounding and maintains systematic rule-following across rollouts of up to 1,000 timesteps.
What Problem Does This Paper Address?
For artificial agents to exhibit "System 2" deliberate reasoning and long-horizon planning, their world models need representations that capture abstract symbolic rules (e.g., color sequences, object states, and permutations) rather than raw pixels.
Existing approaches face a dilemma:
- Reconstruction-based tokenizers (VQ-VAE, VQGAN, TiTok): Relying on pixel reconstruction biases discrete tokens toward local visual details and high-frequency textures rather than high-level abstractions.
- Latent predictive architectures (e.g., I-JEPA): Predicting masked representations directly in latent feature space avoids reconstruction bias. However, these representations are continuous. When fed into autoregressive world models, small prediction errors compound rapidly over sequential rollout steps, leading to representation drift and pattern breakdown.
Methods
Discrete-JEPA introduces discrete vector quantization into the self-supervised JEPA framework while avoiding pixel decoders altogether.
Context Image ──> Context Encoder ──> Semantic Tokens ──> VQ ──> Discrete Semantic Tokens
──> Continuous Patch Tokens ──┐
│ (Predictive Objectives:
Target Image ──> Target Encoder ──> Target Semantic / Patches │ S2P, P2S, P2P)
(EMA updated) ▼
Key Components:
- Dual Encoders: An online context encoder and an Exponential Moving Average (EMA) target encoder process visible and full image inputs alongside learnable semantic prompt tokens.
- Selective Discretization: The model generates two distinct token streams:
- Continuous patch tokens: Preserve local spatial structure and act as intermediate training representations (discarded after training).
- Discrete semantic tokens: Derived by vector quantizing ($k$-means style codebook) the global semantic representations. Only these discrete tokens are passed to downstream world models.
- Complementary Predictive Objectives:
- Semantic-to-Patch (S2P): Predicts continuous target patch tokens from discrete semantic tokens, ensuring discrete tokens carry sufficient scene context.
- Patch-to-Semantic (P2S): Predicts target semantic representations from continuous context patches, aligning local features with global semantics.
- Patch-to-Patch (P2P): Predicts target patch features from context patches, preserving standard spatial representation capabilities.
- Training Loss: A weighted combination of $\mathcal{L}_{\text{S2P}} + \mathcal{L}_{\text{P2S}} + \mathcal{L}_{\text{P2P}} + \mathcal{L}_{\text{VQ}}$ (standard VQ commitment loss).
Datasets
The authors evaluated the method on two controlled synthetic benchmarks designed to test symbolic rule learning and long-horizon sequence tracking:
- Dancing-Sprites-Pattern: Built on Spriteworld, featuring 4 geometric shapes in 7 possible colors. Objects transition across timesteps following deterministic color rules: Linear hops, Repeat-2, Zigzag-3, and Repeat-3. Models observe 4 conditioning frames and predict up to 200 future timesteps.
- Blinking-Ball: Sequences containing four ball objects where exactly one ball is highlighted with one of five colors at each timestep according to interacting permutation and color cycles. Models condition on 6 frames and autoregressively roll out up to 1,000 steps.
Key Insights and Ideas
- Discretization as Error Regularization: Continuous world models inevitably drift into out-of-distribution latent spaces during sequential rollout. Constraining future rollouts to discrete codebook indices bounds error accumulation, keeping autoregressive rollouts on the manifold of valid symbolic states.
- Reconstruction-Free Semantics: By discarding pixel decoders, Discrete-JEPA forces tokens to encode underlying transition rules (e.g., state orderings) rather than lighting, fine borders, or background noise.
- Emergent Semantic Planning: Visualizations reveal that Discrete-JEPA maintains cyclic rule integrity over hundreds of steps, whereas continuous representations suffer catastrophic drift where colors blend or patterns stall.
Key Results
- Dancing-Sprites-Pattern (200-step rollout):
- Discrete-JEPA maintained perfect color prediction accuracy (1.0) across the entire 200-step horizon.
- Continuous I-JEPA baselines rapidly degraded, dropping to between $0.35$ and $0.70$ accuracy within 100–150 steps.
- Blinking-Ball (1,000-step rollout):
- Continuous I-JEPA degraded continuously after an initially strong start, breaking coherent patterns around step 600.
- At step 1,000, Discrete-JEPA achieved $6\times$ lower LPIPS ($0.0242$ vs. $0.1554$) and $5\times$ lower MSE ($0.289 \times 10^{-2}$ vs. $1.461 \times 10^{-2}$) compared to I-JEPA.
Limitations and Future Work
- Abstraction vs. Precision Trade-off: Discretization sacrifices fine-grained spatial information. In early rollout steps (e.g., $t \le 20$), continuous I-JEPA achieved higher positional precision before compounding errors took over.
- Synthetic Scope: Current benchmarks are controlled 2D synthetic domains. Scaling to complex, photorealistic, real-world videos and robotics environments remains unverified.
- Baseline Comparisons: Experiments focus primarily on comparing against continuous I-JEPA variants; direct empirical head-to-head comparisons against generative discrete tokenizers like TiTok or VQGAN are left for future work.
- Hierarchical Tokens: The authors propose multi-level token hierarchies in future work to balance high-level discrete abstraction with low-level spatial precision.
Summary updated