arXiv:2610.27890cs.CVOct 2026

Manuscript Offprint

arXiv:2610.27890

EndoWorld-JEPA: Motion-Guided Global-Local Latent World Modeling for Endoscopic Video Representation Learning

Jie Wang, Shilong Yang, Tao Zhou, Juan Yu, Rong Qu, Jianfeng Ren, Zhicheng Zhang, Linlin Shen

Abstract

Endoscopic video contains state transitions induced by camera displacement, deformable tissue, and instrument interaction, yet existing pre-training methods largely treat these observed dynamics implicitly. Inspired by action-conditioned joint-embedding predictive world models and by the observation that endoscopic optical flow contains both shared image-plane displacement and localized residual motion, we reformulate passive endoscopic video pre-training as causal motion-guided latent-state prediction. We present EndoWorld-JEPA, to our knowledge the first latent world-model pre-training framework designed for general-purpose endoscopic video representation learning. In place of recorded actions, calibrated poses, or robot kinematics, the model conditions prediction of the next latent state on motion observed up to the current state. Its Optical Motion-guided module separates dominant displacement from residual motion and converts the resulting evidence into an ordered temporal motion condition and spatial local-motion weights. Complementary global and motion-local predictors use these outputs: the temporal condition modulates both latent transitions, whereas the local weights define an auxiliary motion-local state that extends prediction from scene-level evolution to spatially selective dynamics. Patchwise motion weighting emphasizes localized change while retaining anatomical context, and past-motion-window dropout randomly withholds the complete motion condition to reduce dependence on unreliable motion. This global–local formulation learns predictable visual–motion dynamics in representation space without reconstructing stochastic appearance artifacts. Evaluation shows that a common pre-trained checkpoint achieves consistently strong transfer performance across four downstream benchmarks, supporting motion-guided global–local latent prediction as an effective pre-training paradigm for endoscopic video.

Keywords: Endoscopy, foundation model, joint-embedding predictive architecture, latent world model, optical flow, self-supervised learning.

1 Introduction

Endoscopy is a dynamic imaging process in which the camera continuously changes viewpoint while soft tissue deforms, instruments interact with the scene, and illumination varies with camera–surface geometry. These factors can substantially alter appearance even when anatomy or lesion identity remains unchanged, and these dynamics are sufficiently pronounced that endoscope egomotion and deformable tissue motion are themselves explicit targets of estimation and reconstruction [1, 2]. Conversely, local temporal changes may reveal lesion boundaries, tissue deformation, or procedural events that are ambiguous from appearance alone. Because clinically relevant endoscopic tasks arise within dynamic examinations—even when annotations or evaluations are frame-wise—representation learning from endoscopic video should capture not only what is visible, but also how the observed state evolves.

Endoscopic foundation models have mainly focused on spatiotemporal invariance and temporal context. Endo-FM learns transferable representations from diverse endoscopic videos [3], and EndoFM-LV extends masked representation learning to minute-level sequences [4]. By emphasizing content that persists across time or can be recovered from surrounding observations, these approaches learn robust temporal representations. However, invariance-oriented objectives may attenuate informative change, whereas masked reconstruction models temporal transitions only indirectly; neither explicitly conditions prediction of the next latent state on preceding image-plane motion.

Latent world modeling provides a structured alternative in which observations are encoded as states and future states are predicted under an explicit transition condition. Joint-embedding predictive architectures (JEPAs) perform this prediction in representation space rather than reconstructing pixels [5, 6]. This property is well matched to endoscopy: a useful representation should preserve anatomy, lesion identity, and motion-relevant structure without being required to synthesize reflections, smoke, fluid, blur, or illumination. LeWorldModel (LeWM) enables stable end-to-end next-latent-state prediction through a regularized objective [7]. Its conventional action-conditioned formulation, however, assumes robot commands, probe controls, or calibrated poses that are unavailable in most routine endoscopic recordings. Consequently, passive endoscopic recordings do not directly provide the transition variable assumed by standard state–action world models.

Passive video nevertheless offers observable motion evidence that can condition state transitions without physical controls. Dense optical flow requires only neighboring frames and captures both broad image displacement, predominantly asso-

Comparison of pre-training paradigms

Figure

Figure 1: Comparison of three pre-training paradigms and their treatment of local dynamics. (A) Existing endoscopic video pre-training captures temporal context, but transitions remain implicit: invariance may attenuate change, masking models transitions indirectly, and observed motion does not condition prediction. (B) Medical world models rely on domain-specific data and transition conditions unavailable in passive endoscopy. (C) EndoWorld-JEPA couples an Optical Motion-guided (OM) block that derives motion guidance from unlabeled passive video with a causal global-local JEPA, requiring no recorded controls or calibrated poses. Bottom: a schematic comparison illustrates that existing video pre-training models localized dynamics only implicitly within global latent features, whereas the OM block produces an explicit local-motion map whose patch weighting emphasizes motion-relevant regions.

ciated with endoscope motion, and localized departures associated with tissue deformation or instruments. The former summarizes whole-view state evolution, whereas the latter identifies spatial regions whose dynamic evidence may be diluted by a global frame representation. Directly using raw flow magnitude as a single condition would entangle these roles and amplify errors caused by non-Lambertian surfaces, specularities, occlusion, or rapid motion. Dominant–residual decomposition allows the same motion evidence to support two complementary representations: an ordered temporal descriptor that jointly summarizes dominant displacement, flow dispersion, and residual statistics provides an observation-derived condition for latent-state transitions, while the residual-magnitude map serves as a spatial cue for locally dynamic content. Optical motion therefore supplies a transition condition and a local relevance cue, whereas JEPA learns their predictable consequences directly in representation space without reconstructing every photometric fluctuation.

Motivated by this complementarity, we propose EndoWorld-JEPA, an endoscopy-oriented extension of LeWM for motion-conditioned latent-state prediction from passive recordings under a causal temporal ordering. Here, causal refers to input availability: each prediction uses only the current visual state and motion observed before the target state. Its Optical Motion-guided (OM) module converts observed flow into a temporal motion condition and a spatial local-motion magnitude map. The temporal condition parameterizes both global and motion-local latent transitions, whereas the spatial map defines an auxiliary motion-local state, enabling complementary predictors to model scene-level evolution together with spatially selective change. Patch-wise mixed weighting retains anatomical context, and past-motion-window dropout reduces reliance on unreliable flow. We pre-train a single checkpoint on unlabeled endoscopic video and evaluate its transfer on four downstream tasks—video classification, polyp segmentation, polyp detection, and surgical phase recognition—using the corresponding PolypDiag, CVC-12k, KUMC, and Cholec80 benchmarks, which respectively assess appearance recognition, dense delineation, object localization, and procedural progression. We further define a dependency-aware cross-task ablation protocol that separates the individual and joint contributions of the proposed components. The main contributions are:

• We formulate passive endoscopic video pre-training as motion-guided latent world modeling under a causal temporal ordering, using motion observed up to the current state to predict the next latent state in representation space.

• We introduce an Optical Motion-guided module that decomposes dense flow into ordered temporal descriptors—combining dominant displacement, flow dispersion, and residual-motion statistics—that form an observation-derived temporal condition, together with a residual local-motion magnitude map, providing transition conditioning and spatial guidance without recorded controls or calibrated poses.

• We introduce complementary global and motion-local JEPA objectives, together with motion–uniform mixed pooling in patch-wise motion weighting and past-motion-window dropout, to preserve scene context, emphasize localized dynamics, and reduce sensitivity to flow uncertainty.

References (33)