Repository navigation
Description
Is your feature request related to a problem? Please describe.
We don't support single turn crescendo yet. This should be added.
Paper: https://arxiv.org/pdf/2409.03131v1
GitHub repo (results only): https://github.com/alanaqrawi/STCA
Describe the solution you'd like
The tricky part is that for every goal/objective (e.g., "how to create a molotov cocktail") the conversation looks very different. We'll need to be able to generate the entire conversation until the n-th step and then put that into a single prompt. The assumption here has to be that the attack target is a single turn target (otherwise we can just use "normal" crescendo). So the red teaming LLM has to generate both sides of the conversation. An alternative (mentioned by Alan, the author of the paper), is to run full Crescendo and keep the questions and responses, then put them in a single prompt. That may or may not be possible in actual operations (and definitely not with single turn targets).
Importantly, the n should be configurable. The paper has some discussion of that and we probably want to be flexible.
The final solution needs to have tests and a simple notebook (like all orchestrators). There's some freedom in terms of how to do this that depends on how the conversation generation works best:
- custom orchestrator: first generate conversation (which may be a single step or multiple), then send to target
- converter: converter generates conversation from just the goal [It's not a typical converter, though....]
- another way? If this is chosen please discuss here with dev team first.
Describe alternatives you've considered, if relevant
Alternatively, one could pregenerate such single turn crescendo templates for hundreds of goals, but that will never be comprehensive...
Additional context
One tricky aspect is that the responses need to be somewhat similar to how the target model responds. Otherwise, it may get "suspicious" (not trying to anthropomorphize here but it's the simplest way to explain what I mean) and refuse to comply.
Activity
roeybc commentedon Sep 20, 2024
Hey! I'm up for it!
alanaqrawi commentedon Sep 20, 2024
Let me know if you have questions folks
romanlutz commentedon Mar 10, 2025
Unassigning this to make it available for anyone who might be interested. This is a fun one, grab it will it's there 😆
precognitivem0nk commentedon Apr 25, 2026
I'd like to take this. Plan is to implement the Single-Turn Crescendo Attack (Aqrawi & Abbasi 2024, arxiv 2409.03131) as a new attack class under pyrit/executor/attack/single_turn/, following the same pattern as the existing multi-turn version at pyrit/executor/attack/multi_turn/crescendo.py. The attacker model synthesizes the n prior turns and packs them into a single prompt sent to the target, with n exposed as a configurable parameter.
One scoping question before I open the PR: should the default n track the paper's value (sensible default plus an override), or should n be left as a required argument so callers think about it per goal? My read is that defaulting plus override is cleaner ergonomics, but I want to match whatever convention you prefer for new single-turn attacks.
alanaqrawi commentedon Apr 25, 2026
FEAT add crescendo persona scenario techniques (movie director, histo…
precognitivem0nk commentedon May 1, 2026
Closed in spirit by #1677 (merged 2026-05-01) which adds three persona scenario techniques (movie director, history lecture, journalist interview) on top of the single_turn_crescendo technique landed in #1665. Per @rlundeen2's guidance on the closed PR #1657, the personas live behind the new ScenarioTechniqueInitializer rather than core, and num_turns matches the canonical default. Happy to add more variants if the upcoming benchmarks surface gaps. Maintainers feel free to close this issue.
precognitivem0nk commentedon May 12, 2026
Roman Lutz (@romanlutz) @rlundeen2 since #1677 merged on top of the single_turn_crescendo technique in #1665, this one can be closed when convenient. Happy to keep it open if there's more variant work to track. Thanks again for the scenario-technique steer.