Saved in:
Bibliographic Details
Main Authors: Smerkous, David, Wang, Zian, Najafian, Behzad
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2602.16249
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914336435339264
author Smerkous, David
Wang, Zian
Najafian, Behzad
author_facet Smerkous, David
Wang, Zian
Najafian, Behzad
contents Self-supervised pretraining has transformed computer vision by enabling data-efficient fine-tuning, yet high-resolution training typically requires server-scale infrastructure, limiting in-domain foundation model development for many research laboratories. Masked Autoencoders (MAE) reduce computation by encoding only visible tokens, but combining MAE with hierarchical downsampling architectures remains structurally challenging due to dense grid priors and mask-aware design compromises. We introduce AFFMAE, a masking-friendly hierarchical pretraining framework built on adaptive, off-grid token merging. By discarding masked tokens and performing dynamic merging exclusively over visible tokens, AFFMAE removes dense-grid assumptions while preserving hierarchical scalability. We developed numerically stable mixed-precision Flash-style cluster attention kernels, and mitigate sparse-stage representation collapse via deep supervision. On high-resolution electron microscopy segmentation, AFFMAE matches ViT-MAE performance at equal parameter count while reducing FLOPs by up to 7x, halving memory usage, and achieving faster training on a single RTX 5090. Code available at https://github.com/najafian-lab/affmae.
format Preprint
id arxiv_https___arxiv_org_abs_2602_16249
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle AFFMAE: Scalable and Efficient Vision Pretraining for Desktop Graphics Cards
Smerkous, David
Wang, Zian
Najafian, Behzad
Computer Vision and Pattern Recognition
Self-supervised pretraining has transformed computer vision by enabling data-efficient fine-tuning, yet high-resolution training typically requires server-scale infrastructure, limiting in-domain foundation model development for many research laboratories. Masked Autoencoders (MAE) reduce computation by encoding only visible tokens, but combining MAE with hierarchical downsampling architectures remains structurally challenging due to dense grid priors and mask-aware design compromises. We introduce AFFMAE, a masking-friendly hierarchical pretraining framework built on adaptive, off-grid token merging. By discarding masked tokens and performing dynamic merging exclusively over visible tokens, AFFMAE removes dense-grid assumptions while preserving hierarchical scalability. We developed numerically stable mixed-precision Flash-style cluster attention kernels, and mitigate sparse-stage representation collapse via deep supervision. On high-resolution electron microscopy segmentation, AFFMAE matches ViT-MAE performance at equal parameter count while reducing FLOPs by up to 7x, halving memory usage, and achieving faster training on a single RTX 5090. Code available at https://github.com/najafian-lab/affmae.
title AFFMAE: Scalable and Efficient Vision Pretraining for Desktop Graphics Cards
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2602.16249