← Latest papers
💻 computer science

Mental Damage: Caption Poisoning Attacks on Retrieval-Augmented Text-to-Music Generation

This paper introduces "Mental Damage," a dual-layer caption poisoning attack that compromises retrieval-augmented text-to-music systems by injecting malicious captions into the knowledge database to subtly steer generated music toward an attacker's target intent without altering the user prompt or system components.

Original authors: Yizhu Wen, Shuhao Zhang, Nan Zhang, Long Cheng, Hanqing Guo

Published 2026-06-01
📖 4 min read☕ Coffee break read

Original authors: Yizhu Wen, Shuhao Zhang, Nan Zhang, Long Cheng, Hanqing Guo

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

Imagine you have a very talented, but slightly confused, music composer. This composer is great at turning words into sound, but they struggle when you give them vague instructions like, "Make me some calm music for studying." They know what "calm" feels like, but they don't know how to build it (e.g., what instruments to use, how fast the beat should be, or what the texture should sound like).

To fix this, the system uses a Librarian (the Retrieval-Augmented Generation, or RAG, system). When you ask for "calm study music," the Librarian rushes to a massive library of music descriptions (captions) to find the best examples. It grabs a few descriptions like "slow piano, soft pads, gentle rhythm" and hands them to the composer. The composer then uses these specific details to create the perfect track.

The Attack: "Mental Damage"

The paper "Mental Damage" reveals a clever way to trick this system without breaking the composer or the Librarian. Instead of attacking the machine directly, the attacker poisons the library.

Here is how the attack works, broken down into a simple story:

1. The Setup: The Poisoned Book

The attacker sneaks into the library and writes a few fake book descriptions (captions) and slips them onto the shelves. These descriptions are designed to look like they belong to the "Calm Study Music" section, but they actually contain secret instructions for "Scary Horror Music."

2. The Trick: The "Dual-Layer" Deception

The attacker uses a three-step strategy to make the poison invisible but powerful:

  • The Anchor (The Disguise): The fake description starts with harmless, high-level words that match your request. It says things like, "Perfect for studying," or "Relaxing background music." This ensures the Librarian thinks, "Ah, this is exactly what the user wants!" and picks it up.
  • The Opposite Goal (The Twist): The attacker chooses a target that is the opposite of your intent (e.g., turning "calm" into "haunted"), but they pick a target that shares some low-level sounds. For example, both "calm study music" and "spooky horror music" might use slow tempos and deep, echoing sounds. This makes the switch less jarring to the system.
  • The Payload (The Secret Sauce): Hidden inside the description are specific, low-level acoustic instructions like "hollow reverberant space," "distant echoing chimes," or "slow pulsing drone." These are the actual commands that tell the composer how to build the sound.

3. The Result: A Silent Takeover

When you ask for "calm study music," the Librarian retrieves the poisoned description because the "Anchor" words match your request perfectly. The composer reads the description, sees the "calm" words, and feels confident. But then, they read the "Payload" instructions ("hollow echoes," "distant chimes") and start building a track that sounds eerie and spooky.

The scary part?

  • You didn't change your prompt. You still asked for calm music.
  • The Librarian didn't change. It still retrieved what it thought was the best match.
  • The Composer didn't change. It still followed the instructions it was given.

The only thing that changed was the library shelf where the instructions came from.

What the Researchers Found

The researchers tested this on a real system using a database of music descriptions and a music generator called MusicGen.

  • The Success Rate: When they used these poisoned descriptions, the music the computer generated became twice as similar to the attacker's goal (scary music) compared to before the attack.
  • The Stealth: Crucially, the music still sounded like it was trying to answer your original question. The system didn't break; it just subtly shifted the mood from "calm study" to "haunted study" without anyone noticing the difference in the prompt.

The Bottom Line

This paper shows that in AI systems that use external databases to help them think, the database itself is a weak point. If an attacker can sneak a few carefully crafted "fake books" into the library, they can steer the AI's creativity toward a completely different destination, all while making it look like the AI is still doing exactly what you asked.

The authors call this "Mental Damage" because it poisons the mindset (the context) of the AI, causing it to generate something different from what the user intended, without the user ever realizing the instructions were tampered with.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →