atlas

Research map / Architectures and efficiency / Attention and transformers

PIDformer: Transformer Meets Control Theory

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Attention head and block redesign

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 PIDformer, a transformer whose attention is a discretized PID-controlled state-space model that adds proportional, integral, and derivative feedback on a reference signal, improving robustness and mitigating rank collapse.

Problem

Softmax transformers suffer from sensitivity to input corruption and rank collapse in deep layers, where token representations become increasingly similar.

Approach

Interprets self-attention as an autonomous state-space model (gradient flow minimizing nonlocal total variation) and adds a PID feedback controller with a reference point scaled from the initial value embedding, yielding a PID-attention that keeps the steady state sensitive only to a scaled input and preserves rank.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add PID control to DeiT-tinyDeiT-tiny · ImageNet validation (clean)Top-1 accuracy (%): 72.17 -> 73.13Helped
Add PID control to DeiT-tinyDeiT-tiny · ImageNet validation (FGSM)Top-1 accuracy (%): 33.64 -> 38.52Helped
Add PID control to DeiT-tinyDeiT-tiny · ImageNet validation (PGD)Top-1 accuracy (%): 12.02 -> 15.08Helped
Add PID control to DeiT-tinyDeiT-tiny · ImageNet validation (SPSA)Top-1 accuracy (%): 65.75 -> 67.98Helped
Add PID control to DeiT-tinyDeiT-tiny · ImageNet validation (SLD)Top-1 accuracy (%): 69.32 -> 70.84Helped
Add PID control to DeiT-tinyDeiT-tiny · ImageNet validation (noise)Top-1 accuracy (%): 69.2 -> 70.87Helped
Add PID control to DeiT-tinyDeiT-tiny · ImageNet-ATop-1 accuracy (%): 6.90 -> 8.82Helped
Add PID control to DeiT-tinyDeiT-tiny · ImageNet-RTop-1 accuracy (%): 32.83 -> 34.89Helped
Add PID control to DeiT-tinyDeiT-tiny · ImageNet-CmCE (↓): 71.20 -> 68.41Helped
Add PID control to DeiT-tinyDeiT-tiny · ImageNet-OAUPR: 17.47 -> 19.22Helped
Add PID control to the DeiT-tiny backboneSegmenter with DeiT-tiny backbone · ADE20KSS mIoU: 35.72 -> 37.42Helped
Add PID control to the DeiT-tiny backboneSegmenter with DeiT-tiny backbone · ADE20KMS mIoU: 36.68 -> 38.28Helped

Limitations

Experimental setup

Datasets: ImageNet-1K ADE20K WikiText-103

Benchmarks: ImageNet-1K ImageNet-C ImageNet-A ImageNet-R ImageNet-O ADE20K WikiText-103

Metrics: Top-1 accuracy Top-5 accuracy mCE AUPR MIoU perplexity average cosine similarity

Baselines: Softmax DeiT Softmax Transformer Segmenter with DeiT backbone

Builds on: DeiT Segmenter Transformer-XL-style lmtool (fast weight programmers) Bregman iteration

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