paper-with-me

Papers

Token Shift Transformer for Video Classification

2021-08-05 · Hao Zhang, Yanbin Hao, Chong-Wah Ngo

Transformer achieves remarkable successes in understanding 1 and 2-dimensional signals (e.g., NLP and Image Content Understanding). As a potential alternative to convolutional neural networks, it shares merits of strong interpretability, high discriminative power on hyper-scale data, and flexibility in processing varying length inputs. However, its encoders naturally contain computational intensive operations such as pair-wise self-attention, incurring heavy computational burden when being applied on the complex 3-dimensional video signals. This paper presents Token Shift Module (i.e., TokShift), a novel, zero-parameter, zero-FLOPs operator, for modeling temporal relations within each transformer encoder. Specifically, the TokShift barely temporally shifts partial [Class] token features back-and-forth across adjacent frames. Then, we densely plug the module into each encoder of a plain 2D vision transformer for learning 3D video representation. It is worth noticing that our TokShift transformer is a pure convolutional-free video transformer pilot with computational efficiency for video understanding. Experiments on standard benchmarks verify its robustness, effectiveness, and efficiency. Particularly, with input clips of 8/12 frames, the TokShift transformer achieves SOTA precision: 79.83%/80.40% on the Kinetics-400, 66.56% on EGTEA-Gaze+, and 96.80% on UCF-101 datasets, comparable or better than existing SOTA convolutional counterparts. Our code is open-sourced in: https://github.com/VideoNetworks/TokShift-Transformer.

📄 PDF Abstract BibTeX arXiv:2108.02432

Code (3)

VideoNetworks/TokShift-Transformer 공식 구현 pytorch
videonetworks/laps-transformer pytorch
zwtu/TokShift-Transformer-Paddle paddle

Tasks

ClassificationComputational EfficiencyVideo ClassificationVideo Understanding

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Residual Connection 설명 없음
Multi-Head Attention 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Vision Transformer The Vision Transformer, or ViT, is a model for image classification that employs a Transformer-like architecture over…

Similar Papers 제목 키워드 기반

Efficient Attention-free Video Shift Transformers

2022-08-23 · Adrian Bulat, Brais Martinez, Georgios Tzimiropoulos

This paper tackles the problem of efficient video recognition. In this area, video transformers have recently dominated the efficiency (top-1 accuracy vs FLOPs) spectrum. At the same time, there have been some attempts i…

Action RecognitionVideo Recognition

TS2-Net: Token Shift and Selection Transformer for Text-Video Retrieval

2022-07-16 · Yuqi Liu, Pengfei Xiong, Luhui Xu, Shengming Cao 외

Text-Video retrieval is a task of great practical value and has received increasing attention, among which learning spatial-temporal video representation is one of the research hotspots. The video encoders in the state-o…

RetrievalVideo Retrieval

Representation Shift: Unifying Token Compression with FlashAttention

2025-08-01 · Joonmyung Choi, Sanghyeok Lee, Byungoh Ko, Eunseo Kim 외 arxiv

Transformers have demonstrated remarkable success across vision, language, and video. Yet, increasing task complexity has led to larger models and more tokens, raising the quadratic cost of self-attention and the overhea…

Video-Text Retrieval

TaylorShift: Shifting the Complexity of Self-Attention from Squared to Linear (and Back) using Taylor-Softmax

2024-03-05 · Tobias Christian Nauen, Sebastian Palacio, Andreas Dengel

The quadratic complexity of the attention mechanism represents one of the biggest hurdles for processing long sequences using Transformers. Current methods, relying on sparse representations or stateful recurrence, sacri…

Classification

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

2022-06-23 · Jinghuan Shang, Srijan Das, Michael S. Ryoo

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 po…

Action Recognitionimage-classificationImage ClassificationVideo Alignment