Skip to main content
QUICK REVIEW

[Paper Review] Faster Attention Is What You Need: A Fast Self-Attention Neural Network Backbone Architecture for the Edge via Double-Condensing Attention Condensers

Alexander Wong, Mohammad Javad Shafiee|arXiv (Cornell University)|Aug 15, 2022
Advanced Neural Network ApplicationsComputer Science5 citations
TL;DR

This paper proposes AttendNeXt, a fast self-attention neural network backbone for edge AI using double-condensing attention condensers (DC-AC) that compress feature embeddings through dual condensation stages. The architecture achieves >10× higher inference throughput than FB-Net C and MobileOne-S1 on ARM Cortex A72 while maintaining high accuracy (1.1% top-1 accuracy higher than MobileViT XS) and reduced model size (1.37× smaller than MobileNetV3-L).

ABSTRACT

With the growing adoption of deep learning for on-device TinyML applications, there has been an ever-increasing demand for efficient neural network backbones optimized for the edge. Recently, the introduction of attention condenser networks have resulted in low-footprint, highly-efficient, self-attention neural networks that strike a strong balance between accuracy and speed. In this study, we introduce a faster attention condenser design called double-condensing attention condensers that allow for highly condensed feature embeddings. We further employ a machine-driven design exploration strategy that imposes design constraints based on best practices for greater efficiency and robustness to produce the macro-micro architecture constructs of the backbone. The resulting backbone (which we name AttendNeXt) achieves significantly higher inference throughput on an embedded ARM processor when compared to several other state-of-the-art efficient backbones (>10x faster than FB-Net C at higher accuracy and speed and >10x faster than MobileOne-S1 at smaller size) while having a small model size (>1.37x smaller than MobileNetv3-L at higher accuracy and speed) and strong accuracy (1.1% higher top-1 accuracy than MobileViT XS on ImageNet at higher speed). These promising results demonstrate that exploring different efficient architecture designs and self-attention mechanisms can lead to interesting new building blocks for TinyML applications.

Motivation & Objective

  • Address the growing need for efficient, accurate neural network backbones tailored for on-device TinyML inference on resource-constrained edge devices.
  • Overcome limitations of existing efficient architectures by enhancing self-attention mechanisms for improved speed-accuracy-compactness trade-offs.
  • Develop a novel double-condensing attention condenser (DC-AC) mechanism that enables more condensed, representative feature embeddings with reduced computational cost.
  • Design a robust, machine-driven macro-micro architecture (AttendNeXt) that integrates DC-AC modules while adhering to best practices for efficiency and stability.
  • Demonstrate superior performance on edge hardware by achieving high inference throughput, small model size, and strong accuracy on ImageNet.

Proposed method

  • Introduce the double-condensing attention condenser (DC-AC), which applies two sequential condensation stages: one on input features and another on the output of the first condensation, enabling deeper feature compression.
  • Design the DC-AC mechanism with three core components: condenser layers (to reduce spatial and channel dimensions via attention-based pooling), embedding layers (to learn joint spatial-channel activation relationships), and expansion layers (to restore dimensionality for residual connections).
  • Employ a machine-driven design exploration strategy that enforces design constraints based on best practices for efficiency, robustness, and hardware compatibility to generate the AttendNeXt macro-micro architecture.
  • Structure AttendNeXt with a heterogeneous columnar design: early stages use independent columns for disentangled feature learning, while later stages increase columnar interactions for complex abstraction.
  • Integrate AADS (Adaptive Attention-based Downsampling) modules throughout the network to improve shift-invariance and stability of attention mechanisms.
  • Optimize the final architecture using a multi-objective search framework that balances top-1 accuracy, model size, and inference throughput on ARM Cortex A72.

Experimental results

Research questions

  • RQ1Can a double-condensing attention mechanism significantly improve the efficiency and representational power of self-attention networks for edge deployment?
  • RQ2How does the proposed DC-AC mechanism compare to single-condensing attention condensers in terms of feature compression, accuracy, and computational cost?
  • RQ3To what extent can a machine-driven design strategy incorporating hardware-aware constraints yield a more efficient and robust backbone architecture than hand-designed or NAS-based alternatives?
  • RQ4Can AttendNeXt achieve a superior balance of speed, accuracy, and model size compared to state-of-the-art efficient backbones like MobileNetV3, MobileOne, and FB-Net on edge processors?
  • RQ5Does the use of double condensation enable better generalization and robustness in attention-based feature learning for vision tasks on low-power devices?

Key findings

  • AttendNeXt achieves 75.8% top-1 accuracy on ImageNet, outperforming MobileViT-XS by 1.1% and matching or exceeding other state-of-the-art models in accuracy while being significantly faster.
  • On an ARM Cortex A72 processor, AttendNeXt delivers over 10× higher inference throughput than FB-Net C and MobileOne-S1, and over 6× faster than OFA-62 and MobileNetV3-L.
  • AttendNeXt is 1.47× smaller than OFA-62 and 1.37× smaller than MobileNetV3-L, demonstrating strong model compression without sacrificing accuracy.
  • The double-condensing attention condenser (DC-AC) enables more condensed feature embeddings than prior attention condensers, reducing computational complexity while preserving representational power.
  • The heterogeneous columnar architecture with staged columnar interactions improves feature abstraction efficiency, with independent learning in early stages and collaborative learning in deeper stages.
  • The integration of AADS modules enhances shift-invariance and stability, contributing to robust performance across diverse input variations on edge hardware.

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.