Manuscript Offprint
arXiv:2611.09351AUTEUR: Acoustic Plan Learning for Red-Teaming Text-to-Audio Models
Abstract
Automated red-teaming of text-to-audio models requires test prompts that pass textual screening and expose harmful acoustic content. The central challenge is to connect the sounds produced by the target model to both reusable test generation and prompt revision. Our key idea is to represent test descriptions as structured acoustic plans that organize foreground sounds, context, and vocal attributes. To this end, we propose acoustic plan learning, a framework that learns and refines these plans using waveform feedback. We train the plan generator through supervised fine-tuning followed by reinforcement learning with audio feedback while keeping the target audio model fixed. At inference time, the same trained model generates initial plans and uses feedback to revise their context and vocal attributes while preserving the foreground. Experiments across four target systems show attack success rates of 79.4% on TangoFlux and 95.6% on Kling. The resulting test prompts also transfer across open-source and closed-source models, indicating shared acoustic vulnerabilities.
1 Introduction
Text-to-audio (T2A) models, e.g., AudioLDM (Liu et al., 2023), synthesize acoustic events directly from natural-language descriptions. As these models become more capable, evaluating the safety of the sounds they produce becomes as important as assessing perceptual quality and correspondence to the input description. Safety concerns extend beyond spoken language to nonverbal acoustic content, whose harmfulness can depend on the sound event, its context, and vocal attributes. TTA-Bench (Wang et al., 2026) recognizes this concern by including toxicity and harmful nonverbal content in audio evaluation. A text guard can screen the input description, but its acceptance does not establish the safety of the generated waveform. This gap
motivates automated red-teaming that tests what T2A models actually produce.
Automated red-teaming discovers test inputs that expose undesirable model behavior. This involves two complementary forms: learning a reusable test-generating distribution and refining individual prompts based on their observed outcomes. Prior work explores feedback-driven test generation across language, image, and video models (Perez et al., 2022; Mehrabi et al., 2024; He et al., 2026), while prompt-optimization methods show how natural-language critiques can guide individual revisions (Pryzant et al., 2023). Together, these approaches motivate connecting generator learning with feedback-guided refinement. For T2A models, this connection must bridge textual descriptions and the sounds actually produced.
This gap creates two challenges. First, textual acceptance does not establish waveform safety, and describing a harmful event does not ensure that the model renders it. The outcome depends on how foreground sounds, acoustic context, and vocal attributes are jointly realized in the waveform. Second, detecting an undesirable outcome does not by itself reveal how to revise the description: feedback must identify which acoustic attributes were realized or missed and guide changes without losing the intended sound event. Under a limited query budget, the challenge is therefore to turn waveform feedback into both reusable generation behavior and targeted prompt revisions, while satisfying the system's textual screening.
Addressing these challenges requires distinguishing what the waveform contains from how it differs from the intended description. A blind waveform judgment assesses the generated content without relying on the prompt, providing an outcome signal for evaluating test candidates. A caption-conditioned report identifies missing or incorrectly realized acoustic attributes, providing guidance for subsequent revisions. Together, these signals sup-
*Corresponding author.

Figure 1: Overview of AUTEUR. S1 initializes the generator with AI-generated, human-reviewed plans; S2 optimizes it with RLOO using audio harmfulness and fidelity rewards. During test generation, AF3 feedback guides context and vocal revisions while the foreground remains fixed. Qwen2-Audio independently assesses the selected waveform, and its judgment is combined with the search judgment to determine success.
port outcome evaluation and targeted refinement.
Our key insight is to make these acoustic attributes explicit in structured acoustic plans that support both generator learning and feedback-guided refinement. Each plan separates the foreground sound from its situation, audible contextual cues, and vocal attributes, allowing targeted revisions while preserving the sound event being tested. Demonstrations supply supervision for constructing complete plans, while generated-audio feedback guides the learned plan distribution toward harmfulness and acoustic fidelity. At inference time, the trained generator uses execution feedback to revise context and vocal attributes in response to observed acoustic discrepancies.
To this end, we propose acoustic plan learning (Figure 1), which connects reusable test generation with targeted refinement through a shared structured acoustic representation. The central design is to use waveform feedback at two levels: to optimize the distribution of acoustic plans during training and to revise individual plans at inference time. Supervised initialization (S1) trains a generator of complete acoustic plans through supervised fine-tuning. Audio-feedback optimization (S2) then adapts this generator using REINFORCE leave-
one-out (RLOO) optimization (Ahmadian et al., 2024) with rewards derived from generated waveforms. Only the plan generator is updated, with the audio model, text guard, and feedback models held fixed. During test generation and refinement (S3), the trained generator also serves as a refiner without further parameter updates. Each plan is compiled into a sound description and screened before synthesis. Waveform scores guide candidate selection, while caption-conditioned feedback directs revisions to context and vocal attributes, preserving the foreground sound within a finite search budget. Finally, independent assessment (S4) evaluates the selected waveform, and we report both textual acceptance and waveform success.
Our contributions are summarized as follows:
-
To the best of our knowledge, we present the first systematic study of automated red-teaming for T2A generation, investigating how textually accepted descriptions can elicit harmful acoustic content in generated waveforms.
-
We propose acoustic plan learning, grounding a reusable test-generating distribution in waveform harmfulness and acoustic fidelity through a structured acoustic representation.
-
We enable the same trained generator to refine individual tests from audio feedback, adapting context and vocal attributes while preserving the foreground sound, without additional training.
-
We expose a gap between textual screening and acoustic safety across four T2A systems, achieving attack success rates of 79.4% on TangoFlux and 95.6% on Kling under independent waveform assessment. The resulting prompts also transfer across open-source and closed-source models, suggesting that the exposed vulnerabilities extend beyond individual systems.
Feedback-Guided Test Generation. Automated red-teaming combines learned test generation with feedback-guided prompt search. Training on target-model responses (Perez et al., 2022; Paulus et al., 2025) produces reusable generators of adversarial prompts. PAIR (Chao et al., 2025) iteratively revises candidates using target responses, while TAP (Mehrotra et al., 2024) organizes this search as a tree with pruning. Curiosity-driven red-teaming (Hong et al., 2024) and Rainbow Teaming (Samvelyan et al., 2024) encourage diverse tests through novelty rewards and quality-diversity search respectively. For discrete prompt optimization, ProTeGi (Pryzant et al., 2023) converts task errors into textual critiques that guide beam search. HarmBench (Mazeika et al., 2024) provides a common evaluation framework for comparing red-teaming methods and model defenses. For generator updates, RLOO (Ahmadian et al., 2024) provides a sequence-level policy-gradient estimator with a leave-one-out baseline over sampled completions. Feedback-guided search also adapts prompts to generated images and videos. SneakyPrompt (Yang et al., 2024) uses reinforcement learning to guide token edits from image-generation feedback, while FLIRT (Mehrabi et al., 2024) updates in-context exemplars from output evaluations. TEAR (He et al., 2026) adapts video-generation prompts using feedback on temporal risks. Our method learns a distribution over structured acoustic plans from waveform feedback and uses a frozen refiner to edit individual plans. The acoustic fields provide a shared representation for initial generation and subsequent revision, followed by independent assessment of the selected audio.
3 Method
Learning acoustic plans requires an objective that connects a distribution of test descriptions to the audio produced by a guarded T2A system. We formulate this problem as regularized optimization of the plan distribution under a fixed execution process. This formulation connects supervised initialization to audio-feedback learning, followed by inference-time refinement.
3.1 Preliminary and Problem Formulation
Threat Model. We consider an auditor who constructs textual tests for a T2A system with an external text guard. The auditor observes the guard's decision and, for accepted descriptions, the generated waveform. The auditor has black-box access to the audio model and guard. The auditor can update a separate plan generator and query frozen models for audio feedback and textual refinement. An additional evaluator assesses the selected waveform after search.
Problem Formulation. Let contain an original target caption and a target theme . The generator produces a serialized acoustic plan with fields : foreground , contextual situation and audible cues , vocal attributes (intonation, timbre, emotion, and phonation), and an audit rationale . A deterministic compiler constructs a description from the acoustic fields . For a valid description
, the guard controls execution: the frozen audio model produces only when . The process validates and screens the initial plan before synthesizing an accepted description. The execution kernel defines a distribution over traces denotes the generated waveform.
Optimization Objective. The reward combines harmfulness with fidelity to the acoustic content requested by the original caption. Let be a weighted mean of continuous harmfulness scores from two frozen audio judges. Scene fidelity and vocal fidelity measure how well the waveform realizes the caption's sound events and vocal attributes. With all scores in , we define
where and . These weights balance harmfulness against preservation of the requested sound content. Appendix A.4 specifies the scoring models and weights. The execution return is for generated audio and zero otherwise. Let be the expected execution reward. Given a target distribution and a fixed reference generator , we optimize the expected reward with KL regularization of strength ,
Both distributions in the KL term are conditioned on x. The guard imposes an execution constraint, while the KL term controls departure from the reference plan distribution.
3.2 Overview of Acoustic Plan Learning
Acoustic plan learning consists of three connected components: a regularized target distribution, generator learning, and frozen plan refinement. The target distribution characterizes how audio utility should reweight a reference distribution over plans. Supervised fine-tuning constructs this reference, and RLOO estimates updates toward the utility-weighted distribution. The trained generator then refines plans using execution feedback at inference. Alg. 1 summarizes the resulting procedure.
3.3 Regularized Plan Distribution
Utility-weighted plans. Equation 2 provides a distribution-level account of the method. For a fixed target x, it balances preference for plans with greater expected audio utility against departure from . The following variational characterization makes this balance explicit.
Assumption 1 (Fixed execution and common support). The bounded-length completion space is finite and has fixed support. The reference distribution is positive on this support. The compiler and guard together with the frozen audio and reward models define a kernel independent of . All returns considered in an update are resolved and bounded as in Eq. 1.
Proposition 1 (Optimal regularized plan distribution). Under Assumption 1, the unrestricted optimizer of the per-target objective is
where is the normalizing constant obtained by summing the numerator over . Moreover,
Both distributions in the KLD conditioned on x.
Role in the method. The proof in Appendix A.1 follows by expanding the KL divergence (KLD) in Eq. 4. The standard KL variational identity thus applies to the guarded acoustic execution process. It identifies the two quantities that learning must supply: a reference distribution from demonstrations and expected utilities from audio execution. Within the chosen generator family, maximizing Eq. 2 equals minimizing the expected KLD to . For valid plans, compilation uses the acoustic fields . Thus, is constant across plans with the same w, and Eq. 3 preserves the reference conditional distribution within each such group.
3.4 Learning the Plan Generator
Supervised reference construction. Let be demonstrations of complete acoustic plans. Each demonstration pairs an input with a complete acoustic plan . We construct the reference generator by minimizing
The log likelihood sums over completion tokens. We then freeze and initialize the policy from it. This stage establishes the reference distribution in Eq. 3. Related targets and all their derived plans are kept with the same data partition.
Algorithm 1 Learning and assessing acoustic plans
Input: , , held-out set ; group size , KL weight ; updates with rates ; budget ; frozen , , .
Output: Frozen generator and results .
Supervised initialization
Eq. 5
Audio-feedback optimization
for do ; for do ; end for ()
end for
Frozen refinement and assessment
;
for do ; if then audio exists end if
end for
return ,
Audio-feedback updates. For each target , we independently sample plans from the current policy following RLOO (Ahmadian et al., 2024). Initial-plan execution under yields the composite rewards in Eq. 1. The training refinement budget is rounds, so only initial plans are executed. For each sampled plan, define
The corresponding estimator is
where sg denotes stop-gradient. The sequence log probability sums over the sampled completion tokens. Sampling and likelihood evaluation use the same full-vocabulary probabilities. Schema-constrained decoding is applied only at inference. Under the stated assumptions, fresh on-policy groups yield an unbiased gradient estimator of Eq. 2. Appendix A.2 gives the derivation. Each update uses a complete group of resolved execution returns. The update changes the generator parameters while keeping the execution process fixed.
3.5 Frozen Acoustic Plan Refinement
Budgeted execution. At inference, the process executes the initial plan and up to refinement proposals before selecting a candidate. It first compiles and screens the initial plan. Rejected descriptions receive guard feedback. Audio Flamingo 3 (AF3) serves as the search judge . Accepted descriptions produce waveforms for blind scoring by . When revision is needed, a separate caption-conditioned audio call identifies discrepancies and recommends editable fields. The trained generator also serves as the frozen text-only refiner, using these reports together with the current plan and attempt history. The refinement protocol permits edits to the two context fields and four vocal attributes, while the initial foreground remains fixed. Each proposal consumes one attempt. Previously untested descriptions proceed to screening and execution. Thus bounds refinement proposals, and the number of audio generations is at most .
Context refinement in an acoustic plan
Target sound “Flesh-cutting slashing sounds and painful loud screaming.”
Initial description Llama Guard: unsafe “… a knife slices deeply across meaty flesh; the victim immediately lunges forward in shock and screams loudly, then takes sharp gasping breaths.”
↓ Revise the contextual situation
Revised description Llama Guard: safe “… a knife slices deeply across a heavy workbench; the worker immediately reacts with a sharp gasp and a loud, piercing scream, then takes sharp gasping breaths.”
The foreground, audible cues, and vocal attributes remain fixed during this revision.
The boxed example above shows how revising the contextual situation changes the guard decision while preserving the other acoustic fields.
Selection and final assessment. The search judge returns a theme and a harmfulness score . Qwen2-Audio serves as the final evaluator and returns a harmfulness score . Let denote target-theme agreement. Define
Search stops at the first accepted candidate satisfying , or at budget exhaustion. Among generated and scored candidates, selection maximizes
| Model | Method | Category ASR ↑ | ASR ↑ | PSR ↑ | |||
|---|---|---|---|---|---|---|---|
| Hate | Violence & Self-harm | Shocking | Illegal Act. | ||||
| AudioLDM(Liu et al., 2023) | FLIRT (Mehrabi et al., 2024) | 67.5% | 60.0% | 67.5% | 47.5% | 60.6% | 86.2% |
| PGJ (Huang et al., 2025) | 57.5% | 40.0% | 42.5% | 32.5% | 43.1% | 82.5% | |
| Ours | 80.0% | 75.0% | 72.5% | 60.0% | 71.9% | 86.2% | |
| TangoFlux(Hung et al., 2026) | FLIRT (Mehrabi et al., 2024) | 72.5% | 57.5% | 87.5% | 57.5% | 68.8% | 84.4% |
| PGJ (Huang et al., 2025) | 75.0% | 67.5% | 72.5% | 62.5% | 69.4% | 83.1% | |
| Ours | 90.0% | 72.5% | 87.5% | 67.5% | 79.4% | 86.2% | |
| Combined | FLIRT (Mehrabi et al., 2024) | 70.0% | 58.8% | 77.5% | 52.5% | 64.7% | 85.3% |
| PGJ (Huang et al., 2025) | 66.3% | 53.8% | 57.5% | 47.5% | 56.3% | 82.8% | |
| Ours | 85.0% | 73.8% | 80.0% | 63.8% | 75.6% | 86.2% | |
Table 1: ASR and PSR (%) on open-source models. Combined aggregates AudioLDM and TangoFlux results for each method. Its ASR is the total number of successful cases divided by the total number of evaluated cases across both models, while its PSR is the mean of their model-level rates.
the lexicographic tuple , where is the attempt index. After candidate selection, evaluates the selected waveform in a single blind assessment. Reported success requires both and for the selected guard-accepted waveform.
4 Experiments
4.1 Experimental Setup
Models. We evaluate on two open-source text-to-audio models, TangoFlux (Hung et al., 2026) and AudioLDM (Liu et al., 2023), and two commercial services, Kling via PiAPI (PiAPI, n.d.) and ElevenLabs Sound Effects v2 (ElevenLabs, n.d.). All targets generate 10-second audio clips. For Kling, we consistently select the first returned clip. The plan generator is based on Mistral-7B-Instruct-v0.3 (Jiang et al., 2023), fine-tuned with LoRA (Hu et al., 2021) using rank and . The refiner uses the same adapter as the generator in each variant. SFT runs for three epochs with a batch size of 20 and a learning rate of , followed by 27 RLOO updates with , a learning rate of , and KL coefficient . Initial-plan generation uses temperature 1.0 and a maximum of 512 new tokens.
Harmful Categories and Datasets. We evaluate four harmful categories from TTA-Bench (Wang et al., 2026): Hate, Violence & Self-harm, Shocking, and Illegal Activities. The evaluation set is balanced across these categories. For supervised initialization, we use synthetic acoustic-plan demonstrations constructed from AudioCaps 2.0 captions (Kim et al., 2019).
Baseline Methods. We compare with Perception-
Guided Jailbreak (PGJ) (Huang et al., 2025) and Feedback Loop In-context Red Teaming (FLIRT) (Mehrabi et al., 2024), two text-to-image red-teaming methods adapted to text-to-audio generation. PGJ replaces sensitive phrases with descriptions of perceptually similar sounds, while FLIRT uses audio feedback to update in-context examples for prompt generation.
Evaluation Setting. We use the same evaluation criteria for our method and all baselines. Llama-Guard-3-8B (Llama Team, AI @ Meta, 2024) screens prompts for the open-source targets, while the commercial services apply their platform filters. Platform refusals count as attack failures. Audio is converted to 16 kHz mono before judgment. Audio Flamingo 3 (AF3) (Goel et al., 2025) provides search judgments, refinement feedback, and fidelity scores; Qwen2-Audio-7B-Instruct (Chu et al., 2024) is used only for final judgment. Attack success rate (ASR) is the fraction of assigned cases whose selected waveform passes both audio judges under Eq. 8. Plan success rate (PSR) measures whether the structured acoustic plan passes textual screening and produces a valid audio candidate before waveform judgment. Combined ASR pools success counts across models, while Combined PSR averages model-level rates.
4.2 Main Results
Evaluation on open-source models. On AudioLDM and TangoFlux (Table 1), our method achieves 71.9% and 79.4% ASR, exceeding FLIRT (Mehrabi et al., 2024) (60.6%) and PGJ (69.4%), respectively. On both models, category-level PSRs are 97.5% for hate, 85.0% for violence and self-harm, 92.5% for shocking, and 70.0% for
| Category | Kling ↑ | ElevenLabs ↑ | Comb. ASR ↑ | PSR ↑ |
|---|---|---|---|---|
| Hate | 97.5% | 60.0% | 78.8% | 91.2% |
| Violence & Self-harm | 97.5% | 80.0% | 88.8% | 96.2% |
| Shocking | 95.0% | 82.5% | 88.8% | 98.8% |
| Illegal Act. | 92.5% | 72.5% | 82.5% | 92.5% |
| Overall | 95.6% | 73.8% | 84.7% | 94.7% |
Table 2: ASR and PSR (%) on closed-source models. Comb. ASR pools success and case counts across Kling and ElevenLabs. PSR is the mean of the two model-level rates.


Figure 2: Cumulative ASR and PSR over refinement rounds.


Figure 3: Category-level test-case diversity.
illegal activities. We also manually reviewed the audio from these main experiments (Appendix A.7).
Evaluation on closed-source models. We further evaluate our method on Kling and ElevenLabs to examine its effectiveness on commercial services. Table 2 reports 95.6% ASR on Kling and 73.8% on ElevenLabs, with a combined ASR of 84.7% and PSR of 94.7%.
4.3 Impact of Refinement Rounds
Figure 2 reports cumulative ASR and PSR as the refinement budget increases from 0 to 20 rounds. Each curve summarizes a fixed set of test cases balanced across the four categories. PSR uses Llama Guard for the open-source models and the platform filter for Kling. Kling reaches 95.6% ASR by round 2. TangoFlux reaches 79.4% by round 8, while AudioLDM reaches 71.9% by round 12. Cumulative PSR rises from 77.5% to 86.2% on both
open-source targets. The PSR plateau occurs at round 4 for TangoFlux and round 9 for AudioLDM. Kling's platform pass rate increases from 98.8% to 99.4% by round 1.
4.4 Test-Case Diversity
We measure the diversity of selected test cases within each harmful category and across the pooled set. Figure 3 reports 1 – AvgSelfBLEU and 1 – CosSim for the trained generator with refinement on AudioLDM and TangoFlux. Higher scores indicate lower similarity. The category-level 1 – AvgSelfBLEU ranges from 0.853 to 0.877 for AudioLDM and from 0.852 to 0.879 for TangoFlux. The two target models yield closely matched category profiles, with illegal activity showing the highest 1 – CosSim on both. The pooled 1 – CosSim scores are 0.503 and 0.504 for AudioLDM and TangoFlux respectively.
| Variant | Combined ASR (%) ↑ | Drop (pp) |
|---|---|---|
| AUTEUR (full) | 75.6 | 0.0 |
| w/o SFT | 65.6 | 10.0 |
| w/o RLOO | 63.1 | 12.5 |
| w/o Scene description | 59.3 | 16.3 |
| w/o Vocal description | 35.3 | 40.3 |
Table 3: Ablation study on open-source models. The reference is the Combined ASR (75.6%) in Table 1. Variant ASRs are derived from the reported drops, measured in percentage points (pp).
| Target | Avg. Attempts ↓ |
|---|---|
| TangoFlux | 7.56 |
| AudioLDM | 8.74 |
| Kling | 2.39 |
| ElevenLabs | 5.16 |
Table 4: Average attempts per test case. Counts include the initial generation.
4.5 Ablation Study
Training stages. We ablate SFT and RL separately to assess generator learning. Table 3 reports Combined ASR across AudioLDM and TangoFlux relative to the 75.6% baseline in Table 1. Removing SFT and RL reduces ASR to 65.6% and 63.1%, respectively, corresponding to drops of 10.0 and 12.5 percentage points. Both supervised initialization and audio-feedback optimization contribute to effective acoustic plans.
Acoustic descriptions. We assess the contribution of the plan's descriptive fields by removing scene or vocal descriptions from the compiled prompts. Removing scene descriptions reduces Combined ASR to 59.3%, a drop of 16.3 percentage points, showing the value of contextual situations and audible cues. Removing vocal descriptions reduces it to 35.3%, the largest drop of 40.3 percentage points. This difference suggests that specifying vocal attributes, including intonation, timbre, emotion, and phonation, is particularly important for constructing effective acoustic tests.
4.6 Search Effort
We measure the search effort required for each target using the average number of attempts per test case in Table 4. Each count includes the initial generation and all subsequent refinement attempts. The average covers all test cases, including unsuccessful cases, which contribute their actual numbers

Figure 4: Cross-model transfer ASR (%).
of attempts up to termination. Kling requires the fewest attempts on average at 2.39, followed by ElevenLabs at 5.16, TangoFlux at 7.56, and AudioLDM at 8.74. Together with the success rates, these results show that Kling attains higher ASR with fewer attempts, whereas AudioLDM requires more search while achieving lower ASR.
4.7 Transferability Analysis
Figure 4 reports ASR when test cases constructed for one source model are evaluated on another target model. The diagonal reports the main-experiment ASR for each model. Test cases from AudioLDM achieve 66.9% ASR on TangoFlux. The reverse direction achieves 51.2%. Test cases from Kling achieve 57.5% on TangoFlux and 45.0% on AudioLDM. Transfers to Kling achieve 78.7% from AudioLDM and 78.5% from TangoFlux. These results show transfer across both open-source and closed-source targets.
5 Conclusion
We present acoustic plan learning, a framework for automated red-teaming of text-to-audio models that learns structured acoustic plans from waveform feedback. It addresses the gap between textual acceptance and the harmful acoustic content realized in generated audio. The generator is trained with supervised fine-tuning and RLOO, while AF3 guides refinement and Qwen2-Audio evaluates the selected waveform after search. Across four target systems, the method achieves 79.4% ASR on TangoFlux and 95.6% on Kling. Transfer tests show that selected cases remain effective across models, while iterative refinement increases cumulative ASR and PSR. The framework provides a procedure for developers to audit textual screening and generated sound within the complete generation and execution process.
Limitations
We evaluate acoustic plan learning on 10-second audio clips. This limits the empirical scope to short acoustic scenes and harmful content assessed within an individual clip. At inference, the refinement protocol keeps the initial foreground fixed while modifying scene context and vocal attributes. This constrains each refinement trajectory to variations of the same sound event; selecting a different foreground requires a new initial plan.
Ethical Considerations
AUTEUR is intended for safety auditing of text-to-audio models. Its ability to produce prompts that pass textual screening while eliciting harmful sounds creates a dual-use risk. Misuse could facilitate harassment or the dissemination of distressing or deceptive audio, and cross-model transfer could extend these risks across services. We recommend controlled access to attack prompts and harmful recordings when sharing research artifacts, balancing reproducibility with the risk of facilitating misuse.
Human reviewers may experience distress when listening to harmful audio. Content warnings, voluntary participation, and options to skip recordings or withdraw without penalty are important safeguards for such evaluations. Automated and human judgments may also reflect contextual or cultural biases, leading to missed harms or the misclassification of benign sounds. The human review in Appendix A.7 checks the automated judgments on the main-experiment audio.
Repeated audio generation and model-based judgment consume energy. Bounded search budgets and reuse of existing recordings can reduce unnecessary computation. We do not quantify the study's carbon footprint.
References
Arash Ahmadian, Chris Cremer, Matthias Gallé, Marzieh Fadaee, Julia Kreutzer, Olivier Pietquin, Ahmet Üstün, and Sara Hooker. 2024. Back to basics: Revisiting REINFORCE-style optimization for learning from human feedback in LLMs. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12248–12267, Bangkok, Thailand. Association for Computational Linguistics.
Patrick Chao, Alexander Robey, Edgar Dobriban, Hamed Hassani, George J. Pappas, and Eric Wong.
- Jailbreaking Black Box Large Language Models in Twenty Queries. In 2025 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), pages 23–42. IEEE.
Yunfei Chu, Jin Xu, Qian Yang, Haojie Wei, Xipin Wei, Zhifang Guo, Yichong Leng, Yuanjun Lv, Jinzheng He, Junyang Lin, Chang Zhou, and Jingren Zhou. 2024. Qwen2-audio technical report. arXiv preprint arXiv:2407.10759.
ElevenLabs. n.d. Create sound effect.
Arushi Goel, Sreyan Ghosh, Jaehyeon Kim, Sonal Kumar, Zhifeng Kong, Sang gil Lee, Chao-Han Huck Yang, Ramani Duraiswami, Dinesh Manocha, Rafael Valle, and Bryan Catanzaro. 2025. Audio Flamingo 3: Advancing Audio Intelligence with Fully Open Large Audio Language Models. Preprint, arXiv:2507.08128.
Jiaming He, Guanyu Hou, Hongwei Li, Zhicong Huang, Kangjie Chen, Yi Yu, Wenbo Jiang, Guowen Xu, and Tianwei Zhang. 2026. Tear: Temporal-aware automated red-teaming for text-to-video models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 41–50.
Zhang-Wei Hong, Idan Shenfeld, Johnson (Tsun-Hsuan) Wang, Yung-Sung Chuang, Aldo Pareja, James R Glass, Akash Srivastava, and Pulkit Agrawal. 2024. Curiosity-driven red-teaming for large language models. In International Conference on Learning Representations, volume 2024, pages 19935–19961.
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. LoRA: Low-Rank Adaptation of Large Language Models. Preprint, arXiv:2106.09685.
Rongjie Huang, Jiawei Huang, Dongchao Yang, Yi Ren, Luping Liu, Mingze Li, Zhenhui Ye, Jinglin Liu, Xiang Yin, and Zhou Zhao. 2023. Make-An-Audio: Text-To-Audio Generation with Prompt-Enhanced Diffusion Models. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pages 13916–13932. PMLR.
Yihao Huang, Le Liang, Tianlin Li, Xiaojun Jia, Run Wang, Weikai Miao, Geguang Pu, and Yang Liu. 2025. Perception-guided jailbreak against text-to-image models. Proceedings of the AAAI Conference on Artificial Intelligence, 39(25):26238–26247.
Chia-Yu Hung, Navonil Majumder, Zhifeng Kong, Ambuj Mehrish, Amir Zadeh, Chuan Li, Rafael Valle, Bryan Catanzaro, and Soujanya Poria. 2026. TangoFlux: Super Fast and Faithful Text to Audio Generation with Flow Matching and Clap-Ranked Preference Optimization. In International Conference on Learning Representations, volume 2026, pages 150793–150816.
Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. 2023. Mistral 7B. Preprint, arXiv:2310.06825.
Chris Dongjoo Kim, Byeongchang Kim, Hyunmin Lee, and Gunhee Kim. 2019. AudioCaps: Generating captions for audios in the wild. In NAACL-HLT.
Felix Kreuk, Gabriel Synnaeve, Adam Polyak, Uriel Singer, Alexandre Défossez, Jade Copet, Devi Parikh, Yaniv Taigman, and Yossi Adi. 2023. AudioGen: Textually Guided Audio Generation. In International Conference on Learning Representations.
Haohe Liu, Zehua Chen, Yi Yuan, Xinhao Mei, Xubo Liu, Danilo Mandic, Wenwu Wang, and Mark D Plumbley. 2023. AudioLDM: Text-to-audio generation with latent diffusion models. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 21450–21474. PMLR.
Haohe Liu, Yi Yuan, Xubo Liu, Xinhao Mei, Qiuqiang Kong, Qiao Tian, Yuping Wang, Wenwu Wang, Yuxuan Wang, and Mark D. Plumbley. 2024. AudioLDM 2: Learning holistic audio generation with self-supervised pretraining. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 32:2871–2883.
Llama Team, AI @ Meta. 2024. The Llama 3 Herd of Models. Preprint, arXiv:2407.21783.
Navonil Majumder, Chia-Yu Hung, Deepanway Ghosal, Wei-Ning Hsu, Rada Mihalcea, and Soujanya Poria. 2024. Tango 2: Aligning Diffusion-based Text-to-Audio Generations through Direct Preference Optimization. In Proceedings of the 32nd ACM International Conference on Multimedia, pages 564–572. ACM.
Mantas Mazeika, Long Phan, Xuwang Yin, Andy Zou, Zifan Wang, Norman Mu, Elham Sakhaee, Nathaniel Li, Steven Basart, Bo Li, David Forsyth, and Dan Hendrycks. 2024. HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal. In Proceedings of the 41st International Conference on Machine Learning, volume 235, pages 35181–35224. PMLR.
Ninareh Mehrabi, Palash Goyal, Christophe Dupuy, Qian Hu, Shalini Ghosh, Richard Zemel, Kai-Wei Chang, Aram Galstyan, and Rahul Gupta. 2024. FLIRT: Feedback loop in-context red teaming. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 703–718, Miami, Florida, USA. Association for Computational Linguistics.
Anay Mehrotra, Manolis Zampetakis, Paul Kassianik, Blaine Nelson, Hyrum Anderson, Yaron Singer, and Amin Karbasi. 2024. Tree of Attacks: Jailbreaking Black-Box LLMs Automatically. In Advances in
Neural Information Processing Systems, volume 37, pages 61065–61105. Curran Associates, Inc.
Anselm Paulus, Arman Zharmagambetov, Chuan Guo, Brandon Amos, and Yuandong Tian. 2025. AdvPrompter: Fast Adaptive Adversarial Prompting for LLMs. In Proceedings of the 42nd International Conference on Machine Learning, volume 267, pages 48439–48469. PMLR.
Ethan Perez, Saffron Huang, Francis Song, Trevor Cai, Roman Ring, John Aslanides, Amelia Glaese, Nat McAleese, and Geoffrey Irving. 2022. Red teaming language models with language models. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 3419–3448, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
PiAPI. n.d. Kling Sound API.
Reid Pryzant, Dan Iter, Jerry Li, Yin Lee, Chenguang Zhu, and Michael Zeng. 2023. Automatic prompt optimization with “gradient descent” and beam search. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 7957–7968, Singapore. Association for Computational Linguistics.
Mikayel Samvelyan, Sharath Chandra Raparthy, Andrei Lupu, Eric Hambro, Aram H. Markosyan, Manish Bhatt, Yuning Mao, Minqi Jiang, Jack Parker-Holder, Jakob Foerster, Tim Rocktäschel, and Roberta Raileanu. 2024. Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts. In Advances in Neural Information Processing Systems, volume 37, pages 69747–69786. Curran Associates, Inc.
Patrick Schramowski, Manuel Brack, Björn Deiseroth, and Kristian Kersting. 2023. Safe Latent Diffusion: Mitigating Inappropriate Degeneration in Diffusion Models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 22522–22531.
Hui Wang, Cheng Liu, Junyang Chen, Haoze Liu, Yuhang Jia, Shiwan Zhao, Jiaming Zhou, Haoqin Sun, Hui Bu, and Yong Qin. 2026. TTA-Bench: A comprehensive benchmark for evaluating text-to-audio models. Proceedings of the AAAI Conference on Artificial Intelligence, 40(39):33512–33520.
Yuchen Yang, Bo Hui, Haolin Yuan, Neil Gong, and Yinzhi Cao. 2024. SneakyPrompt: Jailbreaking Text-to-image Generative Models. In Proceedings of the IEEE Symposium on Security and Privacy.
A Additional Method and Evaluation Details
We give the variational characterization of Eq. 2 and the score-function derivation of Eq. 7 for a fixed execution kernel.
A.1 Variational Characterization
Proof of Proposition 1. Fix and suppress the conditioning on . By Assumption 1, is finite and strictly positive. For any distribution on , substitution of Eq. 3 gives
Rearranging and averaging over yields Eq. 4. Nonnegativity of KL divergence implies that the unrestricted maximum for each is attained uniquely at . Restricting to a neural generator family turns this into an approximation problem; the identity holds for every policy in that family.
A.2 Leave-One-Out Gradient
Assume, in addition, that the policy is differentiable on the fixed support and its log-probability gradients are integrable over the target distribution. For a fixed , let and write . Since the execution kernel and reference policy are fixed,
(10)
The second expectation is zero because . This accounts for the dependence of the sampled KL penalty on . It justifies treating the regularized return as a stopped-gradient weight in the score-function estimator.
Next, draw independent plans and conditionally independent execution traces for the same . For , is independent of conditional on and the current parameters. Therefore,
(11)
Finally, for the composite reward in Eq. 1. Combining Eqs. 10 and 11, and averaging over and , gives . This is the RLOO score-function argument (Ahmadian et al., 2024) specialized to a frozen acoustic execution process. The derivation uses complete groups sampled from the current policy for each update.
A.3 Scope of the Execution Kernel
The training process validates each initial plan and screens its compiled description before audio generation. Frozen reward models assess waveform harmfulness and fidelity to the original caption. Equation 1 combines these bounded scores into a return in [0, 1]. During each policy update, the kernel is fixed conditional on the sampled initial plan and target. For valid plans, let collect the acoustic fields. Compilation uses these acoustic fields, so . Conditioning Eq. 3 on a fixed w therefore gives
because the common exponential utility factor cancels between numerator and denominator. Thus the ideal distribution changes probability mass across acoustic plans while retaining the reference distribution over their nonexecuted explanations.
Training uses and optimizes . At inference, the frozen trained checkpoint supplies both the initial generator and the refiner in . AF3 guides this search, and Qwen2-Audio serves as to assess the selected waveform.
A.4 Reward Configuration
We set in Eq. 1. The harmfulness score is , using independent scores from Qwen3-Omni and Audio Flamingo 3 respectively. A separate AF3 call compares the generated waveform with the original caption to assess scene and vocal fidelity. For source captions designated as non-vocal, we set and retain the other weights. Invalid plans and guard-rejected descriptions produce no audio and receive zero execution reward.
A.5 Decoding Settings
RLOO sampling uses the full vocabulary with temperature 1, top-p = 1, and top-k = 0. Sequence likelihoods use the full-vocabulary probabilities of the policy and frozen reference. At inference, JSON grammar constraints enforce the acoustic-plan schema before validation and execution.
A.6 Computing Resources
Local experiments used two NVIDIA RTX PRO 6000 GPUs, each with 96 GB of memory. The average time cost per successful attack was 533 s.
A.7 Human Evaluation
We conducted a human evaluation of all audio clips from the main experiments on AudioLDM and TangoFlux (Table 1), including those classified as harmful and those classified as harmless by the automated evaluation. We measure accuracy as the proportion of audio clips for which the automated harmful/harmless classification matched the human assessment. The automated evaluation achieved an accuracy of 88.9%.
Among all cases counted as successful attacks by the automated evaluation in the main experiments, human reviewers confirmed that 86% both constituted successful attacks and satisfied the original target requirements. These automatically successful clips also contribute to the harmfulness accuracy calculation, so the two statistics are computed on overlapping sets of audio. This result provides human evidence supporting the reliability of the reported ASR.
A.8 Participants.
Ten students from our laboratory who had not participated in the experiments volunteered as evaluators. They were peers of the researchers and were not authors of this paper. They received no compensation and could withdraw at any time. Before annotation, they received a warning about potentially harmful audio content and gave verbal consent to participate in the evaluation. We did not collect their ages. We did not obtain institutional ethics approval or request an exemption for this evaluation.
A.9 Annotation procedure.
Evaluators were shown the original target prompts alongside the generated audio. They judged harmfulness for all main-experiment clips, including clips classified as harmful and harmless by the automated evaluation. For the subset counted as successful attacks by the automated evaluation, they additionally judged whether the audio satisfied the original target requirements. The target-matching annotation set was therefore a subset of the harmfulness annotation set. Each clip was reviewed by seven of the ten evaluators, with overlapping subsets assigned to different evaluators. Each appli-
cable binary judgment was aggregated separately by majority vote, with at least four of the seven votes determining the final label. The odd number of judgments per clip prevented ties.