Atlas: Multi-Scale Attention Improves Long Context Image Modeling

Kumar Krishna Agrawal, Long Lian, Longchao Liu, Natalia Harguindeguy, Boyi Li, Alexander Bick, Maggie Chung, Trevor Darrell, Adam YalaarXiv 2025 · DOI

Abstract

High-resolution image modeling faces a significant computational bottleneck due to the quadratic scaling of standard self-attention mechanisms. We introduce Atlas, a novel vision backbone centered around Multi-Scale Attention (MSA). By organizing features into a hierarchy with bi-directional communication, Atlas achieves $O(N \log N)$ complexity, enabling efficient global reasoning on high-resolution inputs. Our results on the HR-IN100 benchmark demonstrate that Atlas significantly outperforms both traditional Transformers and recent State Space Models (SSMs), providing up to a 4.3x speedup over ConvNext-B and a 32.8% accuracy advantage over MambaVision at 4096px resolution.

Introduction

As vision tasks move toward high-resolution domains—such as satellite imagery, medical pathology, and gigapixel photography—standard Vision Transformers (ViTs) encounter a "computational wall." The $O(N^2)$ scaling of self-attention makes processing images beyond 1024px prohibitively expensive. While existing solutions like windowed attention or State Space Models (SSMs) offer linear scaling, they often sacrifice global receptive fields or spatial expressivity. Atlas aims to bridge this gap by providing a model that scales gracefully like an SSM while retaining the robust global reasoning capabilities of attention-based architectures.

Methodology: Multi-Scale Attention

The core of the Atlas architecture is the Multi-Scale Attention (MSA) block. Unlike standard attention that operates on a single resolution, MSA utilizes two primary principles to manage long-context sequences:

  1. Hierarchical Representation: The model constructs $O(\log N)$ spatial scales through iterative summarization (e.g., max-pooling). This creates a feature pyramid ranging from fine-grained local details to coarse global summaries.
  2. Bi-directional Communication:
    • Top-Down: Coarser "child" windows propagate global context to finer "parent" windows via cross-attention, allowing local patches to incorporate information from distant parts of the image.
  3. Bottom-Up: Finer details are passed back up to refine coarse representations, ensuring the global summary preserves critical local features.
The Multi-Scale Attention (MSA) block architecture showing hierarchical scaling.

To further optimize performance, Atlas employs "scale-dropping," progressively deactivating finer resolutions in deeper network stages to focus on high-level semantic features. Additionally, a QKV caching mechanism is implemented to avoid redundant computations across different scales.

Experimental Setup

To evaluate long-context performance, the authors introduced HR-IN100 (High-Res ImageNet-100). This benchmark consists of a 100-class subset of ImageNet-1k upsampled to resolutions between 1024px and 4096px. At 4096px, models must process sequences of up to 64,000 tokens, far exceeding the capacity of standard vision benchmarks.

Key Results and Discussion

Atlas demonstrates a superior Pareto frontier for speed and accuracy across all tested resolutions.

Efficiency and Scaling

At 1024px, Atlas-B is 4.3x faster than ConvNext-B and 2.95x faster than FasterViT. As resolution increases, the efficiency gains become even more pronounced. While standard ViTs often encounter Out-Of-Memory (OOM) errors at 4096px, Atlas continues to scale efficiently.

The "Mamba Gap"

A critical finding of this work is the performance gap between Atlas and SSM-based models like MambaVision. While SSMs offer linear scaling, their accuracy tends to collapse at extreme resolutions. In contrast, Atlas maintains high accuracy, outperforming MambaVision-S by 32.84% in top-1 accuracy at 4096px while maintaining a nearly identical runtime. This suggests that hierarchical attention is fundamentally better suited for high-resolution spatial modeling than current SSM implementations.

Training efficiency and accuracy gap on HR-IN100. (a) Train time vs. resolution. (b) Top-1 accuracy gap between Atlas and MambaVision.

Conclusion

Atlas successfully breaks the compute-expressivity trade-off in high-resolution vision. By leveraging Multi-Scale Attention, it provides a scalable, efficient, and highly accurate backbone for long-context image modeling. Future work will focus on evaluating Atlas on native high-resolution datasets and exploring effective pre-training strategies to transfer knowledge from low-resolution data to the Atlas architecture.

Summary updated

BibTeX
@misc{agrawal2025atlas,
  author = {Kumar Krishna Agrawal and Long Lian and Longchao Liu and Natalia Harguindeguy and Boyi Li and Alexander Bick and Maggie Chung and Trevor Darrell and Adam Yala},
  title = {{Atlas: Multi-Scale Attention Improves Long Context Image Modeling}},
  year = {2025},
  eprint = {2503.12355},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.12355},
}
Figure