Beyond the Camera: Neural Networks in World Coordinates

Gunnar A. Sigurdsson, Abhinav Gupta, Cordelia Schmid, Karteek AlahariarXiv 2020 · arXiv

Abstract

Standard computer vision models are typically "locked" to the fixed camera frame, processing static crops that are vulnerable to camera shake, varying subject scales, and background clutter. This paper introduces WorldFeatures, a framework that decouples neural network features from the camera frame by attaching a spatial transformation to every feature at every layer. By modeling biological eye movements—such as stabilization, smooth pursuit, fixation, and saccades—within the network architecture, we enable "active" vision. Our approach demonstrates significant improvements in action recognition, video stabilization, and fine-grained image classification without the need for explicit high-resolution re-rendering.

Introduction

Most deep learning architectures for vision operate on fixed-size inputs (e.g., 224x224 pixels) defined by the camera's recording parameters. In contrast, the human visual system is inherently active. Our eyes move constantly to stabilize images via the vestibulo-ocular reflex, track moving objects through smooth pursuit, and jump between points of interest using saccades to extract high-resolution details.

Overview of WorldFeatures and the four modeled eye movements: Stabilization, Pursuit, Saccades, and Fixation.

WorldFeatures seeks to bridge this gap by allowing neural networks to operate in world coordinates rather than camera coordinates. This flexibility allows models to ignore irrelevant camera motion and focus on the salient parts of a scene, much like a human observer.

Methodology: Implicit Transformations

The core innovation is the WorldFeature: a pair consisting of a feature map ($x$) and an arbitrary spatial transformation ($\mathcal{T}$). Instead of preprocessing videos to stabilize them—which can introduce blurring or require massive computational canvases—the authors propose implicit transformation.

Layer Wrapping

The framework "wraps" standard neural network layers (e.g., 3D Convolutions or MaxPooling) so they become aware of world coordinates. For a convolution with a temporal extent of $k$, the network aligns the receptive fields of those $k$ frames into a common coordinate system on the fly using Spatial Transformer Network (STN) grid sampling.

Implicit transformation mechanism: A single video sequence is mapped into multiple coordinate systems ($\mathcal{T}_1, \mathcal{T}_2, \mathcal{T}_3$) to facilitate different visual tasks.

Modeled Eye Movements

The authors formalize four specific transformation types inspired by biology:

  1. Stabilization: Inverting the camera matrix to maintain a static world view.
  2. Smooth Pursuit: Centering the coordinate system on a moving target.
  3. Fixation: "Zooming in" on a specific region to enhance effective resolution.
  4. Saccades: Rapidly shifting the focus between different points of interest over time.

Experimental Evaluation

The WorldFeatures approach was evaluated across three distinct domains:

  • Fine-Grained Recognition (CUB-200-2011): By treating static images as a sequence of "glimpses" (saccades), a 3DResNet50 model achieved 85.3% top-1 accuracy, outperforming both standard ResNet50 (83.4%) and specialized "Learning to Zoom" models (84.5%).
  • Action Recognition (Charades & Charades-Ego): Combining Smooth Pursuit and Fixation improved mean Average Precision (mAP) from 31.3 to 32.6, demonstrating the value of centering on the actor.
  • Video Stabilization (Olympic Sports): On synthetic shaky video, the Pursuit-enabled model achieved 14.1 mAP, compared to 13.1 mAP for a standard 3DResNet50.

Key Insights

A primary finding is that implicit warping inside the network is superior to explicit preprocessing of pixels. Preprocessing often leads to compounding errors and resolution loss at frame edges. By maintaining transformations as metadata, the network retains access to clean, original pixel data. Furthermore, the results suggest that stabilization is most effective when paired with Fixation (zooming), mirroring how biological systems stabilize gaze specifically to resolve targets more clearly.

Limitations and Future Work

While promising, the current implementation often relies on external saliency or object detectors to define the transformation $\mathcal{T}$. A critical next step is developing models that learn the policy for eye movements end-to-end. Additionally, while more efficient than full-frame warping, wrapping every layer adds computational overhead. Future research will also need to address "missing data" challenges when the virtual gaze moves outside the original recorded camera frame.

Summary updated

Abstract

Eye movement and strategic placement of the visual field onto the retina, gives animals increased resolution of the scene and suppresses distracting information. This fundamental system has been missing from video understanding with deep networks, typically limited to 224 by 224 pixel content locked to the camera frame. We propose a simple idea, WorldFeatures, where each feature at every layer has a spatial transformation, and the feature map is only transformed as needed. We show that a network built with these WorldFeatures, can be used to model eye movements, such as saccades, fixation, and smooth pursuit, even in a batch setting on pre-recorded video. That is, the network can for example use all 224 by 224 pixels to look at a small detail one moment, and the whole scene the next. We show that typical building blocks, such as convolutions and pooling, can be adapted to support WorldFeatures using available tools. Experiments are presented on the Charades, Olympic Sports, and Caltech-UCSD Birds-200-2011 datasets, exploring action recognition, fine-grained recognition, and video stabilization.
BibTeX
@misc{sigurdsson2020beyond,
  author = {Gunnar A. Sigurdsson and Abhinav Gupta and Cordelia Schmid and Karteek Alahari},
  title = {{Beyond the Camera: Neural Networks in World Coordinates}},
  year = {2020},
  eprint = {2003.05614},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.05614},
}
Figure