Skip to main content
QUICK REVIEW

[Paper Review] Analogous to Evolutionary Algorithm: Designing a Unified Sequence Model

Jiangning Zhang, Chao Xu|arXiv (Cornell University)|May 31, 2021
Evolutionary Algorithms and ApplicationsComputer Science78 references13 citations
TL;DR

This paper proposes a unified sequence model, EAT (Evolutionary Algorithm-inspired Transformer), by drawing an analogy between Vision Transformers and Evolutionary Algorithms (EA), revealing consistent mathematical formulations between self-attention/mutation and crossover/mutation operators. It introduces a local operator in parallel with global attention, uses space-filling curves (SFC) to serialize multi-modal data into 1D sequences, and designs task-specific heads for flexible multi-task learning, achieving state-of-the-art accuracy (80.264 top-1) on ImageNet-1k with fewer parameters and higher throughput.

ABSTRACT

Inspired by biological evolution, we explain the rationality of Vision Transformer by analogy with the proven practical Evolutionary Algorithm (EA) and derive that both of them have consistent mathematical representation. Analogous to the dynamic local population in EA, we improve the existing transformer structure and propose a more efficient EAT model, and design task-related heads to deal with different tasks more flexibly. Moreover, we introduce the spatial-filling curve into the current vision transformer to sequence image data into a uniform sequential format. Thus we can design a unified EAT framework to address multi-modal tasks, separating the network architecture from the data format adaptation. Our approach achieves state-of-the-art results on the ImageNet classification task compared with recent vision transformer works while having smaller parameters and greater throughput. We further conduct multi-modal tasks to demonstrate the superiority of the unified EAT, e.g., Text-Based Image Retrieval, and our approach improves the rank-1 by +3.7 points over the baseline on the CSS dataset.

Motivation & Objective

  • To provide a theoretical rationale for Vision Transformers by drawing an analogy with Evolutionary Algorithms (EA), which are known for stability and robustness in optimization.
  • To improve the efficiency and performance of Vision Transformers by introducing a dynamic local population concept inspired by EA, leading to a novel EAT architecture with a parallel local operator.
  • To unify multi-modal sequence modeling by using space-filling curves (SFC) to convert 2D/3D data into a consistent 1D sequence format, decoupling data representation from network architecture.
  • To enable flexible, task-specific adaptation in downstream tasks by designing task-related heads that integrate with the transformer backbone, improving transfer learning capability.
  • To demonstrate the superiority of the unified EAT framework across classification and multi-modal tasks, including text-based image retrieval.

Proposed method

  • Analogize the training pipeline of Vision Transformers with a basic Evolutionary Algorithm (EA), identifying equivalent components: patch embeddings as individuals, multi-head self-attention (MSA) as global crossover, and feed-forward networks (FFN) as mutation.
  • Derive mathematical equivalence between EA operators (crossover and mutation) and neural components (MSA and FFN), showing identical functional forms.
  • Propose the EAT model by introducing a parallel local operator (e.g., 1D convolution, local MSA) alongside global MSA, inspired by dynamic local populations in EA to improve speed and efficiency.
  • Introduce a Space-Filling Curve (SFC) module to convert rasterized 2D/3D data (images, videos) into a 1D sequence, enabling uniform input across modalities without 2D reshaping.
  • Design task-related heads that are docked with the EAT backbone to enable flexible, task-specific feature fusion and improve downstream transfer learning.
  • Use a unified EAT framework that separates network architecture from data format adaptation, allowing one model to handle diverse modalities.

Experimental results

Research questions

  • RQ1Can the training dynamics of Vision Transformers be theoretically justified through analogy with Evolutionary Algorithms (EA), and do they share consistent mathematical formulations?
  • RQ2How does introducing a dynamic local population concept via a parallel local operator improve the efficiency and performance of Vision Transformers?
  • RQ3Can space-filling curves (SFC) effectively serialize multi-modal data (e.g., images, videos) into a 1D sequence format while preserving spatial structure for 1D operations?
  • RQ4To what extent can a unified EAT framework with task-specific heads generalize across diverse vision and multi-modal tasks, including classification and text-based image retrieval?
  • RQ5How does the EAT model compare to existing Vision Transformers in terms of accuracy, parameter count, and inference throughput?

Key findings

  • The EAT model achieves a top-1 accuracy of 80.264 on ImageNet-1k, surpassing recent Vision Transformer methods while using fewer parameters and achieving higher throughput.
  • The ablation study shows that increasing the number of head layers from 1 to 4 improves accuracy (from 79.692 to 80.454), with 2 layers chosen as a trade-off between performance and parameter efficiency.
  • A local ratio of 0.50 yields optimal performance, as higher ratios (e.g., 0.75) reduce accuracy and increase parameters.
  • The SFC mode significantly affects performance: Z-Order and SIS (Sequential Indexing Scheme) outperform Sweep and Scan, with Z-Order/SIS achieving 80.438 top-1 on 256×256 images.
  • Replacing the local operator with depth-wise separable convolution (DCN) drastically reduces accuracy (to 68.070), indicating sensitivity to hyperparameter tuning and architecture choice.
  • On the CSS dataset for text-based image retrieval, the EAT model improves rank-1 accuracy by +3.7 points over the baseline, demonstrating strong multi-modal capability.

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.