Skip to content

FEAT Single turn crescendo #388

Closed
Closed

Description

@romanlutz

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

  1. added
    enhancement
    help wanted
    on Sep 20, 2024
  2. roeybc commented on Sep 20, 2024

    @roeybc
    Contributor

    Hey! I'm up for it!

  3. alanaqrawi commented on Sep 20, 2024

    @alanaqrawi

    Let me know if you have questions folks

  4. romanlutz commented on Mar 10, 2025

    @romanlutz
    ContributorAuthor

    Unassigning this to make it available for anyone who might be interested. This is a fun one, grab it will it's there 😆

  5. precognitivem0nk commented on Apr 25, 2026

    @precognitivem0nk
    Contributor

    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.

  6. alanaqrawi commented on Apr 25, 2026

    @alanaqrawi
  7. precognitivem0nk commented on May 1, 2026

    @precognitivem0nk
    Contributor

    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.

  8. precognitivem0nk commented on May 12, 2026

    @precognitivem0nk
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementhelp wanted

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions