Var-JEPA: A Variational Formulation of the Joint-Embedding Predictive Architecture - Bridging Predictive and Generative Self-Supervised Learning
Organizations: University of Oxford, UK · Health Data Research UK
Abstract
The Joint-Embedding Predictive Architecture (JEPA) is often seen as a non-generative alternative to likelihood-based self-supervised learning, emphasizing prediction in representation space rather than reconstruction in observation space. We argue that the resulting separation from probabilistic generative modeling is largely rhetorical rather than structural: the canonical JEPA design (coupled encoders with a context-to-target predictor) mirrors the variational posteriors and learned conditional priors obtained when variational inference is applied to a particular class of coupled latent-variable models, and standard JEPA can be viewed as a deterministic specialization in which regularization is imposed via architectural and training heuristics rather than an explicit likelihood. Building on this view, we derive the Variational JEPA (Var-JEPA), which makes the latent generative structure explicit by optimizing a single Evidence Lower Bound (ELBO). This yields meaningful representations without ad-hoc anti-collapse regularizers and allows principled uncertainty quantification in the latent space. We instantiate the framework for tabular data (Var-T-JEPA) and achieve strong representation learning and downstream performance, improving over T-JEPA across real-world tabular benchmarks while remaining competitive with strong raw-feature baselines.
Figures & tables
| Exp. | Objective | |||||
|---|---|---|---|---|---|---|
| Context latent diagnostics ( ) | ||||||
| (A) | ELBO (Var-JEPA) | 0.996 0.002 | 0.113 0.037 | 4.0e-4 1.0e-4 | 0.649 0.127 | 0.082 0.009 |
| (B) | ELBO+SIGReg ( ) | 0.996 0.002 | 0.108 0.032 | 4.0e-4 1.0e-4 | 0.639 0.113 | 0.077 0.018 |
| (C) | ELBO+SIGReg ( ) | 0.996 0.002 | 0.110 0.033 | 4.0e-4 1.0e-4 | 0.647 0.118 | 0.077 0.018 |
| (D) | ELBO+SIGReg | 0.996 0.002 | 0.107 0.030 | 3.9e-4 1.0e-4 | 0.634 0.108 | 0.078 0.018 |
| (E) | ELBO ( ) | 0.996 0.002 | 8.374 1.944 | 5.1e-2 1.9e-2 | 7.197 1.522 | 2.550 0.607 |
| Method | AD | CO | EL | CC | BM | MNIST | SIM |
|---|---|---|---|---|---|---|---|
| MLP | 0.849 1.4e -3 | 0.750 3.7e -3 | 0.781 3.6e -3 | 0.816 2.5e -3 | 0.898 1.4e -3 | 0.822 1.1e -2 | 0.823 7.5e -3 |
| +T-JEPA | 0.849 4.4e -3 | 0.408 2.3e -1 | 0.627 4.1e -2 | 0.774 0e -0 | 0.616 3.7e -1 | 0.113 6.2e -3 | 0.692 3.5e -2 |
| +Var-T-JEPA | 0.852 2.1e -3 | 0.679 2.9e -2 | 0.790 3.3e -3 | 0.818 1.5e -3 | 0.900 2.0e -3 | 0.822 1.8e -2 | 0.695 1.4e -2 |
| +Var-T-JEPA (10%) | 0.865 2.0e -3 | 0.696 2.8e -2 | 0.793 2.9e -3 | 0.827 1.4e -3 | 0.905 2.2e -3 | 0.838 1.6e -2 | 0.705 1.3e -2 |
| +Var-T-JEPA (20%) | 0.883 1.7e -3 | 0.697 2.7e -2 | 0.795 2.8e -3 | 0.835 1.2e -3 | 0.908 2.5e -3 | 0.856 1.9e -2 | 0.706 1.5e -2 |
| +Var-T-JEPA (50%) | 0.921 2.1e -3 | 0.706 1.4e -2 | 0.804 3.9e -3 | 0.841 7.0e -4 | 0.921 1.4e -3 | 0.901 2.1e -2 | 0.729 1.5e -2 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | AD | CO | EL | CC | BM | MNIST | SIM |
|---|---|---|---|---|---|---|---|
| MLP | 0.845 3.7e -3 | 0.747 5.0e -3 | 0.780 3.5e -3 | 0.792 6.9e -3 | 0.887 4.8e -3 | 0.822 1.1e -2 | 0.821 9.0e -3 |
| +T-JEPA | 0.842 9.0e -3 | 0.274 1.5e -1 | 0.545 7.4e -2 | 0.675 0e -0 | 0.583 3.9e -1 | 0.023 2.3e -3 | 0.662 3.3e -2 |
| +Var-T-JEPA | 0.845 3.3e -3 | 0.657 3.8e -2 | 0.789 2.2e -3 | 0.797 4.1e -3 | 0.889 3.1e -3 | 0.823 1.7e -2 | 0.659 3.3e -2 |
| +Var-T-JEPA (10%) | 0.859 3.0e -3 | 0.678 3.4e -2 | 0.792 2.0e -3 | 0.792 5.6e -3 | 0.893 3.5e -3 | 0.840 1.5e -2 | 0.671 3.1e -2 |
| +Var-T-JEPA (20%) | 0.877 2.4e -3 | 0.680 3.0e -2 | 0.794 2.3e -3 | 0.792 4.3e -3 | 0.895 4.0e -3 | 0.857 1.8e -2 | 0.671 3.2e -2 |
| +Var-T-JEPA (50%) | 0.915 2.6e -3 | 0.692 1.7e -2 | 0.803 3.4e -3 | 0.780 1.9e -3 | 0.907 3.9e -3 | 0.901 2.0e -2 | 0.691 3.7e -2 |
| Shallow | Low pred.-FF | Narrow | High pred.-FF | Deep | Low LR | Batch size 256 | |
| (hidden dim.) | 64 | 64 | 32 | 64 | 64 | 64 | 64 |
| (layers) | 4 | 8 | 8 | 8 | 16 | 8 | 8 |
| (pred.) | 256 | 128 | 128 | 512 | 256 | 256 | 256 |
| (LR) | |||||||
| (batch) | 512 | 512 | 512 | 512 | 512 | 512 | 256 |
| MLP + Var-T-JEPA | 0.850 2.1e -3 | 0.852 2.1e -3 | 0.850 1.6e -3 | 0.852 2.1e -3 | 0.832 1.7e -3 | 0.849 3.2e -3 | 0.851 2.7e -3 |
| Dataset | Method | Spearman | AUC | AURC |
|---|---|---|---|---|
| SIM | Var-T-JEPA (latent uncertainty) | 0.640 | 0.805 | 0.209 |
| Probe entropy | 0.339 | 0.692 | 0.272 | |
| Probe MSP | 0.313 | 0.668 | 0.267 | |
| MC dropout | 0.560 | 0.599 | 0.013 | |
| Deep ensemble | 0.586 | 0.612 | 0.011 | |
| MNIST | Var-T-JEPA (latent uncertainty) | 0.949 | 0.986 | 0.123 |
| Dataset | Samples | Features | (num/cat) | Classes | Task | Domain |
|---|---|---|---|---|---|---|
| Adult (AD) ( Kohavi, 1996 ) | 48,842 | 14 | (6/8) | 2 | Classification | Census |
| Covertype (CO) ( Blackard, 1998 ) | 10,000 | 54 | (54/0) | 7 | Classification | Forestry |
| Electricity (EL) ( Harries, 1999 ) | 45,312 | 8 | (8/0) | 2 | Classification | Time series |
| Credit Card Default (CC) ( Yeh, 2009 ) | 30,000 | 23 | (23/0) | 2 | Classification | Finance |
| Bank Marketing (BM) ( Moro et al., 2014 ) | 45,211 | 16 | (16/0) | 2 | Classification | Marketing |
| MNIST ( LeCun et al., 1998 ) | 10,000 | 784 | (784/0) | 10 | Classification | Vision |
| Dataset | batch | lr | warm | ctx | ctxM | trg | trgM | K | d | L | H | ff | drop | Lp | Hp | ffp | dropp | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AD | 512 | 0.001 | 10 | 0.1 | 0.3 | 0.1 | 0.6 | 4 | 64 | 8 | 4 | 256 | 0.001 | 16 | 4 | 256 | 0.002 | 1e-04 | 1e-06 | 1e-05 | 15 | 15 | 15 | 0.1 | 1 |
| CO | 512 | 5e-04 | 12 | 0.15 | 0.35 | 0.15 | 0.6 | 4 | 64 | 8 | 8 | 64 | 0.0015 | 16 | 4 | 256 | 0.002 | 1e-06 | 1e-05 | 1e-06 | 60 | 60 | 20 | 0.001 | 0.5 |
| EL | 512 | 5e-04 | 10 | 0.15 | 0.6 | 0.15 | 0.9 | 4 | 64 | 6 | 4 | 64 | 0.001 | 16 | 4 | 128 | 0.002 | 1e-06 | 1e-05 | 1e-06 | 40 | 40 | 15 | 0.001 | 0.25 |
| CC | 512 | 0.001 | 10 | 0.1 | 0.3 | 0.1 | 0.6 | 4 | 64 | 8 | 4 | 256 | 0.001 | 16 | 4 | 256 | 0.002 | 1e-04 | 1e-06 | 1e-05 | 15 | 15 | 15 | 0.1 | 1 |
| BM | 512 | 0.001 | 10 | 0.1 | 0.3 | 0.1 | 0.6 | 4 | 64 | 8 | 4 | 256 | 0.001 | 16 | 4 | 256 | 0.002 | 1e-04 | 1e-06 | 1e-05 | 15 | 15 | 15 | 0.1 | 1 |
| MNIST | 256 | 0.001 | 10 | 0.15 | 0.5 | 0.15 | 0.8 | 4 | 64 | 8 | 4 | 128 | 0.002 | 32 | 4 | 256 | 0.002 | 1e-06 | 1e-06 | 1e-06 | 100 | 100 | 100 | 0.001 | 0.1 |
| Dataset | batch | lr | warm | ctx | ctxM | trg | trgM | K | d | L | H | ff | drop | Lp | Hp | ffp | dropp | ema |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AD | 512 | 0.001 | 10 | 0.1 | 0.3 | 0.1 | 0.6 | 4 | 64 | 8 | 4 | 256 | 0.001 | 16 | 4 | 256 | 0.002 | 0.996 |
| CO | 512 | 5e-04 | 12 | 0.15 | 0.35 | 0.15 | 0.6 | 4 | 64 | 8 | 8 | 64 | 0.0015 | 16 | 4 | 256 | 0.002 | 0.996 |
| EL | 512 | 5e-04 | 10 | 0.15 | 0.6 | 0.15 | 0.9 | 4 | 64 | 6 | 4 | 64 | 0.001 | 16 | 4 | 128 | 0.002 | 0.996 |
| CC | 512 | 0.001 | 10 | 0.1 | 0.3 | 0.1 | 0.6 | 4 | 64 | 8 | 4 | 256 | 0.001 | 16 | 4 | 256 | 0.002 | 0.996 |
| BM | 512 | 0.001 | 10 | 0.1 | 0.3 | 0.1 | 0.6 | 4 | 64 | 8 | 4 | 256 | 0.001 | 16 | 4 | 256 | 0.002 | 0.996 |
| MNIST | 256 | 0.001 | 10 | 0.15 | 0.5 | 0.15 | 0.8 | 4 | 64 | 8 | 4 | 128 | 0.002 | 32 | 4 | 256 | 0.002 | 0.996 |