Location Dependency in Video Prediction

Niloofar Azizi, Hafez Farazi, Sven Behnke

Introduction

In computer vision, spatial invariance is typically considered a strength. Standard Convolutional Neural Networks (CNNs) use shared weights across an entire image, allowing them to recognize a feature regardless of its position. However, in the context of video prediction—forecasting future frames based on past observations—this invariance can become a significant limitation. Predicting the trajectory of an object often requires knowledge of the local environment, such as the location of boundaries or static obstacles. This paper explores "location-biased" convolutional layers designed to break spatial invariance just enough to allow models to learn the "geography" of a scene.

Methodology: Injecting Location Awareness

The authors propose three primary methods to introduce spatial context into predictive architectures like the Video Ladder Network (VLN) and the Convolutional Predictive Gating Pyramid (Conv-PGP). These methods aim to overcome the limitations of standard CNNs, which often only "accidentally" learn spatial boundaries through zero-padding—a method that is both unreliable and inefficient. Unlike switching to Fully Connected (FC) layers, which would provide location awareness at the cost of a massive parameter explosion, these methods maintain the efficiency of convolutional weight sharing.

Architectural variants for injecting location awareness: (a) Location Encoding (LE) and Occlusion Patterns (OP), (b) Learnable Location-Dependent Biases (LB), and (c) the hybrid approach.
  1. Location Encoding (VLN-AI): This method appends extra channels to the input data. Two channels provide a coordinate system via x and y gradients, while a third channel provides an "occlusion pattern" map. This explicitly informs the network of its relative position within the frame.
  2. Learnable Location-Dependent Biases (VLN-LDC): Standard convolutions apply a single bias value across an entire feature map. The authors replace this with a full-sized bias map. This allows the network to learn location-specific behaviors, such as mirroring velocity at a border, without increasing the number of convolutional filters.
  3. Hybrid Approach (VLN-LDCAI): This combines both techniques, utilizing learnable biases that are further informed by predefined coordinate gradients to maximize spatial awareness.

Experimental Setup

To evaluate these methods, the researchers developed "occluded" versions of standard benchmarks to simulate real-world complexity:

  • Occluded Moving MNIST: Handwritten digits move within a 64x64 grid containing occluding bars. Digits are programmed to "bounce" off invisible boundaries near the frame edges.
  • Occluded Bouncing Ball: A simplified dataset where a single ball must be tracked through occlusions and predicted as it interacts with frame boundaries.

Results and Discussion

The inclusion of location awareness led to significant improvements in both quantitative metrics and qualitative visual quality across all tested architectures.

Quantitative Performance

On the Occluded Moving MNIST task, the baseline VLN achieved a Binary Cross-Entropy (BCE) loss of 165.9. The location-aware VLN-LDCAI reduced this to 153.2. The impact was even more pronounced for the Conv-PGP model on the Bouncing Ball task. The baseline Conv-PGP had a loss of 266.9; adding learnable location biases (Conv-PGP-LDC) slashed that loss to 139.4, representing nearly a 50% improvement in predictive accuracy.

Qualitative Analysis

Visually, standard models often struggle when objects encounter occlusions or boundaries, frequently causing the object to "vanish" or fail to reappear correctly. In contrast, location-biased models demonstrate a learned understanding of the scene's physics.

Qualitative comparison on the Bouncing Ball task. The location-biased model (Conv-PGP-LDC) maintains object tracking through occlusions and predicts bounces more accurately than the baseline Conv-PGP.

As shown in the comparison above, the Conv-PGP-LDC model successfully tracks the object through occluded regions and accurately predicts the trajectory after a bounce. In contrast, the baseline model's predictions (labeled 'P' in the vertical strips and 'Conv-PGP' in the sequence) show the object fading or disappearing entirely when it should be interacting with the environment.

Conclusion

While spatial invariance is useful for recognition, video prediction benefits from breaking this rule. By introducing computationally efficient location biases, models can learn the environmental constraints of a scene. While these results were obtained on synthetic datasets, they prove that location awareness is a critical component for modeling physical interactions. Future work will involve testing these methods on more complex, real-world datasets, such as autonomous driving feeds, where occlusions and spatial context are even more varied.

Summary updated

BibTeX
@inproceedings{azizi2018location,
  author = {Niloofar Azizi and Hafez Farazi and Sven Behnke},
  title = {{Location Dependency in Video Prediction}},
  booktitle = {ICANN},
  year = {2018},
  doi = {10.1007/978-3-030-01424-7\_62},
}
Figure