Flowformer: Linearizing Transformers with Conservation Flows
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 69 papers in the map (data through 7 Oct 2026). Builds on 40 of its 57 references that are in the map. First posted on arXiv 13 Feb 2022.
Builds on
40 of 57 references.
References · 40
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,120
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,141
28 more
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problemscited by 1,873
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2021Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecastingcited by 1,654
- 2020Rethinking Attention with Performerscited by 1,584
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2020D4RL: Datasets for Deep Data-Driven Reinforcement Learningcited by 1,406
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2020AWAC: Accelerating Online Reinforcement Learning with Offline Datasetscited by 647
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2020A Transformer-based Framework for Multivariate Time Series Representation Learningcited by 449
- 2021Random Feature Attentioncited by 350
- 2019ROCKET: Exceptionally fast and accurate time series classification using random convolutional kernelscited by 336
- 2018The UEA multivariate time series classification archive, 2018cited by 330
- 2019Unsupervised Scalable Representation Learning for Multivariate Time Seriescited by 267
- 2020Sparse Sinkhorn Attentioncited by 250
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
- 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2020Fast Transformers with Clustered Attentioncited by 123
- 2018Learning long-range spatial dependencies with horizontal gated-recurrent unitscited by 98
- 2021Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encodingcited by 50
- 2021You Only Sample (Almost) Once: Linear Cost Self-Attention Via Bernoulli Samplingcited by 17
Built on by
Citing papers per year: 2022: 7; 2023: 9; 2024: 26; 2025: 18; 2026: 9.
69 papers.
Sort:
By area:
- 2022TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysiscited by 1,030
- 2023iTransformer: Inverted Transformers Are Effective for Time Series Forecastingcited by 906
- 2024Transolver: A Fast Transformer Solver for PDEs on General Geometriescited by 299
- 2024TimeMixer++: A General Time Series Pattern Machine for Universal Predictive Analysiscited by 113
- 2024Is Mamba Effective for Time Series Forecasting?cited by 110
- 2023Artificial Intelligence for Digital and Computational Pathologycited by 106
- 2024UniTS: A Unified Multi-Task Time Series Modelcited by 93
- 2023Modeling Dense Multimodal Interactions Between Biological Pathways and Histology for Survival Predictioncited by 92
- 2022Temporal Attention Unit: Towards Efficient Spatiotemporal Predictive Learningcited by 84
- 2023Transformers as Support Vector Machinescited by 67
- 2024TimeMachine: A Time Series is Worth 4 Mambas for Long-term Forecastingcited by 63
- 2022MogaNet: Multi-order Gated Aggregation Networkcited by 59
38 more
- 2024Scene Adaptive Sparse Transformer for Event-based Object Detectioncited by 39
- 2024TOTEM: TOkenized Time Series EMbeddings for General Time Series Analysiscited by 37
- 2023Primal-Attention: Self-attention through Asymmetric Kernel SVD in Primal Representationcited by 28
- 2025OLinear: A Linear Model for Time Series Forecasting in Orthogonally Transformed Domaincited by 25
- 2023Efficient Attention via Control Variatescited by 23
- 2023FormerTime: Hierarchical Multi-Scale Representations for Multivariate Time Series Classificationcited by 21
- 2024xLSTM-Mixer: Multivariate Time Series Forecasting by Mixing via Scalar Memoriescited by 18
- 2025FreEformer: Frequency Enhanced Transformer for Multivariate Time Series Forecastingcited by 18
- 2024TimeMIL: Advancing Multivariate Time Series Classification via a Time-aware Multiple Instance Learningcited by 12
- 2022Designing Robust Transformers using Robust Kernel Density Estimationcited by 11
- 2022CAB: Comprehensive Attention Benchmarking on Long Sequence Modelingcited by 10
- 2024Minusformer: Improving Time Series Forecasting by Progressively Learning Residualscited by 10
- 2024TSCMamba: Mamba Meets Multi-View Learning for Time Series Classificationcited by 10
- 2025TimesBERT: A BERT-Style Foundation Model for Time Series Understandingcited by 10
- 2025FeDaL: Federated Dataset Learning for General Time Series Foundation Modelscited by 10
- 2024Chimera: Effectively Modeling Multivariate Time Series with 2-Dimensional State Space Modelscited by 8
- 2024Cross-Modal Learning for Anomaly Detection in Complex Industrial Process: Methodology and Benchmarkcited by 8
- 2025TVNet: A Novel Time Series Analysis Method Based on Dynamic Convolution and 3D-Variationcited by 8
- 2022Linear Video Transformer with Feature Fixationcited by 6
- 2023Correlated Attention in Transformers for Multivariate Time Seriescited by 6
- 2024Investigating Recurrent Transformers with Dynamic Haltcited by 5
- 2024Peri-midFormer: Periodic Pyramid Transformer for Time Series Analysiscited by 5
- 2024Self-Attention through Kernel-Eigen Pair Sparse Variational Gaussian Processescited by 4
- 2024A Primal-Dual Framework for Transformers and Neural Networkscited by 4
- 2024DiffFluid: Plain Diffusion Models are Effective Predictors of Flow Dynamicscited by 4
- 2024Predictor-Corrector Enhanced Transformers with Exponential Moving Average Coefficient Learningcited by 4
- 2022DBA: Efficient Transformer with Dynamic Bilinear Low-Rank Attentioncited by 3
- 2024Computation and Parameter Efficient Multi-Modal Fusion Transformer for Cued Speech Recognitioncited by 3
- 2024UmambaTSF: A U-shaped Multi-Scale Long-Term Time Series Forecasting Method Using Mambacited by 3
- 2025Recency Biased Causal Attention for Time-series Forecastingcited by 3
- 2025Learning Advanced Self-Attention for Linear Transformers in the Singular Value Domaincited by 3
- 2023OptScaler: A Collaborative Framework for Robust Autoscaling in the Cloudcited by 2
- 2024Scalable and Generalizable Correspondence Pruning via Geometry-Consistent Pre-trainingcited by 2
- 2025Gateformer: Advancing Multivariate Time Series Forecasting through Temporal and Variate-Wise Attention with Gated Representationscited by 2
- 2025MMET: A Multi-Input and Multi-Scale Transformer for Efficient PDEs Solvingcited by 2
- 2025Task-Aware Mixture-of-Experts for Time Series Analysiscited by 2
- 2024LETS-C: Leveraging Text Embedding for Time Series Classificationcited by 1
- 2024Reorganizing attention-space geometry with expressive attentioncited by 1
50 most cited of 69 All 69 (JSON)
- 2026Frequency Selective Neural Networks as a Foundation Architecture for Time Series Learning29 Aug 2026
- 2026FreSH: Frequency-Segmented Hierarchical Multi-Expert Framework for Multivariate Time Series Classification8 Aug 2026
- 2026A Quantum-Classical Hybrid Framework for Multivariate Time-Series Forecasting Complexity-Fidelity Trade-offs and Limitations17 Jul 2026
- 2026LLT: Local Linear Transformer for PDE Operator Learning4 Jul 2026
- 2026ChurnNet: A Optimized Modern AI for Churn Prediction29 May 2026
- 2026Do Vision Transformers Need All-to-All Attention? Global Communication Through Elastic Learned Cores12 May 2026
- 2026Permutation-Equivariant 2D State Space Models: Theory and Canonical Architecture for Multivariate Time Series7 Mar 2026
- 2026Empowering Time Series Analysis with Large-Scale Multimodal Pretraining5 Feb 2026
- 2026vLinear: A Powerful Linear Model for Multivariate Time Series Forecasting20 Jan 2026
- 2025CAPRMIL: Context-Aware Patch Representations for Multiple Instance Learning16 Dec 2025
- 2025Task-Aware Mixture-of-Experts for Time Series Analysis26 Sep 2025
- 2025Small transformer architectures for task switching6 Aug 2025
38 more
- 2025FeDaL: Federated Dataset Learning for General Time Series Foundation Models6 Aug 2025
- 2025CorrMoE: Mixture of Experts with De-stylization Learning for Cross-Scene and Cross-Domain Correspondence Pruning16 Jul 2025
- 2025DIFFUMA: High-Fidelity Spatio-Temporal Video Prediction via Dual-Path Mamba and Diffusion Enhancement9 Jul 2025
- 2025FaCTR: Factorized Channel-Temporal Representation Transformers for Efficient Time Series Forecasting5 Jun 2025
- 2025Channel-Imposed Fusion: A Simple yet Effective Method for Medical Time Series Classification31 May 2025
- 2025MMET: A Multi-Input and Multi-Scale Transformer for Efficient PDEs Solving24 May 2025
- 2025Learning Advanced Self-Attention for Linear Transformers in the Singular Value Domain13 May 2025
- 2025OLinear: A Linear Model for Time Series Forecasting in Orthogonally Transformed Domain12 May 2025
- 2025SCFormer: Structured Channel-wise Transformer with Cumulative Historical State for Multivariate Time Series Forecasting5 May 2025
- 2025Gateformer: Advancing Multivariate Time Series Forecasting through Temporal and Variate-Wise Attention with Gated Representations1 May 2025
- 2025Energy-Aware Pattern Disentanglement: A Generalizable Pattern Assisted Architecture for Multi-task Time Series Analysis19 Apr 2025
- 2025TVNet: A Novel Time Series Analysis Method Based on Dynamic Convolution and 3D-Variation10 Mar 2025
- 2025TimesBERT: A BERT-Style Foundation Model for Time Series Understanding28 Feb 2025
- 2025Recency Biased Causal Attention for Time-series Forecasting10 Feb 2025
- 2025FreEformer: Frequency Enhanced Transformer for Multivariate Time Series Forecasting23 Jan 2025
- 2024A Wave is Worth 100 Words: Investigating Cross-Domain Transferability in Time Series1 Dec 2024
- 2024Peri-midFormer: Periodic Pyramid Transformer for Time Series Analysis7 Nov 2024
- 2024Predictor-Corrector Enhanced Transformers with Exponential Moving Average Coefficient Learning5 Nov 2024
- 2024xLSTM-Mixer: Multivariate Time Series Forecasting by Mixing via Scalar Memories22 Oct 2024
- 2024TimeMixer++: A General Time Series Pattern Machine for Universal Predictive Analysis21 Oct 2024
- 2024UmambaTSF: A U-shaped Multi-Scale Long-Term Time Series Forecasting Method Using Mamba15 Oct 2024
- 2024DiffFluid: Plain Diffusion Models are Effective Predictors of Flow Dynamics20 Sep 2024
- 2024CorrAdaptor: Adaptive Local Context Learning for Correspondence Pruning15 Aug 2024
- 2024Reorganizing attention-space geometry with expressive attention26 Jul 2024
- 2024LETS-C: Leveraging Text Embedding for Time Series Classification9 Jul 2024
- 2024A Primal-Dual Framework for Transformers and Neural Networks19 Jun 2024
- 2024Cross-Modal Learning for Anomaly Detection in Complex Industrial Process: Methodology and Benchmark13 Jun 2024
- 2024Scalable and Generalizable Correspondence Pruning via Geometry-Consistent Pre-training9 Jun 2024
- 2024TSCMamba: Mamba Meets Multi-View Learning for Time Series Classification6 Jun 2024
- 2024Chimera: Effectively Modeling Multivariate Time Series with 2-Dimensional State Space Models6 Jun 2024
- 2024TimeMIL: Advancing Multivariate Time Series Classification via a Time-aware Multiple Instance Learning6 May 2024
- 2024Scene Adaptive Sparse Transformer for Event-based Object Detection2 Apr 2024
- 2024Is Mamba Effective for Time Series Forecasting?17 Mar 2024
- 2024TimeMachine: A Time Series is Worth 4 Mambas for Long-term Forecasting14 Mar 2024
- 2024UniTS: A Unified Multi-Task Time Series Model29 Feb 2024
- 2024TOTEM: TOkenized Time Series EMbeddings for General Time Series Analysis26 Feb 2024
- 2024Transolver: A Fast Transformer Solver for PDEs on General Geometries4 Feb 2024
- 2024Minusformer: Improving Time Series Forecasting by Progressively Learning Residuals4 Feb 2024
50 newest of 69 All 69 (JSON)
- 2024Is Mamba Effective for Time Series Forecasting?cited by 110
- 2024TimeMachine: A Time Series is Worth 4 Mambas for Long-term Forecastingcited by 63
- 2024TSCMamba: Mamba Meets Multi-View Learning for Time Series Classificationcited by 10
- 2024Chimera: Effectively Modeling Multivariate Time Series with 2-Dimensional State Space Modelscited by 8
- 2024UmambaTSF: A U-shaped Multi-Scale Long-Term Time Series Forecasting Method Using Mambacited by 3
- 2025DIFFUMA: High-Fidelity Spatio-Temporal Video Prediction via Dual-Path Mamba and Diffusion Enhancementcited by 0
- 2025DIFFUMA: High-Fidelity Spatio-Temporal Video Prediction via Dual-Path Mamba and Diffusion Enhancement9 Jul 2025
- 2024UmambaTSF: A U-shaped Multi-Scale Long-Term Time Series Forecasting Method Using Mamba15 Oct 2024
- 2024TSCMamba: Mamba Meets Multi-View Learning for Time Series Classification6 Jun 2024
- 2024Chimera: Effectively Modeling Multivariate Time Series with 2-Dimensional State Space Models6 Jun 2024
- 2024Is Mamba Effective for Time Series Forecasting?17 Mar 2024
- 2024TimeMachine: A Time Series is Worth 4 Mambas for Long-term Forecasting14 Mar 2024
- 2022TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysiscited by 1,030
- 2023iTransformer: Inverted Transformers Are Effective for Time Series Forecastingcited by 906
- 2024Transolver: A Fast Transformer Solver for PDEs on General Geometriescited by 299
- 2024TimeMixer++: A General Time Series Pattern Machine for Universal Predictive Analysiscited by 113
- 2023Artificial Intelligence for Digital and Computational Pathologycited by 106
- 2024UniTS: A Unified Multi-Task Time Series Modelcited by 93
- 2023Modeling Dense Multimodal Interactions Between Biological Pathways and Histology for Survival Predictioncited by 92
- 2022Temporal Attention Unit: Towards Efficient Spatiotemporal Predictive Learningcited by 84
- 2023Transformers as Support Vector Machinescited by 67
- 2022MogaNet: Multi-order Gated Aggregation Networkcited by 59
- 2024Scene Adaptive Sparse Transformer for Event-based Object Detectioncited by 39
- 2024TOTEM: TOkenized Time Series EMbeddings for General Time Series Analysiscited by 37
12 most cited of 60 All 60 (JSON)
- 2026Frequency Selective Neural Networks as a Foundation Architecture for Time Series Learning29 Aug 2026
- 2026FreSH: Frequency-Segmented Hierarchical Multi-Expert Framework for Multivariate Time Series Classification8 Aug 2026
- 2026A Quantum-Classical Hybrid Framework for Multivariate Time-Series Forecasting Complexity-Fidelity Trade-offs and Limitations17 Jul 2026
- 2026LLT: Local Linear Transformer for PDE Operator Learning4 Jul 2026
- 2026ChurnNet: A Optimized Modern AI for Churn Prediction29 May 2026
- 2026Do Vision Transformers Need All-to-All Attention? Global Communication Through Elastic Learned Cores12 May 2026
- 2026Permutation-Equivariant 2D State Space Models: Theory and Canonical Architecture for Multivariate Time Series7 Mar 2026
- 2026Empowering Time Series Analysis with Large-Scale Multimodal Pretraining5 Feb 2026
- 2026vLinear: A Powerful Linear Model for Multivariate Time Series Forecasting20 Jan 2026
- 2025CAPRMIL: Context-Aware Patch Representations for Multiple Instance Learning16 Dec 2025
- 2025Small transformer architectures for task switching6 Aug 2025
- 2025FeDaL: Federated Dataset Learning for General Time Series Foundation Models6 Aug 2025
12 newest of 60 All 60 (JSON)