Source-linked AI summary

Asynchronous Temporal Fields for Action Recognition

Gunnar A. Sigurdsson, Santosh Divvala, Ali Farhadi, Abhinav Gupta

arXiv:1612.06371v2cs.CV

TL;DR

Video understanding requires reasoning over activity sequences and higher-level constructs such as intentions, beyond appearance modeling. The paper proposes a fully-connected temporal CRF with asynchronous training and reports improved classification and temporal localization on Charades.

  • Problem

    Video understanding requires modeling interactions among activities, objects, scenes, and intentions over extended time rather than relying only on appearance modeling.

  • Method

    The paper uses a fully-connected temporal CRF with deep-network potentials and an asynchronous training framework for end-to-end learning over whole videos.

  • Results

    22.4% mAP on Charades, up from 17.2% mAP state-of-the-art, with gains also reported for temporal localization.

  • Takeaways & Limitations

    The method supports structured reasoning about action sequences, objects, and intentions while addressing correlated whole-video training batches.

  • Takeaways & Limitations

    Reasoning about scenes reduced performance on Charades because scenes were selected randomly for each activity sequence.

Abstract

from arXiv · show

Actions are more than just movements and trajectories: we cook to eat and we hold a cup to drink from it. A thorough understanding of videos requires going beyond appearance modeling and necessitates reasoning about the sequence of activities, as well as the higher-level constructs such as intentions. But how do we model and reason about these? We propose a fully-connected temporal CRF model for reasoning over various aspects of activities that includes objects, actions, and intentions, where the potentials are predicted by a deep network. End-to-end training of such structured models is a challenging endeavor: For inference and learning we need to construct mini-batches consisting of whole videos, leading to mini-batches with only a few videos. This causes high-correlation between data points leading to breakdown of the backprop algorithm. To address this challenge, we present an asynchronous variational inference method that allows efficient end-to-end training. Our method achieves a classification mAP of 22.4% on the Charades benchmark, outperforming the state-of-the-art (17.2% mAP), and offers equal gains on the task of temporal localization.

1. Introduction

The paper argues that video understanding must move beyond appearance and motion to reason jointly about activity sequences, objects, and intentions. It introduces an end-to-end deep structured temporal model with asynchronous training, achieving substantial gains on Charades.

  • Video understanding requires reasoning about activity sequences and higher-level intentions, not only appearance and motion.
  • The proposed model jointly represents frame-level activity category, object, action, progress, and scene variables with a latent actor intent.
  • Fully-connected temporal connections let each frame prediction incorporate information from all other frames.
  • Asynchronous training approximates influence from recently computed frames, addressing the correlation caused by mini-batches containing only a few whole videos.

2. Related Work

Prior video-recognition work progressed from handcrafted local descriptors to learned appearance, motion, temporal, and structural representations. The paper positions deep structured modeling as a way to combine representation learning with reasoning over complete activity sequences.

  • Early action-recognition systems used handcrafted local spatiotemporal descriptors such as STIP, HOG3D, HOF, and Motion Boundary Histogram.
  • Mid-level representations captured more than local properties but continued to rely on handcrafted features.
  • Deep video models learned representations from data, including separate color and optical-flow networks for local video properties.
  • Many methods targeted short clips, motivating approaches such as LSTMs that encode temporal evolution across full video streams.
  • A complementary line of work models video structure through objects, transformations, state changes, and other human-centric representations.
  • Combining deep networks with structured models remains difficult because stochastic deep-network training differs from sequential-model training.

3. Proposed Method

The proposed Asynchronous Temporal Field is a fully connected temporal CRF that jointly models frame-level activity components and a global latent intent. Structured mean-field inference enables asynchronous message-based training and tractable learning.

  • Architecture: The Asynchronous Temporal Field connects every temporal node to every other node and connects the latent intent to action nodes.
  • Architecture: The model represents each frame with activity, object, action, progress, and scene variables, plus an unobserved variable for global intent.
  • Architecture: Frame-level semantic potentials encode interactions among category, object, action, progress, and scene and are predicted by a CNN.
  • Architecture: Temporal potentials combine frame-intent and frame-frame interactions, with frame-intent potentials predicted from pixels and motion.
  • Inference: Structured mean-field approximation replaces exact inference with tractable distributions and iterative marginal updates.
  • Learning: Asynchronous message passing updates one frame at a time while a message server stores and distributes messages across the video.
  • Learning: The learning procedure uses inferred distributions to compute potential gradients and update the underlying CNN.

4. Experimental Results and Analysis

Experiments evaluate the model on Charades for video classification, temporal localization, convergence, ablations, and latent-intent interpretation. The method reaches 22.4% mAP for classification, converges faster and more stably with diverse asynchronous batches, and captures temporally distributed intent structure.

  • Dataset: The evaluation uses Charades, a challenging benchmark with 9,848 videos, 157 action classes, and 66,500 annotated activities.The dataset includes nouns, verbs, and scenes, with complex co-occurrences of realistic activities.
  • Implementation: The model combines VGG16-based RGB and optical-flow networks that predict CRF potentials and are trained end-to-end.RGB frames and stacks of optical-flow images follow a two-stream architecture, while gradients pass through the Asynchronous Temporal Field.
  • Convergence: Asynchronous training uses more diverse batches and achieves faster, more stable convergence than homogeneous-batch alternatives.The comparison includes CNN+LSTM and a synchronous version of the proposed method, whose batches contain only a few whole videos.
  • Video Classification: 22.4% mAP is achieved on Charades video classification, exceeding Two-Stream Extended at 18.6% and IDT at 17.2%.The authors attribute gains to reasoning over larger timescales and multiple activity aspects.
  • Ablation Analysis: Semantic reasoning improves over the baseline, while intent-related and pairwise temporal potentials provide complementary temporal information.The ablation compares variants with and without intent, semantic information, and structure.
  • Intent Interpretation: Intent clusters capture activity patterns separated by 10–20 seconds, while within-intent video distances average 6.02×10^-3 versus 7.25×10^-3 for arbitrary pairs.The distance difference is significant for 5 of 10 intent types at p=0.1.

5. Conclusion

The paper presents a fully-connected temporal CRF that models semantic activity aspects and long-term temporal relations, using asynchronous stochastic inference to address end-to-end learning bottlenecks.

  • The model uses a fully-connected temporal CRF to represent semantic aspects of activities and long-term temporal relations.
  • An asynchronous stochastic inference algorithm circumvents a key bottleneck in large-scale end-to-end model learning.
  • The method achieves activity classification and temporal localization results on a challenging dataset of realistic activities.

6. Appendix

The appendix provides supplementary descriptions of the CRF, derivations of its updates, learning details, implementation details, intent analysis, and additional prediction visualizations.

  • The appendix describes the conditional random field used by the model.
  • It derives the model’s update equations.
  • It documents details of the learning algorithm.
  • It provides additional implementation details.
  • It includes details about intent analysis.
  • It presents additional visualizations of output predictions.

6.1. Description of the CRF

The CRF represents each video with frame-level variables and a global intent variable, connecting frame predictions densely across time and to intent while using structured potentials and mean-field inference.

  • The fully-connected temporal CRF makes each frame node depend on every other node rather than only temporal neighbors.
  • Intent is incorporated as a latent variable connected to all action nodes.
  • Each video is represented by frame-level variables at every time step plus one global intent variable.
  • Each frame contains category, object, action, progress, and scene variables.
  • The frame potential decomposes into interactions among objects, progress, actions, scenes, and joint frame-level variables.
  • Mean-field approximation is used for efficient inference, replacing the exact distribution with a simpler fitted distribution.

6.2. Derivation of the Update Equations

The appendix formulates MAP labeling and approximates the CRF distribution with structured mean-field factors, using messages to organize computations for update equations and gradients.

  • Given an input video, the goal is to estimate the maximum a posteriori labeling while marginalizing over intent.
  • The derivation conditions the model distribution on the input video, then omits that conditioning for notational simplicity.
  • The derivation distinguishes ground-truth variables used for training from the corresponding model variables.
  • Outgoing messages are computed from single frames, while incoming messages combine messages from multiple frames for subsequent computations.
  • Structured variational inference approximates the exact distribution with tractable frame and intent marginals by minimizing KL-divergence within a chosen family.
  • The update equations follow by combining the complete CRF distribution with the model’s potential decomposition.

6.3. Details of the learning algorithm

The learning algorithm derives gradients for CRF potentials by comparing ground-truth and predicted distributions, then backpropagates these gradients through the CNN. Frame-frame interactions use learned asymmetric affinities weighted by Gaussian kernels.

  • The network maximizes data log-likelihood, requiring inference of P(X, I|V) to calculate derivatives for each model potential.
  • The frame potential combines activity category, object, action, progress, and scene through CNN-predicted unary, pairwise, and tertiary terms.
  • The frame-potential gradient is the difference between ground-truth and model-predicted distributions, with non-potential variables marginalized before CNN backpropagation.
  • Intent updates compare the intent distribution conditioned on ground-truth labels with the predicted intent distribution.
  • Frame-frame potentials combine learned asymmetric affinities with Gaussian kernels over video frames, using a kernel that prioritizes short-term interactions.
  • The frame-frame update has symmetric contributions from earlier and later frames, contrasting true and predicted kernel-weighted affinities.

6.4. Additional implementation details

The implementation alternates approximate inference, gradient computation, and CNN updates while storing intermediate calculations for asynchronous learning. Training required substantially different convergence times across streams, and latent intent introduced instability that required targeted techniques.

  • The RGB stream converged after 0.2 epochs for the Two-Stream model and 0.7 epochs for the proposed model, whereas the Flow stream required 4.0 and 8.3 epochs, respectively.
  • Algorithm 3 samples a frame from each video, computes approximate messages, and alternates updates of frame and intent distributions until convergence.
  • After inference, the algorithm computes gradients, backpropagates them through the CNN, stores intermediate computations, and updates the CNN using accumulated gradients.
  • Introducing latent intent caused instability because the frame-intent gradient contains model predictions on both sides.
  • Severing the frame-intent variable's dependence on input data removed instability but performed poorly on the Flow stream.
  • Alternating target and prediction networks plus regularization were the only tested techniques that helped retain input-dependent frame-intent training.

6.5. Details about intent analysis

The intent analysis defines ten everyday activity goals and identifies matching videos through intent-related keywords followed by manual verification.

  • The analysis defines 10 intent types, including eating, cleaning, dressing, retrieving items, getting informed, leaving, relaxing, and working.
  • Videos corresponding to each intent were retrieved using related keywords and manually verified for matching content.

6.6. Additional Visualizations of Output Predictions

The additional visualizations show model confidence across categories, actions, and objects, including examples where category predictions increase related action likelihood. The figures also summarize confidence-ranked categories and per-class mAP.

  • In one visualization example, the category Sitting on a sofa/couch fires when the light turns on and the couch becomes visible, increasing the likelihood of sitting.
  • Figure 13 visualizes the 3 most confident categories, 2 most confident actions, and 1 most confident object, with darker colors indicating higher likelihood.
  • Figure 14 visualizes the 6 most confident categories using darker colors for higher likelihood.
  • Figure 15 plots model mAP for all classes sorted by mAP, with the right column continuing the left column.
Loading 1612.06371v2…