TL;DR
Self-supervised models often force data representations into neat, uniform spheres (isotropic Gaussians) to prevent everything from collapsing into a single point. This paper shows that forcing such rigid symmetry can severely clash with the natural geometry of real-world tasks—and proposes fixing it by borrowing classical physics. Instead of dictating where data points must sit, HamJEPA treats views of an image as physical states with position and momentum, predicting transitions between them using Hamiltonian dynamics.
What Problem Does This Paper Address?
In self-supervised learning (SSL), Joint Embedding Predictive Architectures (JEPAs) learn by taking two different views of the same input (say, two crops of an image) and training an encoder and predictor so that the representation of one view can predict the representation of the other.
The notorious catch in JEPAs is representation collapse: the easiest way for a network to make two embeddings match is to map every single image in existence to zero. To prevent this, recent approaches like LeJEPA (using an objective called SIGReg) force the cloud of embeddings to look like an isotropic Gaussian—essentially a perfectly symmetrical, multi-dimensional sphere where every direction has equal variance.
Assuming "no direction is special" sounds like a harmless default when you don't know what downstream tasks your model will face. The author asks a foundational question: Is Euclidean isotropy actually benign? As it turns out, when data has underlying structure (like grids of image patches, sequences, or graphs), squishing embeddings into a uniform ball carries a steep mathematical penalty. Worse, when the downstream task geometry is unknown, no fixed shape is universally safe.
Methods
Because no single static embedding shape works for all tasks, the author shifts the structural bias away from the encoder's output distribution and puts it into how views transition into one another. Enter HamJEPA, which marries representation learning with classical mechanics:
- Phase-Space Encoding: Instead of mapping an image view to a standard vector $z$, the encoder outputs a physical phase-space state $(q, p)$. Here, $q$ represents the observable "content" (position), and $p$ acts as an auxiliary "momentum" variable that facilitates transitions between views.
- Symplectic Leapfrog Predictor: To predict view B from view A, HamJEPA doesn't just use a generic neural network. It defines a learnable potential energy function $V_\phi(q)$ alongside standard kinetic energy $\frac{1}{2}\|p\|_2^2$, and evolves the state $(q, p)$ forward in "time" using a leapfrog integrator—a classic numerical method from physics. Because it obeys Hamiltonian mechanics, this predictor is symplectic, meaning it naturally preserves phase-space volume and is time-reversible (you can run it backward with $-\Delta t$ to get right back where you started).
- Non-Isotropic Anti-Collapse: Because volume-preserving transitions alone don't stop the encoder itself from collapsing all inputs to a point, HamJEPA adds standard scale budgets and spectral floors (penalizing collapsed eigenvalues). Crucially, these act like guardrails rather than a mold: they keep the representation spread out while allowing it to be anisotropic (stretched or skewed) as the data demands.
Datasets
The paper evaluates representations on two standard vision benchmarks—CIFAR-100 and ImageNet-100—without introducing new datasets. Notably, the author uses a deliberately stripped-down, "headless" protocol: no projection heads, no exponential moving average (EMA) teachers, and no multi-crop tricks. While underpowered compared to state-of-the-art engineering recipes, this minimal setup cleanly isolates the mathematical behavior of the objective functions.
Key Insights and Ideas
- The "Price of Isotropy" is real—and unfixable by static shapes: If a downstream task favors a specific structured geometry $H$, forcing embeddings into an isotropic sphere degrades worst-case task variance by up to a factor of $d$ (the embedding dimension). Furthermore, you can't just guess a better static shape; any fixed covariance target can be maximally misaligned with an unknown task.
- Marginals don't define transitions: Even if an oracle handed you the exact optimal shape for your embedding cloud, there are infinitely many ways to map view A to view B while preserving that cloud's overall shape. Marginal regularization leaves the core JEPA prediction problem underdetermined.
- Physics emerges naturally from basic symmetries: Under a linear Gaussian setup, if you ask for a continuous predictive flow that preserves the distribution, respects fixed-unit kinematics ($\dot{Q} = P$), and is reversible when you flip momentum, Hamiltonian dynamics isn't just a quirky metaphor—it is the unique mathematical solution.
- A humble plot twist in the ablations: When testing parameter-matched controls that broke symplecticity or time-reversibility (while keeping volume preservation and phase-space splitting), the models still performed just as well! This suggests the gains come from the broader recipe—phase-space splitting, structured force-field steps, and flexible anti-collapse floors—rather than strict symplectic geometry alone.
Key Results
Evaluated via frozen $k$-Nearest Neighbors ($k$NN@20) and linear probing against the isotropic SIGReg baseline:
- CIFAR-100 (80 epochs, 2 seeds): Using just the 1024-d $q$ coordinate, HamJEPA beats the full 2048-d SIGReg baseline by +7.24 points on $k$NN@20 (34.74% vs. 27.50%) and +9.67 points on linear probing (43.88% vs. 34.21%).
- ImageNet-100 (45 epochs, 1 seed): The 1024-d HamJEPA-$q$ readout improves over SIGReg-$q$ by +4.82 points on $k$NN@20 (24.92% vs. 20.10%) and +7.52 points on linear probing (31.92% vs. 24.40%), even outperforming the concatenated 2048-d SIGReg vector.
- Richer Geometry: Covariance diagnostics show HamJEPA utilizes far more of its embedding space, boosting effective rank on ImageNet-100 from $\approx 38.3$ (SIGReg-$q$) to $\approx 94.7$ without forcing spherical uniformity.
Limitations and Future Work
The author is refreshingly candid about what this work is and isn't. First, it is a controlled geometric study, not a state-of-the-art SSL recipe; how HamJEPA interacts with modern heavyweights (projection heads, EMA teachers, multi-crop) remains untested. Second, the ImageNet-100 results rely on a single random seed, and SIGReg is the sole external baseline. Finally, because non-symplectic and non-reversible controls matched HamJEPA's accuracy, pinpointing exactly which dynamical property drives the representation improvement—and attempting to explicitly learn the downstream geometry $H$—are wide-open avenues for future work.
Summary updated