mlsanityData to 7 Oct 2026

Modality Agnostic Efficient Long Range Encoder

arXiv 2507.19409 ↗First posted 25 Jul 2025cs.CVcited by 0

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  5. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
  6. 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
  7. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
  8. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  9. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  10. 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
  11. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  12. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
38 more
  1. 2020Longformer: The Long-Document Transformercited by 3,362
  2. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
  3. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  4. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  5. 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
  6. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  7. 2020Reformer: The Efficient Transformercited by 1,658
  8. 2020Rethinking Attention with Performerscited by 1,584
  9. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  10. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  11. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
  12. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  13. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
  14. 2022Token Merging: Your ViT But Fastercited by 995
  15. 2016Deep Networks with Stochastic Depthcited by 973
  16. 2021Multiscale Vision Transformerscited by 896
  17. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
  18. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  19. 2020VGGSound: A Large-scale Audio-Visual Datasetcited by 641
  20. 2021MetaFormer Is Actually What You Need for Visioncited by 523
  21. 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 516
  22. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
  23. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
  24. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  25. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
  26. 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
  27. 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 360
  28. 2023Effective Long-Context Scaling of Foundation Modelscited by 301
  29. 2020Sparse Sinkhorn Attentioncited by 250
  30. 2022EfficientFormer: Vision Transformers at MobileNet Speedcited by 240
  31. 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
  32. 2021AdaViT: Adaptive Vision Transformers for Efficient Image Recognitioncited by 228
  33. 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
  34. 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 164
  35. 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 161
  36. 2021Self-attention Does Not Need O(n2) Memorycited by 152
  37. 2022Contrastive Audio-Visual Masked Autoencodercited by 142
  38. 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

  1. 2025End-to-End Transformer Acceleration Through Processing-in-Memory Architectures
  2. 2025EdgeInfinite: A Memory-Efficient Infinite-Context Transformer for Edge Devices
  3. 2026Long-Context Aware Upcycling: A New Frontier for Hybrid LLM Scaling
  4. 2026Revisiting the Shape Convention of Transformer Language Models
  5. 2022Efficient Long Sequence Modeling via State Space Augmented Transformer
  6. 2024LongLLaVA: Scaling Multi-modal LLMs to 1000 Images Efficiently via a Hybrid Architecture
  7. 2025SCOUT: Toward Sub-Quadratic Attention via Segment Compression for Optimized Utility in Transformers
  8. 2024FlashMask: Efficient and Rich Mask Extension of FlashAttention