Many of the events we most want to detect in video are tiny in both space and time: a hand slipping into a pocket in a surveillance feed, or a low-contrast lesion visible for a few frames of an ultrasound sweep. Training labels usually say only whether such an event occurs somewhere in a video, not where or when. The standard tool for this weak-label setting is multiple instance learning. In multiple instance learning, the video is a "bag" of pieces called instances, and the model must work out which instance justifies the bag's label. Current video methods cut the video into one-second snippets and compress each whole frame into a single vector. They have learned not to average away a brief event over time. They still average away a small event over space.
We propose making the instance a tube: a short, learned path of a few image locations followed across consecutive frames. The model places seed points where a cheap coarse score is high. A small network then predicts where each point moves in the following frames, and the model scores the evidence gathered along that path. The bet is that a real event is small but coherent. It persists for several frames and moves continuously. Background noise that happens to look anomalous in one patch of one frame does not do this. Pooling along a tube should therefore raise the signal relative to noise compared with scoring independent patches, while keeping the spatial resolution that snippet-level methods throw away.
Core Claim
Under video-level labels only, scoring short learned spatio-temporal paths beats two simpler designs on small, brief events. The first is scoring whole snippets. The second is scoring individual patches as an unordered set. The gain should grow as the event's spatial footprint shrinks. Path offsets can be learned without boxes or an external tracker, provided a self-supervised appearance-consistency term prevents the offsets from hopping to whatever patch scores highest.
The closest existing work misses this combination in a specific way. STNet adapts deformable attention to ultrasound video so that queries sample a few learned space-time points rather than attending densely, and it reaches 40.0% mAP on BLUVD-186. However, it trains the offsets with per-frame lesion boxes and works on 6-frame windows. TadTR does the same along time only, also with interval supervision. On the weak-label side, UMIL averages snippet predictions instead of features so that brief anomalies survive. Its snippets are still spatially pooled X-CLIP vectors. STEAD uses global linear attention over snippet features, and Sultani et al. rank C3D segment features. No work in the material learns where to look inside frames, and how that location moves, from bag labels alone. That is the gap this proposal targets.
Research Program
Coarse map and seeds. A frozen video backbone produces a grid of patch tokens for each frame. A lightweight linear scorer on average-pooled tokens produces a coarse relevance map, borrowing the low-resolution "draft" idea of DraftAttention but using it for a discriminative task. From this map the model picks $M$ seed locations per snippet, using top-$M$ selection with some random seeds kept for exploration.
Tube construction. For a seed at position $p_0$ in frame $t_0$, an offset network predicts a displacement for each of the next $L$ frames. The sampled position in frame $t_0+\ell$ is
$$ p_\ell = p_{\ell-1} + \Delta_\theta\big(f_{t_0+\ell-1}(p_{\ell-1}),\, f_{t_0+\ell}\big), \qquad \ell = 1,\dots,L, $$
where $f_t(p)$ is the bilinearly interpolated feature at position $p$ in frame $t$ and $\Delta_\theta$ is a small network that sees the current feature and a local window of the next frame. The $L+1$ sampled features pass through temporal self-attention along the path, as in the along-track attention of Tracktention, and are pooled into one tube embedding and one tube score. The cost is $O(M L)$ sampled tokens per snippet rather than the full grid.
Bag score. Tube scores are combined into a video score by attention pooling. As a variant, we also try associative retrieval against learned prototypes, following the Hopfield pooling that FLDL found necessary at extreme witness rates.
Training objective. We train with the ranking loss of Sultani et al., together with its sparsity and temporal-smoothness terms on scores, and add a consistency term on the paths themselves:
$$ \mathcal{L} = \mathcal{L}_{\text{rank}} + \lambda_s \mathcal{L}_{\text{sparse}} + \lambda_c \sum_{\ell} \big\| f_{t_0+\ell}(p_\ell) - f_{t_0+\ell-1}(p_{\ell-1}) \big\|^2 + \lambda_m \sum_\ell \|p_\ell - 2p_{\ell-1} + p_{\ell-2}\|^2 . $$
The third term asks the path to follow the same content from frame to frame. The fourth penalizes acceleration, which encodes the idea that objects move smoothly rather than teleport. Without these terms nothing forces a tube to be a track. The classification loss alone would reward offsets that jump to the highest-scoring patch in each frame, and the model would collapse to max-pooling over patches. Whether the consistency terms prevent that collapse is one of the program's central empirical questions. We measure it directly by checking how often paths jump more than a patch width between frames and how well appearance matches along each path.
Analysis. We stratify results by how large the event is in the frame and by event class. Small, subtle classes include stealing and shoplifting; large, salient classes include explosion and fire. We also measure whether the highest-scoring tubes land on the event.
Baselines
The naive reference point is snippet-level multiple instance learning on spatially pooled features from the same frozen backbone, trained with the Sultani ranking loss. It shows what spatial resolution adds when nothing else changes. On UCF-Crime, the original C3D version of this baseline reports 75.41% frame-level AUC (Sultani et al.).
The strongest existing method is STEAD, which reports 91.34% AUC on UCF-Crime with STEAD-Base. We regard it as the main competitor because it is the best weak-label number in the file. Its global linear attention is also the main alternative answer to the compute problem. Of the two other strong methods, DS-AEMN reports 87.43% AUC on UCF-Crime and 85.51% AP on XD-Violence, and UMIL reports 86.75% on UCF-Crime and 92.93% on TAD.
STEAD and our model use different backbones, so we report two numbers. One is STEAD's published figure. The other is STEAD retrained on our backbone, with the same hyperparameter-search budget as our model and three seeds each. Beating STEAD means one of two outcomes. Our model could exceed its retrained AUC on UCF-Crime overall. Alternatively, our model could match it overall while showing a clear, seed-stable gain on the small-event classes and on localization; STEAD cannot localize at all.
The key ablation is unordered patch-level attention multiple instance learning. Every patch token in every frame is an independent instance, with the same backbone, pooling and loss but no tubes. This isolates the claim that temporal linking matters. A second ablation keeps the tubes but removes the consistency and smoothness terms. This tests whether learned paths are real tracks or disguised max-pooling. A third replaces learned offsets with tracks from the off-the-shelf point tracker CoTracker3, the tracker used by Tracktention, sampled at the same seeds. This separates the value of tube-shaped instances from the value of learning the paths.
On ultrasound, fully supervised STNet at 40.0% mAP on BLUVD-186 is an upper reference that we do not expect to beat. The meaningful comparison is how much of that gap a weak-label model closes. We have no reported result on Lacuna for weakly supervised lesion localization on BLUVD-186.
Why not just…?
Why not just score every patch as an independent instance? This is the most serious threat. Attention pooling over all patches is already linear in their number, so tubes are not needed to save compute. Our argument for tubes is about noise. With video-level labels, a single noisy patch can produce an isolated spurious activation. FLDL found that max-style pooling degrades in low-signal regimes, with a 70.2% versus 84.2% positive call rate at the limit of detection, and UMIL shows top-instance selection latching onto contextual shortcuts. A path that must persist for $L$ frames averages away such one-off spikes. Our prediction is that patch-level pooling matches tubes on large events but loses on small ones and raises false alarms on normal videos. If the patch baseline matches tubes in every size stratum, we will report that temporal linking is unnecessary and that the contribution reduces to spatial instances.
Why not just use an off-the-shelf tracker to build the tubes? This is also a credible competitor, and it is included as a baseline. Tracktention and TSA-Net both note that their performance is bounded by the tracker. The tracker drifts under blur, occlusion and low contrast, and fixed tubes either clip motion or admit background. Those are the conditions of dark surveillance scenes, where Sultani's method fails most, and of speckled ultrasound. We expect tracker tubes to do well on clear daytime footage and to fall behind learned paths on low-light subsets and on BLUVD-186. If they do not, the honest conclusion is that a frozen tracker suffices.
Why not just use a stronger snippet-level model like STEAD? STEAD already reaches 91.34% AUC, and frame-level AUC is dominated by large, salient anomalies. A spatial method could therefore lose on the headline metric while still being the better detector of subtle events. We do not claim to beat STEAD overall. Our claim is narrower: snippet pooling should lose on small events, which we measure with the class and size stratification and with localization, an ability STEAD lacks. If STEAD retrained on our backbone matches us on small-event classes too, spatial resolution is not the bottleneck on these benchmarks.
Proposed Experiments
The main benchmarks are UCF-Crime (frame-level AUC and false alarm rate on normal videos), XD-Violence (AP) and TAD (AUC), all trained with video-level labels only and with the baselines and seeds described above.
The first decisive check stratifies UCF-Crime results by anomaly class and by event size. The prediction is that the gap between tubes and both snippet pooling and patch pooling widens as events shrink. For localization, UCF-Crime has no spatial labels in the material, so we will hand-annotate boxes on a few hundred anomalous test frames. We will report a pointing hit rate: the fraction of frames where the top tube falls inside the box. This mirrors Cello's budgeted-inspection hit rate on pathology slides (Cello), where it reaches 72.5% against baselines below 30%. We have no reported spatial-localization result on Lacuna for UCF-Crime.
The second check is the collapse test. It compares path jump statistics and appearance agreement along paths, with and without the consistency terms, against CoTracker3 tracks on the same seeds.
The third check transfers the setting to BLUVD-186. Each ultrasound video gets only its malignant or benign label. We measure classification accuracy and the lesion-localization mAP of the top tubes against STNet's supervised 40.0%. This tests whether learned paths survive deforming, low-contrast targets, where point trackers are expected to fail.
The fourth check is a compute curve. We vary the number of seeds $M$ and the tube length $L$ and plot AUC against sampled tokens per snippet. This shows whether a small budget recovers the patch baseline's accuracy at a fraction of its cost.
The program succeeds if tubes beat patch pooling on small events and in localization. It fails, and the paper says so, if unordered patches or frozen-tracker tubes do as well.
References
- A Spatial-Temporal Deformable Attention Based Framework for Breast Lesion Detection in Videos
- End-to-end Temporal Action Detection with Transformer
- Unbiased Multiple Instance Learning for Weakly Supervised Video Anomaly Detection
- STEAD: Spatio-Temporal Efficient Anomaly Detection for Time and Compute Sensitive Applications
- Real-World Anomaly Detection in Surveillance Videos
- DraftAttention: Fast Video Diffusion via Low-Resolution Attention Guidance
- Tracktention: Leveraging Point Tracking to Attend Videos Faster and Better
- Detecting Sparse Colorectal Cancer Signals from Multi-Modal Cell-Free DNA Representations Using Modern Hopfield Attention
- Dual-Stream Attention-Enhanced Memory Networks for Video Anomaly Detection
- TSA-Net: Tube Self-Attention Network for Action Quality Assessment
- Cello: A Universal Cell-wise Feature Aggregation framework for Reliable Pathology Images Analysis