Continuous Space-Time Copy-Paste for Long-Tailed Video Recognition

Video classifiers built from 3D convolutions, which are filters that slide over height, width and time so they can pick up motion directly, are trained on data where a few behaviors are common and most are rare. For a rare class with a few dozen clips, the cheapest way to fit the training set is to memorize the backdrop: the particular forest slope, feeder, or kitchen where those clips happened to be filmed. The standard fixes for long-tailed video either reweight the loss or reshuffle and stack frames. Reweighting does not add visual evidence. Frame stacking breaks the continuous motion that a 3D filter needs to see.

We propose a cheap, explicit form of multi-object scene synthesis as the fix. We cut the moving animal or actor out of a rare-class clip as a masked, temporally contiguous "tube" of pixels, then paste one or more such tubes into backgrounds taken from other clips. Placement, scale and start time are randomized, but frame order inside each tube is never broken. The bet is that this separates what is moving from where it is filmed, the same separation of identity from placement that compositional generators use. It does so without learning any 3D generator, and it hands a 3D convolutional network many new, motion-intact examples of each tail class.

Core Claim

In long-tailed video recognition with 3D convolutional backbones, much of the tail-class error comes from background shortcuts rather than a lack of motion evidence. Recomposing tail-class foreground tubes into foreign backgrounds should remove those shortcuts, and it should help more than frame-level resampling does. We expect two interaction effects, and those are the novel, falsifiable part. First, the gain from continuity-preserving composition should be larger for a 3D backbone than for a 2D frame backbone. Second, frame-level mixing of the FrameStack kind should help 2D backbones more than 3D ones, because it destroys the temporal continuity 3D filters rely on.

The compositing step is the per-voxel blend used by Generating Videos with Scene Dynamics. That paper learns a mask that mixes a moving foreground over a static background. We take the mixing rule from it but not the learning. For every pixel location $p$ and frame $t$,

$$x'(p,t) = m(p,t)\,x_{\text{fg}}(\phi(p),t+\tau) + \big(1-m(p,t)\big)\,x_{\text{bg}}(p,t),$$

where $x_{\text{fg}}$ is the donor tail clip, $x_{\text{bg}}$ is the recipient clip, $m$ is the donor's instance mask carried through the same transform, $\phi$ is a random 2D similarity transform (translation and scale), and $\tau$ is a random time offset. Because $\tau$ is a single offset applied to every frame, the donor's internal frame order is preserved.

For multi-label data, several tubes are pasted with a painter's-order occlusion, and the label of the new clip is the union of the pasted labels plus any label the background clip already carried.

Research Program

The primary setting is stationary camera-trap video. Here the stationary-camera assumption that limited Generating Videos with Scene Dynamics actually holds, so pasted animals move plausibly against a fixed scene. LoTE-Animal is the natural test bed. It provides instance masks and 21 long-tailed behaviors across 11 endangered species filmed by fixed infrared triggers, which means no segmentation model is needed to build tubes. Animal Kingdom adds 140 long-tailed actions across 850 species. Its mixed camera motion makes it a harder second test, and its masks would come from an off-the-shelf video segmenter.

VideoLT is the hardest setting. It has 1,004 classes, untrimmed clips and heavy camera motion, and it has the strongest published long-tailed numbers. It tells us whether the idea survives outside camera traps. CharadesLT from MEID tests the multi-object, multi-label version of the composition.

The backbone is a C3D-style network with 3×3×3 filters throughout, following Learning Spatiotemporal Features with 3D Convolutional Networks. The paired 2D backbone is a ResNet with temporal pooling, matched on parameter count.

Composition is applied only when a sampled training clip belongs to a medium or tail class. The pasting rate is tuned so that the effective class frequency flattens by a controlled factor, and the donor's class is never pasted onto a background from the same source video.

Three diagnostics are built alongside the method. The first is a background-swap test set: held-out tail clips whose foreground tube is pasted onto backgrounds of other classes. The accuracy drop on this set measures how much the model relies on scene context. The second is a time-scrambled control: the same pasted tubes with frames permuted inside the tube, which isolates the value of continuity. The third is a background-only probe: the tube is filled in with background, and we measure how often the model still predicts the true tail class.

The idea draws on prior work in three roles. GIRAFFE, ObPose and Comp4D motivate the separation of identity from placement. We deliberately do not learn their 3D fields or Gaussians: these methods are evaluated on faces, tabletops or text-prompted assets, and they rely on LLM-planned trajectories. None of that supplies behavior-faithful motion for a rare snow-leopard action.

SegPVSG is the closest prior. It also generates extra clips for tail interactions, but it does so by diffusion inpainting between 2D anchor frames, and it depends on upstream trackers. Our tubes are real pixels with real motion and require no generator.

Deep End2End Voxel2Voxel Prediction constrains the design. It reports that semantic pretraining strips low-level motion filters. We therefore check whether composition keeps the early-layer motion sensitivity intact, measured by a linear probe for motion direction.

Baselines

The naive reference is the same 3D backbone trained with plain cross-entropy and uniform clip sampling. We also run class-balanced loss. On VideoLT with a ResNet-101 frame backbone, VideoLT reports 51.6% overall mAP for the plain baseline and 51.1% for class-balanced loss, so reweighting is expected to be flat. We rerun it to confirm this on 3D features.

FrameStack is the most direct competitor on the continuity question. Also from VideoLT, it mixes frames across clips according to running per-class average precision. It reaches 53.2% overall mAP on ResNet-101 and improves the tail by 2.1%.

The strongest published long-tailed video method in the file is MEID. It uses two experts with complementary frame selection and head-to-tail distillation. It reports 61.9% overall mAP on VideoLT with ResNet-50, and it raises tail mAP from 0.419 to 0.652 with ResNet-101. On Animal Kingdom action recognition on unseen species, the CARe model of Animal Kingdom reaches 39.7%, against 36.2% for Mixup. We found no reported behavior-recognition result on Lacuna for LoTE-Animal, so there we establish the baselines ourselves.

All of these published numbers come from 2D frame backbones. Fairness therefore requires running every method on both our 3D and our 2D backbone, with identical data splits, epochs, GPU-hours, and an equal hyperparameter search budget (the same number of trials per method). MEID and FrameStack need frame selection, which we implement over 3D clip windows rather than single frames. The proposal counts as beating them if it exceeds MEID's tail mAP on the 3D backbone under this matched protocol, and if it is additive: MEID plus composition should beat MEID alone.

Three ablations isolate the key ingredient. The first swaps the mask for the tube's bounding box, which is roughly a spatiotemporal CutMix. The second permutes frames inside the tube, which breaks continuity. The third pastes head-class tubes into tail backgrounds instead of the reverse, which tests whether the effect is really about decoupling tail foregrounds from their scenes.

Why not just…?

Why not just reweight or resample the loss? Reweighting changes how much each existing example counts but adds no new visual evidence. FishNet argues that reweighting cannot make up for missing samples, and on VideoLT class-balanced loss scored below the unweighted baseline. We still include it, and our background-swap test will show whether reweighting reduces scene reliance at all. We predict it does not.

Why not just use FrameStack or other frame-level mixing? This is the alternative the core claim targets. FrameStack adds tail evidence, but its stacked frames are discontinuous in time, which should hurt 3D filters specifically. If FrameStack gains as much on the 3D backbone as it does on the 2D one, and matches our method, the continuity argument is wrong. The factorial design of backbone crossed with augmentation decides this directly.

Why not just use box-level spatiotemporal CutMix, which needs no masks? This is a real threat. If a pasted box carrying its own local background works as well, then masks and scene composition are unnecessary and the contribution shrinks to "mix tail clips in time." The box ablation settles it. We expect the gap to be largest on the background-swap test, because a box carries part of the donor's scene with it. If the gap is negligible, we will report the simpler method as the finding.

Why not just synthesize tail clips with a video diffusion model, as SegPVSG does? SegPVSG nearly tripled tail mR@100 on OpenPVSG, from 4.76 to 12.75, so generation clearly helps. However, it relies on trackers and on inpainting between anchor frames, and generated motion for rare animal behaviors is unverified. Principled Long-Tailed Generative Modeling via Diffusion Models shows that diffusion models themselves degrade on tail classes. Where compute allows, we run a diffusion-augmented baseline on LoTE-Animal at a matched number of synthetic clips, and report both accuracy and generation cost.

Proposed Experiments and Decisive Checks

The main experiment is a two-by-five factorial on LoTE-Animal and Animal Kingdom. One axis is the backbone: 3D convolutional versus 2D with temporal pooling. The other axis is the training scheme: plain, class-balanced loss, FrameStack, MEID, and ours. We report head, medium and tail accuracy separately, since averages hide tail failure as Are Species Identification Tools Biodiversity-friendly? documents. VideoLT and CharadesLT follow with the same design, using mAP split by head, medium and tail.

Four checks decide the outcome. The first is the interaction test: our tail gain on 3D minus our tail gain on 2D should be positive, and FrameStack's should be negative or near zero. The second is that the mask-versus-box and ordered-versus-scrambled ablations should each account for a measurable share of the tail gain. The third is that the background-swap drop should shrink substantially under our method and not under reweighting. The fourth is that the motion-direction probe on early layers should not degrade, which addresses the fine-tuning concern raised by Voxel2Voxel.

A clean negative is also informative. If the gains appear on camera traps but vanish on VideoLT, compositing is limited by camera motion, which would point toward pasting in stabilized coordinates as the next step.