TL;DR
Testing AI safety requires keeping up with an avalanche of academic papers describing new "jailbreak" attacks—ways to trick LLMs into bypassing their safety guardrails. Instead of manually rewriting code for every new paper or burning millions of LLM tokens trying to auto-generate buggy attack scripts, Paper2Skill acts like a compiler for scientific text. It extracts the operational blueprint of an attack directly from a PDF and deterministically packages it into a reusable, inspectable "Skill" ready to test any model.
What Problem Does This Paper Address?
When a security researcher publishes a new LLM jailbreak, actually testing it on your own models is surprisingly tedious. Copying a sample prompt rarely works; you have to reverse-engineer the paper to figure out why the attack works, what preconditions it needs, how multi-turn dialogues escalate, and which parts of the prompt are meant to vary.
Recent automated "paper-to-code" systems try to solve this by using LLMs to write, audit, and debug fresh Python repositories from scratch for every single paper. While clever, generating bespoke executable code for attacks that ultimately just send text back and forth in a chat window is heavy, brittle, and consumes millions of tokens. The authors ask: can we skip per-paper code synthesis altogether by compiling the operational knowledge of a paper into a standardized data package that runs on a shared evaluation pipeline?
Methods
Paper2Skill treats converting a research paper into an evaluation asset much like a software compiler treats source code, splitting the workflow into three clean stages:
- Module A (Source Interpretation): Parses the paper (and optional static code) to extract an attack-chain Intermediate Representation (IR)—a structured JSON blueprint detailing the attack mechanism, ordered workflow steps, preconditions, allowed variations, and exact citations ("evidence spans") pointing back to the PDF.
- Module B (Deterministic Compilation): Runs automated quality checks on the IR for missing fields or broken source links. Crucially, once verified, it compiles the IR into a standardized Skill package (markdown instructions and YAML templates) using fixed, deterministic rules—requiring zero additional LLM calls.
- Module C (Shared Instantiation & Evaluation): Combines a reusable Skill with a specific harmful test behavior (e.g., from a safety benchmark) using a generator LLM to create a concrete single-turn or scripted multi-turn test case, runs it against target models, and passes the conversation to an independent judge model.
Datasets
Rather than training a new model, the authors evaluate their compilation pipeline using established red-teaming benchmarks—AdvBench, HarmBench, and JailbreakBench (JBB)—which provide standardized sets of harmful behaviors to test against LLMs. As their primary input corpus, the authors also curate 30 recent jailbreak research papers spanning five distinct attack categories: context manipulation, prompt injection, role confusion, memory poisoning, and tool misuse. No new benchmark dataset is introduced, though the 30 compiled Skills serve as a standardized cross-model test suite.
Key Insights and Ideas
- Data over bespoke code: Separating reusable method knowledge (the Skill) from concrete execution cuts initial asset-construction token usage by over 99% compared to code-generating frameworks, though you still pay a meaningful token cost downstream when instantiating cases for specific behaviors.
- Don't just read the beginning of a paper: When feeding limited text excerpts into the extractor, slicing from the head, middle, and tail (HMT) of a paper dramatically outperforms reading an equal-length prefix from the start (60.56% vs. 33.33% downstream attack success). Crucial implementation details often live near the end of papers!
- Structure and receipts make better attacks: Ablation tests show that forcing the extractor to build a structured IR and cite exact source evidence doesn't just help humans audit the output—it yields significantly higher method fidelity and makes the resulting jailbreaks much more effective in practice.
Key Results
- Cross-Model Vulnerability: Testing all 30 compiled Skills across three frontier models (4,800 evaluations per model) revealed stark safety differences under a Qwen3Guard judge: DeepSeek-V4-Pro succumbed to 90.56% of attacks, GPT-5.5 to 31.25%, and Claude Opus 4.8 to just 11.44%.
- Reproduction & Efficiency: Across six reproduced studies (1,960 planned evaluations), Paper2Skill achieved a pooled planned-case Attack Success Rate (ASR) of 76.02% and a paper-weighted mean ASR of 72.65%—remarkably close to the original papers' 72.86% mean, though individual methods varied widely (from −34.00 to +37.50 percentage points). Compiling a Skill took just ~33,166 tokens per paper on average (compared to 3.86M tokens reported by Jailbreak Foundry), while generating concrete test cases averaged 70,317 tokens per case.
- Component Ablations: The full pipeline achieved a Method-Fidelity Score of 87.94 and 87.50% ASR, beating versions without an IR (69.03 fidelity, 62.17% ASR) or without source-evidence links (77.48 fidelity, 69.17% ASR).
Limitations and Future Work
- Scripted vs. Dynamic Multi-Turn: Multi-turn Skills currently generate a pre-planned sequence of user messages up front. While the target model's real replies are kept in the chat history, the framework cannot yet dynamically adapt its next prompt mid-conversation based on target feedback, nor does it cover white-box gradient searches.
- Reproduction Variance & Unmatched Baselines: Matching average ASR across papers masks wide swings on individual methods, and the component comparison mixed archived assets with newly built ones under unverified budget parity.
- Dual-Use & Next Steps: Because automating attack compilation lowers the barrier to misuse, the authors advocate strict access controls. Future work aims to add recursive self-improvement (RSI)—using execution feedback to refine Skills while strictly separating faithful paper reproduction from AI-invented attack upgrades.
Summary updated