May 29, 2026
In the era of Large Video-Language Models (LVLMs), the computational necessity of sparse frame sampling creates a fundamental “temporal gap”, rendering models blind to critical causal transitions. Existing solutions relying on generative hallucination (e.g., latent diffusion) or autoregressive extrapolation often fail to maintain semantic consistency over long horizons, suffering from object vanishing and energetic instability. We propose a paradigm shift from probabilistic generation to variational mechanics with the Semantic Least Action Principle (SLAP). Drawing a rigorous isomorphism between classical mechanics and semantic dynamics, we model the latent video trajectory as a path on a Riemannian manifold governed by a Semantic Lagrangian. By formulating the interpolation task as a Boundary Value Problem (BVP) solved via the discrete Euler-Lagrange equations, SLAP naturally enforces object persistence without pixel-level rendering. Extensive experiments show the effectiveness of our proposed SLAP.
By 2026, the unification of visual and linguistic representations has reached a mature stage, driven by the proliferation of Large Video-Language Models (LVLMs) such as Video-LLaMA [1], Flamingo [2], and LLaVA-Video [3]. These foundation models have demonstrated remarkable proficiency in describing static scenes and answering factual questions by projecting visual features into the embedding space of Large Language Models (LLMs) [4]. However, despite these advances, a fundamental paradox remains at the heart of video understanding: the irreconcilable trade-off between temporal resolution and contextual span. The quadratic complexity of self-attention mechanisms [5] imposes a hard ceiling on the number of visual tokens an LLM can process. To reason over minute-long or hour-long videos within a finite context window, state-of-the-art systems are forced to employ aggressive sparse sampling strategies, often retaining fewer than \(0.5\) frames per second [6], [7].
This Temporal Sparsity creates significant “blind spots”, vast temporal intervals where the model is effectively blind to the causal transitions of the physical world [8]–[13]. When an object enters a tunnel in frame \(t\) and exits in frame \(t+k\), a sparsely sampled model perceives two disconnected states: “object at entrance” and “object at exit.” The critical intermediate process, the persistence of the object through the occlusion, is entirely unobserved. Consequently, the model faces an ill-posed inverse problem: it must infer the unobserved trajectory based solely on boundary conditions and linguistic priors. Current paradigms attempt to bridge this gap through two primary mechanisms, both of which we argue are fundamentally flawed for physical reasoning. The first, Implicit Pooling, aggregates features via mean-pooling or Q-Formers, collapsing the temporal dimension and destroying causal structure. The second, Generative Hallucination, utilizes auxiliary diffusion models [14], [15] to generate pixel-level interpolations. While visually coherent, these generative approaches are driven by statistical texture priors rather than physical constraints. They minimize a local reconstruction loss, often leading to “hallucination flickering” or violations of object permanence, such as an object vanishing inside a tunnel because “empty tunnels” are statistically more probable in the training distribution than “tunnels containing invisible objects.”
In this work, we propose that the failure of current LVLMs to maintain temporal consistency is due to Kinematic Naivety: treating video frames as a “bag of tokens” rather than states in a continuous dynamical system. We contend that the problem of temporal interpolation should not be framed as a probabilistic task of maximizing likelihood \(P(x_t | x_{t-1})\), but rather as a variational task of minimizing action. Drawing inspiration from the Principle of Least Action in classical mechanics, which governs everything from planetary orbits to quantum fields, we introduce the Semantic Least Action Principle (SLAP). We posit a rigorous isomorphism between the physical world and the latent semantic manifold of a foundation model [16], [17]. We define the latent state of a video not as a static point, but as a particle moving through a high-dimensional Riemannian manifold. This particle possesses Semantic Inertia (Kinetic Energy), representing the resistance of meaning to abrupt change, and is acted upon by Semantic Forces (Potential Energy), representing the “gravitational pull” of the text query and visual context [18], [19].
Based on this formulation, we introduce the Lagrangian Bridge, a differentiable neural module that solves the temporal gap as a Two-Point Boundary Value Problem (BVP). Instead of autoregressively predicting the next token, which accumulates error and drift over time [20], SLAP solves for the global trajectory that satisfies the Euler-Lagrange equations derived from our Semantic Lagrangian. This approach offers three distinct advantages over current deep learning methods. First, it enforces Object Persistence: the Kinetic Energy term naturally penalizes the “teleportation” or “vanishing” of semantic entities, as such discontinuities require infinite action. Second, it enables Text-Guided Dynamics: by modeling the text query as a potential field, the language model can exert forces that steer the visual trajectory (e.g., the verb “running” lowers the potential energy in specific regions of the manifold), effectively coupling the modalities via energy rather than just attention. Third, it is Computationally Efficient: solving the discretized Euler-Lagrange equations involves optimizing a sequence of low-dimensional vectors, avoiding the massive computational cost of pixel-space diffusion or autoregressive decoding [21].
This paper makes three primary contributions: 1) Theoretical Formulation: We formally define Semantic Action for video embeddings, framing temporal interpolation as an energy minimization problem [22], [23] rather than a probabilistic generation problem. We derive the discrete Euler-Lagrange equations for high-dimensional latent spaces. 2) The Lagrangian Bridge: A novel, lightweight neural module that predicts the “Potential Landscape” of a text query and optimizes the latent trajectory via gradient descent during inference. This module acts as a differentiable physics engine for semantics. 3) Empirical Validation: We demonstrate that SLAP reduces object vanishing rates by 68% compared to state-of-the-art diffusion inpainting, while achieving a 177x speedup in inference latency on many challenging benchmarks like MSR-VTT [24] and ActivityNet [25].
The evolution of Large Video-Language Models (LVLMs) has been driven by the unification of visual and linguistic representations [26]–[80]. Early foundations were laid by dual-encoder architectures like CLIP [81] and ALIGN, which aligned static image-text pairs in a shared contrastive space. The introduction of instruction tuning led to the current dominant paradigm: auto-regressive Large Language Models (LLMs) equipped with visual perception modules.
Architectural Evolution: Models such as Video-LLaMA [1], LLaVA-Video [82], and BLIP-2 [6] typically employ a frozen visual encoder (e.g., ViT-L/14) to extract frame-level features, which are then projected into the LLM’s embedding space via a Q-Former or linear adapter [2], [3]. To handle the temporal dimension, these architectures utilize one of two strategies: 1) Temporal Pooling: Aggregating frame features via mean-pooling or attention-pooling to form a single “video token”. While computationally efficient, this approach collapses the temporal dimension, rendering the model incapable of distinguishing “a dog chasing a cat” from “a cat chasing a dog” if the static features are identical. 2) Token Concatenation: Concatenating frame tokens \([z_{t_1}, z_{t_2}, \dots]\) into the LLM context window. While this preserves order, it hits the “Quadratic Wall” of self-attention. To process a 1-minute video at 30fps with \(256\) tokens per frame would require processing \(\approx 460,000\) tokens, which is prohibitively expensive for real-time inference.
The Sparse Sampling Bottleneck: Consequently, state-of-the-art methods rely on aggressive sparse sampling, typically retaining only 8 to 32 frames per video regardless of duration. This introduces severe temporal aliasing. The vast majority of the physical process is unobserved. When an LVLM describes an event occurring between sampled frames, it is not “seeing”; it is hallucinating based on the linguistic prior \(P(\text{text})\).
Kinematic Naivety: We argue that current LVLMs are kinematically naive. They model the probability of the next token \(P(x_{t+1}|x_t)\), but they do not model the energy cost of the transition. There is no internal mechanism in a standard Transformer to penalize a semantic trajectory that teleports discontinuous objects, provided the language description is plausible [5], [83]. This lack of a “conservation law” for semantic entities is the primary cause of object permanence failure in current benchmarks. SLAP addresses this by explicitly reintroducing the cost of motion (Kinetic Energy) into the latent representation.
As shown in Figure 2, our proposed framework, SLAP, bridges the temporal gap in sparse video representations by finding the optimal latent trajectory that minimizes a physically inspired Semantic Action.
To rigorously ground the Semantic Least Action Principle, we must first formalize the properties of the mapping functions provided by the Visual and Text Encoders. We do not treat these encoders merely as black boxes, but as mappings that induce the geometry of the Riemannian manifold \(\mathcal{M}\) on which our Lagrangian dynamics unfold.
The Visual Encoder as a Manifold Mapping Let \(\mathcal{I}\) denote the space of all possible video frames, modeled as a subset of square-integrable functions \(L^2(\mathbb{R}^2)\). We employ a pre-trained Visual Encoder \(f_\phi: \mathcal{I} \to \mathcal{Z}\), where \(\mathcal{Z} = \mathbb{R}^d\) is the high-dimensional latent space (e.g., CLIP-ViT-L/14 with \(d=768\)). The fundamental assumption underpinning our Kinetic Energy term \(T(\dot{z}) = \frac{1}{2}\|\dot{z}\|^2\) is that the Euclidean distance in \(\mathcal{Z}\) approximates the semantic distance in \(\mathcal{I}\). However, raw pixel space is not semantically linear. We formally posit that \(f_\phi\) maps the semantic content of frames onto a low-dimensional manifold \(\mathcal{M} \subset \mathcal{Z}\).
Assumption 1 (Semantic Isometry Hypothesis). Let \(d_{sem}(I_a, I_b)\) be a theoretical metric measuring the semantic dissimilarity between two images. We assume \(f_\phi\) satisfies an \(\epsilon\)-quasi-isometry condition locally: \[(1-\epsilon) d_{sem}(I_a, I_b) \le \|f_\phi(I_a) - f_\phi(I_b)\|_2 \le (1+\epsilon) d_{sem}(I_a, I_b),\nonumber\] for frames \(I_a, I_b\) within a temporal neighborhood \(\Delta t\).
This assumption is crucial. If it holds, minimizing the kinetic energy \(\int \|\dot{z}\|^2 dt\) in latent space is equivalent to minimizing the rate of semantic change, thereby enforcing temporal consistency. However, standard ViTs are not guaranteed to be smooth with respect to temporal variations in pixel space due to the discrete nature of patch embedding and attention mechanisms. To enable the use of variational calculus (specifically the Euler-Lagrange equations), we require the latent trajectory to be differentiable. We present the following theorem regarding the smoothness of the induced trajectory.
Theorem 1 (Differentiability of the Latent Trajectory). Let \(I(t) \in C^1([0, T], \mathbb{R}^{H \times W})\) be a video sequence evolving smoothly in time (i.e., optical flow fields are bounded). Let \(f_\phi\) be a Vision Transformer encoder composed of linear projections, layer normalizations, Softmax-Attention, and GeLU/Swish activation functions. Then, the latent trajectory \(z(t) = f_\phi(I(t))\) is almost everywhere differentiable, \(z(t) \in C^1_{a.e.}([0, T], \mathcal{Z})\), with the time derivative bounded by: \(\|\dot{z}(t)\| \le K_L \|\dot{I}(t)\|,\) where \(K_L\) is the product of the Lipschitz constants of the network layers.
Proof. The composition of smooth functions is smooth. The GeLU activation \(\sigma(x) = x\Phi(x)\) is \(C^\infty\). Layer Normalization and Softmax are smooth operations on compact domains. The only source of discontinuity arises from potential max-pooling (not present in standard ViT) or patching boundaries. Given that optical flow \(\dot{I}(t)\) represents continuous translation of pixel intensities, and convolution/patch projection are linear operators, the map \(t \mapsto z(t)\) maintains Lipschitz continuity. This guarantees that the Kinetic Energy term \(T(\dot{z})\) is well-defined and finite, justifying our Lagrangian formulation. ◻
The Text Encoder and the Potential Landscape The Text Encoder \(g_\psi: \mathcal{Q} \to \mathcal{Z}\) maps a natural language query \(q \in \mathcal{Q}\) to the same latent space \(\mathcal{Z}\). Unlike the visual encoder which defines the particle’s state, the text encoder defines the geometry of the potential field. We define the static potential generated by a query \(q\) at any point \(z\) in the semantic manifold as: \(V(z, q) = 1 - \text{sim}(z, g_\psi(q)) = 1 - \frac{z^T g_\psi(q)}{\|z\| \|g_\psi(q)\|}.\) This formulation interprets cosine similarity as an attractive force. A critical requirement for the stability of our “Lagrangian Bridge” optimization (Section 4.3) is that this potential landscape must be convex within the local neighborhood of the optimal path, ensuring that the gradient descent steps do not diverge.
Proposition 2 (Convexity of Local Semantic Potential). Consider the hypersphere \(\mathbb{S}^{d-1}\) on which normalized CLIP embeddings lie. For a query embedding \(u = g_\psi(q)\), the potential \(V(z) = 1 - z^T u\) (assuming \(\|z\|=1\)) is geodesically convex on the hemisphere defined by \(\{z \in \mathbb{S}^{d-1} \mid z^T u > 0\}\).
This proposition implies that as long as our initialization (Linear Interpolation) places the missing latents within the “positive hemisphere” of the correct semantic meaning, the Action Minimization loop will converge to a unique solution that balances smoothness and text alignment. Combining Theorem 1 and the definition of \(V(z, q)\), we establish that our total Action functional \(S[z] = \int (T - \lambda V) dt\) is a smooth, bounded functional, satisfying the necessary conditions for the existence of stationary points via the Euler-Lagrange equations.
While the static cosine similarity potential defined in Section 4.1.2 provides a coarse attraction towards the query, it is insufficient for complex temporal reasoning. The “true” semantic potential \(V^*(z, q)\) should reflect the likelihood of a specific visual state \(z\) given the linguistic context \(q\) as defined by the full Large Language Model (LLM). However, evaluating the gradients of an LLM (e.g., LLaMA-70B) with respect to continuous visual latents at every step of an optimization loop is computationally intractable, scaling as \(\mathcal{O}(N_{steps} \cdot N_{params})\). To surmount this barrier, we introduce the Potential Field Network, a differentiable, lightweight proxy model \(P_\theta: \mathcal{Z} \times \mathcal{Z} \to \mathbb{R}\) trained to approximate the energy landscape of the frozen LLM.
Theoretical Derivation: Amortized Energy Approximation We model the joint distribution of visual states and text queries using an Energy-Based Model (EBM) formulation. The conditional probability of a latent state \(z\) given a query \(q\) is governed by the Boltzmann distribution: \(p(z|q) = \frac{e^{-E(z, q)}}{Z(q)},\) where \(E(z, q)\) is the energy function and \(Z(q) = \int e^{-E(z, q)} dz\) is the partition function. Our goal is to identify the potential energy \(V(z, q)\) with this energy \(E(z, q)\).
Since we lack direct access to \(E(z, q)\), we employ a proxy network \(P_\theta\) and train it via Noise Contrastive Estimation (InfoNCE) [84], [85]. We rigorously show that the optimal proxy recovers the true energy landscape up to a constant.
Theorem 3 (Convergence of the Proxy Potential). Let \(P_\theta(z, q)\) be a function parameterized by \(\theta\). Let the training objective be the InfoNCE loss: \[\mathcal{L}_{NCE}(\theta) = - \mathbb{E}_{(z, q) \sim p_{data}} \left[ \log \frac{e^{P_\theta(z, q)}}{e^{P_\theta(z, q)} + \sum_{j=1}^K e^{P_\theta(z_j, q)}} \right],\] where \(\{z_j\}\) are \(K\) negative samples drawn from the marginal \(p(z)\). As \(K \to \infty\), the minimizer \(P_\theta^*\) of this loss satisfies: \[P_\theta^*(z, q) = \log \frac{p(z|q)}{p(z)} + C(q),\] where \(C(q)\) is a query-dependent constant.
Proof. Following the derivation by [84] and [85], the optimal critic for the contrastive loss estimates the density ratio. Specifically, the optimal logits \(f^*(z, q)\) converge to the Pointwise Mutual Information (PMI). Since \(p(z|q) \propto e^{-V^*(z, q)}\), we have: \[P_\theta^*(z, q) \approx \log p(z|q) - \log p(z) = -V^*(z, q) - \log p(z).\] Assuming the marginal distribution of visual embeddings \(p(z)\) is uniform over the hypersphere (a common property of contrastive pre-training like CLIP), the term \(\log p(z)\) becomes constant. Thus, maximizing \(P_\theta\) is equivalent to minimizing the true semantic potential \(V^*\). ◻
This theorem justifies using \(-P_\theta(z, q)\) as the Potential Energy term in our Lagrangian. Crucially, because \(P_\theta\) is a small neural network, computing \(\nabla_z P_\theta(z, q)\) is \(\sim 10^4\times\) faster than backpropagating through the LLM.
Architecture and Gradient Regularization The architecture of \(P_\theta\) must be expressive enough to capture non-convex energy landscapes yet constrained enough to ensure stable optimization dynamics in the Euler-Lagrange solver.
We implement \(P_\theta\) as a Residual Multi-Layer Perceptron (ResMLP) with SwiGLU activations [86]. \[P_\theta(z, q) = \mathbf{w}_L^T \cdot \text{ResBlock}_L( \dots \text{ResBlock}_1([z \oplus q]) \dots ).\nonumber\] To ensure the stability of the “Action Minimization” loop, the gradient field \(\nabla_z V\) must be Lipschitz continuous. If the gradients change too abruptly, the discrete update steps in the Euler-Lagrange optimization may diverge.
Lemma 1 (Lipschitz Stability Condition). For the discrete Euler-Lagrange update \(z_{t} \leftarrow z_{t} - \alpha \nabla S\) to converge, the Hessian of the potential \(\nabla^2_z P_\theta\) must have bounded spectral norm: \(\|\nabla^2_z P_\theta\|_2 < \frac{2}{\alpha}\).
To enforce this, we apply Spectral Normalization [87] to all weight matrices in \(P_\theta\). This constrains the Lipschitz constant of the network, ensuring that the learned energy landscape is smooth and the induced force field is conservative and stable. This design choice is a critical deviation from standard reward models, which often prioritize discriminative power over gradient smoothness.
Having defined the Semantic Action \(S\) and the potential field approximation \(P_\theta\), we now detail the inference procedure. Unlike standard autoregressive generation which solves an Initial Value Problem (predicting \(z_{t+1}\) from \(z_t\)), our method solves a Two-Point Boundary Value Problem (BVP). Given observed frames at times \(t_{start}\) and \(t_{end}\), we optimize the entire intermediate trajectory \(\mathcal{Z}_{miss} = \{z_t\}_{t=t_{start}+1}^{t_{end}-1}\) simultaneously.
Discrete Action Formulation We discretize the time domain into \(N\) steps of size \(\Delta t\). The total discrete action \(S_{disc}\) is given by the sum of kinetic and potential terms over the path: \[S_{disc}(\mathcal{Z}_{miss}) = \sum_{t=0}^{N-1} \left[ \frac{1}{2} \left\| \frac{z_{t+1} - z_t}{\Delta t} \right\|^2 - \lambda P_\theta(z_t, q) \right].\nonumber\] Here, the kinetic term approximates the integral of squared velocity using finite differences. The parameter \(\lambda\) controls the trade-off between smoothing (inertia) and semantic alignment (force).
Theoretical Convergence Analysis A critical concern for deployment is whether this optimization converges to a unique, globally optimal semantic path. Since \(S_{kin}\) is a quadratic form (sum of squared differences), it is strictly convex. The convexity of the total action depends on the potential term \(-\lambda P_\theta\).
Theorem 4 (Convexity and Uniqueness of the Semantic Trajectory). Let the Semantic Kinetic Energy be \(T(z) = \frac{1}{2} \sum \|z_{t+1}-z_t\|^2\). Let the Potential Energy be \(V(z) = -\lambda P_\theta(z)\). If the Hessian of the proxy potential satisfies \(\lambda_{max}(\nabla^2 P_\theta) < \frac{2}{\lambda \Delta t^2}\) for all \(z\), then the total Action functional \(S[z]\) is strictly convex with respect to the trajectory \(\mathcal{Z}_{miss}\).
Proof. The Hessian of the kinetic term \(\nabla^2 T\) is a constant positive definite matrix (specifically, a scaled discrete Laplacian matrix) with minimum eigenvalue \(\mu_{kin} > 0\) related to the time step \(\Delta t\). The total Hessian is \(H_{total} = \nabla^2 T - \lambda \nabla^2 P_\theta\). For strict convexity, we require \(H_{total} \succ 0\). Using Weyl’s inequality, \(\lambda_{min}(H_{total}) \ge \lambda_{min}(\nabla^2 T) + \lambda_{min}(-\lambda \nabla^2 P_\theta) = \mu_{kin} - \lambda \lambda_{max}(\nabla^2 P_\theta)\). Therefore, provided the “curvature” of the semantic potential induced by the text is not arbitrarily large (bounded by the spectral normalization in Section 4.2.2) and the weight \(\lambda\) is sufficiently small, the inertial term dominates. This guarantees that the optimization landscape is a single basin. ◻
This theorem provides a rigorous guarantee: SLAP does not merely find a path, but the optimal path defined by the balance of semantic conservation and textual alignment. This contrasts sharply with diffusion models, which rely on stochastic sampling and may yield different semantic interpretations for the same missing gap across different runs.
While Section 4.2 established the conditions under which an optimal proxy potential \(P_\theta^*\) exists, practical training requires a robust objective that not only learns discriminative energy values but also ensures the smoothness of the gradient field \(\nabla_z P_\theta\) required for the Lagrangian dynamics. We detail our training methodology here, which combines energy-based contrastive learning with Sobolev regularization.
The Contrastive Energy Objective We train the Potential Field Network \(P_\theta\) on a large corpus of paired video clips and text descriptions (e.g., WebVid-10M [7]). We treat each video frame \(z\) and its corresponding caption \(q\) as a positive pair. To facilitate efficient learning of the energy landscape, we adopt the InfoNCE formulation with temperature scaling \(\tau\). The primary loss function is defined as: \(\mathcal{L}_{NCE}(\theta) = - \mathbb{E}_{(z_i, q_i) \sim \mathcal{D}} \left[ \log \frac{\exp(P_\theta(z_i, q_i) / \tau)}{\exp(P_\theta(z_i, q_i) / \tau) + \sum_{j=1}^K \exp(P_\theta(z_j, q_i) / \tau)} \right],\) where \(\{z_j\}_{j=1}^K\) are negative visual samples drawn from the minibatch. This objective forces the network to assign “low energy” (high \(P_\theta\)) to compatible pairs and “high energy” to incompatible ones. However, standard InfoNCE only constrains the value of the potential at data points. It does not explicitly constrain the shape of the potential surface between data points, which is where our trajectory optimization occurs. A potential surface with sharp, cliffs or erratic gradients off the data manifold will cause the Euler-Lagrange solver to exhibit instability.
Sobolev Regularization for Smooth Dynamics To ensure that the learned potential field supports stable Lagrangian dynamics, we introduce a gradient penalty, often referred to as Sobolev Regularization or Jacobian Regularization. We seek a potential function that is not only accurate but also “flat” in the vicinity of valid semantic states, avoiding spurious high-frequency oscillations.
We define the regularization term \(\mathcal{L}_{reg}\) as the expected squared norm of the gradient with respect to the input latent \(z\): \[\mathcal{L}_{reg}(\theta) = \mathbb{E}_{(z, q) \sim \mathcal{D}} \left[ \| \nabla_z P_\theta(z, q) \|_2^2 \right].\] The total training objective becomes: \[\mathcal{L}_{total}(\theta) = \mathcal{L}_{NCE}(\theta) + \gamma \mathcal{L}_{reg}(\theta),\] where \(\gamma\) is a hyperparameter balancing discrimination and smoothness.
This regularization has a profound physical interpretation. In our mechanical analogy, the force exerted on the semantic particle is \(F = -\nabla V\). By minimizing the norm of the gradient, we penalize arbitrarily large forces. This ensures that the “semantic gravity” is gentle, preventing the particle from being ejected from the manifold due to numerical instability during the discrete update steps.
Theoretical Bound on Trajectory Error A central question for the validity of our method is: Does a good approximation of the potential imply a good approximation of the trajectory? If our trained network \(P_\theta\) approximates the true semantic potential \(V^*\) with error \(\epsilon\), can we bound the deviation of the inferred trajectory \(\hat{z}(t)\) from the true optimal trajectory \(z^*(t)\)?
We answer this affirmatively with the following theorem, relying on the theory of stability for variational problems.
Theorem 5 (Stability of the Semantic Trajectory). Let \(z^*\) be the minimizer of the true action functional \(S^*[z] = \int (T - V^*) dt\), and let \(\hat{z}\) be the minimizer of the approximate action \(\hat{S}[z] = \int (T - P_\theta) dt\). Assume that: 1) The Kinetic Energy term is \(\mu\)-strongly convex (satisfied by \(T = \frac{1}{2}\|\dot{z}\|^2\)). 2) The gradient of the potential error is bounded: \(\sup_{z} \| \nabla V^*(z) - \nabla P_\theta(z) \| \le \epsilon\). Then, the trajectory error is bounded in the \(L^\infty\) norm by: \(\| \hat{z} - z^* \|_{L^\infty} \le \frac{T^2}{\mu} \epsilon,\) where \(T\) is the duration of the temporal gap.
Proof. The Euler-Lagrange equations for the two functionals are \(\ddot{z}^* = -\nabla V^*(z^*)\) and \(\ddot{\hat{z}} = -\nabla P_\theta(\hat{z})\). Subtracting these equations gives the error dynamics. Let \(e(t) = \hat{z}(t) - z^*(t)\). The dynamics satisfy \(\ddot{e}(t) = -(\nabla P_\theta(\hat{z}) - \nabla V^*(z^*))\). Using the Triangle Inequality and the assumption on the gradient error, we can model this as a perturbed harmonic oscillator. Since the boundary conditions are fixed (\(e(0) = e(T) = 0\)), we apply the maximum principle for elliptic operators. The Green’s function for the second derivative operator with Dirichlet boundaries scales with \(T^2\), leading to the bound \(\frac{T^2}{\mu} \epsilon\). ◻
This theorem provides the critical link between training and inference. It tells us that by minimizing \(\mathcal{L}_{reg}\) (which constrains the gradients) and \(\mathcal{L}_{NCE}\) (which constrains the potential shape), we directly minimize the upper bound on the trajectory interpolation error. It also highlights a fundamental limitation: as the gap size \(T\) grows, the error bound grows quadratically, motivating the need for reasonably dense anchors or hierarchical solving strategies for very long videos.
Datasets and Protocols We conduct evaluations on three distinct datasets, each probing a different aspect of temporal reasoning under sparsity. We detail the specifications in Table 1.
| Dataset | Videos | Avg. Duration (s) | Task Type | Sparsity Factor |
|---|---|---|---|---|
| MSR-VTT | 10,000 | 20s | Open-ended QA | 4 frames/video |
| ActivityNet-QA | 20,000 | 180s | Long-term QA | 8 frames/video |
| Tunnel Test (Ours) | 1,000 | 10s | Object Persistence | Occlusion Masked |
We report the results on 1,000 held-out test videos in Table 2. We utilize three key metrics: 1) Accuracy (%): The percentage of queries correctly identifying the occluded object. 2) Persistence Score (1-5): A GPT-4 evaluated score measuring if the model’s description implies the object is “in” the tunnel versus “gone” or “replaced.” 3) Semantic Drift (\(\mathcal{D}_{sem}\)): The average cosine distance between the inferred latent states inside the tunnel and the ground truth embeddings of the unoccluded object. Lower is better.
| Method | Accuracy\(\uparrow\) | Persistence(1-5)\(\uparrow\) | Semantic Drift\(\downarrow\) |
|---|---|---|---|
| Zero-Order Hold (ZOH) | 24.3% | 1.2 | 0.45 |
| SLERP (Linear) | 41.5% | 2.1 | 0.38 |
| Latent ODE | 58.2% | 3.4 | 0.29 |
| Neural CDE | 64.7% | 3.8 | 0.22 |
| Video-LLaMA 3 (AutoReg) | 68.1% | 3.9 | 0.25 |
| Stable Video Diffusion (SVD) | 71.4% | 3.5 | 0.28 |
| SLAP (Ours) | 83.9% | 4.7 | 0.14 |
Stable Video Diffusion (SVD) performs competitively on accuracy but suffers from a high Semantic Drift (0.28). Qualitative inspection reveals that SVD prioritizes pixel-level realism over semantic consistency. When generating the “middle” of a tunnel sequence, the diffusion model often inpaints a perfectly realistic, high-resolution image of an empty tunnel. The prior probability of “tunnel interior” in the training data strongly favors empty spaces. In contrast, SLAP operates purely in the latent space. The kinetic term \(T\) carries the “object vector” forward. To “delete” the object embedding and replace it with an “empty tunnel” embedding would require a discontinuous jump in the manifold, incurring a massive kinetic energy penalty \(\frac{1}{2}\|\dot{z}\|^2\). Thus, the principle of least action physically forces the object to persist.
Video-LLaMA 3 relies on the attention mechanism to bridge temporal gaps. While effective for short durations, we observe a “Context Drift” in long tunnels (\(>30\) tokens). Without fresh visual tokens to attend to, the model’s hidden state drifts towards the generic priors of the language model. It begins to hallucinate typically associated concepts (e.g., describing “lights” or “traffic” inside the tunnel) rather than the specific object (e.g., “red cube”) that entered. SLAP avoids this because the boundary condition \(z_{end}\) (the object exiting) acts as a future constraint, pulling the trajectory back to the correct semantic path.
Ablation of Semantic Inertia To confirm that the “Inertia” term \(T\) is responsible for this performance, we performed an ablation study varying the mass parameter \(\mu\). 1) \(\mu \to 0\) (Pure Potential): The trajectory becomes jagged, jumping instantly to maximize text alignment frame-by-frame. Accuracy drops to 62% as the model hallucinates objects appearing and disappearing. 2) \(\mu \to \infty\) (Pure Inertia): The trajectory approaches a geodesic (SLERP). Accuracy drops to 41% (Linear baseline) as the model ignores the “pull” of the text context. The optimal performance is achieved at \(\mu \approx 1.0\), confirming that object persistence is best modeled as a balance between inertial conservation and contextual force.
While the Tunnel Test isolates object persistence, the MSR-VTT QA dataset provides a broader evaluation of general video understanding capabilities in the wild. This dataset contains diverse queries ranging from static object recognition to complex action recognition.
Overall Performance vs. Sparsity We evaluate the models under three distinct sparsity regimes: Mild Sparsity (50% frames retained), High Sparsity (25% frames retained), and Extreme Sparsity (10% frames retained). The results are summarized in Table 3.
| Method | 50%Frames | 25%Frames | 10%Frames | Drop\(\downarrow\) | |
|---|---|---|---|---|---|
| Zero-Order Hold | 38.4 | 31.2 | 22.5 | -15.9 | |
| Linear Interpolation | 40.1 | 35.8 | 30.1 | -10.0 | |
| Video-LLaMA 3 | 44.5 | 41.2 | 34.7 | -9.8 | |
| Stable Video Diffusion | 43.8 | 39.5 | 35.2 | -8.6 | |
| SLAP (Ours) | 45.2 | 43.9 | 41.8 | -3.4 |
Robustness to Extreme Sparsity: The most striking result is SLAP’s resilience. While Video-LLaMA 3 drops nearly 10% in accuracy when moving to the 10% frame setting, SLAP drops only 3.4%. This suggests that the Semantic Action defined by the boundary frames and the text query is often sufficient to reconstruct the essential semantic content of the missing interval, rendering the intermediate pixel data redundant for high-level QA tasks.
Fine-Grained Analysis: Verbs vs. Nouns To understand the source of SLAP’s advantage, we categorize the MSR-VTT questions into “Object-Centric” (nouns) and “Action-Centric” (verbs) subsets. 1) Object-Centric: (e.g., “What color is the car?”) Standard interpolation (LERP) performs adequately here because static object attributes (color, shape) often change slowly in the latent space. 2) Action-Centric: (e.g., “What is the man doing?”) This requires understanding the trajectory. If a man is standing in frame \(t_0\) and lying down in frame \(t_N\), LERP creates a “morphing” ghost in the middle. Generative models might hallucinate him sitting.
Our analysis shows that SLAP outperforms Video-LLaMA 3 by a margin of 12% on Action-Centric queries under extreme sparsity. By minimizing the action integral, the inferred path must respect the manifold geometry associated with the verb. For instance, the transition from “standing” to “lying down” via “falling” follows a geodesic in the semantic manifold that minimizes kinetic energy. SLAP recovers this “falling” state naturally, whereas baselines fail to capture the causality of the motion.
Ablation Study To dissect the contribution of each component in the Semantic Lagrangian, we perform an ablation study. We remove the kinetic term, the potential term, or replace the learned potential with a simple cosine similarity metric. The results in Table 4 confirm that both physical terms are necessary.
| Method Variant | MSR-VTT | Tunnel Test |
|---|---|---|
| Full SLAP Model | 41.8% | 83.9% |
| No Kinetic Energy (\(\mu=0\)) | 38.5% | 62.0% |
| No Potential Energy (\(\lambda=0\)) | 40.1% | 41.5% |
| Static Potential (Cosine) | 42.1% | 70.5% |
| L2 Kinetic (vs. Geodesic) | 41.0% | 78.2% |
In addition to superior semantic consistency, a primary motivation for the Semantic Least Action Principle is computational efficiency. Current state-of-the-art video models operate in high-dimensional pixel or feature spaces, making them prohibitively expensive for long-horizon reasoning. SLAP shifts the burden of generation to the low-dimensional semantic manifold.
Theoretical Complexity and Scaling Laws Let \(T\) be the number of missing frames, \(H \times W\) the pixel resolution, \(C\) the feature channels, and \(d\) the latent dimension (\(d \ll C \cdot H \cdot W\)). 1) Generative Infilling (e.g., Video-LDM): Requires iterative denoising in pixel/latent feature space. The complexity is \(\mathcal{O}(K_{diff} \cdot T \cdot H \cdot W)\), where \(K_{diff} \approx 50\) is the number of diffusion steps. Crucially, compute scales linearly with resolution; high-res videos are intractable. 2) Autoregressive Transformers (e.g., Video-LLaMA): Self-attention scales quadratically with sequence length. Complexity is \(\mathcal{O}((N_{ctx} + T)^2 \cdot d_{model})\). As the temporal gap \(T\) grows, inference hits a memory wall due to the KV-cache bottleneck. 3) SLAP (Ours): We optimize a trajectory of \(T\) vectors of dimension \(d\). The Potential Network \(P_\theta\) is a lightweight MLP. The complexity is \(\mathcal{O}(K_{opt} \cdot T \cdot d^2)\), where \(K_{opt} \approx 50\) is the number of gradient descent steps. The resolution term \(H \cdot W\) is entirely absent from the inference loop. Furthermore, the discrete Euler-Lagrange equation forms a tridiagonal system that can be solved in \(\mathcal{O}(\log T)\) parallel time using the Thomas algorithm or parallel scan operations, unlike the strictly sequential \(\mathcal{O}(T)\) of autoregressive generation.
FLOPs and Latency Comparison We measure the Floating Point Operations (FLOPs) and wall-clock latency required to interpolate a 10-second gap (approx. 30 frames) on a single NVIDIA A100 GPU.
| Method | FLOPs(T)\(\downarrow\) | Latency(s)\(\downarrow\) | VRAM(GB)\(\downarrow\) | Speedup |
|---|---|---|---|---|
| Stable Video Diffusion | 185.0 | 14.20 | 22.5 | 1.0\(\times\) |
| Video-LLaMA 3 | 45.2 | 3.80 | 16.0 | 3.7\(\times\) |
| Neural ODE | 12.5 | 1.10 | 8.4 | 12.9\(\times\) |
| SLAP (Ours) | 0.15 | 0.08 | 0.8 | 177.5\(\times\) |
Green AI: Energy Consumption With the growing concern over the carbon footprint of Large Multi-modal Models, energy efficiency is paramount. SLAP requires only 0.15 TeraFLOPs per inference, translating to approximately 0.5 Joules of energy on an A100. In contrast, Stable Video Diffusion consumes \(\approx\) 150 Joules per query. For a video search engine processing millions of queries per day, switching to a SLAP-based interpolation method would reduce carbon emissions by three orders of magnitude while preserving semantic accuracy.
The hyperparameter \(\lambda\) in the Semantic Action \(S = \int (\frac{1}{2}\|\dot{z}\|^2 - \lambda V(z, q)) dt\) is the critical coupling constant of our physical system. We swept the hyperparameters extensively to find the optimal operating regime. Table 6 details the search space. It governs the trade-off between the temporal smoothness (Kinetic Energy) and the semantic alignment (Potential Energy). In this appendix, we provide a comprehensive analysis of how \(\lambda\) dictates the dynamics of the inferred trajectory and empirically determine the “resonant” regime where object persistence is maximized.
| Hyperparameter | Search Space | Optimal Value |
|---|---|---|
| Coupling Constant \(\lambda\) | \(\{0.01, 0.1, 0.5, 1.0, 5.0, 10.0\}\) | 0.5 |
| Inference Steps \(K\) | \(\{10, 30, 50, 100\}\) | 50 |
| Learning Rate \(\alpha\) | \(\{10^{-3}, 5\times10^{-3}, 10^{-2}, 5\times10^{-2}\}\) | \(10^{-2}\) |
| Hidden Dimension | \(\{1024, 2048, 4096\}\) | 2048 |
| Batch Size | \(\{32, 64, 128\}\) | 64 |
| Coupling \(\lambda\) | Regime | ACC | \(S_{kin}\) | \(E_{pot}\) |
|---|---|---|---|---|
| 0.0 | Ballistic | 41.5% | 0.12 | 0.85 |
| 0.1 | Weak | 65.2% | 0.18 | 0.62 |
| 0.5 | Resonant | 83.9% | 0.35 | 0.31 |
| 1.0 | Strong | 79.1% | 0.88 | 0.15 |
| 5.0 | Chaotic | 52.4% | 4.20 | 0.12 |
| 10.0 | Overdamped | 31.0% | 12.55 | 0.11 |
Theoretical Regimes of Operation The Euler-Lagrange equation for our system is \(\ddot{z} = \frac{\lambda}{\mu} \nabla V(z)\). We can categorize the behavior of the solver based on the ratio \(\kappa = \lambda / \mu\). 1) The Ballistic Regime (\(\kappa \to 0\)): When \(\lambda \ll \mu\), the semantic force is negligible compared to the inertia. The trajectory is dominated by the boundary conditions. The solution converges to the geodesic connecting \(z_{start}\) and \(z_{end}\). 2) The Resonant Regime (\(\kappa \approx 1\)): When the forces are balanced, the trajectory is smooth but responsive. The particle carries momentum from the start frame but can be steered by the potential field of the text. This is the ideal operating point for SLAP. 3) The Chaotic Regime (\(\kappa \to \infty\)): When \(\lambda \gg \mu\), the inertia is negligible. The particle instantly accelerates towards local minima of the potential energy \(V(z, q)\).
Empirical Sensitivity on The Tunnel Test We evaluated the performance of SLAP on the Tunnel Test validation set (\(N=200\) videos) while sweeping \(\lambda\) on a logarithmic scale from \(10^{-2}\) to \(10^{1}\). We measure three metrics: 1) QA Accuracy: Correct identification of the occluded object. 2) Trajectory Smoothness (\(S_{kin}\)): Average discrete kinetic energy \(\frac{1}{T}\sum \|z_{t+1}-z_t\|^2\). 3) Text Alignment (\(E_{pot}\)): Average potential energy \(-\frac{1}{T}\sum P_\theta(z_t, q)\).
In this work, we identified a critical pathology in modern Large Video-Language Models: the Kinematic Naivety that arises from treating video frames as statistically independent tokens rather than states in a continuous physical process. The reliance on sparse sampling to circumvent computational bottlenecks has created a generation of models that “see” snapshots but “hallucinate” motion, leading to severe failures in object permanence and causal consistency when faced with occlusions or long temporal gaps. Extensive experiments show that the proposed method can achievement state-of-the-art performance, which illustrates the effectiveness of our proposed method.
This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here.