GliTr: Glimpse Transformers with Spatiotemporal Consistency for Online Action Prediction

Samrudhdhi B Rangrej, Kevin J Liang, Tal Hassner, James J Clark
10/24/2022
cs.CV
transformer-attention

Official code: facebookresearch/GliTr (25 stars, Python, last commit 2023-04-14).

Abstract

Many online action prediction models observe complete frames to locate and attend to informative subregions in the frames called glimpses and recognize an ongoing action based on global and local information. However, in applications with constrained resources, an agent may not be able to observe the complete frame, yet must still locate useful glimpses to predict an incomplete action based on local information only.

Show full abstract

In this paper, we develop Glimpse Transformers (GliTr), which observe only narrow glimpses at all times, thus predicting an ongoing action and the following most informative glimpse location based on the partial spatiotemporal information collected so far. In the absence of a ground truth for the optimal glimpse locations for action recognition, we train GliTr using a novel spatiotemporal consistency objective: We require GliTr to attend to the glimpses with features similar to the corresponding complete frames (i.e. spatial consistency) and the resultant class logits at time $t$ equivalent to the ones predicted using whole frames up to $t$ (i.e. temporal consistency). Inclusion of our proposed consistency objective yields ~10% higher accuracy on the Something-Something-v2 (SSv2) dataset than the baseline cross-entropy objective. Overall, despite observing only ~33% of the total area per frame, GliTr achieves 53.02% and 93.91% accuracy on the SSv2 and Jester datasets, respectively.

View on arXivView PDF

Code Implementations(1)

GliTr Glimpse Transformers with Spatiotemporal Consistency for Online Action Prediction

251Python, ShellApr 12, 20233 years agoNOASSERTION

Similar Papers

Cite this paper

@article{rangrej2022glitr,
  title  = {GliTr: Glimpse Transformers with Spatiotemporal Consistency for Online Action Prediction},
  author = {Samrudhdhi B Rangrej and Kevin J Liang and Tal Hassner and James J Clark},
  year   = {2022},
  eprint = {2210.13605},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.13605}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.13605.svg)](https://codeofpaper.com/paper/2210.13605)

Discussion