atlas

Research map / Architectures and efficiency / Attention and transformers

ProTransformer: Robustify Transformers via Plug-and-Play Paradigm

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer block and depth design · 2 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 ProAttention, a plug-and-play robust attention layer that reframes attention as a weighted least-squares estimator and replaces it with robust penalties (MCP, Huber, l1) solved by a Newton-IRLS iteration, improving transformer robustness without training.

Problem

Transformers, including LLMs and vision/graph transformers, are highly vulnerable to adversarial input perturbations (text attacks, prompt attacks, jailbreaks), and existing defenses need costly training or are architecture-specific.

Approach

Attention output is the optimal solution of a weighted least-squares token estimator; replacing the quadratic penalty with robust penalties (MCP, Huber, l1) and optimizing via a Newton-IRLS scheme yields a reweighted attention that down-weights or removes outlier tokens, usable as a drop-in layer at inference time.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
plug in ProAttention with MCP penaltyBERT · AGNEWS, TextFoolerAUA%: 19.7 -> 39.2Helped
add adversarial training to Pro-BERT (MCP)Pro-BERT (MCP) · AGNEWS, TextFoolerAUA%: 39.2 -> 56.8Helped
add ProAttention (MCP) to BERT + ATBERT + AT · AGNEWS, TextFoolerAUA%: 42.1 -> 56.8Helped
plug in ProAttention with MCP penaltyALBERT · AGNEWS, TextFoolerAUA%: 20.6 -> 48.9Helped
use MCP rather than the vanilla attention penalty (ablation)BERT · AGNEWS, TextFoolerAUA%Helped
use MCP rather than the vanilla attention penalty (ablation)BERT · AGNEWS, TextBuggerAUA%Helped
use MCP rather than the vanilla attention penalty (ablation)BERT · AGNEWS, DeepWordBugAUA%Helped
use MCP rather than the vanilla attention penalty (ablation)BERT · AGNEWS, PWWSAUA%Helped
use Huber or ℓ1 penalty instead of MCP (ablation)BERT · AGNEWS, adversarial text attacksAUA%Mixed
plug in ProAttentionViT · CIFAR-10, PGD 1/255accuracy: 34.61 -> 77.39Helped
plug in ProAttentionViT · CIFAR-10, PGD 4/255accuracy: 1.83 -> 48.11Helped
plug in ProAttentionViT · CIFAR-10, PGD 8/255accuracy: 0.26 -> 33.40Helped

Surprising findings

Limitations

Experimental setup

Datasets: AG's News IMDB SST-2 RTE Behaviors CIFAR-10 ImageNet-1K Cora-ML Citeseer

Benchmarks: AG's News IMDB SST-2 RTE Behaviors CIFAR-10 ImageNet-1K Cora-ML Citeseer

Metrics: Clean accuracy Accuracy under attack (AUA%) Attack success rate (ASR%)

Baselines: FreeLB PGD-Adv MixADA TA-VAT Adversarial training SmoothLLM GCN GAT GNNGuard RGCN GRAND ProGNN

Builds on: Newton-IRLS SmoothLLM GCG TextAttack PromptBench

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