Modeling Variable Length Video Sequences

This direction is split into other directions: temporal duration variability. Its last version stays readable and citable here.

Version 1 of 152 papers56 conceptsfrozen 2026-10-04

In computer vision, video is often treated as a "3D image"—a rigid block of pixels with height, width, and time. However, real-world video is rarely rigid. A person might walk across a camera's view in three seconds or thirty; a facial expression might flash in a micro-moment or linger for several seconds.

Standard deep learning architectures, like 3D CNNs or fixed-window Transformers, struggle with this fluidity. They typically require a fixed number of input frames, forcing researchers to use lossy preprocessing like cropping (which discards data) or padding (which introduces noise). To solve this, a growing body of research focuses on temporal flexibility: architectures that can ingest sequences of any duration and map them into a consistent, discriminative space.

Aggregation through Temporal Pooling

The most direct way to handle variable lengths is to decouple the frame-level feature extraction from the final video-level representation. Instead of assuming a fixed temporal "volume," models can extract features for every available frame and then "pool" them.

Peng Wang and Chunhua Shen pioneered this with Temporal Pyramid Pooling (TPP) in Temporal Pyramid Pooling Based Convolutional Neural Networks for Action Recognition. TPP works by dividing a video into a hierarchy of temporal bins (e.g., the whole video, two halves, four quarters). By max-pooling features within these bins, the network produces a fixed-length descriptor regardless of whether the input had 10 frames or 100. This preserves the coarse temporal order of an action without being tied to a specific frame count.

Recurrent Memory and Dynamic Masking

While pooling is efficient, it can lose the fine-grained "evolution" of a gesture. Recurrent Neural Networks (RNNs) offer a more natural fit for variable lengths because they process inputs sequentially.

In Person Re-Identification via Recurrent Feature Aggregation, Yichao Yan and colleagues introduced RFA-Net, which uses LSTMs to "remember" high-quality features and "forget" occlusions over sequences of varying durations. The hidden state of the LSTM acts as a running summary that grows more refined with every frame, eventually producing a single feature vector that represents the entire appearance of a subject.

However, when training these models in batches, researchers often must pad shorter videos with zeros to match the longest one in the batch. This "zero-padding" can pollute the model's memory. To counter this, Dimitrios Kollias and Andreas Psaroudakis proposed MMA-MRNNet in MMA-MRNNet: Harnessing Multiple Models of Affect and Dynamic Masked RNN for Precise Facial Expression Intensity Estimation. Their "Masked RNN" tracks the actual frame count of each sample and dynamically ignores the padded regions, ensuring that the final temporal representation is derived only from valid data.

Geometric and Imprint Representations

Another perspective treats a variable-length video not as a sequence, but as a geometric object. Stephen O'Hara and Bruce A. Draper explored this in Scalable action recognition with a subspace forest. They represent video "tracklets" as subspaces on a Grassmann manifold. In this view, a video is a point on a curved mathematical surface; the "length" of the video simply changes the precision of the subspace estimation but doesn't change the dimensionality of the point itself.

A similar "compression" logic appears in the work of Zhanning Gao and Nanning Zheng. In Video Imprint Segmentation for Temporal Action Detection in Untrimmed Videos, they project variable-length videos into a fixed-size "video imprint" tensor. By flattening the temporal dimension into a semantic map, they allow standard 2D Fully Convolutional Networks to perform temporal localization, effectively turning a time-varying problem into a static segmentation task.

Modern Sequence Modeling and Alignment

Recent breakthroughs in sequence modeling, such as State Space Models (SSMs) and differentiable alignment, have further pushed the boundaries of temporal flexibility.

  • Selective State Spaces: Juho Jung and Sunghee Yun applied the Mamba (S6) architecture to temporal action localization in Enhancing Temporal Action Localization: Advanced S6 Modeling with Recurrent Mechanism. Unlike Transformers, which have quadratic complexity relative to sequence length, SSMs can process extremely long, variable-length videos with linear efficiency.
  • Learned Matching: Darryl Ho introduced DejaVid in DejaVid: Encoder-Agnostic Learned Temporal Matching for Video Classification, which uses a differentiable version of Dynamic Time Warping (DTW). DTW is a classic algorithm for comparing two sequences of different speeds or lengths. By making it differentiable, DejaVid allows a neural network to learn how to align a variable-length query video against a set of reference actions, effectively "stretching" or "compressing" time to find the best match.

By moving away from fixed-length constraints, these researchers are enabling AI to perceive video more like humans do: as a continuous, elastic stream of information where the meaning of an action is defined by its content, not its duration.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_modeling_variable_length_video_sequences_646b964c,
  title = {Modeling Variable Length Video Sequences},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/modeling-variable-length-video-sequences/rdr_646b964c134944469a6919b08cbbd522},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_modeling_variable_length_video_sequences_646b964c_v1,
  title = {Modeling Variable Length Video Sequences},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/modeling-variable-length-video-sequences/rdr_646b964c134944469a6919b08cbbd522/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}