Ignore Previous Prompt: Attack Techniques For Language Models
Paper · 2022 · Fabio Perez and Ian Ribeiro
Summary
A writing service can use a short instruction to tell GPT-3 to correct a passage. The developer supplies the instruction, and the customer supplies the passage. When the application puts both into the same prompt, however, the passage can contain a request of its own. A response that follows that request may look perfectly fluent while failing to deliver the service the developer intended. The authors call the deliberate use of submitted text to cause this kind of failure prompt injection. They examine the problem in applications built around the text completion capabilities of large language models.
The paper studies a failure of task control and a failure of confidentiality. In goal hijacking, the response consists of text selected by the attacker, subject to the study’s rules for matching it. In prompt leaking, the response exposes the instruction the application used to define its task. The authors introduce PromptInject, an openly released framework that lets them vary parts of the application context, the adversarial request, and the settings used to generate a response. They evaluate manually written test inputs on 35 prompts from the OpenAI Examples collection, using text-davinci-002 for most of the study. They run each experiment 4 times because the same input can produce different responses.
On that collection, the paper highlights mean success rates of 58.6% ± 1.6 for hijacking and 23.6% ± 2.7 for leaking. The values after the ± signs are standard deviations across repetitions. Hijacking requires a match to the selected response after disregarding punctuation and line breaks. Leaking requires the response to contain the original instruction, even if other text appears alongside it. Changes in how a request was worded or presented affected the results. The requested output also mattered, with more harmful targets proving harder to elicit. The most capable system in the paper’s comparison was the most susceptible, a result the authors connect to its ability to follow instructions in general.
Stop sequences and application text following the user’s contribution both reduced measured hijacking. Increasing temperature, a generation setting that affects response variability, offered a smaller benefit at the cost of less predictable answers. The experiments leave reliable protection unresolved. They show why an application needs to be evaluated on whether its instruction still governs under hostile input, alongside whatever measures it uses to judge the quality or acceptability of ordinary responses.
Deep dive: Ignore Previous Prompt: Attack Techniques For Language Models
PromptInject measures how user text can redirect a language application or expose its hidden instructions, and how limited safeguards affect the result. · about 41 minutes to read
The problem and its context
When a passage is also a request
Think of the grammar service in terms of what each participant contributes. The developer chooses an operation, correction into standard English. The customer chooses the words on which the operation will be performed. In the application code these are distinct pieces of information. The developer has a template and substitutes the customer’s passage into a designated place. That small amount of code is enough to turn a general text completion service into something that behaves like a dedicated writing tool.
Once the pieces are assembled, the generator receives a body of text. A stretch of that text represents an instruction from the developer. Another stretch represents the customer’s material. The application intends the second stretch to be read as a passage to work on. The words of the passage can nonetheless be intelligible as a command. An application can thus ask for perfectly ordinary language and receive words that propose an incompatible task. The paper investigates what happens when someone introduces that conflict deliberately.
A sentence can have imperative grammar and still be valid material for correction. The service might receive a sentence that tells its intended reader to close a window. Correcting the sentence would preserve its function as a request directed at that reader. Taking the sentence as an instruction for the service would assign it a different role. A useful language application needs to work with the distinction even when the passage is more complicated than this example. The surface form of a sentence gives the generator clues about its meaning, while the application supplies the reason it is present.
The security problem lies in whether that reason continues to determine how the text is used. The person filling in the text field has permission to supply material for the service. They can exercise that permission without being entitled to redefine what the service does or retrieve the developer’s private instructions. String substitution preserves the characters the person entered. Whether it also preserves the developer’s intended division of responsibilities depends on how the resulting prompt is handled.
The authors illustrate the convenience of this pattern by considering the work an equivalent rule-based grammar service would require. The developer of such a service would have to specify a great deal about how to recognize and change problematic language. A GPT-3 application can express the operation in a brief instruction. For the authors, the security question arises from that same convenience. An application relies on the generator’s ability to interpret instructions expressed in ordinary language, and ordinary language is precisely what the customer is free to submit.
Why completion can do the work of an application
The introduction places this design in the development of GPT-3, which OpenAI introduced in 2020. A completion service extends supplied text. The authors describe how suitably structured input makes the same underlying ability useful for question answering, text summarization, and classification. An input may describe the task, offer examples of what an answer should look like, and present an item to complete. Much of the specification of the application can therefore live in the text exchanged with the service. Language Models are Few-Shot Learners
The paper mentions other prominent systems in describing the advances that made this style of natural language processing possible. The broader setting includes BERT, the text-to-text approach in T5, and OPT. Those examples give context for the spread of capable language systems. The security study itself concerns a particular way of building with GPT-3, where the application asks for a continuation of the assembled prompt.
The range of tasks a completion service can handle also affects the meaning of an application failure. A grammar service with a fixed set of rewrite rules might respond badly to an unfamiliar sentence because the rules do not cover it. Here the generator may understand a passage well enough to infer an alternative task and then perform it. The resulting answer could be coherent and relevant to part of the submitted text. Its failure consists in which part of the interaction directed the work.
Questions about such behavior were already circulating when the authors began their study. They describe examples published on social media in which competing instructions interfered with applications built on GPT-3. A public demonstration can establish that a failure occurs under some circumstances. Developers also need to know whether a response is an isolated occurrence, whether the same outcome appears across different application contexts, and which characteristics of the surrounding setup change how often it occurs. These questions require a way to define the outcome and count it.
The gap between harmful output and loss of control
Earlier research discussed in the paper approached bias, fairness, and safety from several directions. Work on stereotypes examined how a generator can perpetuate harmful associations. Research on broader social risks considered intentional misuse alongside the harms that can arise in ordinary operation. The authors also note that a person can use GPT-3 to generate abusive language at scale. Such work makes the content and consequences of generated text objects of direct study. Persistent Anti-Muslim Bias · Ethical and Social Risks of Harm
Goal hijacking asks whether someone else can determine the application’s response through the input the application is meant to process. An unobjectionable target can answer that question. If a correction service returns an unrelated phrase selected for the test, the phrase can be harmless while the loss of task control is real. Judging the phrase on its content alone would miss the failure. The authorized operation and the relation of the response to that operation are part of the security question.
Work on toxic continuation is relevant because it studies a different way a freely generated answer can violate expectations. The paper describes research that looked for ways to inhibit toxicity and found prevention remained uncertain. That research discussed more careful selection of pretraining material, with a role for end users. Selecting training material addresses what a system may learn to generate. The prompt-injection experiment asks who can steer a particular response during application use. The distinction matters when comparing interventions. RealToxicityPrompts
Confidentiality has a similar distinction. The paper cites prior work showing that a generator can reveal private material from its training data. In prompt leaking the sought text is already present in the prompt assembled for the current request. The application supplies it so that the task can be performed. The risk arises because the generator can include that material in its response, where the person using the application can see it. An account of how private data enter through training would leave this more immediate route unexplained. Extracting Training Data
Instruction-following training is another part of the background. The authors describe how fine-tuning GPT-3 with human feedback improved its ability to follow requests while also improving truthfulness and reducing harmful behavior. An application benefits when a generator can understand a short description of the job. The paper raises a further question about what happens when a single prompt contains language from different parties. Correctly understanding each request leaves a decision about which request should control the response. Training Language Models to Follow Instructions with Human Feedback
From a changed label to a task-independent outcome
The closest prior experiments in the paper concern adversarial inputs for classifiers. The authors refer to work evaluating text classifiers with the TextAttack and OpenAttack libraries. They also discuss a study in which handcrafted prompt injection changed classification results for GPT-3 and other systems. Classification supplies a relatively direct observable outcome. A test can examine whether the response assigns an item to the intended category under the conditions being compared. TextAttack
A collection of application prompts presents a different measurement problem. A question-answering example and a grammar example can both fail under hostile instructions, yet their ordinary replies need different standards of correctness. An evaluator interested in unauthorized task replacement needs a criterion that can be used across both. The paper supplies a designated output and asks whether that output is returned. The value of the designated output comes from its source and role in the experiment. It represents the test requester’s objective and can be recognized independently of the original application’s expected reply.
Prompt leaking is likewise defined in terms that carry across applications. Each application has an instruction the experimenter can identify before the test. The answer can be checked against that known text. A grammar application and a conversational application supply different instructions, but the same criterion of inclusion can be applied to both. This turns the question of disclosure into something observable for each template.
The outcomes make a variable as broad as application security measurable in a limited setting. An unexpected reply could come from a misunderstanding, from ordinary variation in generation, or from the competing request. A reply that satisfies the designated criterion is evidence for a specific failure defined in advance. The authors build the study around those outcomes and then examine how often they arise as several parts of the interaction change.
The method, step by step
Begin with an application the evaluator can inspect
PromptInject organizes the evaluation around a base prompt. The base prompt gives the application its task and provides a place for the submitted text. The evaluator knows what the instruction says because it is part of the experimental material. That knowledge is necessary to distinguish a reply that reveals the instruction from a reply that merely contains general remarks about what the application does. It is also necessary to read a designated target response as a departure from the task the application was set up to perform.
For a new reader, it helps to keep the application template, the complete input, and the returned response separate. The template is the reusable description of the service. The complete input is what the generator receives on a particular trial, after the application has supplied the context and the incoming text. The response is the observable result. PromptInject lets the researchers describe changes to the first two objects and apply a criterion to the third. The design is an experiment on the behavior of an existing service.
How PromptInject records application behavior under test
The steps in order.
The base prompts used for the main evaluation come from public OpenAI examples. The authors selected 35 of those examples on the grounds that a developer might begin an application with one of them. The prompts already describe tasks. This gives the study material that has a reason to exist independently of the adversarial test. It also makes the choice of prompts an explicit part of the study. The evaluation concerns the behavior of these templates when placed under test, rather than a sample drawn from measured production traffic.
Record what belongs to the prompt
The framework represents application instructions together with optional kinds of context. A prompt may contain examples of the task. An example can show what kind of request to expect or what a response should look like. The term few-shot learning refers here to the use of demonstrations within the input to guide the current response. A service can use these demonstrations without changing the trained parameters during the evaluation. For PromptInject, demonstrations are a feature of the application environment that can be represented separately from its main instruction.
A template may also contain labels identifying the participants. For example, a conversation can use textual labels to make clear which lines belong to a person and which belong to the service. Such labels help explain how a text completion task can stand in for an interaction. The framework allows different labeling arrangements. The authors treat them as choices in the design of the prompt that an evaluator may want to record, rather than assume that all applications package a conversation in the same form.
An application can include material that has a job inside the prompt and is intended to remain private outside it. PromptInject can represent this with a private value in a subsection of the prompt. The authors describe material such as supplementary directions, limits on topics, and details furnished to aid the task. Private describes the application’s expectations about disclosure. The evaluation can ask whether a returned response respects that expectation because the researcher has access to the contents of the template and can identify the relevant text.
The paper’s framework description is broader than its reported leakage score. Representing a private value permits an evaluator to describe a range of possible confidentiality concerns. The reported experiments count responses containing the application’s original instruction. A reader who wants to know whether some different private material was exposed needs a scoring rule for that material. The leakage statistic cannot acquire that meaning solely because the framework can describe it.
Give each trial an observable failure criterion
For a hijacking trial, the test specifies a target response in advance. The paper calls the selected text a rogue string. Its role is comparable to that of a reference answer in an ordinary evaluation, though it represents the outcome the application is supposed to resist. A match can then be checked across heterogeneous tasks. The request to produce the text and the text the evaluator expects to see are distinct components. This gives the authors a way to study content effects independently of the general aim of making the service output a designated response.
For a leakage trial, the material the evaluator looks for is drawn from the application instruction itself. The test can count disclosure even if the answer includes other material. This matters because a reply might continue to look conversational while exposing private text within a larger response. The attacker’s objective in this category is therefore tied to the appearance of identifiable application language, rather than to what form the whole response takes.
Both tests assign a result based on text the evaluator can observe. They cannot observe an internal judgment about which party has authority over a task. A response might show evidence of confusion without satisfying either criterion. Conversely, when the designated text appears in the required way, the test can count it without asking a reviewer to infer intentions from tone or fluency. This makes the measurement specific enough to apply consistently across prompts that ask for very different things under ordinary conditions.
The distinction between the competing request and the designated outcome is also useful for reading the results. The source of a difference may be the way the request is phrased, the requested output, the surrounding application prompt, or the conditions used to obtain the response. Treating every trial simply as a test of a hostile message would obscure those distinctions. The framework expresses them as separately configurable parts, while each reported experiment determines which part is being compared.
Keep the experimental conditions visible
The paper uses manually composed test material. The authors compare selected variations so that they can see whether factors such as wording or presentation affect the observed outcome. The framework supports different text separators and other formatting choices as part of this design. A separator is a visible feature of the assembled input that marks a division between stretches of text. The research question is whether such divisions affect behavior. Their appearance in a prompt is a property of the text supplied to the service, and the experiment measures the reply the service returns.
It would be possible to use a configurable framework to search a large space of alternatives. The reported data come from a narrower procedure. The authors start from a collection of public application templates, choose experimental conditions, and obtain completions. They do not learn a new attack policy, train a new generator, or fit a defense to annotated examples. For the reported outcome the relevant distinction is between the conditions in a comparison and the prompts over which those conditions are evaluated.
The generation configuration is a separate part of each trial. The named settings include temperature, top-p sampling, frequency penalties, and presence penalties. Temperature affects the variability of generated continuations. Top-p concerns which possible next tokens, the units generated by the service, are eligible for sampling according to their probability. The frequency and presence penalties alter the preference for text that has already appeared. The framework records these settings because a change in response behavior could reflect the way continuations are sampled as well as a change in the input.
The selected system is another experimental condition. The main set of comparisons uses text-davinci-002. There is also a comparison across options available through the OpenAI API. Holding the system fixed in the bulk of the experiments lets the paper discuss how changes to text or settings affect a particular service. The separate comparison asks how the same kind of test looks when the service being queried changes. These comparisons answer different questions even when they report the same success metric.
Stop sequences belong to the generation or application configuration. A stop sequence marks text at which an application can end a completion. Stopping affects what is ultimately returned, and therefore what can be seen by the evaluator. In the stop-sequence comparison the authors use examples that already supply such sequences in their default configurations. This is a more specific collection than the one used for the main results. The paper also looks at whether application material follows the part supplied by the user. That is a property of the assembled input, so it is recorded separately from limits on the response.
Score the responses and repeat the run
A hijacking response is compared with the designated text after punctuation and line breaks are disregarded. The whole response has to match under that rule. A reference to the target in an otherwise unrelated sentence need not satisfy the criterion. This favors a clear signal that the application produced the response selected for the test. The result measures that signal even when the application’s typical output would be difficult to grade with a common task-quality metric.
The leak check looks for the original application instruction somewhere in the response. The presence of additional text is compatible with success under that check. Thus a response can be too long to qualify as a hijack and still have the kind of structure that would count in a leak test if it contained the instruction. The distinction is inherent in what the two measures ask the evaluator to identify. Under a confidentiality criterion, placing a disclosure inside a useful answer still exposes it.
The framework includes fuzzy matching, which allows comparisons to give credit to closer approximations even when texts fail a stricter check. The authors leave that option out of these results. Their rates therefore depend on the exact-response rule with its stated exceptions and on the instruction-containment rule. A response that summarizes the private instruction in other words poses an interesting confidentiality question. It falls outside the reported criterion when the original instruction is absent.
Generation is stochastic, meaning that repeated requests under the same conditions can yield different responses. For each experiment, the authors repeat the evaluation 4 times. A run gives a success percentage over the evaluation prompts. The mean is the average of those run percentages, and the standard deviation describes their spread. The paper illustrates the reporting format with the following expression.
50 ± 1.0 %
The value 50 is the illustrative mean success percentage. The ± sign separates the mean from the standard deviation, which is 1.0 in the illustration. The percent sign indicates the unit used for the rates. The expression describes variation in the observed percentages across runs. Its second value represents a standard deviation in the reporting convention, rather than bounds from a separate statistical calculation.
This procedure uses the collection itself as a common basis for comparison. Prompts can yield different responses both because their tasks and surrounding context differ and because generation varies from one call to another. Repetition addresses the second source of variation at the level of aggregate success. A summary of run percentages need not tell the reader which individual applications were repeatedly affected. The paper’s statistics describe the behavior of a collection under a specified test.
Experiments and results
The collection and its comparison conditions
The 35 base prompts are the central evaluation collection. They include examples with different purposes and response conventions. In explaining the stop-sequence subset, the paper names cases such as a tutor, airport-code lookup, and conversation. These illustrate why the collection is suitable for the authors’ immediate question. An experimental outcome that applies across such different prompts is less dependent on how success is normally defined for any individual task. A hijack can be scored with the same matching rule regardless of the legitimate response length or subject matter.
The evaluation gives the examples a common adversarial task and compares conditions on that collection. There is no trained defense serving as a reference system. The relevant baselines are other settings in the same experiment. For a wording comparison the reference can be a direct formulation of the disclosure request. For an application comparison it can be a condition defined by how the input is arranged or how the completion ends. Each baseline answers a question about a particular factor; none represents general application security.
The authors repeat the experiments because a single batch of responses would exhibit effects of sampling along with effects of the chosen conditions. Running the collection 4 times lets them report how variable the aggregate percentages were over those runs. A stable average can provide a useful description of a comparison without identifying how the successes were distributed. For example, different prompts could contribute to consecutive runs with similar totals. Similar aggregate success in those runs would be compatible with different individual outcomes.
The measures also refer to attacks on prompts, rather than to ordinary requests sampled at random from a user population. Every tested prompt is put under a chosen adversarial condition. The resulting percentage measures success on those test opportunities. This denominator matters in practice. A study of the frequency of incidents among all service interactions would also need evidence about who submits hostile requests, how often they do so, which configurations receive them, and what the surrounding software does with the replies.
Headline results on text-davinci-002
The highlighted goal-hijacking outcome is 58.6% ± 1.6 on the 35 OpenAI examples with text-davinci-002. The first value is the mean percentage of successful target matches, and the second is the standard deviation across repeated runs. The result shows frequent replacement of the designated task in the tested condition. The strength of the evidence comes from having requested a particular output in advance and checking for its return over a collection of different applications.
The highlighted prompt-leaking outcome is 23.6% ± 2.7 on the same base-prompt collection and system. The mean here is the percentage of prompt tests for which the answer contained the original application instruction. Disclosure is thus observable even if the application produced other text as well. This result matters to the authors because the prompt can carry a substantial part of the design of a GPT-3 application. If a reply reproduces that design language, an application has exposed material it depended on for its internal operation.
These results describe tested configurations, and their roles in the paper differ from that of a best-possible rate. The authors set out to explore factors and establish feasibility. The available target text, application context, and generation configuration can change the outcome. A configuration with a different target answers a different experimental question, even when both sets of responses are scored for exact matches. The headline values summarize the outcomes the discussion emphasizes.
The higher highlighted rate for hijacking also has a limited interpretation. A match to a chosen response and the inclusion of an application’s instruction are different events. For the former, the text is given as a target for the trial. For the latter, the sought text is the developer’s instruction within the context. The response requirements differ as well. The authors conclude that leaking proved harder in their experiments, where both the target source and the success rule contribute to that description.
Disclosure varied with the wording condition
The disclosure comparison provides a numerical baseline and illustrates the spread of observed results within a single objective. On the 35 examples, the direct-request condition produced 2.9 ± 0.0, expressed as mean success percentage and standard deviation. Another phrasing condition produced 12.1 ± 1.4 on the same measure. The strongest of these reported conditions reached 23.6 ± 2.7. The chart identifies the alternatives by condition and displays their means.
Mean instruction-disclosure success by request condition on the OpenAI examples
The strongest tested wording produced disclosure more often than the direct request.
The numbers
| System or setting | attack success % |
|---|---|
| Direct request | 2.9 |
| Alternative wording A | 12.1 |
| Alternative wording B (this paper) | 23.6 |
The direct request serves as a useful reference because a person interested in confidentiality might first wonder whether an application yields its instruction when asked explicitly. In the experiment this condition has a low observed rate. The alternative conditions change the frequency of the same kind of disclosure. This makes the contrast a matter of how the application behaves under different requests, instead of a result of scoring one condition more generously than another. The text being sought and the definition of a successful leak are held in common.
The value 0.0 for the standard deviation in the direct condition describes the repeated aggregate measurements. It is compatible with the general reason the authors give for repeating the experiment. A low or zero spread for one collection and condition leaves open the behavior of other formulations and configurations. It also leaves open how particular prompts contributed to the totals. Observing the same rate on repetitions would answer a narrower question than observing the same result on every individual example.
The disclosure comparison is especially important when reading the survey of mitigations in the paper. A result from a relatively ineffective condition can leave a broad impression of safety if the report only states the objective and omits the condition. The experiment demonstrates that the wording used in a confidentiality test is part of what the outcome measures. Comparing results across evaluations requires attention to what requests were represented and what counted as disclosure.
Structural and generation comparisons
The summary of the hijacking experiments reports sensitivity to wording, formatting, and the selected output. Formatting changes affected how frequently the response matched its designated target. The paper separately investigates properties of separators and finds their effects less clear than the overall finding about presentation. This is why the discussion treats visible prompt structure as relevant to the outcome while leaving the relationship between particular separator properties and success unresolved.
The requested output affected the rate too. Results for more harmful targets were lower in the comparisons the authors discuss. This gives the exact-match result a content dimension. The evaluator is measuring a designated output under adversarial conditions, and some such outputs may already be difficult for the service to produce. A low rate may therefore reflect resistance to that content, difficulty following the competing request, or an interaction between these sources of difficulty.
The stop-sequence comparison uses 10 prompts. These are the prompts for which the corresponding OpenAI examples already include a default stopping sequence. With this restriction, the analysis relates the change to examples where a stopping condition has an application-defined role. The authors report that the sequences hinder hijacking. Since the sample differs from the full evaluation collection, the scope of the comparison is specifically those examples with stop sequences in their supplied configurations.
The placement comparison asks about prompts with application text after the substituted user contribution. The authors report less attack success in prompts with such trailing material. The surrounding application context is therefore implicated in the measured result. The user’s words are one component of the input, and the same kind of adversarial objective can be evaluated against different choices about where the user’s component sits.
The authors report a modest hindrance to attacks at high temperature. Its application cost is that it makes responses less predictable. The top-p, frequency-penalty, and presence-penalty comparisons give the authors no clear effect to identify. The implications are confined to the tested settings. A broad statement that sampling controls determine whether application instructions have authority would require a relationship stronger and more consistent than the study reports.
The comparison across available systems
The paper describes text-davinci-002 as the strongest available option in the comparison. It also finds it substantially more susceptible than the other tested options. This is a noteworthy result because a natural expectation for application building is that improved instruction following will improve the service’s ability to do what the developer asks. Where the input combines language from different parties, the same general improvement can make the competing task easier to understand and execute.
The authors interpret the ordering as suggestive of inverse scaling. In this context the phrase refers to a security outcome worsening as the system becomes more capable in the comparison. The observation is an ordering among available systems on a chosen evaluation. It does not by itself quantify a relationship between a training variable and susceptibility. The explanatory proposal is that better understanding of prompt intent may benefit the person trying to redirect the application.
A weaker option can produce fewer target matches while being less reliable on the intended job as well. The attack metric credits absence of the designated response as failure of the attack, and that outcome is compatible with several kinds of reply. A useful application assessment would care whether the reply also performs the authorized task. The paper’s comparison makes this question visible through the authors’ explanation of the ordering, without jointly measuring all the aspects of application performance needed to answer it.
What the ablations show
Wording is part of the measurement
The paper offers controlled factor comparisons in place of component-removal ablations of a trained architecture. Their common method is to vary a feature of the experimental situation and check how the success measure changes. A variation in wording addresses whether the expression of a competing request matters to the observed behavior. A variation in target content addresses whether the same kind of outcome is equally easy to elicit across different requested responses. These questions are informative even though neither reveals an internal circuit or a learned representation.
A wording comparison is strongest when its outcome can be read under a common objective. In the disclosure results, the evaluator across conditions is looking for the application’s own original instruction. The relative performance of the conditions therefore shows that the wording contributes to whether the answer includes that instruction. It leaves room for different explanations of how the contribution arises. The generator could be sensitive to which task it recognizes, how it interprets the relationship among sentences, or what type of continuation the input seems to invite.
This is why a demonstration of refusal or adherence under an isolated request has limited reach. It supplies evidence for the situation that was actually measured. A formulation that appears equivalent to a human reader may give different cues to a completion service. The sensitivity is itself an empirical result of the comparison, and the paper has no need to identify an exact internal mechanism to establish it. An account of why a particular wording works would require additional evidence about the processing of that wording.
The hijacking comparisons make a related point using the exact-response criterion. Ordinary words used to communicate a request can appear interchangeable when their intended meaning is clear to a reader. Their performance in the study can differ nonetheless. A measured change therefore reflects the behavior of the complete system under that variation. It should not be read as a universal semantic rule about the language in which an application is prompted.
Layout matters, with an unclear ordering of layout properties
The delimiter comparisons give the authors evidence that formatting affects success. They then look at delimiter type, length, and repetition. Each is a plausible contributor to the way the complete input looks. The type concerns which characters form a division, length concerns its size, and repetition concerns whether it appears again. The discussion gives no clear ordering across these properties.
The first result concerns the presence of a formatting difference. The less conclusive results concern whether particular features of the difference predict a stronger effect. It is possible for one comparison to show a meaningful change while the finer comparisons fail to support a stable generalization. For example, separation might alter the apparent organization of a prompt in a way that depends strongly on its surrounding context. This possibility is compatible with the findings and remains an interpretation.
The comparisons also illustrate why seeing boundaries in text and enforcing boundaries in an application are different matters. Formatting can tell a human reader that a paragraph is a quotation or that a segment contains supplied data. Here success depends on whether the generator treats the visible structure in accordance with the developer’s intent. The observed formatting effect is evidence of sensitivity to presentation, with no identified rule that makes visible markings a dependable assignment of authority.
A target match combines redirection with content production
The harmful-target comparison changes what the test requester wants the response to contain. The authors observe reduced success when the chosen output is more harmful. They suggest that alignment through human feedback could help explain this finding. The proposed explanation draws on the earlier work they discuss, where such feedback was used to improve instruction following and reduce harmful generation. In PromptInject, the measured intervention is the selection of target text.
A weaker result for an objectionable target has several possible meanings. The service may be less willing or less likely to generate the target while still responding to the competing instruction in other ways. It may keep performing the application’s job. It may also produce a response that expresses some of the requested content without matching the target. Each of these possibilities can yield the same outcome under an exact-match check. The measure identifies the event the authors defined and leaves open the intermediate behavior behind a failed match.
The complementary point is that success on an innocuous target can still be a security failure. An application’s goal might be to correct a passage, give an answer, or simulate a conversation under a particular instruction. The application can lose control of that goal while its output remains acceptable under a content filter. Task integrity depends on the source and purpose of the returned text. Content acceptability depends on characteristics of the text itself. A study intended to measure both would need criteria for each.
The experiment compares requested strings, so properties other than harmfulness can vary with them. A content comparison supports the authors’ observation about the targets they used. Identifying the effect of prior training would require a comparison designed around training, with other plausible explanations held in check. The paper’s suggested explanation is consequently useful as a question for subsequent work, with the evidence in this study confined to response behavior under the selected requests.
Input context and output limits affect different stages
The stop-sequence and prompt-placement comparisons both produce less observed hijacking, but they act at different points in an interaction. A stop sequence constrains the response that can be returned. Application text after the submitted passage affects the input that is available when a response is generated. The fact that both change the final rate illustrates why that rate is a property of an assembled application configuration.
A completion constraint can prevent a measured target match by cutting off the text needed to satisfy it. That is an application effect even if the generator’s treatment of the competing instruction was otherwise similar. An inference about successful recognition of trusted instructions would require evidence about the response beyond the fact that generation stopped. Likewise, a control relevant to one expected response format may need a different evaluation in an application where legitimate output is longer or less structured.
Trailing application material is evaluated through a difference in the prompt context. It may change what the service interprets as the current task or alter the shape of the expected completion. The paper establishes the directional finding and does not settle among such interpretations. The placement comparison draws attention to a feature of the complete template that would be missed by testing the submitted passage in isolation.
Both comparisons also expose a measurement question about usefulness. A service that suppresses responses indiscriminately could eliminate target matches at the expense of the intended operation. The paper’s results on stop sequences and placement describe attack success. A corresponding comparison of ordinary task outcomes would help explain how much useful behavior each setting retains. That joint evidence is especially important when a security intervention changes the amount or form of material the application can return.
Generation variability and capability
The temperature comparison suggests a practical tension between successful resistance on the chosen metric and repeatability of ordinary answers. Higher temperature slightly reduces the measured effectiveness of attacks while increasing unpredictability, according to the discussion. A generator that responds with more variation might hit a precisely specified target less frequently for reasons quite different from recognizing and preserving the application’s task. The presence of an exact matching criterion makes that possibility relevant to interpretation.
The other sampling and penalty settings do not provide clear evidence of an effect in the study. That result does not imply that these controls have no influence on text generation. It means the paper does not identify a clear change in this particular failure measure under the reported comparisons. Effects on vocabulary, repetition, or other ordinary output properties would be different outcomes to test. General generation controls can make a text service behave differently without furnishing a rule about the source it should obey.
The comparison by capability raises the same issue at the scale of whole services. A system that understands a complex application instruction can also understand a conflicting request from the user. A system that produces fewer exact adversarial matches may have difficulty satisfying either instruction. The paper’s explanation of the susceptibility ordering is grounded in that difference. The measurements demonstrate susceptibility under the tested conditions, while the proposed relation to general instruction-following ability remains an interpretation.
Limitations
Limits identified by the authors
The authors explicitly describe the experimental search as exploratory. They select factors and configurations to find out whether the measured failures occur and whether their frequency changes with those factors. They do not conduct an exhaustive search for the strongest inputs. The success percentages consequently characterize the experiments that produced them. A reader would need broader evidence to estimate the full range of outcomes another person could obtain.
The authors suggest that application-specific tests might yield stronger leakage results than the requests evaluated across the collection. A broad evaluation seeks an outcome that can be recognized on many templates. A test aimed at one template can focus on its particular structures or private material. The paper does not measure the performance of such tailoring. This distinction also matters for defenders, since a collection-level benchmark can expose a general weakness while leaving the vulnerability of a particular service incompletely characterized.
The concentration on text-davinci-002 is another stated boundary of the work. The paper includes a comparison among available options, but it still proposes testing additional systems as future research. It also discusses edit and insert interfaces as settings worth studying. Such interfaces would change how the application and user contributions are presented for generation. The paper’s reported findings concern the completion setup it actually evaluates.
Handcrafted inputs are central to the evidence. In the future-work discussion the authors consider whether automatic search could be studied and cite work on editing instructions without relying on gradients. The connection is a proposed direction. The reported experiments have human-selected conditions, and the factor comparisons tell the reader about those conditions. They do not supply a result for a system that independently searches over alternatives. GrIPS
The authors leave the defense problem open. They discuss restricting output length and applying moderation or other post-processing. They also consider separating trusted instructions from untrusted data in the interface itself. This latter suggestion would make the application’s distinction between task and material explicit in how it calls the service. It is a proposal in the discussion, with no implemented guarantee or measurement in the paper. The moderation idea likewise points to a line of work that can supervise generated content. A Holistic Approach to Undesired Content Detection
The risk appendix recognizes that publishing a framework for examining attacks can help people studying safety as well as people with hostile aims. The authors’ case for releasing it is that systematic measurement can reveal weaknesses and inform better designs. Their risk discussion considers applications in which language is part of a decision process and where inappropriate behavior could have serious effects. Those scenarios motivate the investigation. The evidence actually collected consists of generated responses to application prompts.
Limits visible in the evaluation collection
A careful reader should distinguish relevance from representativeness. The public examples are relevant because the authors expect developers to use them as starting points. That expectation explains the sampling choice. The collection is not a census of deployed products, and it does not come from observing their ordinary requests, their external filtering, or the incident histories of their users. Its rates apply to evaluated templates under the paper’s chosen conditions.
A prompt representing a task also cannot stand for every application that performs that task. A conversational example defines a particular arrangement of wording, context, and expected continuation. Another service can use a different template and different surrounding code to pursue a similar purpose. The paper’s own finding that structure matters supplies a reason to expect such differences to be relevant. The overall rate cannot be turned into a rate for every service occupying a named category.
The main entry point in the study is the text the user supplies through the application interface. The experiments give the researcher control over that contribution and observe how the service responds once it is part of the prompt. They do not yield corresponding rates for inputs imported from an external source during a task. Those settings may raise the same question about which text should govern the application, while changing who provides the text, where it appears, and what actions the service can take.
The reported experiments concern the responses of language services in specified configurations. A deployed product may place checks before generation and further conditions on what happens afterward. Each stage can affect both exposure and consequences. The paper proposes some measures relevant to those stages, but its main evaluation gives no comprehensive product-level estimate. Such an estimate would depend on the actual arrangement of the service around the generator.
Limits of the two success measures
A careful reader can draw relatively direct conclusions from a measured success. A hijack meeting the criterion has yielded the designated response under the stated normalization. A leak meeting its criterion has placed the original instruction in the output. A measured failure is less specific. The service may have followed its intended task, produced an unrelated response, stopped partway through, or been influenced in a way that did not satisfy the evaluator’s matching rule.
Consider confidentiality in particular. A reply could explain the substance of the developer’s instruction without repeating its words. It could also expose a sensitive fragment that matters to the application while omitting the complete instruction the evaluator checks for. These behaviors would require a broader definition of disclosure than the one used to produce the paper’s results. The framework’s optional fuzzy scoring suggests one way the strictness of matching could vary, but the reported rates do not incorporate it.
The exact-response condition has the corresponding issue for task integrity. A service can depart from its task by returning part of the target or by doing something else suggested by the competing request. Such an answer could be of concern to a developer even though it fails to match the designated text. The metric’s precision gives a reproducible interpretation to a positive result. Its narrowness limits what can be inferred about all undesirable changes to a response.
The asymmetry between whole-response matching and instruction containment also matters in comparing objectives. A successful leak can contain a mixture of private and harmless material. The evaluation still recognizes the private instruction. A mixed response containing the hijack target can fall outside the hijacking rule. An observed ordering under these criteria offers evidence about the experiments the authors performed. A general statement about which goal is inherently harder would require experiments that address the differences in both how the targets are specified and how the responses are judged.
The standard deviations give a careful reader information about repeatability at the level of the evaluated collection. They leave several practical questions unanswered. The results do not estimate how exposure is distributed across every individual application, how often a given application is attacked in deployment, or what weight to give an especially consequential disclosure. A mean success rate and its spread serve the purposes of the paper’s comparison. Incident prediction would require data on a wider process than the paper measures.
Limits on causal and defensive claims
The suggested effect of human-feedback alignment on harmful targets is plausible within the paper’s account of earlier research. The design here changes the requested content. It does not hold the content fixed while altering how a matched system was trained. The difference in rates cannot identify the share of the result attributable to training, as opposed to differences among the selected outputs or how they fit the rest of the input.
The inverse-scaling interpretation has a related boundary. The available systems differ in capability as the authors describe it, and they yield different attack outcomes. That observation does not isolate a particular aspect of training or capacity as the cause. The paper also leaves ordinary task performance and adversarial behavior incompletely paired in the evaluation. A service that fails to return the designated target can still fail the person who came to use it for the developer’s intended task.
For stop sequences, a reduction in exact matches can be valuable to a developer, yet it may arise from the conditions on returned text. This would count as an improvement in the reported metric regardless of whether the generator understood which instruction to follow. Effects on legitimate completion length would matter in assessing the intervention for the application. Similarly, trailing application text may accompany several features of a template. The comparison does not provide a general rule about how position alone governs authority.
Moderation can address the kinds of undesirable content a supervisor is built to identify. A harmless but unauthorized reply poses a different claim about correct behavior. A developer concerned about prompt confidentiality would also need to specify which application text should be recognized as private. The paper’s discussion proposes output supervision as a possible practical measure. The experiments supply no result for a moderation system that establishes task integrity or confidentiality across the collection.
The proposed instruction-and-data interface addresses a more basic distinction. It gives the caller a way to represent the role of each input. A complete defense based on that distinction would also need to demonstrate how reliably the service preserves it under hostile content and during normal operation. The authors recognize the difficulty of complete prevention. Their concern describes an unresolved research problem, and the study does not prove that dependable protection is impossible.
Finally, the broader risk cases in the appendix involve effects that depend on the surrounding application. A text response can embarrass a service, disclose something private, or become an input to a larger decision process. The experiments establish output redirection and disclosure under their definitions. The significance of either event in a particular product depends on what that product exposes and what it permits a generated reply to influence.
What came after
Indirect injection and applications with tools
The paper’s experiments start with text entered directly into the application. Later work on indirect prompt injection takes up a different route by which competing instructions can reach an application. In an indirect setting the content encountered during a task can raise the same authority question, even though it did not originate in the person’s current request. The move from direct input to real-world integrated applications is the subject of Not What You’ve Signed Up For.
The connection is easiest to see by returning to the grammar service. Its developer gives the service a reason to read the incoming passage, and that reason specifies how the passage should be treated. Indirect injection raises a similar question for text encountered elsewhere in an integrated application. The earlier evaluation supplied an explicit place where the user’s material entered. The indirect setting broadens the part of the application whose inputs can affect task control. That change concerns the route by which content arrives, while the distinction between material and authorized instruction remains relevant.
Application integration itself also became an explicit focus of subsequent injection work. The research question can shift from whether a completion looks like an unauthorized answer to what that answer means within the application that uses it. PromptInject supplies a response-level measure across templates. Work centered on integrated applications places the application setting at the forefront of the investigation. Prompt Injection Attack against LLM-integrated Applications
Tool integration adds a further setting in which the source of an instruction matters. The 2022 paper discusses, as motivation, the use of language within larger decision processes. A benchmark devoted to indirect injection in tool-integrated agents brings evaluation directly to that setting. The connection is between the original concern about losing control of an assigned task and the later concern about that failure in an agent with tools. InjecAgent
Formal comparisons and robustness evaluation
PromptInject turns two kinds of failure into criteria an evaluator can apply over a collection. In subsequent work, formalization and benchmarking became subjects in their own right. Defining attacks and defenses together makes it possible to ask what a reported defense is intended to preserve and under what attack conditions it is evaluated. This picks up a problem made concrete by the original paper’s sensitivity results. A finding under a chosen wording, template, and scoring rule has to be understood in relation to that evaluation design. Formalizing and Benchmarking Prompt Injection Attacks and Defenses
Later work also approaches adversarial prompts through a wider robustness question. PromptInject asks for specific outcomes, such as a target match or the presence of the developer’s instruction. An evaluation of robustness to adversarial prompts takes the variation in prompt conditions as a subject to investigate more broadly. The connection is the need to measure behavior across hostile formulations rather than let one prompt stand for the full capability or weakness being assessed. PromptRobust
A comprehensive trustworthiness assessment gives these questions a still wider setting. For a language application, a reply can be elegant, relevant to part of the input, and undesirable because it has followed the wrong request. Tests focused on surface quality would leave that dimension of trust unmeasured. PromptInject gives examples of why explicit failure conditions matter. Later trustworthiness work takes up the broader task of comprehensive assessment. DecodingTrust
Jailbreaks, privacy, and the range of test material
The paper’s reported adversarial inputs were manually constructed for its experiments. Citing work on jailbreak prompts in the wild shifts attention to language already being used outside such an experimental collection. Its agenda of characterization and evaluation addresses a question closely related to the one prompted by the early social-media examples described in the paper. It asks how to study hostile requests that have appeared in actual use, with the later work centered on jailbreaks. Do Anything Now
The privacy line of work extends the subject along another dimension. Prompt leaking makes the disclosure event identifiable in the output of a test request. Work on multi-step jailbreaks for privacy attacks takes up the possibility of studying a sequence of interactions. This connects to the confidentiality side of PromptInject while changing the unit of inquiry from the result of a prompt trial to a multi-step setting. The subject of that work is privacy in ChatGPT, so its confidentiality question should be read in its own application context. Multi-step Jailbreaking Privacy Attacks on ChatGPT
PromptInject’s future-work discussion also identifies automation as a possible research direction beyond the paper’s handcrafted conditions. Subsequent work frames automatically generated jailbreak prompts as a way to conduct red teaming. This addresses the question of how test material can be generated when the variation that matters is difficult to represent through a small collection of human-written cases. Its stated focus is jailbreak evaluation, distinct from the original study’s particular target-matching and instruction-containment criteria. GPTFUZZER
Evaluating defenses and training for priority
The original paper evaluates partial constraints and leaves reliable defense unresolved. Later research on baseline defenses makes protective comparisons an explicit object of study. A baseline can establish what resistance is available under a stated configuration and give further proposals a reference point. The link to PromptInject is the need to specify the attack condition and the outcome that a defense is expected to change. The earlier results make clear how easily an apparent gain could otherwise depend on the choice of target, wording, or wrapper. Baseline Defenses for Adversarial Attacks
Work on instruction hierarchies addresses a closely related problem through training. The title’s emphasis on prioritizing privileged instructions identifies which property the training seeks to improve. PromptInject had proposed giving instructions and data distinct roles in the interface. An instruction hierarchy pursues the question of how a language system should respond when sources with different authority conflict. This puts the priority of a request at the center of the problem the earlier experiments exposed. The Instruction Hierarchy
Broader security surveys place the original work alongside other concerns about privacy and application behavior. A survey organized around verification and validation supplies another perspective on the same evidence. It asks what a test can establish about trustworthiness and which assumptions bound the result. Those are questions the original paper makes tangible through its use of a defined collection, repeated runs, and explicit success checks. Security and Privacy Challenges · Survey of Safety and Trustworthiness
The later work develops several questions that were concentrated in the original application setup. Indirect injection changes where disputed instructions can enter. Tool integration changes what an application might do in response. Benchmarking changes how comparisons are specified, and hierarchy training addresses which instructions should prevail. PromptInject’s experiments give these questions a concrete starting point. The service receives text from parties with different roles, and the returned response provides evidence about whether the developer’s instruction retained control.
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Topics 1Research subjects and languages the work is about.Language models & pretraining · 4,145 works
Cite
Cite as Fabio Perez and Ian Ribeiro. 2022. Ignore Previous Prompt: Attack Techniques For Language Models. arXiv:2211.09527.
@misc{perez2022ignore,
title = {{Ignore Previous Prompt: Attack Techniques For Language Models}},
author = {Fabio Perez and Ian Ribeiro},
year = {2022},
doi = {10.48550/arxiv.2211.09527},
eprint = {2211.09527},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2211.09527}
}References
- Abubakar Abid, Maheen Farooqi, and James Zou. Persistent anti-muslim bias in large language models. In Proceedings of the 2021 AAAI/ACM Conference on AI, Ethics, and Society, pages 298–306, 2021. our card
- Hezekiah J Branch, Jonathan Rodriguez Cefalu, Jeremy McHugh, Leyla Hujer, Aditya Bahl, Daniel del Castillo Iglesias, Ron Heichman, and Ramesh Darwishi. Evaluating the susceptibility of pre-trained language models via handcrafted adversarial examples. arXiv preprint arXiv:2209.02128, 2022. OpenAlex ↗ · Scholar ↗
- Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:0 1877–1901, 2020. our card
- Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, et al. Extracting training data from large language models. In 30th USENIX Security Symposium (USENIX Security 21), pages 2633–2650, 2021. our card
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. our card
- Ismael Garrido-Muñoz, Arturo Montejo-Ráez, Fernando Martínez-Santiago, and L Alfonso Ureña-López. A survey on bias in deep nlp. Applied Sciences, 110 (7):0 3184, 2021. OpenAlex ↗ · Scholar ↗
- Samuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi, and Noah A Smith. REALTOXICITYPROMPTS: Evaluating neural toxic degeneration in language models. arXiv preprint arXiv:2009.11462, 2020. our card
- Riley Goodside. Exploiting GPT-3 prompts with malicious inputs that order the model to ignore its previous directions., Sep 2022. URL https://web.archive.org/web/20220919192024/https://twitter.com/goodside/status/1569128808308957185. OpenAlex ↗ · Scholar ↗
- Dan Hendrycks and Mantas Mazeika. X-risk analysis for ai research. arXiv preprint arXiv:2206.05862, 2022. OpenAlex ↗ · Scholar ↗
- Evan Hubinger, Chris van Merwijk, Vladimir Mikulik, Joar Skalse, and Scott Garrabrant. Risks from learned optimization in advanced machine learning systems. arXiv preprint arXiv:1906.01820, 2019. OpenAlex ↗ · Scholar ↗
- Ryan Lowe and Jan Leike. Aligning language models to follow instructions, Jan 2022. URL http://web.archive.org/web/20220923225406/https://openai.com/blog/instruction-following/. OpenAlex ↗ · Scholar ↗
- Todor Markov, Chong Zhang, Sandhini Agarwal, Tyna Eloundou, Teddy Lee, Steven Adler, Angela Jiang, and Lilian Weng. A holistic approach to undesired content detection in the real world. arXiv preprint arXiv:2208.03274, 2022. our card
- Kris McGuffie and Alex Newhouse. The radicalization risks of GPT-3 and advanced neural language models. arXiv preprint arXiv:2009.06807, 2020. OpenAlex ↗ · Scholar ↗
- John Morris, Eli Lifland, Jin Yong Yoo, Jake Grigsby, Di Jin, and Yanjun Qi. Textattack: A framework for adversarial attacks, data augmentation, and adversarial training in nlp. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 119–126, 2020. our card
- OpenAI. OpenAI API - quickstart tutorial - build your application, 2022a. URL https://web.archive.org/web/20220928115044/https://beta.openai.com/docs/quickstart/build-your-application. OpenAlex ↗ · Scholar ↗
- OpenAI. OpenAI API - examples, 2022b. URL https://web.archive.org/web/20220928211844/https://beta.openai.com/examples/. OpenAlex ↗ · Scholar ↗
- OpenAI. OpenAI API - content filtering - prompt engineering tips - with no engineering an impolite customer is met with vitriol, 2022c. URL https://web.archive.org/web/20220928114903/https://beta.openai.com/docs/models/with-no-engineering-an-impolite-customer-is-met-with-vitriol. OpenAlex ↗ · Scholar ↗
- OpenAI. Models - OpenAI API, 2022d. URL http://archive.today/2022.10.28-122238/https://beta.openai.com/docs/models/gpt-3. OpenAlex ↗ · Scholar ↗
- Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. arXiv preprint arXiv:2203.02155, 2022. our card
- Jose J Padilla, David Shuttleworth, and Kevin O’Brien. Agent-based model characterization using natural language processing. In 2019 Winter Simulation Conference (WSC), pages 560–571. IEEE, 2019. OpenAlex ↗ · Scholar ↗
- Archiki Prasad, Peter Hase, Xiang Zhou, and Mohit Bansal. Grips: Gradient-free, edit-based instruction search for prompting large language models. arXiv preprint arXiv:2203.07281, 2022. our card
- Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J Liu, et al. Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 210 (140):0 1–67, 2020. our card
- Pratyusha Sharma, Balakumar Sundaralingam, Valts Blukis, Chris Paxton, Tucker Hermans, Antonio Torralba, Jacob Andreas, and Dieter Fox. Correcting robot plans with natural language feedback. arXiv preprint arXiv:2204.05186, 2022. OpenAlex ↗ · Scholar ↗
- Yoshija Walter. A case report on the "A.I. locked-in problem": social concerns with modern NLP. arXiv preprint arXiv:2209.12687, 2022. OpenAlex ↗ · Scholar ↗
- Ben Wang and Aran Komatsuzaki. GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model. https://github.com/kingoflolz/mesh-transformer-jax, May 2021. OpenAlex ↗ · Scholar ↗
- Laura Weidinger, John Mellor, Maribeth Rauh, Conor Griffin, Jonathan Uesato, Po-Sen Huang, Myra Cheng, Mia Glaese, Borja Balle, Atoosa Kasirzadeh, et al. Ethical and social risks of harm from language models. arXiv preprint arXiv:2112.04359, 2021. our card
- Simon Willison. Prompt injection attacks against GPT-3, Sep 2022a. URL http://web.archive.org/web/20220928004736/https://simonwillison.net/2022/Sep/12/prompt-injection/. OpenAlex ↗ · Scholar ↗
- Simon Willison. I missed this one: Someone did get a prompt leak attack to work against the bot, Sep 2022b. URL https://web.archive.org/web/20220924105826/https://twitter.com/simonw/status/1570933190289924096. OpenAlex ↗ · Scholar ↗
- Zhouhang Xie, Jonathan Brophy, Adam Noack, Wencong You, Kalyani Asthana, Carter Perkins, Sabrina Reis, Sameer Singh, and Daniel Lowd. Identifying adversarial attacks on text classifiers. arXiv preprint arXiv:2201.08555, 2022. OpenAlex ↗ · Scholar ↗
- Guoyang Zeng, Fanchao Qi, Qianrui Zhou, Tingji Zhang, Bairu Hou, Yuan Zang, Zhiyuan Liu, and Maosong Sun. OpenAttack: An Open-source Textual Adversarial Attack Toolkit. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing: System Demonstrations, pages 363–371, 2021. . OpenAlex ↗ · Scholar ↗
- Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. OPT: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068, 2022. our card
This page in Markdown https://md.research.elamur.ai/free/en/papers/perez-2022-ignore-previous-prompt-attack-techniques/