---
title: "CoSafe — paper by Yu et al. (2024) — summary and ideas"
description: "CoSafe tests whether language systems handle unsafe requests differently when the final question refers to something mentioned earlier in a…"
canonical: "https://research.elamur.ai/free/en/papers/yu-2024-cosafe-evaluating-large-language-model/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/yu-2024-cosafe-evaluating-large-language-model/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / CoSafe: Evaluating Large Language Model Safety in Multi-Turn Dialogue Coreference

# CoSafe: Evaluating Large Language Model Safety in Multi-Turn Dialogue Coreference

Paper · 2024 · Erxin Yu, Jing Li, Ming Liao et al.

**Authors:** [Erxin Yu](https://md.research.elamur.ai/free/en/authors/erxin-yu/), [Jing Li](https://md.research.elamur.ai/free/en/authors/jing-li/), [Ming Liao](https://md.research.elamur.ai/free/en/authors/ming-liao/), [Siqi Wang](https://md.research.elamur.ai/free/en/authors/siqi-wang/), Zuchen Gao, [Fei Mi](https://md.research.elamur.ai/free/en/authors/fei-mi/) and [Lanqing Hong](https://md.research.elamur.ai/free/en/authors/lanqing-hong/) · **Year:** 2024 · **Venue:** Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **21** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/yu-2024-cosafe-evaluating-large-language-model/cited-by/) · Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2024.emnlp-main.968/)
- [PDF](https://aclanthology.org/2024.emnlp-main.968.pdf)
- [DOI 10.18653/v1/2024.emnlp-main.968](https://doi.org/10.18653/v1/2024.emnlp-main.968)
- [arXiv 2406.17626](https://arxiv.org/abs/2406.17626)

## Summary

A chatbot may refuse a direct request for harmful content and respond differently when the same request depends on something said earlier. CoSafe investigates this possibility in conversations with [large language models](https://md.research.elamur.ai/free/en/concepts/large-language-models/). Its focus is coreference, the relationship between expressions that refer to the same thing. Understanding what a phrase such as “that book” refers to is a routine part of following a conversation. CoSafe asks whether a chatbot preserves its safety behavior when it has to make that kind of connection before responding. The authors describe CoSafe as the first benchmark dedicated to this combination of dialogue safety and [coreference resolution](https://md.research.elamur.ai/free/en/concepts/coreference-resolution/).

The dataset contains 1,400 conversations based on standalone requests from BeaverTails. The authors selected 100 requests from each of its 14 harm categories. They used GPT-4 to produce the dialogue versions, with the context-dependent question appearing at the end, and intervened manually where GPT-4’s safeguards interrupted construction. Each entry has three dialogue turns and averages 10.22 sentences. The authors released the dataset as CoSafe. They evaluated five open-source, instruction-tuned systems using an automatic question-and-answer moderator, human reviewers, and GPT-4 ratings of helpfulness and harmlessness. The human reviewers examined a random sample of 100 CoSafe items and their associated answers.

On the paired comparison with the standalone requests, the share of cases where GPT-4 judged an answer less harmless ranged from 13.9% for Mistral-7B-Instruct to 56% for LLaMA2-Chat-7b. The paper calls this share the attack success rate. A separate measure, the share of question-and-answer pairs the moderator labeled harmful, rose for LLaMA2 from 14.5% on the standalone requests to 39.4% in the dialogue condition. By that measure, LLaMA3 and Mistral improved in the aggregate. The authors point to differences across harm categories, more refusals in some cases, and examples where extra context made the risk clearer. Human and automatic moderation labels agreed on over 85% of the cases in their comparison.

A system-level safety instruction and a prompt that guided the chatbot through interpreting the question both reduced the measured harmful rate in the defense experiment. Both also lowered helpfulness scores, and unsafe answers persisted. The authors identify two practical constraints on the benchmark itself. In a manual check of 50 items, 3 had a final question that departed in meaning or force from the original, and generating the full dataset through GPT-4 cost roughly $400. The results show why a standalone safety check can give an incomplete picture. They also show why the direction of a change can depend on which system, harm category, and measure the evaluation uses.

## Deep dive: CoSafe: Evaluating Large Language Model Safety in Multi-Turn Dialogue Coreference

CoSafe tests whether language systems handle unsafe requests differently when the final question refers to something mentioned earlier in a conversation. · about 32 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What the last question leaves implicit

A conversational system frequently receives questions that make sense only in light of earlier turns. Suppose a user asks about a novel and then asks who translated it. The final sentence contains a request about translation, but the subject of the request comes from the previous exchange. A reader who sees only the last sentence can recognize its grammatical form and still lack the information needed to judge an answer. The same dependence arises with descriptions such as “the earlier one” or “the same place.” The expressions are ordinary, and understanding them is part of doing the job users expect from [dialogue systems](https://md.research.elamur.ai/free/en/topics/dialogue-systems/).

Safety judgments can depend on the missing information as much as factual judgments do. An earlier turn may establish who or what a user means. A later turn supplies the action the user wants the assistant to perform. Only when those pieces are read together does the request become clear enough to assess. The paper’s introductory example illustrates this distinction with targeted abuse. The explicit version draws a refusal, while the version whose target is recoverable from the previous exchange receives an abusive response. In the paper, that example motivates an evaluation across many requests. It supplies a demonstration of the phenomenon in a particular case, before the benchmark measures its frequency.

This is a question about which behavior a test can observe. A standalone request gives the system all the relevant wording at once. A conversation distributes information over messages. Both are meaningful ways to ask a question, and each places different demands on the system. A safety evaluation limited to the first form can tell a reader how a system responds when the relevant details appear together. It gives little direct evidence about the case in which the assistant must infer what the user means from the history. CoSafe makes that second case the object of measurement.

The subject also places two expectations for an assistant side by side. The assistant should use prior context to answer follow-up questions intelligently. It should also apply the same scrutiny to the request it infers as it would to one stated explicitly. A response can reveal a gap between these expectations. If an answer clearly applies to the right subject but is unsafe, the system’s behavior is compatible with understanding the reference while handling its implications poorly. The output alone cannot reveal how it arrived there. The experiment observes the answer and evaluates it, leaving the internal explanation open.

#### How earlier safety evaluations framed the request

The paper places CoSafe in red teaming, where evaluators deliberately probe a system for behavior that an ordinary test might overlook. A successful probe gives researchers an observable failure to characterize. A dataset of such probes makes it possible to repeat the evaluation across systems and compare the resulting answers. The authors describe AnthropicRedTeam as an effort to identify, measure, and reduce harmful outputs. BeaverTails drew from that collection to develop data organized around questions and answers. In CoSafe, the relationship is practical as well as historical, since BeaverTails supplies the requests and category scheme that the dialogue benchmark uses. [Red Teaming Language Models to Reduce Harms](https://md.research.elamur.ai/free/en/papers/ganguli-2022-red-teaming-language-models-reduce/) and [BeaverTails](https://md.research.elamur.ai/free/en/papers/ji-2023-beavertails-towards-improved-safety-alignment/)

The related-work discussion distinguishes evaluations according to what they vary. Some organize tests around objectionable or risky content and use categories to describe that material. Others center on a type of interaction or a particular safety problem. The paper discusses prior work on conversational safety, privacy, and how systems respond to questions involving human values. These strands establish that unsafe behavior can take several forms. They also explain why the format of a prompt is an important part of the definition of a benchmark. A benchmark can use similar subject matter to an earlier one while posing a new test through the way it presents the request. [Do-Not-Answer](https://md.research.elamur.ai/free/en/papers/wang-2023-answer-dataset-evaluating-safeguards-llms/) and [ProsocialDialog](https://md.research.elamur.ai/free/en/papers/kim-2022-prosocialdialog-prosocial-backbone-conversational-agents/)

Most benchmarks in the paper’s comparison rely on standalone prompts. Its discussion of SaFeRDialogues and the Anthropic dialogue data describes a different precedent. Those datasets already use dialogue, but the authors characterize the safety-relevant request as typically occurring at the beginning. A later exchange can then test the system’s behavior after that opening. CoSafe studies a different point in the conversation. The relevant request arrives after the history has established what a later expression refers to. The distinction matters because counting turns would classify both designs as dialogue evaluations while concealing where the safety judgment has to take place.

The paper describes this setting as more demanding because the system has to read additional material and interpret the final question in context. There are two parts to that reasoning. The system has more information to process, and the last message has less information on its own. Neither part determines what the extra context will do in each case. An earlier explanation can make the risk easier to recognize. A longer exchange can also make it harder to carry the relevant constraints forward. The benchmark sets up a comparison in which either outcome is possible, instead of assuming that adding context always weakens safety.

#### What coreference research contributes to the question

Coreference resolution is the problem of determining which mentions refer to the same entity. In a dialogue, an earlier description may serve as the antecedent, the expression that gives a later mention its interpretation. The paper situates this problem within a progression of rule-based, statistical, and neural approaches. Those traditions concern how a computational system links the mentions. CoSafe borrows the linguistic relationship and asks what happens at a later stage, after an assistant has had an opportunity to use the link in producing an answer. [Stanford’s Multi-Pass Sieve](https://md.research.elamur.ai/free/en/papers/lee-2011-stanford-s-multi-pass-sieve/) and [End-to-end Neural Coreference Resolution](https://md.research.elamur.ai/free/en/papers/lee-2017-end-end-neural-coreference-resolution/)

Earlier evaluations had already made coreference a subject of safety-related analysis through bias. The authors cite WinoGender and WinoBias as datasets for examining gender bias in how a system resolves mentions. In those evaluations, the concern lies in the interpretation the system assigns to a reference. In CoSafe, the evaluators ask whether the answer is harmful after a reference has helped establish the request’s meaning. A system could choose the correct antecedent and still produce an unsafe answer. Conversely, a safe answer or refusal on its own provides limited evidence about whether the antecedent was correctly identified. These are distinct outcomes, even when they occur while processing the same sentence. [WinoGender](https://md.research.elamur.ai/free/en/papers/rudinger-2018-gender-bias-coreference-resolution/) and [WinoBias](https://md.research.elamur.ai/free/en/papers/zhao-2018-gender-bias-coreference-resolution-evaluation/)

This distinction explains the authors’ novelty claim. They identify prior work on conversational safety and prior work on harms associated with reference resolution. Their proposed gap concerns the use of a reference-dependent request at the end of a conversation as a probe of answer safety. The object of comparison is what the assistant says under two presentations of an intended request. That makes CoSafe an evaluation of generated behavior with a linguistic motivation, alongside the earlier evaluations whose primary object was the interpretation of the reference itself.

### The method, step by step

#### Start with a request whose category is known

CoSafe begins with existing safety data. The authors use BeaverTails to select standalone requests intended to elicit unsafe answers. They take 100 from each of its 14 harm categories. A category is a label for the kind of risk the request is meant to probe. The equal allocation gives each category the same number of opportunities to enter the benchmark. It also gives the authors a way to examine results within a kind of harm, since an overall rate can hide changes that run in different directions across categories.

The category assignments come from the source dataset. They are separate from the judgments made later about the answers. For instance, discrimination and sexually explicit content are categories of source requests. Either category can contain an exchange in which the assistant refuses, redirects, or responds with material a reviewer judges harmful. The category tells the reader which risk the evaluator was looking for. The label on the generated answer records the outcome. This distinction is essential when reading a statement such as “the harmful rate increased in a category.” It refers to the labeled responses within that part of the benchmark.

Keeping the original prompts serves a second purpose. Each selected request provides a standalone comparison for the dialogue derived from it. Without that pairing, a difference in results could simply reflect the fact that one dataset contained easier or harder requests from the outset. Here, the researchers have a common starting request and can compare its two presentations. The strength of this comparison depends on how well the dialogue preserves the original meaning. The paper returns to that dependency in its manual check of the dataset.

#### Construct the dialogue version

The authors use GPT-4 to turn the selected material into conversation records. Each finished record has three dialogue turns, with the request to be evaluated at the end. Its interpretation relies on a reference to the earlier conversation. The preceding history is part of the authored record. Thus, the same case presents the system with a prepared conversational situation and asks it to continue from that point. A record of this kind can be given to each tested system without requiring the systems to produce identical answers in the earlier turns.

The authors made manual revisions in cases where GPT-4’s safeguards interrupted construction. The resulting dataset combines generated conversations and manually assisted construction. The paper reports a finished set of 1,400 entries, still with 100 assigned to each category. The average length of 10.22 sentences describes the dialogue records. It is separate from the turn count because a turn can contain several sentences. These properties characterize the material the authors used. They do not prescribe how long a dialogue must be for a similar safety question to arise.

For a reader approaching the benchmark, it helps to distinguish the prepared history from the observed output. The study gives the system under evaluation that history. The output the researchers score is the answer to the final request. Anything attributed to the assistant in an earlier part of an authored conversation is context supplied for the experiment. It is not evidence of what that same assistant would have said if the conversation had begun live. The design makes the final response comparable across systems while leaving open how earlier responses would affect a conversation that unfolded interactively.

From BeaverTails requests to CoSafe safety scores The steps in order.

#### Collect comparable responses

The experimental procedure uses five existing instruction-tuned systems. Instruction tuning refers here to prior adaptation for following requests. It describes the systems the authors start from. CoSafe is used to test their behavior and to compare prompting conditions. The data construction and final scoring are the study’s new procedures, alongside those prompt-level defenses. They are separate from the training that produced the tested systems.

The authors format the conversation according to the requirements of each system before collecting its answer. This matters because a dialogue contains roles and turns. Those boundaries determine which material is read as an earlier user message, an earlier assistant message, or the current request. The content of the benchmark is shared across the comparison. The representation used to deliver it follows the system’s own input requirements. The paper reports the same batch size and input and output length ceilings across the tested systems.

For the benchmark comparison, the output of interest is the answer to the relevant request in each format. In the standalone condition, that means the answer to the original BeaverTails prompt. In the CoSafe condition, it means the continuation produced after loading the dialogue history and final question. The two outputs form a pair for purposes of judging a change in harmlessness. Other assessments can also attach a label or a score to either output individually. The study uses both kinds of information because a change between paired answers and the status of an individual answer address different questions.

#### Give each form of judgment a specific job

The automatic question-and-answer moderator assigns a binary label to a pair consisting of a question and its answer. The authors use beaver-dam-7b, following the BeckerTails evaluation approach. The label says whether the pair is judged harmful or harmless. An aggregate harmful rate is the share of assessed pairs on the harmful side of that decision. The measure is therefore about the content of generated answers as classified in the evaluation. A dangerous request can receive a harmless answer, and counting questions by their assigned harm categories would give a different statistic.

Human review provides a second source of binary judgments. The authors randomly choose 100 CoSafe cases and collect the relevant answers for the comparison. Three annotators label the answers as harmful or harmless. The paper examines both agreement among the annotators and agreement between human evaluation and the automatic moderator. Those checks address different sources of uncertainty. If reviewers disagree among themselves, a candidate automatic label may be hard to validate. If the reviewers broadly agree and the moderator often matches their judgment, the binary results have a check from a separate evaluation procedure.

GPT-4 assigns ratings for harmlessness and helpfulness. Each dimension uses a scale from 1 to 10. Harmlessness concerns the safety of the response. Helpfulness concerns how well the answer serves the request under the judge’s rubric. A single answer can fare differently on these dimensions. The paper uses refusals to illustrate why this distinction matters. A refusal can avoid producing unsafe material while receiving a lower helpfulness judgment. Collecting only one of the scores would omit the aspect captured by the other.

The authors grade several systems’ answers in the same evaluation procedure and shuffle the order of the responses before presenting them to GPT-4. The reason is to limit the influence of answer position on scoring. The comparison benefits from separating the order shown to the judge from a fixed ordering of systems. The shuffle addresses that source of bias. The resulting ratings still depend on the judge and its rubric.

#### Define a paired drop in harmlessness

The attack success rate, or ASR, uses the two GPT-4 harmlessness ratings that belong to a paired case. The appendix states the success condition in words. An item counts as a success if the dialogue answer receives a lower harmlessness score than its standalone counterpart. The denominator is the set of paired cases being compared. The numerator is the cases that satisfy that condition. An equal rating contributes no success, and a move toward greater harmlessness contributes no success. Each qualifying pair is counted once, regardless of the size of the score change.

This definition clarifies the scope of the statistic. A pair can meet the success condition while both answers remain on the safe side of a separate cutoff. Another pair can contain an unsafe dialogue answer without contributing to ASR if the standalone answer was already equally low-scoring. The appendix also shows a separate division of GPT-4 ratings into safe and unsafe answers, treating scores below 5 as unsafe. That cutoff concerns the level of a score on one answer. ASR concerns the direction of change between two answers. The moderator-based harmful rate is a third operation, carried out by a separate evaluator that produces its own binary labels.

#### Change the instructions for a defense comparison

The defense experiment keeps the focus on responses to CoSafe and changes the guidance given to the answering system. One condition adds a safety instruction at the system level. A system instruction provides general direction for how the assistant should behave in the conversation. Here its purpose is to give safety explicit priority while the assistant answers. The evaluation then checks whether the resulting answers receive fewer harmful labels and whether helpfulness changes.

The other condition uses chain-of-thought prompting, which asks the assistant to perform an explicit intermediate interpretation of the request. In this experiment, that interpretation concerns the reference in the question and what the question means in context. The procedure asks the system to resolve the relevant mentions, restate the request, and then respond. It builds a linguistic check into the defense condition. The study judges the result by the safety and helpfulness of the responses. It does not give a separate score to the intermediate reference decisions.

These comparisons test changes that can be made through prompting. Their logic is distinct from dataset construction. GPT-4’s role in building the evaluation dialogues is to supply benchmark material. In the defense experiment, the interventions guide the systems that answer those dialogues. Later, GPT-4 serves again in a different capacity, rating outputs. Keeping these roles separate helps a reader see which decisions belong to the test data, which belong to the answering system, and which belong to the evaluation.

### Experiments and results

#### Systems, settings, and the baseline

The study evaluates Alpaca-7b, LLaMA2-chat-7b, and LLaMA3-instruct-8b. It also includes ChatGLM3-6b and Mistral-7B-Instruct-v0.2. The paper describes the group as open-source systems that have been instruction-tuned. The experiment uses their existing capabilities and safety behavior as the starting point. The authors set a batch size of 4, a maximum input length of 512, and a maximum output length of 256 for each system.

The primary baseline is performance on the original, standalone questions. Each tested system supplies its own baseline under that condition. The comparison then asks what happens to its answers on the related CoSafe dialogues. A second baseline comes into play for the defense experiment. There, the reference setting is the system’s CoSafe response before the defense prompt is added. Both comparisons use the word “baseline” in the sense of an alternative condition for the same system. They answer different questions because one changes the presentation of the request and the other changes the instructions for responding.

The main dataset comprises 1,400 CoSafe dialogues. The design balances the 14 categories at 100 entries each. The paper gives no training and test split for adapting the evaluated systems to CoSafe. Its human review uses a smaller random sample of 100 cases. The automated evaluation supplies the broad comparison of generated answers, while the manual comparison checks some of those judgments in more depth. Readers should use the scope appropriate to each result. The human agreement figures describe the manual comparison, while the headline rates describe the corresponding automated benchmark comparisons.

#### Harmlessness changed within paired cases

According to the GPT-4 judgment used for ASR, the reported range across the evaluated systems runs from 13.9% to 56%. Mistral-7B-Instruct is at the low end and LLaMA2-Chat-7b at the high end. The range shows how frequently the dialogue answer was rated less harmless than the related standalone answer for those systems. It gives the endpoints of the observed comparison for this metric. It does not establish a rank on every measure of safety or performance.

Lowest and highest paired attack success rates on CoSafe Mistral showed fewer declines in judged harmlessness than LLaMA2.

**The numbers**

| System or setting | attack success rate % |
| --- | --- |
| Mistral-7B-Instruct (this paper) | 13.9 |
| LLaMA2-Chat-7b | 56 |

To interpret the upper endpoint, imagine looking at the two answers to a benchmark item side by side, one from the standalone prompt and one from the dialogue. The relevant event is a lower harmlessness score for the dialogue answer. The chart counts the frequency of that event across pairs. The lower endpoint describes fewer such events for Mistral. The measure leaves the starting scores and the severity of the declines open. Those properties require other information from the evaluation, such as the binary harmful rate or the separate breakdown based on GPT-4’s unsafe cutoff.

The choice of endpoint also matters for how the term “success” sounds. In red teaming, success is counted from the perspective of the probe. Here it means the dialogue condition elicited a change in the direction the evaluator was looking for. From the perspective of maintaining safety across forms of a question, lower ASR is preferable. This is the direction shown in the chart. The term describes an experimental outcome with a defined scoring rule, rather than an estimate of real-world harm.

#### The harmful rate rose for some systems and fell for others

For LLaMA2, the binary moderator results moved in the same direction as the paired harmlessness result. The moderator labeled 14.5% of question-and-answer pairs harmful with the original requests and 39.4% harmful with the dialogue versions. The comparison holds the evaluated system constant and changes the presentation of the requests. The two values give the fraction of answers classified as harmful in each condition. Neither is the fraction of pairs that underwent a drop in the GPT-4 score.

LLaMA2 harmful rate on CoSafe dialogues and their standalone source requests The moderator labeled a greater share of LLaMA2 answers harmful in the dialogue condition.

**The numbers**

| System or setting | harmful rate % |
| --- | --- |
| Standalone source requests (this paper) | 14.5 |
| CoSafe dialogues | 39.4 |

The authors report that the harmful rate generally rose across the systems they evaluated, with exceptions for LLaMA3 and Mistral. In both exceptions, the automatic moderator’s aggregate harmful rate was lower on the dialogue versions. The appendix also describes LLaMA3 as having lower harmful rates across most categories under CoSafe than with the single prompts. That favorable movement on the moderator’s metric can coexist with individual cases in which GPT-4 judges an answer less harmless. The metrics use different judges and summarize different events.

The appendix’s category breakdown reports at least some paired cases meeting the ASR condition in every category. It also uses the separate GPT-4 cutoff to show examples of unsafe responses for ChatGLM3 and Mistral. These observations complement the aggregate results. A category can contain failures even when its overall rate falls. A system with a relatively low ASR can still produce unsafe answers under the dialogue condition. Conversely, an aggregate increase does not describe the result of every individual pair.

An overall rate also compresses the distribution of answers. Two conditions can differ because a small set of categories changes sharply, or because changes extend in the same direction across many categories. The paper’s category plots motivate looking separately at those possibilities, and the authors point to categories with opposite movements. The headline comparison becomes more informative when read alongside those directional findings. It then describes a difference in the benchmark as a whole with known variation underneath it.

#### Check the binary moderator against people

Human reviewers judged responses on the sampled CoSafe items. The results discussion reports human-review comparisons for three systems and gives Fleiss’ kappa values of 0.6858, 0.6585, and 0.6865. Fleiss’ kappa measures agreement among multiple raters while accounting for the agreement expected from their labeling patterns by chance. The authors describe their values as substantial agreement. The individual values characterize the consistency of reviewers for the reported response sets. They are separate from the percentage of cases where the human and automatic judgments coincide.

The human and automatic evaluations produced similar harmful rates for the three systems shown in the comparison. Their agreement on labels was over 85%. Agreement at the level of individual judgments matters alongside similarity in aggregate rates. Two evaluators could reach similar overall counts while assigning their harmful labels to different answers. The second check shows that the resemblance extends to the judgments on the sampled answers themselves. Both observations support the use of the moderator for this study’s binary evaluation.

That comparison concerns the moderator and the human labels on the sample. GPT-4’s rating procedure makes a different kind of judgment. The agreement reported for binary moderation does not in itself establish that humans would assign the same harmlessness scores, produce the same ordering of paired cases, or match the helpfulness ratings. The paper’s scoring examples put the evaluation methods alongside one another, helping readers see where each type of judgment enters the analysis. The headline inter-rater and human–moderator agreement claims have the narrower scope of the binary label comparison.

#### Safety instructions changed helpfulness as well

The authors compare a general system safety instruction with the defense prompt that explicitly guides interpretation of the final question. Both reduce the moderator’s harmful rate in the reported comparisons. The safety instruction gives a slightly larger reduction than the chain-of-thought method. The paper also reports that the helpfulness scores fall with both defenses. The outcomes therefore have to be read together. The evaluation records a decline in harmful content accompanied by a decline in how useful the outputs are judged to be.

The authors interpret this combination as evidence that the defenses frequently work through refusals. A lower harmful rate can be an appropriate outcome when a question seeks unsafe assistance. The helpfulness decline tells a reader something different, namely that the evaluated outputs satisfied the judge’s helpfulness criteria less well. The two observations leave room for several response behaviors, including brief refusals and more informative answers that avoid the unsafe part of the request. The reported directions describe the defense experiment at aggregate level, and unsafe outputs remain under the tested conditions.

### What the ablations show

#### The format comparison changes several things together

The paper does not report a factorial ablation that independently removes coreference, changes only the position of the request, and varies the amount of prior context. It instead offers a paired format comparison, category-level analysis, examples of how added context affected an answer, and a controlled comparison of prompting defenses. Each offers a different kind of evidence about the benchmark’s outcomes. The paired comparison measures how responses change under the full CoSafe presentation. The category analysis shows where the aggregate trend varies. The prompting comparisons ask whether different instructions alter behavior while the CoSafe setting is in place.

The paired comparison is strong enough to establish that the answer can change when the request is presented in context. It leaves several details of the explanation entangled. The original request is explicit and stands alone. Its partner appears later in a prepared dialogue and contains a reference that depends on previous material. The history can introduce information and modify how a reader understands the final question. The difference between the two settings is thus the joint effect of changes in presentation. Calling it a direct measurement of a reference-resolution failure would assign more precision to the comparison than its design provides.

The introductory example adds a qualitative observation. The harmful answer in the dialogue is responsive enough to illustrate why finding the correct referent may be compatible with unsafe behavior. It suggests the problem can persist after the conversation has supplied enough information to recover the target of the request. The example cannot identify which internal decision produced the answer. Likewise, the dataset scores the answer the system generated, with no intermediate verified record of which antecedent it selected. This is the distinction between observing a behavior and locating its cause inside the system.

#### The categories help explain opposite aggregate changes

The authors highlight different patterns for discrimination and stereotyping on the one hand and sexually explicit content on the other. The moderator’s harmful rate increased in the former category under the dialogue presentation and fell in the latter. These examples supply evidence for one proposed explanation of the exceptions in the aggregate results. The same kind of change in presentation can produce different patterns across categories. The study therefore gives a basis for describing the overall rate as a summary of category outcomes, instead of treating it as the result expected in each category.

Balance in the item counts makes this analysis easier to read. Every category contributes an equal number of source prompts to CoSafe. That controls how often each category appears in the designed evaluation, while leaving open how difficult each category is for a given system. A system’s aggregate result reflects the distribution of responses across those equally represented categories. The category examples indicate where the result masks opposing movements. They do not quantify how much each category contributes to the specific changes observed for LLaMA3 and Mistral.

The authors also observe that the choice to refuse can affect the relative safety and usefulness of the responses. They describe reduced helpfulness for LLaMA3 across most categories and give refusals as a possible explanation for some of its lower harmful rates. This is evidence about the answers that accompanied the change. It does not yield a separate estimate of what share of the harmful-rate reduction came from refusing. A system may also respond cautiously with useful content, or misread a question and produce little relevant material. The two aggregate measures cannot determine the frequency of those paths by themselves.

#### More context sometimes clarifies the risk

CoSafe includes an example in which an attempted probe fails because the dialogue supplies information that helps the assistant recognize the risk. This observation is important for interpreting the direction of category and system differences. The history is informative. Its presence can expose a connection that matters for safety, including a connection that was less obvious from the standalone wording. The same property that makes a follow-up depend on earlier context can give the assistant stronger grounds for treating it cautiously.

That example supports the authors’ claim that the extra context can help the system avoid an unsafe answer in some cases. It is a case-level demonstration. The paper does not hold every aspect of the final question constant while adding or removing only the helpful piece of context. It therefore cannot estimate how frequently this particular explanation accounts for the observed declines in harmful rate, or whether the effect would persist under a different history for the same request. The evidence supports the possibility of a protective role for context and illustrates it with an observed answer.

The scoring examples serve a related purpose. An aggregate table expresses outcomes as rates. A paired case exposes the questions and answers on which the judgments depend. That makes it possible to ask whether a lower harmlessness score accompanied clearly harmful content, whether the system withheld an answer, or whether extra detail seems to have changed its interpretation. These examples help make the proposed explanations concrete. They remain illustrations within the larger evaluation, since the paper does not report a systematic coding of mechanisms across the full set.

#### The defense comparisons measure interventions at the response level

The prompt-level comparisons vary the system’s instructions and judge the resulting final responses. A general safety instruction lowers the measured harmful rate. A prompt that guides interpretation of the reference also lowers it. The relative result favors the general safety instruction on that metric in the reported settings. This establishes that the tested systems respond to both forms of guidance on CoSafe. The difference between them concerns the whole instruction given in each condition.

Because the chain-of-thought condition bundles interpretation, restatement, and answering, its result cannot isolate the contribution of any individual stage. A lower harmful rate could result from better recognition of the referenced subject, heightened caution after making the request explicit internally, or other changes in the style or willingness of the response. The experiment has no separate accuracy measure for the reference-resolution stage. Its evidence concerns the usefulness of the complete prompt intervention as measured by final-answer safety and helpfulness.

The system instruction comparison also has a bounded interpretation. Its reduction in harmful labels accompanies lower rated helpfulness, lending support to the authors’ account that more conservative responding explains at least part of the pattern. The comparison measures the outcome of the prompt; it does not directly measure the decision rule used to refuse. The authors’ interpretation is plausible for the observed answers, while the benchmark results preserve both outcome measures so that a reader can see the accompanying cost.

### Limitations

#### The authors’ stated limits

The first limitation the authors emphasize is semantic drift. The expanded dialogue can contain a final request whose meaning differs from the source request. Its force can also be weaker. In a manual inspection of 50 items, the authors found 3 with problems of this kind. The finding applies directly to a central assumption of the paired comparison. If the requests differ in what they ask the assistant to do, a change in the answer may be appropriate even for a system that applies its safety policy consistently.

Meaning and force give two ways for a case to drift. A difference in meaning changes the information or action requested. A change in force can alter how directly or aggressively a broadly similar intention is expressed. Both can matter to a judge of the final answer. The inspection establishes that the issue exists in the constructed dataset. Its scope is the set that was manually examined. The authors use it to identify preservation of meaning and force as an area for improving future data construction.

The second stated limitation is cost. The authors report spending approximately $400 on GPT-4 access to produce 1,400 CoSafe items. That cost attaches to the construction of this dataset under the reported procedure. It is relevant to expanding an evaluation that depends on generated dialogues for each source request. The authors identify cheaper construction as future work, including the possibility of adapting open-source systems using existing data. Their paper measures the benchmark they built and leaves the quality and cost of those alternative approaches for later testing.

The two limitations have different implications. Construction cost affects how readily researchers can create additional items or repeat the procedure to broaden coverage. Semantic drift affects what the comparison represents, even if the cost of generating another dialogue is low. The paper’s evidence for drift comes from a limited manual inspection, while the cost estimate concerns the full construction. Each should be read at the scale on which the authors report it.

#### What the comparison can isolate

A careful reading adds a limitation about causal attribution. The experiment changes prior context, position within the exchange, and wording together. It measures whether that combined change matters. A stricter test of the role of reference alone would require comparisons that hold the surrounding conversation and intended request fixed while changing how the final message makes the reference. CoSafe’s baseline is the original request by itself, which gives the comparison a different purpose. It tells readers how behavior under the whole dialogue presentation differs from behavior under a standalone test.

A related issue concerns which side of the safety task failed. The final answer can sometimes reveal that the assistant appears to have understood who or what was meant. Even so, the evaluation supplies no item-by-item measure of reference resolution. A harmful answer may follow a correct interpretation, and a refusal may occur whether the interpretation was correct or incomplete. The study cannot separate limitations in understanding the request from limitations in applying safety judgments to an understood request. Its result is the output behavior that a user or evaluator could observe.

The prescribed dialogue history also bounds the claim. Holding it fixed for the tested systems gives a common input. A live conversation would allow the system’s earlier answers to shape what the user said next and what the system saw at its final turn. CoSafe supplies those earlier turns as part of the benchmark. Its results therefore concern final responses to prepared contexts. They do not measure the evolving behavior of a system that generated every prior response in each conversation or the probability that a live conversation would reach those same states.

#### What the sample and metrics can support

The benchmark allocates the same number of cases to each harm category. That is a deliberate evaluation distribution, and category balance helps with interpretation of its coverage. A deployment can have a different distribution of requests, different lengths of conversation, and different patterns of reference. The reported rates describe the CoSafe cases and the paired standalone requests. Applying them to other populations would require evidence about how those settings compare. A share of unsafe outputs in an evaluation constructed to probe failures is a measure of benchmark behavior, with that sampling choice built into it.

The system sample is also specific to the experiment. The five tested systems were evaluated with the reported instructions, input formats, and length settings. The study gives examples and comparisons that establish the phenomenon in that group. The resulting ranking on ASR describes the group under this test. The paper does not establish an ordering for other versions of the systems, different generation settings, or conversational products with different safety procedures.

The human agreement study provides a check on moderation, with scope limited to the sampled cases and response sets the paper reports. Even a high agreement percentage can leave disagreements that matter on particular ambiguous answers or within a category. The reported figures give overall agreement and rater consistency. They do not estimate separate human–moderator agreement for every kind of harm. The automatic harmful rates are consequently most defensible as results under the study’s specified classifier, supported by the human comparison at the level the authors assessed.

The GPT-4 evaluation has its own dependencies. The authors shuffle response order to mitigate positional bias. The resulting outcomes still use GPT-4’s scoring decisions, including how the judge treats small changes in harmlessness. ASR counts all declines under that scale, while the separate unsafe cutoff counts answers below 5. The human check of the binary moderator gives no direct calibration of either GPT-4 quantity. The several measures give readers complementary views of the outputs, with their agreement and disagreement interpretable in light of the operations each performs.

Finally, the helpfulness result concerns answers to the requests used in the safety evaluation. It captures a tradeoff in those conditions. It does not measure the cost of the tested defenses on a representative sample of benign follow-up questions. That distinction limits what can be concluded about usefulness in general conversations. The supported result is that, on the CoSafe defense comparison, the prompts lower harmfulness by the moderator’s measure and lower helpfulness by the judge’s measure. The experiment leaves open how frequently those defenses would withhold useful answers in settings where the user’s goal is safe.

### What came after

#### Safety datasets and changing test conditions

SafetyPrompts cites CoSafe in a systematic review of open datasets for evaluating and improving the safety of large language models. Its contribution is a broader treatment of the datasets used for safety research. CoSafe gives that subject a concrete example of a dataset whose distinguishing feature is how the request is presented. The connection is at the level of benchmark design. To understand what a dataset measures, a reader needs to know both the kind of harm it addresses and the interaction in which it asks the system to handle it. The citation establishes the connection to the review. It does not specify a particular classification or finding the review assigns to CoSafe. [SafetyPrompts](https://md.research.elamur.ai/free/en/papers/rottger-2024-safetyprompts-systematic-review-open-datasets/)

LLMs Know Their Vulnerabilities cites CoSafe in research about safety gaps under natural distribution shifts. A distribution shift changes the mix or form of inputs on which behavior is assessed. CoSafe supplies a related example of how a change in presentation can matter to a safety judgment. Its standalone and dialogue inputs differ in structure even when their intended request is similar. The connection between the papers is their attention to failures that can emerge when the conditions of a safety test change. The cited work’s title identifies natural distribution shifts as its focus. It leaves open whether the authors ran CoSafe, drew on its results for motivation, or cited it as an example of related evaluation work. [LLMs Know Their Vulnerabilities](https://md.research.elamur.ai/free/en/papers/ren-2025-llms-know-their-vulnerabilities-uncover/)

These two citations place CoSafe in different lines of inquiry. A dataset review addresses the collection of available evaluation instruments. Work on distribution shifts asks how vulnerable a safety judgment is to changes in test conditions. CoSafe’s contribution to that connection is a defined comparison with paired requests, an explicit change in conversational presentation, and multiple ways of judging the answer. These are specific properties of CoSafe. They explain the relevance of the citation without requiring an assumption that either work adopted its exact comparisons.

#### Safety across rounds and modalities

MTSA addresses safety alignment over multiple turns through multi-round red teaming and cites CoSafe. Alignment in this context concerns shaping the system’s behavior to meet safety goals. CoSafe assesses existing behavior under a prepared history and compares prompt-level defenses. The title of MTSA places the emphasis on alignment through repeated rounds of testing. The two projects thus meet at a practical question raised by CoSafe’s results. If the behavior to be improved depends on a conversational history, testing and improvement both have reason to take the progression of the conversation into account. The citation alone leaves unresolved whether MTSA used CoSafe’s data or adopted its reference-dependent task. [MTSA](https://md.research.elamur.ai/free/en/papers/guo-2025-mtsa-multi-turn-safety-alignment/)

SafeMT cites CoSafe in work about multi-turn safety for multimodal language systems. A multimodal setting allows information to be conveyed through more than one kind of input. CoSafe’s experiments concern text conversations. The shared issue is that the significance of a final request can depend on information established earlier in the interaction. SafeMT’s stated subject extends the multi-turn safety question to a different input setting. Its citation connects the topics, with no basis here for claiming that it carried over CoSafe’s categories, grading procedure, or specific coreference comparison. [SafeMT](https://md.research.elamur.ai/free/en/papers/zhu-2026-safemt-multi-turn-safety-multimodal/)

Together, these directions show how the conversational scope of a safety study can matter for different reasons. Alignment work asks how training or another intervention might address behavior across a sequence of exchanges. Multimodal safety work asks how that sequence matters when the interaction encompasses more than one form of information. CoSafe contributes evidence about one concrete textual case. The common scope is broader than its specific benchmark, so the citations support a relationship between research questions without establishing shared experimental machinery.

#### A citation from work on mathematical reasoning

Self-Error-Instruct also cites CoSafe. Its stated goal is to generalize from errors in mathematical reasoning. That goal concerns a different capability from the safety of text dialogue. The citation establishes a connection in the research record, but its title does not establish what that connection was or how the authors used CoSafe. In particular, there is no supported account of a transfer of the CoSafe dataset, its annotation scheme, or the paired harmlessness measure to mathematical reasoning. The defensible description is that a study concerned with generalizing from observed reasoning errors cited a benchmark built to expose context-dependent safety errors. [Self-Error-Instruct](https://md.research.elamur.ai/free/en/papers/yu-2025-self-error-instruct-generalizing-errors/)

The citing works establish several contexts in which CoSafe appears, from reviews of safety data to research on changed inputs, multi-turn alignment, multimodal conversations, and mathematical reasoning. The details of direct reuse remain unspecified. CoSafe’s documented contribution is the paired evaluation that makes a particular failure visible. A request that receives one answer on its own can receive a differently judged answer when the assistant must interpret it in a conversation, and the resulting change depends on the system and the measure used.

## Cite

Cite as Erxin Yu, Jing Li, Ming Liao, Siqi Wang, Zuchen Gao, Fei Mi and Lanqing Hong. 2024. CoSafe: Evaluating Large Language Model Safety in Multi-Turn Dialogue Coreference. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2024.emnlp-main.968](https://doi.org/10.18653/v1/2024.emnlp-main.968) · [arXiv 2406.17626](https://arxiv.org/abs/2406.17626)

```bibtex
@inproceedings{yu2024cosafe,
  title = {{CoSafe: Evaluating Large Language Model Safety in Multi-Turn Dialogue Coreference}},
  author = {Erxin Yu, Jing Li, Ming Liao, Siqi Wang, Zuchen Gao, Fei Mi and Lanqing Hong},
  booktitle = {Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.968},
  eprint = {2406.17626},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/2024.emnlp-main.968}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
