Learning Viewpoint-Agnostic Visual Representations by Recovering Tokens in 3D Space

Jinghuan Shang, Srijan Das, Michael S. Ryoo
6/23/2022
cs.CVcs.LGcs.RO
transformer-attention

Official code: elicassion/3DTRL (20 stars, Python, MIT, PyTorch, last commit 2023-04-20).

Abstract

Humans are remarkably flexible in understanding viewpoint changes due to visual cortex supporting the perception of 3D structure. In contrast, most of the computer vision models that learn visual representation from a pool of 2D images often fail to generalize over novel camera viewpoints.

Show full abstract

Recently, the vision architectures have shifted towards convolution-free architectures, visual Transformers, which operate on tokens derived from image patches. However, these Transformers do not perform explicit operations to learn viewpoint-agnostic representation for visual understanding. To this end, we propose a 3D Token Representation Layer (3DTRL) that estimates the 3D positional information of the visual tokens and leverages it for learning viewpoint-agnostic representations. The key elements of 3DTRL include a pseudo-depth estimator and a learned camera matrix to impose geometric transformations on the tokens, trained in an unsupervised fashion. These enable 3DTRL to recover the 3D positional information of the tokens from 2D patches. In practice, 3DTRL is easily plugged-in into a Transformer. Our experiments demonstrate the effectiveness of 3DTRL in many vision tasks including image classification, multi-view video alignment, and action recognition. The models with 3DTRL outperform their backbone Transformers in all the tasks with minimal added computation. Our code is available at https://github.com/elicassion/3DTRL.

View on arXivView PDF

Code Implementations(1)

elicassion/3DTRLOfficial100%
PyTorchMIT

Code for NeurIPS 2022 paper "Learning Viewpoint-Agnostic Visual Representations by Recovering Tokens in 3D Space"

200Python, ShellMay 27, 20223 years agoMIT
3d-modelsaction-recognitiondeep-learningimage-classificationpytorch+1 more

Similar Papers

Cite this paper

@article{shang2022learning,
  title  = {Learning Viewpoint-Agnostic Visual Representations by Recovering Tokens in 3D Space},
  author = {Jinghuan Shang and Srijan Das and Michael S. Ryoo},
  year   = {2022},
  eprint = {2206.11895},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.11895}
}

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/2206.11895.svg)](https://codeofpaper.com/paper/2206.11895)

Discussion