Skip to main content
QUICK REVIEW

[Paper Review] EATFormer: Improving Vision Transformer Inspired by Evolutionary Algorithm

Jiangning Zhang, Xiangtai Li|arXiv (Cornell University)|Jun 19, 2022
CCD and CMOS Imaging SensorsEngineering15 citations
TL;DR

This paper proposes EATFormer, a vision transformer architecture inspired by evolutionary algorithms (EA), introducing an EA-based Transformer block (EAT) with Multi-Scale Region Aggregation (MSRA), Global and Local Interaction (GLI), and Feed-Forward Network (FFN) modules to model multi-scale, interactive, and individual features. It achieves state-of-the-art performance with 83.9% Top-1 accuracy on ImageNet-1K using a base model (49.0M parameters), surpassing SOTA methods on COCO detection and ADE20K segmentation with fewer FLOPs.

ABSTRACT

Motivated by biological evolution, this paper explains the rationality of Vision Transformer by analogy with the proven practical evolutionary algorithm (EA) and derives that both have consistent mathematical formulation. Then inspired by effective EA variants, we propose a novel pyramid EATFormer backbone that only contains the proposed EA-based transformer (EAT) block, which consists of three residual parts, i.e., Multi-scale region aggregation, global and local interaction, and feed-forward network modules, to model multi-scale, interactive, and individual information separately. Moreover, we design a task-related head docked with transformer backbone to complete final information fusion more flexibly and improve a modulated deformable MSA to dynamically model irregular locations. Massive quantitative and quantitative experiments on image classification, downstream tasks, and explanatory experiments demonstrate the effectiveness and superiority of our approach over state-of-the-art methods. E.g., our Mobile (1.8 M), Tiny (6.1 M), Small (24.3 M), and Base (49.0 M) models achieve 69.4, 78.4, 83.1, and 83.9 Top-1 only trained on ImageNet-1K with naive training recipe; EATFormer-Tiny/Small/Base armed Mask-R-CNN obtain 45.4/47.4/49.0 box AP and 41.4/42.9/44.2 mask AP on COCO detection, surpassing contemporary MPViT-T, Swin-T, and Swin-S by 0.6/1.4/0.5 box AP and 0.4/1.3/0.9 mask AP separately with less FLOPs; Our EATFormer-Small/Base achieve 47.3/49.3 mIoU on ADE20K by Upernet that exceeds Swin-T/S by 2.8/1.7. Code is available at https://github.com/zhangzjn/EATFormer.

Motivation & Objective

  • To explain the rationality of Vision Transformers through analogy with proven evolutionary algorithms (EA), revealing shared mathematical formulations between EA operators and self-attention/FFN components.
  • To improve vision transformers by incorporating effective EA variants, particularly those emphasizing global and local population modeling, to enhance feature representation.
  • To design a novel pyramid-based EATFormer backbone composed solely of the proposed EAT block, enabling multi-scale, interactive, and individual feature modeling.
  • To introduce a Task-Related Head (TRH) for flexible final fusion and a Modulated Deformable MSA (MD-MSA) for dynamic modeling of irregular spatial locations.
  • To demonstrate superior performance and efficiency across image classification, object detection, and semantic segmentation tasks, with ablation and visualization studies validating design choices.

Proposed method

  • Derive mathematical equivalence between Multi-Head Self-Attention (MSA) in Vision Transformers and the crossover operator in EA, and between Feed-Forward Network (FFN) and mutation operator in EA.
  • Propose the EAT block as a residual architecture integrating three components: Multi-Scale Region Aggregation (MSRA) for multi-scale feature extraction, Global and Local Interaction (GLI) for parallel global and local modeling, and FFN for individual feature enhancement.
  • Introduce the Task-Related Head (TRH) module, which docks with the transformer backbone to enable flexible, task-specific information fusion through cross-attention mechanisms.
  • Design a Modulated Deformable MSA (MD-MSA) that learns dynamic sampling offsets and modulation weights, allowing adaptive attention to irregular spatial configurations.
  • Apply a naive training recipe on ImageNet-1K to evaluate the EATFormer backbone, with ablation studies on GLI, MD-MSA, and TRH to validate component contributions.
  • Conduct extensive experiments on image classification, COCO object detection, and ADE20K semantic segmentation, including attention visualization and FLOPs/parameter distribution analysis.

Experimental results

Research questions

  • RQ1Can the structural components of Vision Transformers be formally linked to evolutionary algorithm operators such as crossover and mutation?
  • RQ2How does incorporating both global and local population modeling from EA variants improve feature representation in vision transformers?
  • RQ3To what extent does the proposed EAT block, with its MSRA, GLI, and FFN components, enhance multi-scale and interactive feature learning compared to standard ViT blocks?
  • RQ4How does the Task-Related Head (TRH) improve final feature fusion compared to standard classification heads?
  • RQ5Can the MD-MSA module dynamically model irregular spatial locations more effectively than standard MSA, and how does it affect performance on dense prediction tasks?

Key findings

  • EATFormer-Base achieves 83.9% Top-1 accuracy on ImageNet-1K with only 49.0M parameters, outperforming SOTA methods under the same training recipe.
  • EATFormer-Tiny, Small, and Base achieve 78.4%, 83.1%, and 83.9% Top-1 accuracy respectively, demonstrating strong performance even at small model sizes.
  • On COCO object detection, EATFormer-Tiny/Small/Base achieve 45.4/47.4/49.0 box AP and 41.4/42.9/44.2 mask AP, surpassing Swin-T/S and MPViT-T by 0.6/1.4/0.5 and 0.4/1.3/0.9 AP respectively with fewer FLOPs.
  • On ADE20K semantic segmentation, EATFormer-Small/Base achieve 47.3/49.3 mIoU using UperNet, exceeding Swin-T/S by 2.8/1.7 mIoU.
  • Visualization confirms that GLI enhances attention to broader regions, especially in the last stage, reducing over-concentration on sparse areas seen in models without local modeling.
  • Parameter and FLOPs analysis shows that FFN dominates parameter count while early stages contribute most to FLOPs, indicating optimization potential in FFN and early layers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.