# Learn from your own latents and not from tokens: A sample-complexity theory

- **ID:** 502
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2605.27734
- **Authors:** Daniel J. Korchinski, Alessandro Favero, Matthieu Wyart
- **Venue:** arXiv / EPFL / University of Cambridge / Johns Hopkins University
- **Published:** 2026
- **Tags:** jepa, data2vec, rhm, sample-complexity, latent-prediction, epfl, hierarchical-ssl, predictive-coding
- **Topics:** self-supervised learning, JEPA, sample complexity, hierarchical data
- **Added:** 2026-10-01
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/502

## Summary

On the Random Hierarchy Model (PCFG, depth L, m rules/symbol), supervised learning needs ~m^L samples and token-level SSL (MLM/diffusion) ~m^{L+1}. Latent prediction (cluster cousin context vectors level-by-level) recovers the non-root tree from ~v m^3 samples, independent of L up to logs. Confirmed with (i) iterative latent clustering, (ii) a stacked predictor-clusterer net trained by GD (also with local stop-grad rules), and (iii) the first sample-complexity analysis of data2vec, which implicitly does hierarchical latent prediction — so explicit H-JEPA stacking is largely redundant. Suggests own-latent SSL as a route to beat token-correlation scaling laws.

## Attributes

- **Purpose:** Prove that predicting one's own latents recovers hierarchical PCFG structure with exponentially fewer samples than token-level SSL
- **Scale:** RHM synthetic: ILC k-means L=5 s=3 v=8; SLC L=4 s=3 v=10 and L=3–7; data2vec L=4 s=2 v=16, 8-layer transformer d=2048, ~1000 H100 hours
- **Time period:** 2026-05-26 (arXiv 2605.27734 v1); 10 pages main / 28 pages all. HF paper publishedAt 2026-05-26.

## From the source (fetched 2026-10-03)

- **Published:** May 26, 2026 (arXiv)
- **arXiv categories:** cs.LG (arXiv)
- **Author comment:** 10 pages, 5 figures in main. 28 pages, 14 figures, 1 table in all (arXiv)
- **Citations:** 1 (Semantic Scholar)
- **References:** 65 (Semantic Scholar)

## Abstract

Generative models, from diffusion models to large language models, achieve remarkable performance but at a cost in training data orders of magnitude larger than what biological learners require. An alternative paradigm has emerged in which networks are trained to predict their \emph{own} latent representations of related views or masked regions, as in data2vec and JEPA -- an idea related to predictive-coding accounts of the cortex. Despite strong empirical results, the theoretical understanding of these methods remains limited. Central questions include: by how much does latent prediction actually improve data efficiency? Is there a benefit to stacking such methods into multi-scale hierarchies? We answer both using as data a tractable probabilistic context-free grammar that captures the compositional structure of natural language and images. Such a grammar generates strings of visible tokens by recursively applying production rules along a tree of hidden symbols of depth $L$. For such data, supervised or token-level SSL require a number of samples \emph{exponential} in $L$ to recover the latent tree; we prove that latent prediction achieves this with a number of samples \emph{constant} in $L$, up to logarithmic factors. We confirm this bound with (i) a hierarchical clustering algorithm, (ii) an end-to-end neural network whose predictor-clusterer modules predict their own latents at each level via gradient descent, and (iii) the first sample-complexity analysis of data2vec, which we show implicitly performs hierarchical latent prediction. This suggests that explicit stacking such as H-JEPA is largely redundant.

## Research notes

- Primary: arxiv abs (cs.LG). CC BY 4.0 on abs HTML. EPFL / Cambridge DAMTP / JHU; equal contrib Korchinski/Favero. Correspondence daniel.korchinski@epfl.ch, af940@cam.ac.uk, matthieu.wyart@epfl.ch. No official code on abs. HF paper page 3 upvotes. Discord posted abs. Synthetic RHM only; no datasets_local row.

## Similar entries

- [Self-Supervised Learning from Images with a Joint-Embedding Predictive Architecture](https://papers.projxon.ai/entries/571) (paper, #571)
- [D-JEPA: A Decision-Aligned Latent World Model](https://papers.projxon.ai/entries/1224) (paper, #1224)
- [Awesome JEPA (AbdelStark/awesome-jepa)](https://papers.projxon.ai/entries/873) (code, #873)
- [AD-E2E-JEPA: A Joint-Embedding Predictive Architecture For End-to-End Autonomous Driving](https://papers.projxon.ai/entries/787) (paper, #787)
- [Self-Play Pretraining with Zero Data](https://papers.projxon.ai/entries/1055) (paper, #1055)
- [K2 Horizon data release — DATA_NAVIGATOR index and the post-training data-generation pipelines](https://papers.projxon.ai/entries/1443) (tool, #1443)
