paper-with-me

홈 › Papers

Flowformer: Linearizing Transformers with Conservation Flows

2022-02-13 · Haixu Wu, Jialong Wu, Jiehui Xu, Jianmin Wang, Mingsheng Long

Transformers based on the attention mechanism have achieved impressive success in various areas. However, the attention mechanism has a quadratic complexity, significantly impeding Transformers from dealing with numerous tokens and scaling up to bigger models. Previous methods mainly utilize the similarity decomposition and the associativity of matrix multiplication to devise linear-time attention mechanisms. They avoid degeneration of attention to a trivial distribution by reintroducing inductive biases such as the locality, thereby at the expense of model generality and expressiveness. In this paper, we linearize Transformers free from specific inductive biases based on the flow network theory. We cast attention as the information flow aggregated from the sources (values) to the sinks (results) through the learned flow capacities (attentions). Within this framework, we apply the property of flow conservation into attention and propose the Flow-Attention mechanism of linear complexity. By respectively conserving the incoming flow of sinks for source competition and the outgoing flow of sources for sink allocation, Flow-Attention inherently generates informative attentions without using specific inductive biases. Empowered by the Flow-Attention, Flowformer yields strong performance in linear time for wide areas, including long sequence, time series, vision, natural language, and reinforcement learning. The code and settings are available at this repository: https://github.com/thuml/Flowformer.

📄 PDF Abstract BibTeX arXiv:2202.06258

Code (1)

thuml/Flowformer 공식 구현 jax

Tasks

D4RLOffline RLTime SeriesTime Series Analysis

Similar Papers 제목 키워드 기반

FlowFormer++: Masked Cost Volume Autoencoding for Pretraining Optical Flow Estimation

2023-03-02 · CVPR 2023 1 · Xiaoyu Shi, Zhaoyang Huang, Dasong Li, Manyuan Zhang 외

FlowFormer introduces a transformer architecture into optical flow estimation and achieves state-of-the-art performance. The core component of FlowFormer is the transformer-based cost-volume encoder. Inspired by the rece…

Optical Flow Estimation

FlowFormer: A Transformer Architecture and Its Masked Cost Volume Autoencoding for Optical Flow

2023-06-08 · Zhaoyang Huang, Xiaoyu Shi, Chao Zhang, Qiang Wang 외

This paper introduces a novel transformer-based network architecture, FlowFormer, along with the Masked Cost Volume AutoEncoding (MCVA) for pretraining it to tackle the problem of optical flow estimation. FlowFormer toke…

DecoderOptical Flow Estimation

FlowFormer: A Transformer Architecture for Optical Flow

2022-03-30 · Zhaoyang Huang, Xiaoyu Shi, Chao Zhang, Qiang Wang 외

We introduce optical Flow transFormer, dubbed as FlowFormer, a transformer-based neural network architecture for learning optical flow. FlowFormer tokenizes the 4D cost volume built from an image pair, encodes the cost t…

DecoderOptical Flow Estimation

VideoFlow: Exploiting Temporal Cues for Multi-frame Optical Flow Estimation

2023-03-15 · ICCV 2023 1 · Xiaoyu Shi, Zhaoyang Huang, Weikang Bian, Dasong Li 외

We introduce VideoFlow, a novel optical flow estimation framework for videos. In contrast to previous methods that learn to estimate optical flow from two frames, VideoFlow concurrently estimates bi-directional optical f…

Optical Flow EstimationTriplet

Keep the Momentum: Conservation Laws beyond Euclidean Gradient Flows

2024-05-21 · Sibylle Marcotte, Rémi Gribonval, Gabriel Peyré

Conservation laws are well-established in the context of Euclidean gradient flow dynamics, notably for linear or ReLU neural network training. Yet, their existence and principles for non-Euclidean geometries and momentum…