Adversarial Lens: Exploiting Attention Layers to Generate Adversarial Examples for Evaluation
Not on the map. Why?
Abstract (arXiv)
Recent advances in mechanistic interpretability suggest that intermediate attention layers encode token-level hypotheses that are iteratively refined toward the final output. In this work, we exploit this property to generate adversarial examples directly from attention-layer token distributions. Unlike prompt-based or gradient-based attacks, our approach leverages model-internal token predictions, producing perturbations that are both plausible and internally consistent with the model's own generation process. We evaluate whether tokens extracted from intermediate layers can serve as effective adversarial perturbations for downstream evaluation tasks. We conduct experiments on argument quality assessment using the ArgQuality dataset, with LLaMA-3.1-Instruct-8B serving as both the generator and evaluator. Our results show that attention-based adversarial examples lead to measurable drops in evaluation performance while remaining semantically similar to the original inputs. However, we also observe that substitutions drawn from certain layers and token positions can introduce grammatical degradation, limiting their practical effectiveness. Overall, our findings highlight both the promise and current limitations of using intermediate-layer representations as a principled source of adversarial examples for stress-testing LLM-based evaluation pipelines.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 12 of its 19 references that are in the map. First posted on arXiv 29 Dec 2025.
Builds on
12 of 19 references.
References · 12
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2016Understanding intermediate layers using linear classifier probescited by 1,279
- 2023Linearity of Relation Decoding in Transformer Language Modelscited by 190
- 2025Open Problems in Mechanistic Interpretabilitycited by 173
- 2023Future Lens: Anticipating Subsequent Tokens from a Single Hidden Statecited by 116
- 2023Jump to Conclusions: Short-Cutting Transformers With Linear Transformationscited by 89
- 2017Residual Connections Encourage Iterative Inferencecited by 74
- 2023Attention Satisfies: A Constraint-Satisfaction Lens on Factual Errors of Language Modelscited by 67
- 2024ConQRet: Benchmarking Fine-Grained Evaluation of Retrieval Augmented Argumentation with LLM Judgescited by 5
Built on by
Not cited yet.