atlas

Research map / Architectures and efficiency / Attention and transformers

Real-time Core-Periphery Guided ViT with Smart Data Layout Selection on Mobile Devices

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Hybrid and interpretable ViT designs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes ECP-ViT, a core-periphery guided sparse self-attention for ViTs combined with compiler-level data layout selection that eliminates Reshape/Transpose overhead, enabling real-time ViT inference on mobile GPUs.

Problem

Efficient ViT variants that reduce FLOPs (local attention, token pruning) incur data transformation overheads (Reshape, Transpose) and irregular memory access, so they are often slower than vanilla ViT on memory-bandwidth-limited mobile GPUs.

Approach

Replace full self-attention with a core-periphery graph structure (core patches attend to all, periphery patches attend only to cores, guided by Grad-CAM), and co-design a compiler that chooses intermediate data layouts so that Transpose/Reshape/Slice operators are eliminated at kernel level.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use core-periphery guided self-attention at the reported best core ratioECP-ViT-Base · ImageNet-1KTop-1 accuracy: 83.9 -> 84.6Helped
Use core-periphery guided self-attentionViT-S/16 · STL-10Top-1 accuracy: +1.82Helped
Use core-periphery guided self-attentionViT-S/16 · CIFAR-100Top-1 accuracy: +0.05Helped
Use core-periphery guided self-attentionViT-S · ImageNet-1KTop-1 accuracy: 81.1 -> 80.9Hurt
Use core-periphery guided self-attentionViT-Tiny · ImageNet-1KTop-1 accuracy: 75.1 -> 75.8Helped
Use core ratio 0.9 instead of 1.0 (ablation)ECP-ViT-B/16 · ImageNet-1KTop-1 accuracy: 83.89 -> 84.62Helped
Use core ratio 0.8 instead of 1.0 (ablation)ECP-ViT-B/16 · ImageNet-1KTop-1 accuracy: 83.89 -> 84.51Helped
Vary core ratio below 1.0 (ablation)ECP-ViT-T/16 · ImageNet-1KTop-1 accuracy: 75.90 -> 65.50–75.84Hurt
Vary core ratio below 1.0 (ablation)ECP-ViT-S/16 · ImageNet-1KTop-1 accuracy: 81.12 -> 73.24–80.88Hurt
Use core ratios 0.1–0.7 instead of 1.0 (ablation)ECP-ViT-B/16 · ImageNet-1KTop-1 accuracy: 83.89 -> 76.15–84.03Hurt
Apply ECP-ViT compiler optimizations to vanilla ViT inferenceViT-Tiny, ViT-Small, ViT-Base · ImageNet-1K on OnePlus 11 GPULatency speedup: 4.8×; 4.9×; 5.3×Helped
Apply ECP-ViT compiler optimizations to core-periphery ViT inferenceECP-ViT-Tiny, ECP-ViT-Small, ECP-ViT-Base · ImageNet-1K on OnePlus 11 GPULatency speedup versus other frameworks: 4.6× to 26.9×Mixed

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-21K ImageNet-1K STL-10 CIFAR-100 TinyImageNet

Benchmarks: ImageNet-1K STL-10 CIFAR-100 TinyImageNet

Metrics: top-1 accuracy latency (ms) speedup peak memory cache miss rate MACs parameters

Baselines: ViT-Base DeiT-Base Swin MetaFormer PVT TNT ConViT MNN TNN TVM

Builds on: Vision Transformer (ViT) Grad-CAM MNN DNNFusion

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy