mlsanityData to 7 Oct 2026

Sequence Length Scaling in Vision Transformers for Scientific Images on Frontier

arXiv 2405.15780 ↗First posted 17 Apr 2024cs.CV cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Vision Transformers (ViTs) are pivotal for foundational models in scientific imagery, including Earth science applications, due to their capability to process large sequence lengths. While transformers for text has inspired scaling sequence lengths in ViTs, yet adapting these for ViTs introduces unique challenges. We develop distributed sequence parallelism for ViTs, enabling them to handle up to 1M tokens. Our approach, leveraging DeepSpeed-Ulysses and Long-Sequence-Segmentation with model sharding, is the first to apply sequence parallelism in ViT training, achieving a 94% batch scaling efficiency on 2,048 AMD-MI250X GPUs. Evaluating sequence parallelism in ViTs, particularly in models up to 10B parameters, highlighted substantial bottlenecks. We countered these with hybrid sequence, pipeline, tensor parallelism, and flash attention strategies, to scale beyond single GPU memory limits. Our method significantly enhances climate modeling accuracy by 20% in temperature predictions, marking the first training of a transformer model on a full-attention matrix over 188K sequence length.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 26 of its 42 references that are in the map. First posted on arXiv 17 Apr 2024.

Builds on

26 of 42 references.

References · 26

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  4. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  5. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
  6. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  7. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  8. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  9. 2021Transformers in Vision: A Surveycited by 1,009
  10. 2022FourCastNet: A Global Data-driven High-resolution Weather Model using Adaptive Fourier Neural Operatorscited by 748
  11. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 690
  12. 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 641
14 more
  1. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
  2. 2022Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised Learningcited by 357
  3. 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 339
  4. 2023ClimaX: A foundation model for weather and climatecited by 325
  5. 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
  6. 2021ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learningcited by 253
  7. 2023Multimodal Foundation Models: From Specialists to General-Purpose Assistantscited by 247
  8. 2023DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Modelscited by 239
  9. 2023FuXi: A cascade machine learning forecasting system for 15-day global weather forecastcited by 237
  10. 2021Sequence Parallelism: Long Sequence Training from System Perspectivecited by 125
  11. 2023A Billion-scale Foundation Model for Remote Sensing Imagescited by 62
  12. 2024One for All: Toward Unified Foundation Models for Earth Visioncited by 34
  13. 2024xT: Nested Tokenization for Larger Context in Large Imagescited by 8
  14. 2024Comparative Study of Large Language Model Architectures on Frontiercited by 4

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.