Modality Agnostic Efficient Long Range Encoder
On the map: Efficient LLM inference and serving → Early exit and edge inference
Abstract (arXiv)
The long-context capability of recent large transformer models can be surmised to rely on techniques such as attention/model parallelism, as well as hardware-level optimizations. While these strategies allow input lengths to scale to millions of tokens, they do not fundamentally mitigate the quadratic computational and memory complexity of the core attention mechanism. In this paper, we address the challenge of long-context processing on a single device using generic implementations by reducing the quadratic memory footprint and inference cost. Existing approaches to extend the context length for generic single device implementations -- such as token merging and modified attentions -- are often modality specific and attain a suboptimal tradeoff between accuracy and efficiency. To overcome these limitations, we propose MAELRE (Modality Agnostic Efficient Long Range Encoder), a unified and efficient transformer architecture designed for long-range encoding across diverse modalities. MAELRE integrates token merging with attention approximation, progressively merging tokens at different stages of internal computational blocks. It employs a lightweight attention approximation when the number of tokens is large, and switches to standard dot-product attention as the sequence becomes shorter through successive aggregation. We demonstrate that MAELRE achieves superior accuracy while reducing computational cost compared to existing long-context models on classification tasks spanning multiple modalities, including text, time series, audio, and vision.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Early exit and edge inference, one of 12 directions in Efficient LLM inference and serving. Builds on 59 of its 67 references that are in the map. First posted on arXiv 25 Jul 2025.
Builds on
59 of 67 references.
References · 59
- 2017Attention Is All You Needcited by 59,932
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
38 more
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2022Token Merging: Your ViT But Fastercited by 995
- 2016Deep Networks with Stochastic Depthcited by 973
- 2021Multiscale Vision Transformerscited by 896
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2020VGGSound: A Large-scale Audio-Visual Datasetcited by 641
- 2021MetaFormer Is Actually What You Need for Visioncited by 523
- 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 516
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
- 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
- 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 360
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2020Sparse Sinkhorn Attentioncited by 250
- 2022EfficientFormer: Vision Transformers at MobileNet Speedcited by 240
- 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
- 2021AdaViT: Adaptive Vision Transformers for Efficient Image Recognitioncited by 228
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 164
- 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 161
- 2021Self-attention Does Not Need O(n2) Memorycited by 152
- 2022Contrastive Audio-Visual Masked Autoencodercited by 142
- 2020An Empirical Survey of Data Augmentation for Time Series Classification with Neural Networkscited by 128
50 most cited of 59 All 59 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025End-to-End Transformer Acceleration Through Processing-in-Memory Architectures
- 2025EdgeInfinite: A Memory-Efficient Infinite-Context Transformer for Edge Devices
- 2026Long-Context Aware Upcycling: A New Frontier for Hybrid LLM Scaling
- 2026Revisiting the Shape Convention of Transformer Language Models
- 2022Efficient Long Sequence Modeling via State Space Augmented Transformer
- 2024LongLLaVA: Scaling Multi-modal LLMs to 1000 Images Efficiently via a Hybrid Architecture
- 2025SCOUT: Toward Sub-Quadratic Attention via Segment Compression for Optimized Utility in Transformers
- 2024FlashMask: Efficient and Rich Mask Extension of FlashAttention