Reproduce “TF-Attack: Transferable and Fast Adversarial Attacks on Large Language Models” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Zelin Li, Kehai Chen, Lemao Liu, Xuefeng Bai, Mingming Yang, Yang Xiang, Min Zhang
TF-Attack introduces a framework for generating adversarial examples that are both highly transferable across different Large Language Models and significantly faster to produce. The method demonstrates superior attack success rates while achieving over 10x speedup and effectively reducing the accuracy of diverse black-box models, including ChatGPT, by more than 10 percentage points.
Key insights
- Decoupling importance scoring from the victim model by using an external LLM for semantic assessment yields more universally transferable adversarial examples.
- Parallelizing word substitution based on pre-defined "Importance Levels" overcomes the sequential processing bottleneck, drastically speeding up attack generation for large language models.
- Employing diverse and dynamically adjusted perturbations across character, word, and sentence levels enhances the robustness and transferability of adversarial samples.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.