Manuscript Offprint
arXiv:2611.08989LEF-JEPA: Denoising-Trained Latent Energy Fields for Spatial Representation Learning
Zhiyuan Liu Zhihao Xu Sicheng Liu Huanhuan Huang
Qinous Technology Co., Ltd Tsinghua University

Figure 1. Recognizable object structure within coherent spatial regions. In the PCA visualizations, V-JEPA2 produces relatively coarse-grained representations in which object shapes and boundaries are not clearly delineated; V-JEPA2.1 recovers more local structure but also retains more texture and color variation. In contrast, LEF-JEPA preserves recognizable object shapes and boundaries while forming more coherent spatial regions (a). Bright colors indicate larger representational differences between adjacent patches in the PCA subspace, whereas dark colors indicate locally smoother regions. Bright responses are more broadly distributed for V-JEPA2.1, whereas for LEF-JEPA they concentrate around contours and structural boundaries (b).
Abstract
A joint-embedding predictive architecture (JEPA) that applies prediction supervision only at masked positions struggles to clearly capture object shapes and boundaries in its latent representations. We further observe that some existing methods improve spatial structure while also retaining rich variations in texture and color. However, preserving more low-level visual information does not necessarily make representations better suited to prediction and action. This raises a key question: how can we strengthen the spatial structure in latent representations that supports prediction and action without over-encoding these details? We introduce LEF-JEPA, which learns spatial structure through target-guided latent recovery and transfers this supervision to the visual encoder through a relative-energy constraint; the energy module is used only during pretraining
and adds no inference overhead. To reduce the cost of energy optimization during pretraining, we further construct a conditional Ising Hamiltonian that allows low-energy-state search to be performed by specialized Ising solvers. On physical hardware, we validate the feasibility of achieving lower forward latency with fewer local updates. Under a unified CIFAR-10 pretraining and frozen-encoder evaluation protocol, both realizations outperform V-JEPA2.1 in image classification, foreground segmentation, and visual planning.
1. Introduction
Visual world models need to preserve the scene geometry required for prediction and action. The Joint-Embedding Predictive Architecture (JEPA) uses features extracted by an encoder as prediction targets without encoding every pixel-level detail in the observation [9, 21]. As JEPA applications extend from image-level recognition to pixel-level scene parsing and action-conditioned planning [4, 23, 24, 26, 27],
Equal contribution.
Corresponding author: Zhiyuan Liu (liuzhiyu22@mails.tsinghua.edu.cn).
high-level semantics alone no longer suffice: segmentation requires clear object boundaries, while planning depends on spatial layout and relations among objects. Visual encoders must therefore preserve the local spatial structure required for prediction and action while forming high-level semantics.
However, when predictive supervision is applied only to masked positions, JEPA struggles to clearly capture object shapes and boundaries in latent representations [23]. The V-JEPA2 features in Figure 1(a) form coarse regions in which object contours and internal parts are weakly distinguished. V-JEPA2.1 strengthens dense prediction and multi-level self-supervision to improve the representation of spatial structure [23]. We further observe that this improvement is accompanied by rich texture and color variations: the local-roughness responses in Figure 1(b) are broadly distributed across object interiors and backgrounds. Preserving more appearance detail does not necessarily make representations better suited to prediction and action. The key question is therefore how to strengthen the spatial structure in latent representations that supports prediction and action without requiring detailed encoding of low-level visual information.
We use spatial-structure cues in multi-level target representations to guide the local recovery of perturbed latent representations. However, even if the recovered representations capture these cues, the visual encoder's direct outputs may not retain the corresponding spatial information. Because downstream tasks directly use encoder representations, the supervision provided by the recovery process must be transferred to the encoder during pretraining, so that downstream tasks do not depend on iterative recovery at test time [12].
Accordingly, we introduce LEF-JEPA, which augments masked prediction with target-guided latent energy learning. It uses multi-level targets to learn local recovery directions for perturbed representations and transfers this structural supervision to the visual encoder through a relative-energy constraint. The two training paths are decoupled, so encoder updates do not backpropagate through the multi-step recovery process; the energy module is used only during pretraining and therefore adds no downstream inference overhead.
To explore more efficient energy learning during pretraining, we further construct a conditional Ising Hamiltonian that enables LEF-JEPA to interface with specialized Ising solvers. Unlike prior work that primarily uses physical Ising devices for sampling in generative models [8, 30], we incorporate physical low-energy-state search into self-supervised pretraining and validate this closed-loop training process on a physical photonic coherent Ising machine (CIM).
We conduct self-supervised pretraining on CIFAR-
10 [18] and freeze the encoders for image classification, out-of-distribution transfer to PartImageNet [13] foreground segmentation, and Two-Room visual planning. Across ViT-S and ViT-B, LEF-JEPA breaks the observed tradeoff between semantic and spatial capability. The continuous neural field achieves the strongest ViT-S foreground segmentation, whereas the Ising realization solved on a physical CIM requires only a single local update step () and lower pretraining latency while attaining the strongest classification and visual planning results at both scales, together with the strongest ViT-B foreground segmentation.
The contributions of this work are:
-
Target-guided latent energy field: Using structural cues from multi-level targets to learn local recovery directions for perturbed representations. The energy field is used only during pretraining and adds no inference overhead.
-
Decoupled dual-path energy training: Sharing one energy function while updating the energy field and encoder separately. The encoder receives supervision through a one-sided relative-energy constraint without backpropagating through multi-step recovery.
-
Hardware-accelerated Ising realization: Formulating a conditional Ising Hamiltonian compatible with specialized Ising quantum hardware and validating the closed training loop on a physical CIM, using a single update to accelerate and improve self-supervised representation learning.
2.1. Latent Prediction and Spatial Representation Learning
I-JEPA uses visible regions within a single image to predict features of masked regions [3]; V-JEPA extends this task to video, using spatiotemporal context to predict features of masked video blocks [7]. V-JEPA2 extends this paradigm to an action-conditioned world model for visual planning, establishing a common foundation for recognition and control [4]. Causal-JEPA uses object-level latent masking to learn interaction-dependent object dynamics [24], while Temporal Straightening constrains latent-trajectory curvature to make the representation geometry better suited to planning [27]. Together, these works show that representations for prediction and action should not only preserve spatial structure, but also emphasize information relevant to interactions and dynamics rather than indiscriminately encoding all low-level visual information in the observations.
Recent work designs training constraints around local features and their spatial relations to improve performance on tasks such as segmentation and depth estimation. V-JEPA2.1 supervises both visible and masked tokens at multiple encoder depths [23]. Because it likewise uses multi-level targets but applies supervision through direct regression, it provides the closest regression-based counterpart to the energy formulation of LEF-JEPA. DINOv3, meanwhile, introduces Gram anchoring to preserve pairwise similarities among local features over long training schedules [25]. Together, these approaches strengthen the encoder's ability to extract structured spatial information from pixel observations, showing that local spatial relations benefit from constraints beyond standard masked prediction. Another line of work regularizes global consistency and distributional shape in latent representations. LeVJEPA combines global-local video-view consistency with SIGReg, allowing semantically organized regions to emerge even though the loss reads only clip-level embeddings [19]. VISReg decouples embedding scale from distributional shape through variance and Sliced-Wasserstein constraints [28]. Explicit geometric information can also serve as pretraining supervision: LingBot-Vision uses online subpixel boundary detection to guide masked prediction [11]. Unlike explicit boundary detection or dense token regression, LEF-JEPA uses multi-level target representations to supervise a conditional energy field in learning local recovery directions for perturbed representations, then transfers the supervision provided by recovery to the visual encoder through a one-sided relative-energy constraint.
2.2. Energy Learning and Physical Ising Solvers
Energy-based models (EBMs) formulate inference and prediction as the search for low-energy configurations [22]. This principle has been applied to state-space trajectory planning [10], token-level associative-memory updates in Energy Transformer [14], and iterative test-time refinement of candidate predictions in Energy-Based Transformers [12]. Within JEPA-based representation learning, EB-JEPA defines latent prediction error itself as energy and combines it with VICReg [6] or SIGReg [5] to avoid representation collapse [26]. LEF-JEPA does not redefine the prediction loss as energy or require iterative gradient descent at inference. It retains standard masked prediction and introduces an auxiliary conditional energy mechanism only during pretraining. The energy-field objective learns local recovery directions guided by multi-level targets, while the one-sided relative-energy constraint transfers this supervision to the visual encoder without backpropagating through the multi-step recovery process during encoder updates.
Beyond direct parameterization by continuous neural networks, conditional energy landscapes can also be constructed with discrete spin models. The central challenge is to search low-energy states efficiently and convert them into training gradients. Neural Boltzmann Machines, for example, generate the parameters of a restricted Boltzmann model from context and analytically marginalize hidden units to obtain conditional free energy, yet still rely on
Markov chain Monte Carlo (MCMC) sampling on classical architectures to estimate generative-likelihood gradients [20]. To overcome the efficiency bottleneck of software sampling, specialized physical Ising solvers—including superconducting quantum annealers such as D-Wave that exploit quantum tunneling [16, 17] and coherent Ising machines (CIMs) based on coupled optical oscillators [15, 29]—use the natural evolution of physical systems for high-speed search over low-energy spin configurations. Existing machine-learning studies that employ physical Ising hardware, whether through quantum-annealing sampling [1, 2] or noise-injected optoelectronic sampling [8], primarily treat it as a Boltzmann sampler for estimating negative-phase statistics in generative models and do not directly turn discrete hardware samples into gradients with respect to continuous visual representations. LEF-JEPA instead extends physical Ising solving from generative-likelihood estimation to self-supervised visual representation learning. Its conditional Ising Hamiltonian incorporates low-energy-state search into pretraining, allowing specialized Ising solvers to participate in latent-space energy learning.
3. Method
LEF-JEPA augments masked latent prediction with target-guided conditional energy learning over visible tokens. To endow the visual encoder with spatial coherence without iterative correction at inference, two complementary processes are connected through a shared energy function. The Energy Field Loss () supervises local correction displacements of perturbed representations to shape the energy landscape. The Encoder Energy Loss () encourages online representations to lie below the energy of a multi-level target reference, so that the learned structure is reflected in encoder representations. The objectives share the energy function, but their gradients follow strictly separated parameter paths. Figure 2 summarizes the complete framework.
3.1. Masked Latent Prediction
Let denote the visible and masked patch-position sets of image . The online encoder encodes the visible patches , while the masked predictor predicts latent representations at the masked positions . The target encoder processes the unmasked view to provide supervision; its parameters are updated by an exponential moving average (EMA) of the online encoder and receive no gradients. With denoting a target patch token, the Masked Prediction Loss is

Figure 2. Overview of LEF-JEPA. (a) Visible tokens from the online encoder are partitioned into disjoint candidate and anchor sets. The anchors condition the latent energy landscape over perturbed candidate representations. Multi-level target representations both supervise the displacement induced by energy-gradient updates () and provide the target-energy reference for visual-encoder supervision (), together with the masked-prediction objective (). (b) The neural energy realization contextualizes candidate representations with multi-level anchors and aggregates the energy contribution of each token. (c) The conditional Ising realization predicts Hamiltonian coefficients (), invokes a physical photonic CIM to search for low-energy spin states, and differentiably rescores them to form a smooth scalar energy.
3.2. Target-Guided Spatial Objects
To model spatial relations among visible patches, we construct three representations over : candidate states to be corrected, contextual conditions , and a multi-level target reference . The visible positions are partitioned into disjoint candidate and anchor sets and , with and . These sets select and from the online encoder and from the target encoder.
A central requirement is that the energy remain sensitive to relative spatial variation across patches while keeping feature scale calibrated. Standard token-wise normalization removes relative magnitude differences between object boundaries and interior regions. We instead use contrast-preserving spatial normalization. Given the patch tokens of one image, , we subtract the spatial mean to remove the component shared by the full image, then scale all tokens by a single RMS factor computed jointly over positions and channels:
All positions share this RMS scalar, preserving their relative spatial salience. For a transformer of depth with selected intermediate layers , the clean online candidate source
and multi-level anchor condition are
To make combine mid-level geometry with high-level semantics, let denote the selected target-encoder layers and their fusion weights. Each layer is spatially normalized over to align feature scales across depths; the layers are then fused, normalized again, and restricted to the candidate positions :
Here, conditions , while supervises and provides the reference state in .
3.3. Learning a Reachable Latent Energy Field
For the neural energy parameterization, a Conditional Energy Transformer parameterizes the scalar energy . Self-attention models interactions among candidate states in , while cross-attention conditions them on the multi-level anchors in . A token-wise linear head shared across positions maps each contextualized candidate token to a local contribution , which are summed to obtain
To shape the local landscape around the data manifold, the clean candidate representation is perturbed by scale-preserving Gaussian corruption:
where denotes the corruption magnitude. Starting from , we perform clipped descent updates on the energy surface,
where clips the gradient RMS of each sample to at most , limiting the RMS displacement of one update to . Let be the ideal recovery vector, its distance, and its RMS-normalized direction.
Requiring to reach within steps would demand a per-step RMS of . Under stronger corruption, may exceed the distance attainable by a clipped update and would therefore distort the desired energy gradient. We use a reachable-displacement schedule that restricts the supervised step size to a fraction of the maximum update:
If the required per-step displacement does not exceed the permitted supervised step size , the cumulative supervised displacement at step covers the full recovery path from to ; otherwise, each step uses the maximum permitted magnitude and constructs the supervised displacement along the direction from toward . The Energy Field Loss matches the cumulative displacement induced by the energy updates, , to :
Supervising cumulative displacement rather than absolute state trains the energy field to point toward at each step without requiring an intermediate to equal the target. Both and are stop-gradient inputs in , so this path updates only the energy parameters . Because each updated state depends on , optimizing requires backpropagating through these energy-gradient updates and therefore involves mixed second-order derivatives with respect to the state and energy parameters; automatic differentiation computes only the required Hessian-vector products without explicitly forming the full Hessian.
3.4. Relative-Energy Supervision for the Encoder
The visual encoder must translate the learned structural preference into its feed-forward representations so that its output already occupies a coherent low-energy region. Minimizing in isolation provides no sample-specific reference and admits trivial collapse of the energy scale. Because the multi-level target represents an uncorrupted, structurally coherent configuration under the same context , LEF-JEPA evaluates and with the same energy function and uses the target energy as a sample-specific comparison reference. Let denote energy normalized by the number of candidate positions. A smooth one-sided objective defines the Encoder Energy Loss:
Here, controls the smoothness of the penalty. The softplus places the strongest pressure on positive relative-energy gaps and progressively attenuates once falls below . It neither forces nor requires the two scalar energies to match; instead, it constrains to the low-energy side defined by the target reference. In , the energy parameters, the explicit anchor condition , and the target representation are stop-gradient. The loss updates the visual encoder through , without differentiating through the -step recovery process. Since is normalized using statistics shared across all visible tokens, the resulting encoder gradient remains spatially coupled across visible positions.
The parameter-specific objectives are
where balances the encoder energy constraint with the masked-prediction objective; after pretraining, the auxiliary energy module is discarded entirely.
3.5. Conditional Ising Energy for Specialized Ising Solvers
This Hamiltonian form is natively compatible with specialized Ising solvers, including superconducting quantum annealers and coherent Ising machines. In this work, we integrate a physical coherent Ising machine (CIM) into the closed training loop to solve hardware-compatible Hamiltonians and return a pool of low-energy states. A coefficient network maps to unary biases and symmetric pairwise couplings with zero diagonal, defining a Hamiltonian over logical binary spins:
Each forward evaluation connects discrete physical search with continuous backpropagation in four stages: (i) a classical network predicts continuous coefficients ; (ii) the

Figure 3. Patch-token PCA on CIFAR-10 samples. LEF-JEPA produces coherent regions aligned with object extent and boundaries. PCA is fitted independently per image, so colors are not comparable across methods.
photonic CIM searches the quantized Hamiltonian and returns a compact pool of low-energy spin configurations; (iii) the discrete states are rescored by the original, differentiable coefficients; and (iv) a truncated soft minimum aggregates the pool into a smooth conditional scalar energy,
During differentiation, each is held fixed as a structural anchor, while gradients propagate through to the latent representation . Aggregating the low-energy pool in Eq. (13) smooths changes between competing low-energy configurations.
Within a trajectory of energy updates, the physical CIM is queried only at the initial perturbed state ; the returned pool is reused for all local updates. The number of physical calls is therefore with respect to . For , separate low-energy pools are queried for and , and their energies are compared through Eq. (10). The photonic solver thus supplies global discrete low-energy candidates that enter self-supervised representation learning through differentiable rescoring.
4. Experiments
4.1. Experimental Settings
Unified pretraining setup and energy realizations. To compare architectures under matched conditions, all meth-
ods pretrain their visual encoders from scratch with self-supervision on unlabeled CIFAR-10 [18]. Despite the input resolution, we use patches, producing a dense spatial token grid (256 tokens per image) that provides fine-grained spatial sampling for modeling object contours and local structure. We evaluate two realizations of our framework: LEF-JEPA with neural scalar energy, and LEF-JEPA-CIM with a conditional Ising Hamiltonian solved by a physical photonic CIM. For each energy realization, and are selected according to linear-classification accuracy on a fixed 5,000-image validation subset of the CIFAR-10 training split and then fixed for all subsequent downstream evaluations. Hardware specifications, quantization protocol, solver timing, and hyperparameter-selection details are provided in the supplementary material.
Frozen-encoder evaluation at three task granularities. After pretraining, each visual encoder is frozen and evaluated at three levels. CIFAR-10 linear classification measures in-distribution global semantics and reports top-1 accuracy. Out-of-distribution dense transfer to PartImageNet [13] trains a linear foreground-segmentation head on frozen patch tokens and reports foreground IoU. Action-conditioned spatial planning is evaluated through goal-reaching trajectories in the continuous Two-Room environment.
Table 1. Frozen-encoder transfer across classification, foreground segmentation, and visual planning. Results aggregate three independently pretrained encoders; classification accuracy and foreground IoU are reported as mean ± standard deviation across encoders. Each encoder is evaluated on 100 Two-Room episodes, and SR is the mean success rate across the three experiments, rounded to the nearest percentage point. Best and second-best within each backbone are bold and underlined.
| Method | ViT-S | ViT-B | ||||
|---|---|---|---|---|---|---|
| Acc. (%) ↑ | Fg. IoU (%) ↑ | SR (%) ↑ | Acc. (%) ↑ | Fg. IoU (%) ↑ | SR (%) ↑ | |
| V-JEPA2 [4] (no LEF) | 89.40 ± 0.025 | 53.54 ± 0.037 | 65 | 89.51 ± 0.024 | 64.29 ± 0.038 | 73 |
| EB-JEPA [26] | 81.49 ± 0.040 | 60.29 ± 0.089 | 59 | 85.89 ± 0.017 | 71.15 ± 0.007 | 72 |
| V-JEPA2.1 [23] | 83.99 ± 0.024 | 65.30 ± 0.012 | 53 | 88.77 ± 0.005 | 67.47 ± 0.045 | 77 |
| LEF-JEPA-CIM | 91.80 ± 0.005 | 68.44 ± 0.039 | 79 | 92.27 ± 0.010 | 72.11 ± 0.044 | 86 |
| LEF-JEPA | 91.63 ± 0.016 | 70.04 ± 0.040 | 71 | 92.17 ± 0.009 | 71.44 ± 0.021 | 84 |
4.2. Joint Semantic and Spatial Gains
Latent organization and cross-task generalization. Table 1 shows that on ViT-S, V-JEPA2.1 improves foreground IoU over V-JEPA2 by 11.76 points but reduces classification accuracy and planning success by 5.41 and 12 points; EB-JEPA likewise improves segmentation while lowering classification. With frozen encoders and matched task heads, both LEF realizations outperform these baselines across both backbones and all three tasks. On ViT-B, for example, LEF-JEPA improves classification accuracy, foreground IoU, and planning success over V-JEPA2.1 by 3.40, 3.97, and 7 points, respectively.
Spatial representations and task visualizations. Patch-token PCA in Figure 3 shows that LEF-JEPA preserves clearer contours and internal structure than V-JEPA2; com-
pared with V-JEPA2.1, it responds less to local texture and color variations and forms more coherent object regions. The out-of-distribution PartImageNet samples exhibit more complete foreground masks, with fewer spills and holes around narrow structures (Figure 4); in the shown Two-Room trajectories, both LEF realizations pass through the doorway and reach the goal region (Figure 5).

Figure 4. Spatial representations and foreground segmentation on PartImageNet. Each method is shown with patch-token PCA and foreground predictions. Green, red, and blue denote true positives, false positives, and false negatives. LEF-JEPA yields more complete masks and sharper boundaries.

Figure 5. Two-Room planning trajectories. Each column fixes the same task across methods. Yellow, green, cyan, and red denote the start, goal, executed path, and final state.
Neural-energy and physical-Ising realizations. As shown in Table 1, the two realizations shape representation geometry in fundamentally different ways through a continuous gradient field and a discrete-spin Hamiltonian. In continuous latent space, LEF-JEPA accumulates local recovery displacements through iterative descent (). This fine-grained continuous guidance is particularly important for dense boundary parsing with the smaller ViT-S, yielding the highest foreground IoU of 70.04%. In contrast, LEF-JEPA-CIM casts local correction as a combinatorial low-energy search on a physical CIM: discrete spin couplings naturally filter fine-grained local texture and color fluctuations, directly providing a region-level consistency constraint. Consequently, with a single local update (), LEF-JEPA-CIM efficiently guides the encoder, attaining the strongest global classification and spatial planning results on both backbones. On ViT-B, LEF-JEPA-CIM further outperforms LEF-JEPA and achieves the highest foreground IoU of 72.11%.

Figure 6. Effect of the number of energy-gradient updates on pretraining latency and downstream transfer. Each CIM trajectory uses one physical solve and reuses its low-energy state pool across all updates. CIM latency excludes cloud communication and queueing; bars report means over three independently pretrained encoders.
4.3. Ablation Studies
4.3.1. Number of Energy-Gradient Updates
Figure 6 compares the effect of the number of energy-gradient updates on pretraining latency and downstream transfer. Even with a single update (), both energy realizations improve segmentation and planning over the energy-free V-JEPA2 baseline. For continuous neural energy, attains the highest foreground IoU on both backbones and provides a more balanced cross-task profile; increasing to further improves classification accuracy but does not further improve segmentation or planning performance.
In contrast, LEF-JEPA-CIM favors a shallower update depth: gives the best results on all three tasks for ViT-B, while classification and planning are likewise best at for ViT-S. Because the physical CIM is queried only once at the initial state and subsequent updates reuse the same low-energy spin pool, increasing primarily repeats rescoring and yields no consistent gain.
4.3.2. Weight of the Relative-Energy Constraint
Table 2 compares the effect of different values on downstream transfer with ViT-S, where LEF-JEPA and LEF-JEPA-CIM use and , respectively. This coefficient controls the strength of the encoder energy constraint relative to the masked-prediction objective .
As shown in Table 2, the task-specific optima do not coincide for continuous energy: attains the highest foreground IoU while maintaining strong overall performance in classification and planning. For LEF-JEPA-CIM, yields the highest classification accuracy and foreground IoU while retaining 79% planning success. Increasing the coefficient to 0.05 raises planning success to 81% but substantially reduces classification and segmentation. Overall, both realizations show clear sensitivity to the constraint strength, and an overly strong relative-energy constraint degrades classification and segmentation perfor-
Table 2. Encoder-energy coefficient ablation with ViT-S. LEF-JEPA uses , whereas LEF-JEPA-CIM uses . Classification and foreground IoU are mean standard deviation across three independently pretrained encoders; each encoder is evaluated on 100 Two-Room episodes, and SR is averaged across the three runs and rounded to the nearest percentage point. Bold marks the best result within each realization.
| LEF-JEPA | LEF-JEPA-CIM | |||||||
|---|---|---|---|---|---|---|---|---|
| Acc. (%) | Fg. IoU (%) | SR (%) | Acc. (%) | Fg. IoU (%) | SR (%) | |||
| 0.001 | 92.40 .010 | 69.20 .014 | 69 | 89.09 .026 | 66.67 .024 | 79 | ||
| 0.005 | 91.63 .016 | 70.04 .040 | 71 | 91.80 .005 | 68.44 .039 | 79 | ||
| 0.009 | 84.04 .050 | 61.11 .060 | 80 | 0.005 | 71.82 .054 | 47.19 .083 | 53 | |
| 0.05 | 39.38 .070 | 31.66 .014 | 0 | 0.05 | 68.25 .032 | 48.83 .013 | 81 | |
mance.
5. Conclusion
This work shows that latent representations for world modeling should not only recover the spatial structure of objects, but also avoid overemphasizing low-level visual information, such as texture and color, that is not always necessary for prediction and action. Through target-guided latent recovery and relative-energy supervision, LEF-JEPA enables frozen representations to benefit jointly across image recognition, cross-domain foreground segmentation, and visual planning without adding downstream inference overhead. Our experiments further show that this energy learning framework can be realized either by a continuous neural network or by coupling a conditional Ising Hamiltonian to a physical CIM; the latter retains strong cross-task performance with a shallow local-update horizon. Overall, the results show that structure learning in latent space need not rely on the pointwise modeling of low-level visual information such as texture and color; instead, local recovery and energy relations can organize the spatial structure required by downstream tasks. Future work will explore the applicability and efficiency of this mechanism in long-video world models and on larger-scale specialized Ising solvers.
References
[1] Steven H. Adachi and Maxwell P. Henderson. Application of quantum annealing to training of deep neural networks. arXiv preprint arXiv:1510.06356, 2015.
[2] Mohammad H. Amin, Evgeny Andriyash, Jason Rolfe, Bohdan Kulchtyskyy, and Roger Melko. Quantum boltzmann machine. Physical Review X, 8(2):021050, 2018.
[3] Mahmoud Assran, Quentin Duval, Ishan Misra, Piotr Bojanowski, Pascal Vincent, Michael Rabbat, Yann LeCun, and Nicolas Ballas. Self-supervised learning from images with a joint-embedding predictive architecture. In CVPR, pages 15619–15629, 2023.
[4] Mido Assran, Adrien Bardes, David Fan, Quentin Garrido, et al. V-JEPA 2: Self-supervised video models enable understanding, prediction and planning. arXiv preprint arXiv:2506.09985, 2025.
[5] Randall Balestriero and Yann LeCun. LeJEPA: Provable and scalable self-supervised learning without the heuristics. arXiv preprint arXiv:2511.08544, 2025.
[6] Adrien Bardes, Jean Ponce, and Yann LeCun. VICReg: Variance-invariance-covariance regularization for self-supervised learning. In ICLR, 2022.
[7] Adrien Bardes, Quentin Garrido, Jean Ponce, Xinlei Chen, Michael Rabbat, Yann LeCun, Mido Assran, and Nicolas Ballas. Revisiting feature prediction for learning visual representations from video. Transactions on Machine Learning Research, 2024. Featured Certification.
[8] Fabian Böhm, Diego Alonso-Urquijo, Guy Verschaffelt, and Guy Van der Sande. Noise-injected analog ising machines enable ultrafast statistical sampling and machine learning. Nature Communications, 13:5847, 2022.
[9] Anna Dawid and Yann LeCun. Introduction to latent variable energy-based models: A path towards autonomous machine intelligence. arXiv preprint arXiv:2306.02572, 2023.
[10] Yilun Du, Toru Lin, and Igor Mordatch. Model-based planning with energy-based models. In Conference on Robot Learning, pages 374–383, 2020.
[11] Zelin Fu, Bin Tan, Changjiang Sun, Shaohui Liu, Kecheng Zheng, Yinghao Xu, Xing Zhu, Yujun Shen, and Nan Xue. Vision pretraining for dense spatial perception. arXiv preprint arXiv:2607.05247, 2026.
[12] Alexi Gladstone, Ganesh Nanduru, Md Mofijul Islam, Peixuan Han, Hyeonjeong Ha, Aman Chadha, Yilun Du, Heng Ji, Jundong Li, and Tariq Iqbal. Energy-based transformers are scalable learners and thinkers. In International Conference on Learning Representations, 2026.
[13] Ju He, Shuo Yang, Shaokang Yang, Adam Kortylewski, Xiaoding Yuan, Jie-Neng Chen, Shuai Liu, Cheng Yang, Qi-hang Yu, and Alan Yuille. PartImageNet: A large, high-quality dataset of parts. In ECCV, 2022.
[14] Benjamin Hoover, Yuchen Liang, Bao Pham, Rameswar Panda, Hendrik Strobelt, Duen Horng Chau, Mohammed J. Zaki, and Dmitry Krotov. Energy transformer. In NeurIPS, pages 27532–27559, 2023.
[15] Takahiro Inagaki, Yoshitaka Haribara, Koji Igarashi, et al. A coherent ising machine for 2000-node optimization problems. Science, 354(6312):603–606, 2016.
[16] Mark W. Johnson, Mohammad H. S. Amin, Suzanne Gildert, et al. Quantum annealing with manufactured spins. Nature, 473(7346):194–198, 2011.
[17] Tadashi Kadowaki and Hidetoshi Nishimori. Quantum annealing in the transverse Ising model. Physical Review E, 58 (5):5355–5363, 1998.
[18] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
[19] Lukas Kuhn, Lucas Maes, Giuseppe Serra, Quentin Le Lidec, Yann LeCun, Randall Balestriero, and Florian Buettner. LeVJEPA: Efficient & scalable video pretraining without the heuristics. arXiv preprint arXiv:2608.27395, 2026.
[20] Alex H. Lang, Anton D. Loukianov, and Charles K. Fisher. Neural boltzmann machines. arXiv preprint arXiv:2305.08337, 2023.
[21] Yann LeCun. A path towards autonomous machine intelligence. OpenReview Preprint, 2022.
[22] Yann LeCun, Sumit Chopra, Raia Hadsell, Marc'Aurelio Ranzato, and Fu Jie Huang. A tutorial on energy-based learning. In Predicting Structured Data. MIT Press, 2006.
[23] Lorenzo Mur-Labadia, Matthew Muckley, Amir Bar, Mido Assran, Koustuv Sinha, Mike Rabbat, Yann LeCun, Nicolas Ballas, and Adrien Bardes. V-JEPA 2.1: Unlocking dense features in video self-supervised learning. arXiv preprint arXiv:2603.14482, 2026.
[24] Heejeong Nam, Quentin Le Lidec, Lucas Maes, Yann LeCun, and Randall Balestriero. Causal-JEPA: Learning world models through object-level latent masking. In Proceedings of the 43rd International Conference on Machine Learning, pages 91808–91832. PMLR, 2026.
[25] Oriane Siméoni, Huy V. Vo, Maximilian Seitzer, Federico Baldassarre, Maxime Oquab, Cijo Jose, Vasil Khalidov, Marc Szafraniec, Seung Eun Yi, Michael Ramamonjisoa, Francisco Massa, et al. DINov3. Transactions on Machine Learning Research, 2026.
[26] Basile Terver, Randall Balestriero, Megi Dervishi, David Fan, Quentin Garrido, Tushar Nagarajan, Koustuv Sinha, Wancong Zhang, Mike Rabbat, Yann LeCun, and Amir Bar. A lightweight library for energy-based joint-embedding predictive architectures. arXiv preprint arXiv:2602.03604, 2026.
[27] Ying Wang, Oumayma Bounou, Gaoyue Zhou, Randall Balestriero, Tim G. J. Rudner, Yann LeCun, and Mengye Ren. Temporal straightening for latent planning. In Proceedings of the 43rd International Conference on Machine Learning, pages 125168–125196. PMLR, 2026.
[28] Haiyu Wu, Randall Balestriero, and Morgan Levine. VIS-Reg: Variance-invariance-sketching regularization for JEPA training. arXiv preprint arXiv:2606.02572, 2026.
[29] Yoshihisa Yamamoto, Kazuyuki Aihara, Timothee Leleu, et al. Coherent ising machines—optical neural networks operating at the quantum limit. npj Quantum Information, 3: 49, 2017.
[30] Hongdong Zhu, Qi Gao, Yin Ma, Shaobo Chen, Haixu Liu, Fengao Wang, Tinglan Wang, Chang Wu, and Kai Wen. Kaiwu-PyTorch-Plugin: Bridging deep learning and photonic quantum computing for energy-based models and active sample selection. arXiv preprint arXiv:2602.19114, 2026.
Supplementary Material
A. Notation and Optimization Paths
A.1. Symbols
Table S1 collects the main notation used across the neural and Ising energy realizations. The symbol denotes the clean online candidate representation, whereas denotes a finite pool of Ising spin states; the different typefaces are intentional.
Table S1. Notation used in the main paper and supplement.
| Symbol | Meaning | Symbol | Meaning |
|---|---|---|---|
| Input image | Set of all patch positions | ||
| Visible and masked patch positions | Disjoint candidate and anchor subsets of | ||
| Online visual encoder | EMA-updated target encoder | ||
| Masked latent predictor | Online patch tokens at encoder layer | ||
| Spatial centering followed by one image-level RMS scaling | Clean online candidate representation | ||
| Multi-level online anchor condition | Multi-level target representation at candidate positions | ||
| Neural conditional scalar energy | Scale-preserving Gaussian perturbation of | ||
| Candidate state after energy-gradient updates | Number of energy-gradient updates | ||
| Update step size | Per-sample RMS threshold for clipping | ||
| Corruption magnitude | Reachable target displacement at update | ||
| Per-sample RMS gradient-clipping operator | Reachable fraction of the maximum clipped update | ||
| Reachable per-step RMS displacement | Smoothness scale of the one-sided Encoder Energy Loss | ||
| Energy normalized by | Neural and Ising energy parameters | ||
| Weight of update in the Energy Field Loss | Encoder Energy Loss weight | ||
| Masked Prediction Loss | Energy Field Loss | ||
| Encoder Energy Loss | Energy Field Loss weight | ||
| Conditional Ising Hamiltonian | Soft-min scalar energy over the state pool | ||
| Unary biases and pairwise Ising couplings | A logical Ising state with spins | ||
| Solver-proposed low-energy spin-state pool | Temperature of the truncated soft minimum |
A.2. Gradient routing
The two energy objectives share the same conditional energy function but assign it different optimization roles. Table S2 lists the trainable recipients of each loss. The Energy Field Loss treats , and as fixed and updates only the energy parameters. Its -step update graph retains , so backpropagation evaluates the required Hessian-vector products involving mixed second-order derivatives with respect to the state and energy parameters, without materializing a full Hessian. The Encoder Energy Loss freezes the energy parameters, the explicit anchor-condition branch, and the target representation. Gradients enter the online encoder through the source branch ; the shared visible-token centering and RMS statistics used to construct couple candidate and anchor positions. This separation prevents the unrolled energy-gradient updates from becoming an additional reconstruction path into the visual encoder.
Table S2. Gradient recipients for the three training objectives. A check mark indicates that the corresponding parameters are updated by that loss.
| Objective | Online encoder | Predictor | Energy |
|---|---|---|---|
| ✓ | ✓ | – | |
| – | – | ✓ | |
| ✓ | – | – |
A.3. Local-roughness visualization
The local-roughness maps in Figure 1 are computed from final-layer patch tokens without training a probe. For each image, we fit PCA independently and retain the first three components. Let be the projected coordinate at patch position , let denote its spatially centered value, and define the image-level RMS-normalized coordinate
The local roughness at is the mean squared difference to its available horizontal and vertical one-patch neighbors:
where contains the valid four-neighborhood positions. Thus, bright responses indicate a stronger local change in the three-dimensional PCA field. All methods use the same fixed visualization range .
A.4. Pretraining hyperparameters
Table S3 summarizes the hyperparameters used in the main pretraining experiments. Batch sizes are per device. The online optimizer jointly updates the visual encoder and masked predictor, while a separate optimizer updates the energy module.
Table S3. Pretraining hyperparameters for the two energy realizations.
| Hyperparameter | LEF-JEPA | LEF-JEPA-CIM |
|---|---|---|
| Corruption magnitude | ||
| Update step size | 0.1 | 0.1 |
| RMS clipping threshold | 1.0 | 1.0 |
| Reachable fraction | 0.8 | 0.8 |
| Pretraining epochs | 300 | 300 |
| Batch size (ViT-S / ViT-B) | 256/256 | 256/256 |
| Optimizer | AdamW (both) | AdamW (both) |
| Learning rate | (both) | (both) |
B. Datasets and Task Construction
B.1. CIFAR-10 pretraining and classification
CIFAR-10 contains 50,000 training images and 10,000 test images from ten object categories, each at resolution. Encoder parameters are optimized exclusively by self-supervised objectives over the complete CIFAR-10 training split. For hyperparameter selection, we use a fixed 5,000-image subset of the training split as the validation subset and fit a linear classifier on frozen representations from the remaining training images. We select and using the mean top-1 accuracy of three independently pretrained encoders on the validation subset. The selected hyperparameters are then fixed for all subsequent downstream evaluations. The online and target encoders receive the same augmented view. Augmentation comprises reflection-padded random cropping, horizontal flipping, and mild color jitter, applied with probabilities 0.5, 0.5, and 0.2, respectively. Within each encoder scale, all methods use the same augmentation, masking distribution, and number of pretraining epochs.
B.2. PartImageNet foreground transfer
PartImageNet provides dense part annotations for general object categories. The evaluation converts its whole-object annotation into a binary foreground/background target. The local release contains 20,466 training, 1,206 validation, and 2,408 test images. Images and masks are resized to using bilinear and nearest-neighbor interpolation, respectively. A patch is labeled foreground when at least half of its pixels belong to the annotated object. This conversion gives a target grid for a patch size of two pixels. The encoder remains frozen and only a shared two-class convolution is fitted over its final patch features.
B.3. Two-Room visual planning
Two-Room is a controlled environment containing an agent and a vertical wall with a traversable opening. Observations contain separate agent and wall channels. The image adapter renders these channels as RGB, resizes the result to .
Each predictor step consumes a block of five consecutive two-dimensional primitive actions. Training unrolls eight such blocks, corresponding to 40 primitive actions and nine latent states. Evaluation is open loop. Start and goal states are sampled as random pairs, and success is declared when the Euclidean state distance falls below 4.5 environment units.
C. Architecture and Pretraining Details
The baselines are V-JEPA2 as the direct no-energy control, EB-JEPA retrained through its official repository, and V-JEPA2.1 retrained from its open-source implementation under the same settings.
C.1. Network architecture and target representations
Table S4. Network architecture. The encoder, predictor, and energy network apply two-dimensional rotary position encoding to attention queries and keys.
| Component | Width | Blocks / heads | MLP |
|---|---|---|---|
| ViT-S encoder | 384 | 12 / 6 | 4 |
| ViT-B encoder | 768 | 12 / 12 | 4 |
| Masked predictor | 160 | 2 / 8 | 2 |
| Conditional energy Transformer | 160 | 2 / 4 | 4 |
The masked region is the union of eleven or twelve overlapping blocks, calibrated to an average masking ratio of approximately 50%. Visible positions are partitioned into candidate and anchor subsets at a 1:1 ratio using block-based spatial sampling, while retaining their original grid coordinates.
The target encoder is initialized from the online encoder and updated by EMA. Its momentum follows a cosine schedule from 0.996 to 0.9995, and target tokens are normalized without learnable affine parameters. The anchor condition uses online layers 6 and 9 with weights ; the target reference combines target layers 6, 9, and 12 with weights . Each layer is spatially centered and RMS-normalized before fusion, and the fused target representation is normalized once more.
Candidate features and each anchor level are projected from the encoder width to 160 dimensions. Each energy block contains candidate self-attention, cross-attention from candidate queries to the anchor keys and values, and an MLP. The two anchor levels extract conditional information separately before their outputs are fused. For LEF-JEPA, a shared scalar head is applied to the final normalized candidate features, and its position-wise contributions are summed to produce the conditional energy.
D. Conditional Ising and Physical CIM Implementation
D.1. Coefficient network and differentiable rescoring
The Ising realization first uses learned queries to extract descriptors for 16 logical spins from the candidate tokens. Each descriptor predicts a unary spin bias and is paired with the other spin descriptors to predict couplings , yielding an Ising Hamiltonian conditioned on the current visual representation.
Concretely, each is projected to a 64-dimensional vector . For every spin pair , and form the symmetric descriptor
A shared Pair MLP maps to the coupling using LayerNorm, , GELU, and . Because , its output satisfies ; the diagonal is set to zero.
Hardware-returned spin candidates are detached, rescored with the original floating-point Hamiltonian coefficients, and aggregated into a conditional energy using the truncated soft minimum defined in the main paper. Gradients therefore pass through the coefficient network to the representation, but not through the discrete search process.
D.2. Hardware queries and timing
Physical runs access QBoson's CIM through the Kaiwu SDK. Each 16-spin logical Hamiltonian is augmented with one reference spin, scaled by a detached positive factor, and quantized to signed integers in . Up to 58 such 17-spin blocks are packed into one block-diagonal task, keeping each submission within the 1000-spin hardware limit. Sampling mode returns ten complete readouts of the packed system and therefore ten candidates for every 16-spin Ising subproblem. After reference-spin decoding, candidates are ranked under the submitted quantized Hamiltonian and deduplicated; up to eight distinct low-energy states form the candidate pool.
Each local recovery trajectory queries its pool at the initial state and reuses it across all updates; the coefficients are still recomputed and rescored at every current state .
All reported LEF-JEPA-CIM results use the physical solver. Pretraining forward timing includes energy-network computation, coefficient preparation, physical solving, and local Hamiltonian and state processing, but excludes network transmission, service queueing, and result-return latency.
E. Frozen Evaluation Protocols
Within each backbone size, all methods use identically structured task heads and matched optimization protocols; only the pretrained weights of the frozen encoder differ.
All reported means and standard deviations aggregate three independently pretrained encoders. Each pretraining seed controls the initialization of the encoder and energy module, minibatch order, data augmentation, masking, and candidate-anchor sampling. Downstream heads use a fixed initialization and data order with the same optimization protocol for every encoder; the reported seed variation therefore reflects encoder pretraining rather than downstream head randomness.
E.1. Classification and foreground segmentation
All downstream evaluations freeze the EMA target encoder. For CIFAR-10 classification, final-layer patch tokens are spatially averaged, and the resulting image-level features are standardized with training-set statistics before fitting a linear classifier. The classifier is trained for 300 epochs with AdamW and a cosine learning-rate schedule; accuracy is aggregated over the three independently pretrained encoders.
For PartImageNet, final-layer patch tokens are cached and used to train a shared linear foreground head for 100 epochs. Test-set foreground IoU is aggregated over the three independently pretrained encoders. Dataset splits and foreground-label construction are described in Section B.
E.2. Two-Room visual planning
Every method uses the same trajectories to train an identically structured action-conditioned latent predictor. The predictor has two Transformer blocks and eight attention heads, with the same width as the frozen encoder. Its training objective combines one-step teacher forcing with an eight-block recursive rollout.
Planning uses a horizon of eight latent blocks, corresponding to 40 primitive actions. CEM performs 30 iterations over 300 candidates and retains 30 elites. Candidate plans are ranked by the mean-squared error between terminal patch tokens and the target representation. Evaluation is open loop. Each pretrained encoder is evaluated on 100 episodes under the same environment-generation protocol, and success rate is averaged across the three encoder runs.
F. Number of Energy-Gradient Updates
Figure S1 and Table S5 examine how the pretraining denoising horizon affects pretraining latency and downstream transfer. The main experiments use for LEF-JEPA and for LEF-JEPA-CIM. Because the energy module is removed after pretraining, does not affect deployment latency. For LEF-JEPA-CIM, each recovery trajectory queries the physical solver only once at and reuses the returned state pool in subsequent updates.

(a) Forward Latency
(b) CIFAR-10 Classification
(c) PartImageNet Segmentation
(d) Two-Room Planning
Figure S1. Effect of the number of energy-gradient updates on pretraining latency and downstream transfer. Each CIM recovery trajectory uses one physical solve and reuses its low-energy state pool across all updates. CIM latency excludes cloud communication and queueing; bars report means over three independently pretrained encoders.
For continuous-energy LEF-JEPA, gives the highest foreground IoU on both backbones. Increasing the horizon to further improves classification but does not further improve segmentation or planning performance.
The physical-Ising realization favors a shallower update. At , ViT-B achieves its best result on all three tasks; for ViT-S, classification and planning are also strongest at , while foreground IoU peaks at . Later updates repeatedly rescore the same state pool rather than invoking a new physical search, which is consistent with the absence of systematic gains beyond the first update. The measured forward latency is approximately 45–47 ms, below neural LEF-JEPA at .
Bold in Table S5 marks the best depth for each method, backbone, and task.
Table S5. Complete ablation over the number of energy-gradient updates. Classification and foreground IoU are mean standard deviation across three independently pretrained encoders (%); each encoder is evaluated on 100 Two-Room episodes, and SR is averaged across the three encoder runs and reported to the nearest percentage point (%).
| Method | Backbone | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Acc. ↑ | Fg. IoU ↑ | SR ↑ | Acc. ↑ | Fg. IoU ↑ | SR ↑ | Acc. ↑ | Fg. IoU ↑ | SR ↑ | ||
| LEF-JEPA | ViT-S | 89.40±.025 | 66.88±.043 | 70 | 91.63±.016 | 70.04±.040 | 71 | 92.38±.004 | 69.71±.024 | 63 |
| LEF-JEPA | ViT-B | 91.00±.033 | 68.28±.021 | 85 | 92.17±.009 | 71.44±.021 | 84 | 93.05±.020 | 70.21±.035 | 82 |
| LEF-JEPA-CIM | ViT-S | 91.80±.005 | 68.44±.039 | 79 | 89.17±.009 | 69.44±.011 | 76 | 91.15±.009 | 68.71±.027 | 78 |
| LEF-JEPA-CIM | ViT-B | 92.27±.010 | 72.11±.044 | 86 | 92.20±.004 | 70.76±.021 | 85 | 89.89±.036 | 64.94±.075 | 83 |