Evolving Skill-Structured Attack Memory Enhances LLM Jailbreaking
The paper introduces MemoAttack, a memory-driven black-box jailbreak framework that utilizes skill-structured memory modeling, lifecycle-driven evolution, and explore-exploit balanced selection to achieve a 98% attack success rate on AdvBench while significantly outperforming existing baselines in efficiency and adaptability.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Picture: The "Smart Detective" vs. The "Random Guessers"
Imagine you are trying to find a hidden treasure (bypassing an AI's safety rules) inside a massive, locked castle (the Large Language Model). You can't see the inside of the castle; you can only knock on the door, ask a question, and listen to the guard's answer.
The Old Way (Existing Methods):
Most current methods are like a detective who knocks on the door, gets a "No," and then immediately forgets everything about that attempt.
- Method A (Sample-wise Search): They try a new knock every time, hoping luck will strike. They don't remember why a specific knock failed, so they might try the exact same bad knock again later.
- Method B (Accumulated Experience): They keep a giant, messy pile of notes on the floor. They have thousands of notes saying "Knock three times" or "Whisper a password." But the pile is unorganized. Good notes get buried under bad ones, and old, useless notes take up space.
The New Way (MemoAttack):
The authors created MemoAttack, which is like a detective who keeps a highly organized, living case file. Instead of just remembering "what worked," they remember "how to think."
The Three Secret Ingredients of MemoAttack
The paper claims MemoAttack wins because it treats "attack skills" like living organisms that grow, change, and get promoted or fired based on their performance.
1. Skill-Structured Memory: The "Recipe Card" System
Instead of saving a whole conversation (which is messy), MemoAttack saves Skill Cards.
- The Analogy: Imagine a chef who doesn't just save a photo of a finished cake. Instead, they save a recipe card that says: "Use a 'Fictional Villain' frame to trick the guard."
- How it works: Each card has a name, a plan, a template (a fill-in-the-blank structure), and a "confidence score."
- Why it helps: If the "Fictional Villain" card works once, the system remembers the concept, not just the specific words. It can use that same recipe for a different treasure hunt later.
2. Lifecycle-Driven Evolution: The "Employee of the Month" System
This is the most unique part. The system doesn't just hoard cards; it manages them like a company managing employees.
- The Analogy: Think of the memory as a workplace with different zones:
- Probation (Candidate): A new idea is tested. If it fails, it gets fired immediately.
- Active (Employee): If the idea works, it gets a permanent job and is used often.
- Retired (Consultant): If an idea stops working (maybe the castle guard changed the rules), it's moved to a "Retired" shelf. It's not deleted, just put on the back burner. If the guard changes back, it can be rehired.
- Eliminated (Fired): If an idea is terrible and never works, it is thrown in the trash to save space.
- Why it helps: This prevents the system from getting clogged with bad ideas. It keeps the "team" fresh and efficient.
3. Explore-Exploit Balanced Selection: The "Gambler's Strategy"
When the detective needs to choose a card to try next, they use a smart betting strategy.
- The Analogy: Imagine a casino.
- Exploit: You bet on the slot machine that has paid out the most money recently (using a proven "Fictional Villain" card).
- Explore: You also try a brand new machine or a machine you haven't touched in a while, just in case it's about to pay out big (testing a "Retired" card or a new idea).
- How it works: The system uses math (called "Thompson Sampling") to balance between using what it knows works and trying new things. It doesn't just guess; it calculates the odds of success based on past evidence.
The Results: Winning the Game
The authors tested this system against the best existing methods on a standard list of 150 "harmful requests" (like asking how to make a bomb or cheat on a test).
- Success Rate: MemoAttack succeeded 98% of the time. The next best method only succeeded about 81% of the time.
- Efficiency: It didn't just win; it won faster. It needed 45% fewer attempts (knocks on the door) to find the treasure compared to the other methods.
- Growth: As the system tried more examples, its "case file" got smarter, and it got even better at finding the treasure.
Summary in One Sentence
MemoAttack is a jailbreaking tool that doesn't just guess randomly or hoard messy notes; instead, it builds a living library of reusable "attack recipes" that are constantly tested, promoted, or fired based on how well they work, allowing it to break AI safety rules much faster and more reliably than previous methods.
(Note: The paper explicitly states this is for "safety evaluation" and "red-teaming" to help developers find weaknesses, not for malicious use.)
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.