A Lightweight Library for Energy-Based Joint-Embedding Predictive Architectures

Basile Terver, Randall Balestriero, Megi Dervishi, David Fan, Quentin Garrido, Tushar Nagarajan, Koustuv Sinha, Wancong Zhang, Michael Rabbat, Yann LeCun, Amir Bar

TL;DR

This paper introduces EB-JEPA, an open-source library that makes it easier to train Joint-Embedding Predictive Architectures (JEPAs) for representation learning and world modeling. EB-JEPA provides modular, single-GPU-trainable examples for image, video, and action-conditioned tasks, demonstrating that JEPAs can learn semantically rich features and drive effective planning with minimal computational resources.

What Problem Does This Paper Address?

Building intelligent systems that can understand and interact with their environment has long been a goal in AI. A key component of this is learning "world models" – internal representations of how the environment works. Traditional generative models, which try to predict raw pixels, are computationally expensive and often struggle with irrelevant details. While Joint-Embedding Predictive Architectures (JEPAs) offer a promising alternative by learning to predict in a compressed "representation space," practical implementations are often complex and require significant computational resources, creating a barrier to entry for researchers and educators. This paper addresses this by providing an accessible, modular, and computationally efficient library for exploring JEPA-based representation learning and world modeling.

Methods

The core of EB-JEPA is its implementation of Joint-Embedding Predictive Architectures (JEPAs). JEPAs work by learning to predict representations of future states or masked parts of data, rather than raw pixels. This is achieved through an energy-based framework where the "energy" is defined by the prediction error in the representation space. To prevent "collapse" (where the model learns trivial, constant representations), the library incorporates regularization techniques like VICReg (Variance-Invariance-Covariance Regularization) and SIGReg (Self-supervised Isotropic Gaussian Regularization). The library offers three progressively complex examples:

  1. Image-JEPA: Learns view-invariant representations of images.
  2. Video-JEPA: Predicts future video frames in representation space, capturing temporal dynamics.
  3. Action-Conditioned Video-JEPA (AC-video-JEPA): Builds a world model that predicts future states conditioned on actions, enabling goal-directed planning.

The library's modular design allows for easy recombination of components (encoders, predictors, regularizers, planners), and all examples are designed for single-GPU training within a few hours.

Datasets

The paper uses the following datasets for training and evaluation:

  • CIFAR-10: For image representation learning.
  • Moving MNIST: For video prediction.
  • Two Rooms environment: A procedurally generated environment for goal-conditioned planning.

Key Insights and Ideas

  • Representation space prediction is powerful: JEPAs can learn semantically meaningful features without the burden of pixel-level reconstruction, leading to more efficient and robust representations.
  • Regularization is crucial for JEPA success: Preventing representation collapse is a key challenge, and the paper highlights the effectiveness of techniques like VICReg and SIGReg, with SIGReg offering a simpler hyperparameter setup.
  • Modularity enables broad applicability: The library's design allows JEPA principles to be applied across static images, temporal video data, and even action-conditioned planning tasks.
  • Accessibility lowers the barrier to entry: Providing single-GPU, few-hour training examples democratizes research into advanced representation learning and world models.
  • Multistep rollouts improve temporal understanding: Training with k-step prediction (rather than just single-step) significantly enhances performance on downstream tasks by reducing exposure bias.

Key Results

  • Image Representation Learning: Achieved 91% linear probing accuracy on CIFAR-10, competitive with state-of-the-art self-supervised methods. Using a learned projector improved accuracy by ~3 points.
  • Video Prediction: Demonstrated coherent predictions of digit motion on Moving MNIST over extended horizons using multistep rollouts, significantly improving Average Precision.
  • Action-Conditioned Planning: Achieved a 97% success rate on the challenging Two Rooms navigation task using MPPI planning. Ablations showed that the Inverse Dynamics Model (IDM) regularization was critical, preventing collapse and enabling planning.

Limitations and Future Work

  • Limitations: The paper focuses on small-scale, single-GPU training for accessibility. While this enables rapid prototyping, it may not directly translate to state-of-the-art performance on massive datasets or complex real-world scenarios without further scaling.
  • Future Work: The authors suggest several promising directions:
  • Advancing Regularization Theory: Further investigating the interplay of various regularization terms and developing principled automatic hyperparameter selection methods.
  • Hierarchical World Models: Extending JEPA to predict at multiple temporal resolutions for more sophisticated long-horizon planning.
  • Learned Cost and Value Functions: Integrating learned cost functions or value functions with JEPA world models to improve planning in complex tasks.
  • Complementary to Large-Scale Codebases: EB-JEPA is intended as a stepping stone, with promising algorithms to be scaled up using more powerful distributed training frameworks.

Summary updated

BibTeX
@inproceedings{terver2026lightweight,
  author = {Basile Terver and Randall Balestriero and Megi Dervishi and David Fan and Quentin Garrido and Tushar Nagarajan and Koustuv Sinha and Wancong Zhang and Michael Rabbat and Yann LeCun and Amir Bar},
  title = {{A Lightweight Library for Energy-Based Joint-Embedding Predictive Architectures}},
  booktitle = {World Models @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=ZVAMdXGCUC},
}
Figure