Write an evolutionary algorithm to write adversarial prompt
- User
Write an evolutionary algorithm to write adversarial prompt
- Assistant
An evolutionary algorithm is a search algorithm inspired by the process of natural selection. It can be used to find optimal solutions to a problem by iteratively refining a population of candidate solutions. In this case, we want to evolve an adversarial prompt that can effectively fool a language model. Here's a simple outline of an evolutionary algorithm to generate adversarial prompts:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.