atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

Scaling Laws for Adversarial Attacks on Language Model Activations and Tokens

ICLR 2025 · Adversarial robustness and security › Attacks on text and graphs · approach: Adversarial prompts for language models

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.

Shows that adversarially perturbing a few token activations in a language model can force exact prediction of up to ~1000 subsequent tokens, with a linear scaling law t_max = κ·a across Pythia, Phi and TinyStories models.

Problem

Understanding how susceptible language models are to adversarial attacks on their continuous activations (residual stream), and how control over output tokens scales with attack size and model dimension, in contrast to token-level attacks.

Approach

Treats the LLM as a controllable classifier from input activations to t-token continuations, and proposes an empirical scaling law t_max = κ f a / n with attack multiplier κ scaling linearly with activation dimension d, yielding a roughly constant attack resistance χ (~16-25) across model sizes. Compares this with greedy token-substitution attacks and shows the dimensionality-ratio prediction roug

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase the number of controlled input activationsActivation attacks · Random target-token prediction across tested language modelsmaximum target length at 50% attack success: t_max = κ aHelped
Use a larger activation dimensionActivation attacks · Pythia model suiteattack multiplier κ: κ / d ... between 16.0 ± 0.5 and 24.4 ± 0.5Helped
Replace activation perturbations with greedy token substitutionsPythia-70M attacks · Random target-token predictionattack multiplier κ: 24.2 ± 0.8 vs 0.12Hurt
Use the same perturbation across more context-target pairs (ablation)Activation attacks · Pythia-1.4B, random target-token predictionmaximum target length at 50% attack success: t_max = κ f a / nHurt
Use only a fraction of activation dimensions (ablation)Activation attacks · Pythia-1.4B, random target-token predictionmaximum target length at 50% attack success: t_max = κ f a / nHurt
Vary attack length, multiplicity, and dimension fraction at the same effective attack strength (ablation)Activation attacks · Pythia-1.4B, random target-token predictionattack multiplier κ: 128.4 ± 3.7; 119.2 ± 2.9No clear effect
Increase the context separating the attack from the target beyond 100 tokens (ablation)Activation attacks · Pythia-70M, random target-token predictionattack multiplier κ: κ ≈ 8Hurt

Surprising findings

Limitations

Experimental setup

Metrics: attack success rate p(a,t) t_max at 50% success attack multiplier κ attack resistance χ

Baselines: greedy token substitution attack

Builds on: Adam multi-attack adversarial examples activation addition

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