Relevant Moments as Magnetic Domains: A Spin-Ladder Pooling Head for Partially Relevant Video Retrieval

A long, unedited video is usually relevant to a text query for only a few seconds. The task of ranking whole untrimmed videos against such a query is called partially relevant video retrieval. Current systems handle it in one of two ways. Some take the single best-matching clip, which is brittle and "spiky". Others average over the video, which dilutes the relevant moment with hours of irrelevant footage. We propose to score a video by asking how easily a coherent block of relevant frames can form in it. The model for this comes from magnetism. Each frame, at each of a few temporal scales, carries a binary switch meaning "this part matches the query". The query similarity acts like an external magnetic field that pushes each switch on. A coupling term makes neighbouring switches want to agree. The video's score is the log-partition function of this small spin system, which is the log of a sum over every possible arrangement of relevant blocks, weighted by how well each arrangement fits. On a ladder with a few scale rows this quantity is exact and cheap to compute. It replaces max-pooling with a principled soft count over contiguous moments, and it returns a per-frame relevance probability for free.

The physics supplies one concrete design principle, which we test directly rather than assert. In two-dimensional magnets, order survives heat only when spins have a preferred discrete direction. This preference is called anisotropy, and it opens an energy gap that cheap, long-wavelength fluctuations cannot cross. When spins can rotate continuously, the Mermin–Wagner theorem says thermal fluctuations destroy long-range order (Two-dimensional multiferroic semiconductors with coexisting ferroelectricity and ferromagnetism). The translation to video is the claim that a discrete relevance variable forms stable moment domains, while a continuous relevance field with the same couplings reduces to linear smoothing of similarity scores. The difference is measurable.

Core Claim

Replace the pooling step of a partially relevant video retrieval model with the log-partition function of an anisotropic spin ladder over time and temporal scale. We claim three things. First, this improves ranking over max-pooling and over smoothed or interval-based pooling at equal backbone and features. Second, the gain comes specifically from the binary ("Ising") relevance variable and not from the smoothing couplings. Third, the per-frame marginals localize the ground-truth moment without any boundary supervision.

Write $s_{t,k}\in\{0,1\}$ for the relevance switch of time step $t$ at scale $k$, with $k=1..S$ and $S$ being 2 or 3. Write $h_{t,k}=a\,\mathrm{sim}(q,x_{t,k})-b$ for the field, where $x_{t,k}$ is the frame or clip feature, $q$ is the query embedding, and $a,b$ are learned. Let $J$ be the learned coupling between neighbours along time and $K$ the coupling between neighbouring scales. The energy and the video score are

$$E(s)=-\sum_{t,k}h_{t,k}s_{t,k}-J\sum_{t,k}s_{t,k}s_{t+1,k}-K\sum_{t,k}s_{t,k}s_{t,k+1},\qquad \mathrm{score}(q,v)=\log\sum_{s}e^{-E(s)}.$$

The all-off configuration contributes exactly 1, so the score measures how much credible relevant structure the video holds on top of "nothing matches". Because the ladder has only $S$ rows, we can compute the sum exactly. A transfer-matrix recursion over time with $2^S$ states per step costs $O(T\,4^S)$, which is linear in video length. It is differentiable, and backpropagation through it yields the marginals $P(s_{t,k}=1)$. The coupling $J$ sets a moment-length prior. For a one-dimensional Ising chain the standard transfer-matrix result gives a correlation length that grows roughly exponentially in coupling strength, so a learned $J$ is directly readable as a typical moment length in frames. We will report it per dataset.

Relation to Prior Work

Several prior methods attack the dilution problem by building better temporal units. Multi-scale similarity learning treats the video as a bag of sliding-window clips and frames and pools by best match (Partially Relevant Video Retrieval). Uneven event modeling replaces fixed windows with scene-transition groupings (Uneven Event Modeling for Partially Relevant Video Retrieval). GMMFormer removes windows entirely with Gaussian-shaped local attention (GMMFormer). All three still end in a max or attention pool over units. Our head is complementary: it changes the pooling and can sit on top of any of them.

Two methods are closest in spirit and constrain the design. Holmes uses optimal transport with an "adaptive dustbin" to discard irrelevant clips and explicitly diagnoses the spikiness of standard multiple-instance pooling (Revisiting Uncertainty). Its dustbin treats each discarded clip independently, whereas our couplings make relevance contiguous by construction. HLFormer imposes an ordering "text ≺ video" through hyperbolic entailment cones (Enhancing Partially Relevant Video Retrieval with Hyperbolic Learning). That ordering lives at the level of whole-video embeddings, not along the frame sequence.

The time-by-duration maps used in grounding (Text-Visual Prompting for Efficient 2D Temporal Video Grounding) enumerate all intervals at quadratic cost for a single video. Our ladder implicitly sums over all interval arrangements, including several disjoint ones, in linear time. It is meant for corpus-scale ranking.

The magnetism papers play a motivating role only; they supply no method we reuse. The MXene study shows that changing surface chemistry moves a material from a continuous-spin (Heisenberg/XY) regime to an anisotropic Ising regime that holds order (Tuning Noncollinear Spin Structure and Anisotropy in Ferromagnetic Nitride MXenes). The site-dilution work shows that a field of about a thousandth of the exchange scale can induce an ordering crossover in an anisotropic 2D antiferromagnet (Extraordinary Magnetic Response of an Anisotropic 2D Antiferromagnet via Site Dilution). This motivates our hypothesis that a weak but consistent query field over a coupled region should outscore a single strong but isolated match. We do not claim that retrieval inherits physical theorems. Our finite ladder has no true phase transition. What we borrow is the discrete-versus-continuous distinction, and we test it empirically.

Research Program

We will implement the ladder head as a drop-in pooling module. The recursion runs in log-space for stability, and the parameters $a,b,J,K$ are either shared across queries or predicted from the query by a small network. The head will be attached to two public-style backbones reproduced on the same frozen features: the multi-scale similarity model and GMMFormer. The training loss is the backbones' own contrastive ranking loss with our score substituted, which keeps comparisons clean.

We then run three analyses. First, we measure the learned $J$ and its implied moment length against the true moment-length distributions of each dataset. Second, we score the marginals against the ground-truth boundaries that retrieval training discards. Third, we track behaviour as the fraction of the video that is relevant shrinks, which is the regime where dilution bites.

Baselines

The naive reference point is mean-pooling of frame similarities on the same backbone. It measures how much dilution costs at all.

The first strong reference is the backbone's native pooling. For GMMFormer the file reports TVR SumR (sum of recalls) of 176.6, against 172.4 for MS-SL (GMMFormer). MS-SL++ reports TVR SumR 174.4 (Partially Relevant Video Retrieval). We first reproduce these numbers on our features and compare against our reproductions. Same features, same training schedule, and the same number of hyperparameter trials for every pooling variant.

The strongest existing methods are Holmes and HLFormer. Holmes reports ActivityNet Captions SumR 156.8, 0.7 above DreamPRVR (Revisiting Uncertainty). On TVR it reports a margin of 8.1 SumR over MGAKD, and the file gives no absolute TVR value. HLFormer reports only relative gains over DL-DKD: 4.3% on TVR and 4.9% on ActivityNet Captions. For Charades-STA, no reported result was found on Lacuna for any of these methods, so we will produce all Charades numbers ourselves under one protocol.

Beating the native pooling of a backbone by more than the variation across three seeds counts as a win for the head. Matching Holmes's 156.8 on ActivityNet from a simpler backbone would count as practically significant. We will also report the ladder head on top of Holmes's optimal-transport branch if we can reproduce it.

Three ablations isolate the key ingredient. The first, and the decisive one, is the isotropic variant: identical couplings and field, but with $s$ continuous and Gaussian-distributed rather than binary. This makes the score a closed-form quadratic, which is exactly a linear smoothing of similarities. The second sets $J=K=0$, which reduces to an independent soft-OR over frames. The third keeps $K=0$, a single time chain, to test whether the scale axis adds anything.

Why not just…?

Why not just enumerate all intervals and take the best one, as in 2D temporal grounding maps? This is the real threat, because interval max-pooling also enforces contiguity. It differs from our score in three ways: it picks a single interval, it costs quadratic time in $T$, and it gives no calibrated marginals. We will run it on the same backbone with a length-normalized interval score. If it matches the ladder on SumR, the proposal's claim shrinks to efficiency and localization. We will report that outcome as such rather than argue around it.

Why not just smooth frame similarities with a temporal filter and take the max? This is essentially what GMMFormer's Gaussian locality already provides inside the encoder (GMMFormer). It is also exactly our isotropic ablation. If the binary ladder does not beat the continuous version with matched couplings, the anisotropy hypothesis is falsified.

Why not just use a log-sum-exp or top-k mean with a tuned temperature? This interpolates between max and mean without any notion of contiguity, and it matches our $J=K=0$ ablation up to the offset term. Holmes's diagnosis of spiky multiple-instance activations (Revisiting Uncertainty) suggests that tuning the temperature alone will not suffice. The ablation settles it on our data.

Proposed Experiments

We will evaluate on TVR (TVR), ActivityNet Captions (Dense-Captioning Events in Videos) and Charades-STA (TALL). We report Recall@1, 5, 10 and 100 and SumR under each benchmark's convention, plus retrieval time and storage, since the head adds no stored features.

The decisive check is the binary-versus-continuous comparison at matched couplings on all three datasets. A consistent gain for the binary ladder supports the transferred principle; no gain refutes it.

The second check stratifies queries by the fraction of the video they cover. We predict that the ladder's advantage over max-pooling grows as that fraction shrinks. We also predict it gains most on queries whose moment is long but only moderately similar, the "weak field over a coupled region" case.

The third check is unsupervised localization. We threshold the marginals $P(s_{t,1}=1)$ and compute temporal overlap with ground-truth boundaries. We compare against attention weights from the native backbone and against the argmax interval of the enumeration baseline.

Finally, we check whether the learned coupling tracks dataset moment lengths. Charades moments are short relative to their videos, while ActivityNet events are longer. If the implied correlation length orders the datasets correctly, the prior is doing interpretable work rather than acting as an extra free parameter.