Elamur Research

HateCheck: Functional Tests for Hate Speech Detection Models

Paper · 2021 · Paul Röttger, Bertie Vidgen, Dong Nguyen et al.

Summary

A hate speech detector can achieve a respectable benchmark score while making mistakes that matter greatly in moderation. It may recognise an insult but miss a threat with altered spelling. It may also flag someone rejecting prejudice because their response repeats the language they oppose. HateCheck investigates these specific failures through functional testing: checking whether a system gives the appropriate answer on carefully chosen examples of a particular behaviour. The paper’s central contribution is a diagnostic resource that makes weaknesses visible separately, rather than allowing them to disappear inside an overall score.

The suite contains 29 tests organised into 11 classes. Of these, 18 examine different ways of expressing hate, while 11 examine non-hateful language that resembles hateful content. The authors developed the candidate behaviours through a research review and interviews with 21 people working at 16 NGOs in Britain, Germany and the United States. They then selected behaviours that could be assessed using an independent English text and a defensible, unambiguous label. The resulting cases cover derogation, threats, slurs, profanity, pronoun reference, negation, questions, opinions and spelling changes. Their non-hateful counterparts include ordinary mentions of protected groups, reclaimed language, rejection of hate and abuse directed at targets outside the paper’s definition of hate speech.

Human validation is part of the construction method. The authors initially produced 3,901 cases and assigned each to five annotators from a trained team of ten. Agreement measured by Fleiss’ Kappa was 0.93. Cases with insufficient agreement were removed, together with other cases generated from their templates, leaving 3,728 examples. This procedure supports the interpretation of an error as a failure on the intended distinction, instead of an understandable response to an uncertain label. It also preserves comparable coverage across the protected groups represented by a template.

The experiments evaluate BERT classifiers trained on different tweet datasets, together with Google Jigsaw’s Perspective and Two Hat’s SiftNinja. Every system has substantial weaknesses, although their error patterns differ. Perspective has the highest overall HateCheck accuracy, at 76.6%, yet recognises only 3.8% of the non-hateful cases involving negated hate. The BERT classifiers also struggle with reclaimed slurs and counter speech, and their performance changes substantially when otherwise equivalent cases mention different protected groups. SiftNinja mostly favours the non-hateful decision, producing strong results on many harmless cases while missing most hateful ones. HateCheck therefore provides evidence about particular behavioural failures. Passing its tests does not establish general reliability, and the authors position it alongside evaluation on naturally occurring data.

Interesting ideas

Specify the behaviour before collecting examples. HateCheck begins with an account of what a detector should distinguish, then creates cases that exercise that distinction. This makes the evaluation question explicit before a convenient dataset begins to define it. The approach is useful wherever a broad task hides several smaller capabilities: recognising a threat, tracking a reference, interpreting negation or separating quotation from endorsement. A named behaviour also gives an engineer a clearer failure report than a collection of unrelated incorrect predictions.

Pair a positive case with a nearby negative. A detector that recognises hateful language may simply have learned to react to certain words. HateCheck challenges that explanation by placing similar wording in a non-hateful construction. The small change matters because much of the vocabulary stays constant while the correct decision changes. The same design principle applies to other classification tasks: hold the tempting cue steady and change the feature that should actually determine the answer.

Let practical experience shape the test inventory. The NGO interviews contribute concerns arising from moderation work and experience of online abuse. Counter speech becomes especially important because a system can obstruct people trying to challenge hate. This is a reusable way to connect evaluation with consequences. Researchers can ask affected practitioners which distinctions fail in practice, translate those accounts into observable behaviours, and then check whether suitable test cases can be constructed.

Validate labels at the template level. Removing an ambiguous example is not always enough when several examples share its underlying construction. HateCheck also removes cases generated from the same template, preventing the cleaning process from leaving some protected groups better represented than others. This idea applies to synthetic datasets more broadly. Quality control should follow the structure that produced the data, particularly when examples belong to matched families.

Keep the diagnostic categories separate. HateCheck distinguishes hateful profanity from harmless profanity, and hateful slurs from reclaimed or unrelated uses. These distinctions make a broad claim such as sensitivity to offensive vocabulary more precise. A system may handle ordinary profanity well while still treating a reclaimed slur as inherently hateful. Reusable evaluation categories should expose such differences instead of combining superficially similar phenomena into a single difficult-example bucket.

Treat successful tests as bounded evidence. A failed, clearly labelled case establishes a concrete weakness. A successful case establishes that the system handled that case under those conditions. This asymmetry is valuable in reporting results, designing release checks and deciding what evidence a benchmark can support. It encourages targeted claims about observed behaviour and leaves room for separate checks on coverage, distribution shift and more complicated inputs.

Deep dive: HateCheck: Functional Tests for Hate Speech Detection Models

How HateCheck tests hate speech detection, exposes failures on harmless contrasts, and reveals biases hidden by aggregate benchmark scores. · about 36 minutes to read

How Mova uses it

For Mova, the small transparent language system written in Rust, HateCheck offers a useful pattern for evaluation. The concrete application would be a collection of readable, behaviour-specific tests that can be run whenever a relevant part of the system changes. Each case would identify the linguistic distinction being tested, the expected output and the reason that output follows. This is a possible use of the paper’s method; it does not establish that Mova already implements hate speech detection or includes HateCheck.

The most useful starting point would be the separation between recognising a word and interpreting its use. A transparent system could expose which components contributed to a decision about an expression: a group reference, an abusive predicate, a negation, a quotation or a statement rejecting the quoted content. HateCheck would then supply externally visible tests of whether those components work together appropriately. Internal readability would help investigation, while the expected behaviour would still be checked at the system’s output.

Negation provides a concrete prospective example. A Mova component that marks a negative expression would need a separate way to determine whether the writer asserts that expression or denies it. HateCheck’s contrasting negation tests show why a general flag for the presence of a negative word is insufficient. The same principle would apply to a component handling quoted material: detecting an abusive phrase inside a sentence would need to remain distinct from deciding that the sentence endorses it.

Matched group substitutions would also suit a transparent evaluation process. The suite holds a sentence construction steady while changing the protected-group identifier. Mova could use that pattern to investigate whether its treatment of a construction depends on the identity term occupying a slot. If an unexpected difference appeared, the investigation could trace the relevant lexical entries or rules. Such a comparison would provide evidence about the tested substitutions, without supporting a claim of fairness across all groups or situations.

A further possible use concerns regression testing. Once a linguistic distinction is handled correctly, its cases could remain in an evaluation suite so that later changes expose any loss of that behaviour. HateCheck’s organisation would make the result interpretable: a change might affect pronoun reference, word-boundary variation or rejection of hate rather than merely lower an overall score. The paper supports this style of functional assessment, although it does not demonstrate a Rust implementation or evaluate Mova.

The main caution is the same as for the systems studied by the authors. Transparent mechanisms can still have incomplete coverage, and a collection of successful examples cannot establish comprehensive language understanding. For Mova, the strongest adoption would therefore combine explicit behavioural tests with honest scope statements and separate evaluation on naturally occurring language.

The problem and its context

Why a good benchmark score can conceal poor behaviour

Hate speech detection is a form of text classification: a system receives text and assigns a category. In this paper, the categories are hateful and non-hateful. Such decisions can support moderation and research into online hate, so errors affect both practical intervention and scientific measurement.

The usual evaluation procedure divides an annotated dataset into training material and held-out material. The system learns from the training portion, and its predictions on the held-out portion are summarised using measures such as accuracy or F1. This answers a useful question about performance on that test distribution. It gives much less information about which linguistic distinctions the system handles.

The problem becomes more serious when training and test material share systematic biases. A classifier can exploit a regularity that works throughout the dataset without learning a distinction that will survive elsewhere. If particular words, topics or authors are strongly associated with a label, those associations may support apparently good test performance. Their usefulness can disappear when the surrounding language or population changes.

The paper describes several sources of this difficulty in hate speech research. Existing datasets differ in where their data originate, how examples are sampled and how labels are assigned. Earlier work also documents effects associated with annotators, topics and authors. The authors connect these concerns to Are We Modeling the Task or the Annotator?, which they cite in discussing how dataset regularities can reward simple rules.

This is a measurement problem as well as a learning problem. A benchmark may fail to include enough examples of a known difficulty, or its overall score may conceal them. Even when a test set contains counter speech, that category may contribute too little to the aggregate to make a substantial weakness obvious. Functional testing changes the unit of attention from the entire sample to a specified behaviour.

What earlier hate speech research had established

The authors place HateCheck within a field already aware that detection remained difficult. They cite A Survey on Hate Speech Detection using Natural Language Processing and A Survey on Automatic Detection of Hate Speech in Text as reviews of the task and its unresolved weaknesses. The motivation is therefore not that earlier work overlooked errors altogether. It is that common evaluation practice offered limited structure for diagnosing them.

Several often used resources came from social media. The paper identifies Hateful Symbols or Hateful People? alongside the Davidson and Founta datasets as prominent examples in the evaluation tradition it examines. A small collection of established datasets made comparisons convenient, but also concentrated attention on the distributions represented by those resources.

Earlier research had already shown excessive sensitivity to identity terms. Reducing Gender Bias in Abusive Language Detection is among the works cited for this concern. The authors also discuss annotation bias, including research represented by Are You a Racist or Am I Seeing Things? and The Risk of Racial Bias in Hate Speech Detection. These references explain why a conventional test score cannot automatically be read as a neutral measure of general capability.

Error analysis offered another source of candidate weaknesses. The paper draws on Challenges for Toxic Comment Classification when identifying problems such as phrasing and spelling variation. The contribution of HateCheck is to turn such observations into a structured suite whose categories, examples and expected outputs are specified in advance.

Defining the task before diagnosing it

The authors define hate speech around abuse aimed at a protected group, or at someone because of membership in that group. Their protected characteristics encompass race, age, religion, disability, sex, pregnancy, gender identity, sexual orientation, familial status, and national or ethnic origins. This definition draws on prior research and broadly follows the legal protections discussed in the paper.

That boundary matters throughout the evaluation. An expression may be rude, threatening or offensive without qualifying as hate speech under this definition. Abuse of an object does not target a protected group. An insult directed at an individual may also fall outside the category if it has no connection to protected-group membership.

Accordingly, non-hateful is a task label, not a declaration that the content is acceptable. This distinction explains why HateCheck includes abusive examples among its negative cases. Those examples test whether a detector follows the chosen category boundary instead of treating all unpleasant language as hate.

The paper draws on Understanding Abuse and Predicting the Type and Target of Offensive Posts in Social Media in discussing distinctions among kinds and targets of abusive content. More detailed label schemes can still be compatible with HateCheck when their categories can be mapped to its binary task.

From general behavioural testing to a domain-specific suite

The immediate methodological influence is CheckList. It shows how software-style behavioural testing can be applied across natural language processing tasks. HateCheck develops this approach for a particular domain, giving substantial attention to which behaviours deserve testing and how their labels should be validated.

The authors also describe diagnostic resources in other areas, including natural language inference, translation and language modelling. What BERT Is Not is one example of using targeted linguistic tests to investigate capabilities that broad evaluation may obscure. HateCheck brings the same diagnostic ambition to hate speech detection.

There were also narrower precedents within the domain. Palmer and colleagues assembled evaluation data for complex offensive language, including reclaimed slurs and linguistic distancing. Dixon and colleagues used templates to examine toxic and non-toxic statements involving group identifiers. According to the HateCheck authors, those approaches either covered fewer behaviours or lacked the same combination of targeted construction and label validation.

The paper’s distinctive position is therefore a combination of breadth, contrast and validation. It defines a substantial inventory of behaviours, constructs examples specifically for them, and checks whether independent annotators support the intended decisions.

The method, step by step

The method starts with a practical question: what should an English hate speech detector be able to distinguish? The authors gather candidate answers, narrow them to a tractable scope, write targeted examples and validate their labels. Only after building this resource do they use it to inspect particular classifiers.

Building and applying HateCheck

The steps in order.

Building and applying HateCheckStep 1: Gather research findings and practitioner concerns1. Gather research findings and practitioner concernsStep 2: Select behaviours with clear expected labels2. Select behaviours with clear expected labelsStep 3: Separate hateful expressions from harmless contrasts3. Separate hateful expressions from harmless contrastsStep 4: Write varied cases and matched templates4. Write varied cases and matched templatesStep 5: Validate labels with trained annotators5. Validate labels with trained annotatorsStep 6: Remove ambiguous template families6. Remove ambiguous template familiesStep 7: Evaluate behaviours and protected-group substitutions7. Evaluate behaviours and protected-group substitutions

Gather candidate behaviours

The research review supplies both established categories of hate and previously observed errors. Taxonomies contribute distinctions such as threats, derogation and dehumanisation. Error analyses and commentaries contribute likely failure points, including negation, unusual spelling and confusion around offensive vocabulary.

The interviews add experience from people whose work concerns online hate directly. The authors spoke with 21 employees representing 16 NGOs. Their organisations worked in monitoring, reporting, legal advocacy, victim support or representation of frequently targeted communities. Many interviewees had extensive moderation experience, and most had personally experienced online hate.

The interview format allowed concerns to emerge before narrowing discussion to detector behaviour. Participants were asked about challenges in tackling online hate, errors they had seen in moderation systems and the capabilities an ideal system would offer. Suggestions were not constrained by immediate technical feasibility.

The authors analysed recurring themes using a grounded-theory approach, meaning that categories were developed from patterns in the responses. They then translated those themes into observable behaviours. Reports that systems penalised people quoting hate in order to challenge it, for example, motivated counter-speech tests.

The result was an initial inventory of 59 candidate functionalities. A functionality here means an expected relationship between an input type and its correct output. It does not mean a particular internal component. A detector demonstrates the tested behaviour by classifying the associated cases appropriately, whatever mechanism produces its answer.

Restrict the scope to defensible tests

The authors apply practical boundaries before writing the final suite. Each example must be a self-contained English text. Behaviours requiring an image, another language or conversational and social information beyond the document are excluded.

This restriction makes the expected decision easier to specify, but it also removes important parts of the real task. A system may need a conversation to determine what a pronoun refers to, or social knowledge to interpret an expression. HateCheck tests only those cases where the necessary information fits within its chosen unit.

A further requirement concerns agreement about the label. The authors retain behaviours for which they can create examples with clear expected decisions. They exclude humour because deciding whether a humorous statement is hateful can depend strongly on contested normative judgments.

This is not a claim that humour is unimportant. It is a choice about what a diagnostic failure should mean. If a case admits reasonable disagreement about its category, an incorrect prediction becomes harder to interpret. HateCheck favours clarity of diagnosis over exhaustive coverage of socially difficult language.

Organise the functional inventory

The final inventory has 29 functionalities grouped into 11 classes. Each functionality has its own collection of cases and a shared expected binary label. Related tests belong together, but differences in expected behaviour remain visible.

Derogation includes explicit hostility, strongly negative descriptions, dehumanisation and more implicit disparagement. Threatening language is divided into direct threats and statements presenting harm as something that should happen. The distinction captures different ways a harmful position can be expressed without requiring identical surface forms.

Slur usage receives separate treatment for hateful use, unrelated meanings and reclamation. This is important because recognising a string as a possible slur does not determine its role in a sentence. A word can have a non-abusive meaning, or a community can use an expression differently from an outside attacker.

Profanity is likewise split between hateful and non-hateful uses. This creates a useful control: a system may encounter the same broad category of offensive vocabulary while needing different answers. The test asks whether it recognises how the language functions in the whole statement.

Pronoun-reference tests place the relevant group mention and abusive expression in different clauses or sentences. Their purpose is to check whether the detector connects the abuse to its target even when the target is not repeated beside the hostile predicate. This relates to coreference resolution, the interpretation of expressions that refer to the same entity.

Negation is tested in opposing directions. A statement can express hate by denying something positive about a group. A different statement can reject hate by negating a harmful proposition. Merely noticing a negation marker is therefore insufficient; its relationship to the proposition matters.

Other tests vary the grammatical presentation. Hate can appear as a question or as a personal opinion without losing its hateful content. Conversely, an ordinary or supportive statement can mention a protected group without becoming an attack.

Counter speech receives separate tests for quoted hate and direct reference to hate. The writer’s stance towards the harmful content is central in both. The sentence contains or evokes hate while opposing it.

The final classes include abusive content aimed outside the protected-group definition and hateful content with altered spelling. Together, these categories test both excessive sensitivity and failures to recognise an intended expression after its written form changes.

Construct close contrasts

The non-hateful tests are built through small changes to hateful cases. The goal is to preserve enough overlap that a vocabulary-based shortcut becomes unreliable. A minimal change can replace hostility with support, reject a harmful proposition or place an abusive phrase inside a condemnation.

The comparison is useful because the correct decision changes for a reason that can be identified. If the system gives the same answer to both members of a contrast, the researcher has a more focused hypothesis about the error than an isolated mistake would provide.

The construction is not limited to changing a single word. Reclamation, quotation and target substitution can involve a different kind of contextual adjustment. The shared principle is to keep the contrast close enough that success requires attention to the relevant linguistic distinction.

At the same time, the authors try to separate the hateful behaviours from one another. A slur case is designed to test slur usage without adding profanity as an additional cue. This makes the categories easier to interpret: a failure should point towards the behaviour being exercised rather than an uncontrolled mixture.

Such isolation helps diagnosis but reduces realism in another respect. Naturally occurring hate can combine several devices. The authors acknowledge this tradeoff and leave compound cases as an extension.

Generate varied examples and balanced substitutions

The authors write short texts using varied wording and sentence structures within each functionality. This matters because a diagnostic category built from nearly identical examples could be unduly sensitive to the peculiarities of a single phrasing.

Templates allow examples to be expanded systematically. A slot can hold a protected-group identifier or a slur. Substituting identifiers into the same surrounding sentence provides matched cases whose relevant difference is the group mentioned.

The groups covered by HateCheck are immigrants, Muslims, disabled people, black people, gay people, trans people and women. These groups represent the characteristics selected for the suite, rather than the full set of protected categories in the broader definition. Template generation gives each covered group equal representation in the relevant constructions.

The initial collection contains 3,901 cases. Of these, 3,495 are generated through 460 templates. The remaining 406 are written individually because they do not require the replaceable identifiers used by the templates.

Before filtering, the average case length is 8.87 words, with a standard deviation of 3.33. Measured in characters, the average is 48.26 and the standard deviation is 16.88. These statistics describe the generated collection, whose examples are deliberately short.

The authors also attach secondary labels. A case can identify the protected group it concerns. For hateful examples, another label records whether the target is the group collectively or an individual associated with it. These annotations enable more detailed inspection than the main binary decision alone.

Choose slurs and examine reclaimed uses

The slur selection procedure draws on a crowdsourced lexicon. For each covered group, the authors generally select often logged terms, using the top three unless the next term is much less often reported. Immigration status requires a separate choice because the source does not provide that target category.

This procedure gives a documented basis for lexical coverage. It does not make the selection exhaustive or representative of every community. The specific terms available in the suite remain part of its scope.

Reclaimed-use cases receive an additional preliminary check. Before the formal annotation stage, the authors ask self-identifying members of relevant communities in their personal networks whether the examples plausibly represent reclamation. They report that all of those cases passed this check.

That preliminary review addresses a problem that ordinary grammatical well-formedness would miss. A sentence can be understandable while still being an implausible example of community usage. The formal annotation stage then checks the primary hateful or non-hateful label.

Validate the intended labels

The paper’s linguistic annotation process uses ten trained annotators. Each generated case receives five independent judgments. Annotators assign the binary category and can flag an example they regard as unrealistic or nonsensical.

Training includes an onboarding session, a practice set of 100 cases and individual feedback. The annotators already have experience with at least one other hate speech annotation task. During the main work, the authors remain available through a messaging platform and follow guidance concerning annotator well-being.

Fleiss’ Kappa is used to measure agreement among annotators, producing 0.93. For 3,879 cases, corresponding to 99.4% of the generated collection, at least four annotators agree with the authors’ intended label. The remaining 22 fail that threshold.

The authors remove those uncertain cases and all examples derived from their templates. This is an important part of the method. If only a disputed group substitution were dropped, a template might remain for some groups and disappear for others, changing the balance of the later comparison.

The complete filtering step removes 173 cases. The released suite therefore contains 3,728 cases. There are 2,563 hateful examples, or 68.8%, and 1,165 non-hateful examples, or 31.2%.

Unrealism flags do not lead to further removal. Only 23 examples receive such a flag, and no example is flagged by more than one annotator. This supports the authors’ quality assessment while remaining a judgment by the recruited annotation group.

The paper names the public resources hatecheck-data for cases and annotations, and hatecheck-experiments for experimental code. Annotation outcomes are available even for generated cases excluded from the final suite. This preserves information about the construction process rather than presenting only its accepted endpoint.

Prepare the evaluated classifiers

The suite itself does not train a detector. To demonstrate its usefulness, the authors evaluate classifiers trained through fine-tuning and commercial services whose internal details are not fully available.

The research classifiers start from uncased BERT-base, implemented through Transformers. The architecture has 12 layers, a hidden dimension of 768, 12 attention heads and 110 million parameters. A linear classification layer with softmax output produces the sequence-level decision.

The Davidson training collection contains 24,783 tweets. Its original categories distinguish hateful, offensive and neither. The authors retain hateful as the positive category and combine the others as non-hateful, producing a binary task aligned with HateCheck.

The Founta collection contains 99,996 tweets. It originally distinguishes hateful, abusive, spam and normal content. Again, the non-hateful categories are combined. The resulting hateful shares are 5.8% for Davidson and 5.0% for Founta.

The classifiers are called B-D and B-F according to their fine-tuning data. Both use stratified 80/10/10 train, development and test splits. Stratification preserves the class proportions across these portions.

Preprocessing lowercases text, removes tab and newline characters, replaces URLs, user mentions and emojis with category tokens, and segments hashtags. These steps describe the experimental pipeline; they are not requirements imposed by HateCheck on every system evaluated with it.

Training uses class-weighted cross-entropy to give greater importance to the relatively scarce hateful examples. The selected configuration trains for three epochs with batch size 16. AdamW, associated with Decoupled Weight Decay Regularization, uses learning rate 5e-5 and weight decay 0.01. Dropout is set to 10%.

The authors choose the epoch count, learning rate and batch size by exhaustive grid search. Each classifier has 18 training and evaluation runs, and the selected configuration minimises development-set loss. The paper gives these settings in prose rather than presenting a new mathematical objective or displayed derivation.

Convert service outputs into the same task

Perspective supplies scores for several attributes. The authors use identity attack because it closely matches their protected-group definition. A cutoff of 50% converts its score into a hateful or non-hateful decision. The service was tested in December 2020.

For SiftNinja, the selected attribute is hate speech. Its severity categories are mapped to hateful except for the category indicating no hate. That evaluation was conducted in January 2021.

These choices make a common binary comparison possible, but they remain operational decisions. The experiments evaluate these particular attributes and mappings at those times. They do not cover every attribute offered by the services or every possible decision threshold.

Experiments and results

What the measurements mean

HateCheck reports accuracy: the share of examples receiving the expected category. The same measure can be calculated over the whole suite, over hateful or non-hateful cases, within a functionality, or across a selected group of matched templates.

The paper uses 50% as a random-choice reference for its binary decisions. This helps highlight very weak functional results, but it does not make the full dataset balanced. The suite contains more hateful than non-hateful examples, and individual functionalities have a single expected label.

The held-out tweet results use F1 rather than HateCheck accuracy. B-D achieves micro F1 of 91.5 and macro F1 of 70.8 on its Davidson test split. B-F achieves micro F1 of 92.9 and macro F1 of 70.3 on its Founta test split. These describe the corresponding held-out datasets, not the synthetic diagnostic suite.

Micro and macro F1 aggregate differently across categories. The distinction matters in these heavily imbalanced binary datasets, but the paper’s main diagnostic argument does not depend on choosing a single preferred aggregate. HateCheck asks additional questions that neither aggregate answers by itself.

Overall performance conceals different error profiles

Perspective has the highest total accuracy on HateCheck. B-D follows, then B-F, while SiftNinja has the lowest total result. The ranking is useful as an overview, but the label-specific results immediately show why it is incomplete.

Overall HateCheck accuracy across evaluated systems

Perspective leads overall, while each system requires separate behavioural inspection.

Overall HateCheck accuracy across evaluated systemsB-D: 63.2B-D63.2B-F: 60.2B-F60.2Perspective (this paper): 76.6Perspective (this paper)76.6SiftNinja: 33.2SiftNinja33.2
The numbers
System or settingaccuracy %
B-D63.2
B-F60.2
Perspective (this paper)76.6
SiftNinja33.2

On hateful cases, accuracy is 75.5% for B-D, 65.5% for B-F and 89.5% for Perspective. SiftNinja reaches 9.0% on that label. Its low total performance reflects a strong tendency toward non-hateful predictions.

The non-hateful cases reverse much of the picture. B-D obtains 36.0%, B-F obtains 48.5% and Perspective obtains 48.2%. SiftNinja reaches 86.6%. A high score on harmless material therefore does not establish a useful detector if the system also fails to recognise the hateful material.

This is a central reason to retain both sides of the suite. Testing only hateful examples could make a sensitive detector appear effective while leaving its overblocking behaviour unexamined. Testing only non-hateful examples could reward a service that rarely identifies hate at all.

Negation exposes a severe contrast failure

The negated-hate test contains non-hateful statements that reject a harmful proposition. The system needs to recognise that the writer is denying or opposing the hostile content, even though much of its vocabulary remains present.

B-D, B-F and Perspective perform particularly poorly on this functionality. Their weakness is striking because they can frequently recognise hate in other constructions. The result points toward difficulty interpreting the linguistic operation that changes the statement’s force.

HateCheck negated-hate cases, F15 accuracy

SiftNinja recognises most harmless negations, while the other systems usually flag them.

HateCheck negated-hate cases, F15 accuracyB-D: 12.8B-D12.8B-F: 12.0B-F12.0Perspective: 3.8Perspective3.8SiftNinja (this paper): 96.2SiftNinja (this paper)96.2
The numbers
System or settingaccuracy %
B-D12.8
B-F12.0
Perspective3.8
SiftNinja (this paper)96.2

SiftNinja’s success here must be read alongside its general preference for the non-hateful label. This test alone cannot show that it has a better general treatment of negation. The suite’s complementary hateful tests are needed to distinguish appropriate interpretation from a broad decision bias.

The opposing negation functionality uses denial of a positive statement to express hate. B-D reaches 85.0%, B-F reaches 60.7% and Perspective reaches 96.4% there. The contrast demonstrates why negation should not be treated as a single undifferentiated capability.

Counter speech remains vulnerable to the language it challenges

Counter speech opposes hate while quoting or referring to it. These cases matter because the harmful phrase is genuinely present in the input, but its communicative role differs from an endorsed attack.

For the functionality involving quoted hate, the systems again diverge sharply. Perspective’s strong overall performance does not translate into recognising most of these non-hateful cases.

HateCheck quoted counter speech, F20 accuracy

The overall leader still misclassifies most quoted denunciations of hate.

HateCheck quoted counter speech, F20 accuracyB-D: 26.6B-D26.6B-F: 32.9B-F32.9Perspective: 15.6Perspective15.6SiftNinja (this paper): 79.8SiftNinja (this paper)79.8
The numbers
System or settingaccuracy %
B-D26.6
B-F32.9
Perspective15.6
SiftNinja (this paper)79.8

The separate test for direct references to hate produces the same broad concern. B-D records 29.1%, B-F records 29.8%, Perspective records 18.4% and SiftNinja records 79.4%.

These results support the authors’ claim that several systems fail to give enough weight to language that reframes a hateful expression. They do not reveal precisely which internal process fails. A detector could mishandle quotation, stance, sentence composition or a learned association between particular terms and the hateful label.

The practical implication follows from the test construction. A person condemning prejudice can receive the same classification as the expression being condemned. The authors regard this as a serious weakness because it can undermine efforts to respond to hate.

Slurs and profanity reveal different kinds of lexical sensitivity

Reclaimed slurs are another major difficulty. On that non-hateful functionality, B-D reaches 39.5%, B-F reaches 33.3%, Perspective reaches 28.4% and SiftNinja reaches 18.5%. Every system performs poorly in spite of having very different overall tendencies.

The comparison with hateful slur usage is informative. Accuracy on hateful slur cases is 60.4% for B-D, 41.0% for B-F, 66.0% for Perspective and 50.0% for SiftNinja. The systems’ response to slurs therefore depends on their vocabulary associations in ways that do not reliably capture reclamation.

Profanity provides a useful qualification. B-D scores 82.9% on hateful profanity and 99.0% on non-hateful profanity. B-F obtains 72.9% and 100.0%, respectively. Perspective obtains 100.0% and 98.0%.

Those results prevent an overly broad explanation that the systems cannot distinguish any offensive word from hate. For these profanity cases, several systems handle both sides well. Their problems with slurs are more specific than a universal failure on coarse language.

Non-hateful slur homonyms also cause errors. Accuracy is 66.7% for B-D, 70.0% for B-F, 63.3% for Perspective and 33.3% for SiftNinja. This category tests a different ambiguity from reclamation: a written form can have an unrelated use instead of a socially reclaimed one.

Harmless identity mentions and altered spelling

Ordinary identity mentions reveal substantial differences between the BERT classifiers. For neutral statements about protected groups, B-D reaches 20.6% and B-F reaches 58.7%. On positive statements, they obtain 21.7% and 52.9%.

Perspective reaches 84.1% on the neutral statements but 54.0% on the positive statements. SiftNinja records 100.0% on both. Again, these results belong beside its poor recognition of hateful cases.

Spelling variation tests failures in the opposite direction: missing hate because its written form changes. B-D and B-F struggle especially when spaces are inserted between characters, obtaining 43.9% and 37.6%. With leet-style substitutions, their accuracies are 48.0% and 43.9%.

Perspective performs better on those functionalities, reaching 74.0% for inserted spaces and 68.2% for leet spelling. The advantage is meaningful within the tested constructions, while still leaving clear room for errors.

The other spelling categories include neighbouring-character swaps, omitted characters and missing word boundaries. Their separate treatment lets a researcher distinguish broad sensitivity to spelling disruption from a problem concentrated in one alteration.

Equivalence across protected-group substitutions

For target-group analysis, the authors use cases generated from identity templates. Each group has 421 cases in this comparison. The surrounding constructions are matched, allowing the group identifier to be varied without changing the rest of the sentence.

B-D accuracy is 34.9% for women and 73.9% for gay people. Its results for trans people, black people, disabled people, Muslims and immigrants are 69.1%, 69.8%, 71.0%, 72.2% and 70.5%, respectively.

B-F also varies substantially. It records 52.3% for women and 37.1% for disabled people, compared with 74.3% for gay people. Its remaining reported group results are 69.4% for trans people, 72.2% for black people, 73.6% for Muslims and 58.9% for immigrants.

Perspective is much more consistent across these matched substitutions, with values between 79.6% and 80.8%. SiftNinja is also comparatively consistent, but at values between 23.0% and 27.6%. Similarity across groups and high overall correctness are therefore separate properties.

These findings connect the suite to bias, fairness and safety. The matched cases expose unequal treatment under controlled wording. They do not establish every form of fairness relevant to deployment, but they identify a concrete difference that a broad aggregate would conceal.

What the ablations show

The paper does not present a conventional ablation study that removes components from a proposed architecture; it offers controlled behavioural contrasts, subgroup analyses and comparisons between differently trained classifiers.

Changing the data while retaining the architecture

B-D and B-F share the BERT-base architecture and the same general training procedure. Their fine-tuning datasets differ. Differences in functional performance therefore show that architecture alone does not determine the observed error profile.

The neutral and positive identity tests are a particularly clear example. B-F handles these non-hateful constructions more accurately than B-D, even though B-D has higher overall HateCheck accuracy. The difference makes it difficult to rank training choices using only a single total.

Their group-specific weaknesses also differ. Both show problems on cases concerning women, while B-F has an especially low result for disabled people. This supports the authors’ emphasis on training-data composition as an important influence on behaviour.

The comparison does not identify a particular offending subset of either dataset. Sampling, label composition and linguistic content can all differ together. The authors therefore describe targeted training investigations as future work rather than claiming that HateCheck itself isolates the exact origin of each failure.

Holding much of the wording steady

Minimal contrasts give the suite its closest equivalent to a controlled intervention. The researcher changes the feature that should alter the decision while retaining much of the language likely to attract a shortcut.

The negation results illustrate the value of this design. Good recognition of a harmful expression is insufficient if the system cannot recognise its rejection. The contrast narrows the diagnostic question from general hate detection to whether the surrounding construction changes the interpretation appropriately.

Counter speech tests the same principle through stance toward quoted or referenced material. The system must assess what the writer does with the hostile expression. The comparison is stronger than merely observing mistakes on a miscellaneous collection of difficult sentences because the intended semantic change is built into the construction.

These contrasts remain local tests. They do not show that every sentence containing a negation or quotation will receive the same treatment. Their contribution is to establish particular failures under clear conditions.

Looking inside a weak functionality

The reclaimed-slur analysis divides a poorly performing category by the term used. This reveals that the category average conceals sharply different lexical responses.

B-D recognises 89.5% of the reclaimed cases involving the term represented as ngga, but it fails on every reclaimed case involving the terms represented as fg, fggot and qeer. B-F instead reaches 100.0% on the qeer cases while failing on the ngga cases.

Perspective also performs unevenly, reaching 80.0% on qeer and 73.3% on btch, while recording 0.0% for the other reclaimed terms in that analysis. SiftNinja recognises the b*tch cases at 100.0% and records 0.0% for the remaining terms.

This is more specific evidence than a general statement about reclamation. A system may have learned a favourable association for one term without representing the broader phenomenon reliably. It also explains why adding a few successful examples would not settle the question of capability.

Substituting identities under a common construction

The protected-group comparison controls sentence form through shared templates. It therefore offers a more focused assessment than comparing unrelated collections of text about different communities.

If a classifier gives different answers when only the group identifier changes, the difference cannot be attributed to a different distribution of sentence constructions within that matched comparison. This makes the result useful for investigating unintended sensitivity to identity vocabulary.

The analysis still depends on the selected templates and identifiers. It cannot cover every expression used by or about a community. Its strength lies in experimental control, while its limitation lies in linguistic and social coverage.

Checking that the research baselines are credible

The appendix evaluates additional unweighted classifiers using the datasets’ original multiclass categories. This addresses the concern that the research systems might simply be weak implementations.

For Davidson data, the authors’ multiclass BERT classifier reaches weighted-average F1 of 90.7 and micro F1 of 91.1. The comparisons discussed in the paper include weighted-average F1 of 91 for another BERT-base classifier and 92 for a BERT-base and CNN combination.

For Founta data, the authors report micro F1 of 81.7, alongside a cited DeepHate result of 79.1. These comparisons support the claim that the chosen architecture and implementation can perform competitively under established evaluation conditions.

They do not make the multiclass appendix scores interchangeable with the binary HateCheck scores. The label structures, training weights and evaluation data differ. The useful conclusion is narrower: the diagnostic failures cannot be dismissed merely because the authors selected an obviously ineffective baseline.

Limitations

Author-stated limit: passing does not prove general competence

The authors emphasise that HateCheck is better at establishing weaknesses than certifying broad strengths. A clear failure demonstrates that the system mishandles a tested case. Success shows that the particular weakness was not observed in those examples.

This is the paper’s account of negative predictive power. The suite can challenge an expansive claim of competence, but its finite coverage cannot validate every possible use of that claim. A detector that passes the reclaimed-slur cases may still fail on other reclaimed expressions or unfamiliar constructions.

The authors accordingly recommend using HateCheck alongside held-out evaluation on real-world material. The methods answer different questions. Naturally occurring samples provide evidence about performance under a sampled distribution; constructed tests provide focused evidence about selected behaviours.

This distinction also limits the interpretation of rankings. Perspective’s leading overall score does not establish that it is the best choice for every moderation setting. The severe counter-speech and negation errors are relevant whenever those cases matter to an application.

Author-stated limit: the input scope is narrow

Every case is an English text assessed independently. The suite does not test other languages, non-textual material or information outside the document. These are explicit scope choices rather than accidental omissions.

Conversational context can change an interpretation. Social context can affect whether a term is reclaimed or hostile. Images and other modalities can contribute meaning that the text alone does not carry. HateCheck does not establish performance under those conditions.

The English restriction also reflects the expertise of the authors and annotators. Translation would not automatically preserve the suite’s linguistic contrasts, slur meanings or social assumptions. The authors identify extension to other languages as future research.

Author-stated limit: isolated behaviours omit combinations

The suite deliberately minimises overlap among many functionalities. This makes failures easier to diagnose, but real inputs can combine slurs, profanity, threats, pronoun references and spelling variation.

Passing separate tests does not demonstrate successful composition. A system might handle a quoted insult and a negated sentence individually, then fail when both appear together. The authors propose more complex compound statements as an extension.

This limitation follows directly from the method’s strength. Isolation supports interpretation, while combinations support broader coverage. An expanded evaluation would need to preserve clarity about which distinctions a compound example exercises.

Author-stated limit: protected groups and vocabulary are incomplete

HateCheck covers selected protected groups and selected slurs. It does not represent the full protected-category definition or every term used against those groups.

The authors specifically identify intersectional characteristics as an important extension. Abuse can target a combination of identities, and separate substitutions for each identity need not capture that combination. The interview evidence motivates this concern, but the suite does not resolve it.

Community-specific and platform-specific language is another omission. General constructions make comparisons easier, yet may miss expressions whose significance is concentrated in a particular setting. The authors also mention group-specific hate, including misogynistic tropes, as an area for further testing.

Author-stated limit: the suite is static

A fixed resource cannot test adaptation to language change. New expressions, altered spellings and shifting usages can create failures outside its inventory.

The authors point toward dynamic adversarial benchmarks as a way to address this issue. Such resources can add examples over time rather than treating a completed test collection as a permanent account of the task.

Static evaluation remains useful for reproducibility and regression checks. Its limit is that reproducibility of a fixed comparison does not guarantee continuing relevance to changing language.

Author-stated limit: output tests do not identify the internal cause

HateCheck observes inputs and decisions. It can show that a detector fails to distinguish a harmful expression from its rejection, but it cannot inspect the full reasoning or representation responsible.

The authors discuss possible causes in training data and architecture. Their comparison between B-D and B-F makes training composition important, but it does not rule out representational limitations or interactions between the two.

They propose investigating these possibilities through targeted training interventions. Additional examples resembling failed functionalities might help, but the paper does not demonstrate such a repair. It also warns that augmentation could introduce new biases.

Careful-reader limit: the suite is not a prevalence estimate

The proportions of hateful and non-hateful cases follow the construction process. They are not estimates of how frequently these categories occur on a platform.

Likewise, a functionality’s contribution to the total score reflects the number of cases created for it. An application with different language, users or moderation needs may attach different practical importance to the same error pattern.

Overall HateCheck accuracy should therefore be interpreted as performance on this diagnostic collection. It cannot directly supply a platform-wide error rate or a moderation workload estimate.

Careful-reader limit: agreement is conditional on the annotation setup

The high agreement score is strong evidence that the selected cases support clear decisions under the task definition and annotation process. It does not show that every community would draw every boundary in the same way.

The recruited annotators have documented backgrounds and experience. Most identify as White, and their language expertise and prior annotation work shape the conditions under which agreement was obtained. The data statement makes these conditions visible.

The suite also filters towards agreement by excluding disputed constructions. That is appropriate for its diagnostic goal, but it means the final resource concentrates on clearer cases. Performance there cannot settle disputes about inherently subjective or context-sensitive content.

Careful-reader limit: the commercial comparison is conditional

Perspective and SiftNinja are evaluated through specific attributes and category mappings. Perspective also uses a chosen score threshold. Alternative settings could change the observed balance between missed hate and mistaken flags.

The service results are tied to the reported evaluation periods. The paper does not establish how later versions behave, nor does it compare all operating points.

Finally, the experiments assess classification outputs rather than a complete moderation process. They do not measure appeals, human review or downstream user outcomes. The authors explain why the observed errors are consequential, but the study does not quantify their effects in a deployed workflow.

What came after

HateCheck’s continuing relevance lies in its treatment of evaluation as a collection of behavioural questions. Later papers cite it across hate detection, safety assessment, red teaming and benchmark design. The clearest connections concern shortcut learning, overreaction to harmless language and the need to distinguish clear diagnostic cases from genuinely subjective judgments. A citation establishes engagement with the earlier work; it does not on its own establish that a later project reused the complete suite or adopted its construction procedure.

Following the problem of lexical shortcuts

ToxiGen develops the problem from the perspective of adversarial and implicit hate detection. Its description identifies a shortcut closely related to HateCheck’s identity tests: a classifier may treat a minority-group mention as evidence of toxicity. This can produce mistaken flags on harmless statements while leaving subtle hate undetected when familiar offensive cues are absent.

The connection is substantive. HateCheck separates ordinary group mentions from attacks and shows that several systems fail that distinction. ToxiGen’s stated concern extends the same diagnostic question to the relationship between harmless identity language and implicit hate. The later description supports that shared problem, without establishing a numerical comparison with HateCheck or proving that one resource resolves the other’s weaknesses.

The title of HatePrototypes places implicit and explicit hate within an effort toward interpretable, transferable representations. That makes it part of the broader research area in which HateCheck’s distinction between surface cues and intended content matters. The citation alone does not establish how its representations were tested or whether they repaired the specific failures observed by the HateCheck authors.

Extending safety evaluation toward excessive caution

XSTest is explicitly framed as a suite for identifying exaggerated safety behaviour. Its stated purpose makes it a close conceptual neighbour to HateCheck’s harmless contrasts.

The shared evaluation question is whether a system responds appropriately when language resembles a risky category but does not belong to it. HateCheck asks this through non-hateful identity mentions, rejection of hate and reclamation. XSTest’s title signals a later focus on excessive safety responses. The available account does not justify claiming an identical test inventory or construction method, but it does show the continued importance of evaluating inappropriate intervention alongside failures to intervene.

Introducing v0.5 of the AI Safety Benchmark from MLCommons places the citation in the wider setting of safety benchmarking. That connection is relevant to HateCheck’s insistence that an aggregate should be decomposed into meaningful behaviours. The citation record does not establish which particular HateCheck tests, if any, appear in that benchmark.

Taking subjectivity seriously

Two Contrasting Data Annotation Paradigms addresses a tension that HateCheck deliberately manages through selection. Its description emphasises that hate speech, toxicity and stance labels can admit legitimate disagreement, and that dataset construction often recognises subjectivity without handling it systematically.

HateCheck chooses cases with strong agreement so that a failed test has a clear interpretation. The later work draws attention to the broader class of tasks where a single correct label cannot simply be assumed. These positions are compatible when their purposes remain explicit: a clear-case diagnostic suite can be useful without representing the full range of contested judgments.

This connection also sharpens how HateCheck should be extended. Adding more difficult examples is not automatically an improvement if their ambiguity makes the expected output unclear. An extension needs a deliberate account of whether it seeks consensus, represents disagreement or tests adherence to a particular policy.

Keeping evaluation responsive

Dynabench and Learning from the Worst belong to the dynamic evaluation direction that HateCheck itself discusses. The authors identify changing language as a weakness of a fixed suite and point toward adversarially evolving resources as a possible response.

These works also appear among the papers citing HateCheck. Their relationship is therefore part of an overlapping discussion, instead of a simple sequence in which a completed method is passed forward unchanged. Fixed diagnostic categories support stable comparisons; dynamically generated data can seek failures beyond a fixed inventory.

The later titles Red Teaming Language Models with Language Models and Red Teaming Language Models to Reduce Harms place the citation within a broader search for harmful behaviour. Their stated subject connects to HateCheck’s emphasis on deliberately seeking weaknesses. The citation information does not establish that either work adopts its template method, label-validation threshold or protected-group coverage.

Making errors easier to inspect

OLEA concerns tools and infrastructure for offensive-language error analysis. Its stated focus is closely aligned with the practical use of HateCheck: turning mistakes into organised evidence that a researcher can inspect.

The important continuity is the unit of analysis. A total score can identify that performance changed; a structured error account can help explain where it changed. HateCheck supplies such structure through functionalities, contrasts and secondary labels. The later title supports a continuing interest in infrastructure for that work, without establishing a particular implementation relationship.

Across these directions, the durable contribution is a disciplined question about evidence. Recognising a harmful phrase is only part of the task. Evaluation must also ask whether a system tracks who is targeted, what stance the writer takes, and which linguistic change should alter the decision. HateCheck makes those questions concrete while keeping its conclusions tied to the cases it actually tests.

 Institutions

 Fields, topics and concepts

Appears in

Mentioned in articles aboutLondon

Cite

Cite as Paul Röttger, Bertie Vidgen, Dong Nguyen, Zeerak Waseem, Helen Margetts and Janet Pierrehumbert. 2021. HateCheck: Functional Tests for Hate Speech Detection Models. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2021.acl-long.4

@inproceedings{rottger2021hatecheck,
  title = {{HateCheck: Functional Tests for Hate Speech Detection Models}},
  author = {Paul Röttger, Bertie Vidgen, Dong Nguyen, Zeerak Waseem, Helen Margetts and Janet Pierrehumbert},
  booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.4},
  url = {https://doi.org/10.18653/v1/2021.acl-long.4}
}

References

71 references, 25 of them with a card of ours. Each entry links to our card when we hold the work, else to OpenAlex and Google Scholar searches for it.

  1. Betty van Aken, Julian Risch, Ralf Krestel, and Alexander Löser. 2018. Challenges for toxic comment classification: An in-depth error analysis. In Proceedings of the 2nd Workshop on Abusive Language Online (ALW2), pages 33–42, Brussels, Belgium. Association for Computational Linguistics.
  2. Lucas Dixon, John Li, Jeffrey Sorensen, Nithum Thain, and Lucy Vasserman. 2018. Measuring and mitigating unintended bias in text classification. In Proceedings of the 2018 AAAI/ACM Conference on AI, Ethics, and Society, pages 67–73. Association for Computing Machinery. OpenAlex ↗ · Scholar ↗
  3. Michele Banko, Brendon MacKeen, and Laurie Ray. 2020. A Unified Taxonomy of Harmful Content. In Proceedings of the Fourth Workshop on Online Abuse and Harms, pages 125–137. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  4. Allyson Ettinger. 2020. What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language models. Transactions of the Association for Computational Linguistics, 8:34–48.
  5. Boris Beizer. 1995. Black-box testing: techniques for functional testing of software and systems. John Wiley & Sons, Inc. OpenAlex ↗ · Scholar ↗
  6. Paula Fortuna and Sérgio Nunes. 2018. A survey on automatic detection of hate speech in text. ACM Computing Surveys (CSUR), 51(4):1–30. OpenAlex ↗ · Scholar ↗
  7. Yonatan Belinkov and Yonatan Bisk. 2018. Synthetic and natural noise both break neural machine translation. In Proceedings of the 6th International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
  8. Antigoni Maria Founta, Constantinos Djouvas, Despoina Chatzakou, Ilias Leontiadis, Jeremy Blackburn, Gianluca Stringhini, Athena Vakali, Michael Sirivianos, and Nicolas Kourtellis. 2018. Large scale crowdsourcing and characterization of Twitter abusive behavior. In Proceedings of the 12th Internatio… OpenAlex ↗ · Scholar ↗
  9. Emily M. Bender and Batya Friedman. 2018. Data statements for natural language processing: Toward mitigating system bias and enabling better science. Transactions of the Association for Computational Linguistics, 6:587–604. OpenAlex ↗ · Scholar ↗
  10. Pete Burnap and Matthew L Williams. 2015. Cyber hate speech on Twitter: An application of machine classification and statistical modeling for policy and decision making. Policy & Internet, 7(2):223–242. OpenAlex ↗ · Scholar ↗
  11. Matt Gardner, Yoav Artzi, Victoria Basmov, Jonathan Berant, Ben Bogin, Sihao Chen, Pradeep Dasigi, Perspective API built for detecting toxic comments. arXiv preprint arXiv:1702.08138. — arXiv:1702.08138 OpenAlex ↗ · Scholar ↗
  12. Dheeru Dua, Yanai Elazar, Ananth Gottumukkala, Nitish Gupta, Hannaneh Hajishirzi, Gabriel Ilharco, Daniel Khashabi, Kevin Lin, Jiangming Liu, Nelson F. Liu, Phoebe Mulcaire, Qiang Ning, Sameer Singh, Noah A. Smith, Sanjay Subramanian, Reut Tsarfaty, Eric Wallace, Ally Zhang, and Ben Zhou. 2020. Eval… — Evaluating Models' Local Decision Boundaries via Contrast Sets
  13. Pierre Isabelle, Colin Cherry, and George Foster. 2017. A challenge set approach to evaluating machine translation. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 2486–2496, Copenhagen, Denmark. Association for Computational Linguistics.
  14. ISO/IEC/IEEE 24765:2017(E). 2017. Systems and Software Engineering – Vocabulary. Standard, International Organization for Standardisation, Geneva, Switzerland. OpenAlex ↗ · Scholar ↗
  15. Sahaj Garg, Vincent Perot, Nicole Limtiaco, Ankur Taly, Ed H. Chi, and Alex Beutel. 2019. Counterfactual fairness in text classification through robustness. In Proceedings of the 2019 AAAI/ACM Conference on AI, Ethics, and Society, AIES ’19, page 219–226, New York, NY, USA. Association for Computing… OpenAlex ↗ · Scholar ↗
  16. Divyansh Kaushik, Eduard Hovy, and Zachary C. Lipton. 2020. Learning the difference that makes a difference with counterfactually-augmented data. In Proceedings of the 8th International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
  17. Mor Geva, Yoav Goldberg, and Jonathan Berant. 2019. Are we modeling the task or the annotator? An investigation of annotator bias in natural language understanding datasets. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conf… OpenAlex ↗ · Scholar ↗
  18. Brendan Kennedy, Xisen Jin, Aida Mostafazadeh Davani, Morteza Dehghani, and Xiang Ren. 2020. Contextualizing hate speech classifiers with post-hoc explanation. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 5435–5442, Online. Association for Computa…
  19. Douwe Kiela, Max Bartolo, Yixin Nie, Divyansh Kaushik, Atticus Geiger, Zhengxuan Wu, Bertie Vidgen, Grusha Prasad, Amanpreet Singh, Pratik Ringshia, et al. 2021. Dynabench: Rethinking benchmarking in nlp. arXiv preprint arXiv:2104.14337. OpenAlex ↗ · Scholar ↗
  20. Max Glockner, Vered Shwartz, and Yoav Goldberg. 2018. Breaking NLI systems with sentences that require simple lexical inferences. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 650–655, Melbourne, Australia. Association for…
  21. Jana Kurrek, Haji Mohammad Saleem, and Derek Ruths. 2020. Towards a comprehensive taxonomy and large-scale annotated corpus for online slur usage. In Proceedings of the Fourth Workshop on Online Abuse and Harms, pages 138–149, Online. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  22. Jennifer Golbeck, Zahra Ashktorab, Rashad O Banjo, Alexandra Berlinger, Siddharth Bhagwan, Cody Buntain, Paul Cheakalos, Alicia A Geller, Rajesh Kumar Gnanasekaran, Raja Rajan Gunasekaran, et al. 2017. A large labeled corpus for online harassment research. In Proceedings of the 9th ACM Conference on… OpenAlex ↗ · Scholar ↗
  23. J. Richard Landis and Gary G. Koch. 1977. The measurement of observer agreement for categorical data. Biometrics, 33(1):159. OpenAlex ↗ · Scholar ↗
  24. Hector Levesque, Ernest Davis, and Leora Morgenstern. 2012. The Winograd schema challenge. In 13th International Conference on the Principles of Knowledge Representation and Reasoning. OpenAlex ↗ · Scholar ↗
  25. Tommi Gröndahl, Luca Pajola, Mika Juuti, Mauro Conti, and N Asokan. 2018. All you need is “love”: Evading hate speech detection. In Proceedings of the 11th ACM Workshop on Artificial Intelligence and Security, pages 2–12. Association for Computing Machinery. OpenAlex ↗ · Scholar ↗
  26. Nelson F. Liu, Roy Schwartz, and Noah A. Smith. 2019. Inoculation by fine-tuning: A method for analyzing challenge datasets. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Pap…
  27. Kevin A. Hallgren. 2012. Computing inter-rater reliability for observational data: An overview and tutorial. Tutorials in Quantitative Methods for Psychology, 8(1):23–34. OpenAlex ↗ · Scholar ↗
  28. Haibo He and Edwardo A Garcia. 2009. Learning from imbalanced data. IEEE Transactions on Knowledge and Data Engineering, 21(9):1263–1284. OpenAlex ↗ · Scholar ↗
  29. Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In Proceedings of the 7th International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
  30. Hossein Hosseini, Sreeram Kannan, Baosen Zhang, and Radha Poovendran. 2017. OpenAlex ↗ · Scholar ↗
  31. Deceiving Google’s Chikashi Nobata, Joel Tetreault, Achint Thomas, Yashar Mehdad, and Yi Chang. 2016. Abusive language detection in online user content. In Proceedings of the 25th International Conference on World Wide Web, WWW ’16, page 145–153, Republic and Canton of Geneva, CHE. International Wor… OpenAlex ↗ · Scholar ↗
  32. Shervin Malmasi and Marcos Zampieri. 2018. Challenges in discriminating profanity from hate speech. Journal of Experimental & Theoretical Artificial Intelligence, 30(2):187–202. OpenAlex ↗ · Scholar ↗
  33. Rebecca Marvin and Tal Linzen. 2018. Targeted syntactic evaluation of language models. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 1192–1202, Brussels, Belgium. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  34. Alexis Palmer, Christine Carr, Melissa Robinson, and Jordan Sanders. 2020. COLD: Annotation scheme and evaluation data set for complex offensive language in English. Journal for Language Technology and Computational Linguistics, pages 1–28. OpenAlex ↗ · Scholar ↗
  35. Tom McCoy, Ellie Pavlick, and Tal Linzen. 2019. Right for the wrong reasons: Diagnosing syntactic heuristics in natural language inference. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 3428–3448, Florence, Italy. Association for Computational Ling…
  36. Ji Ho Park, Jamin Shin, and Pascale Fung. 2018. Reducing gender bias in abusive language detection. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2799–2804, Brussels, Belgium. Association for Computational Linguistics.
  37. Julia Mendelsohn, Yulia Tsvetkov, and Dan Jurafsky. 2020. A framework for the computational linguistic analysis of dehumanization. Frontiers in Artificial Intelligence, 3:55. OpenAlex ↗ · Scholar ↗
  38. Fabio Poletto, Valerio Basile, Manuela Sanguinetti, Cristina Bosco, and Viviana Patti. 2020. Resources and benchmark corpora for hate speech detection: a systematic review. Language Resources and Evaluation, pages 1–47. OpenAlex ↗ · Scholar ↗
  39. Pushkar Mishra, Helen Yannakoudakis, and Ekaterina Shutova. 2020. Tackling online abuse: A survey of automated abuse detection methods. arXiv preprint arXiv:1908.06024. — arXiv:1908.06024 OpenAlex ↗ · Scholar ↗
  40. Jing Qian, Mai ElSherief, Elizabeth Belding, and William Yang Wang. 2018. Leveraging intra-user and inter-user representation learning for automated hate speech detection. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Lang… OpenAlex ↗ · Scholar ↗
  41. Marzieh Mozafari, Reza Farahbakhsh, and Noel Crespi. 2019. A BERT-based transfer learning approach for hate speech detection in online social media. In International Conference on Complex Networks and Their Applications, pages 928–940. Springer. OpenAlex ↗ · Scholar ↗
  42. Aakanksha Naik, Abhilasha Ravichander, Norman Sadeh, Carolyn Rose, and Graham Neubig. 2018. Stress test evaluation for natural language inference. In Proceedings of the 27th International Conference on Computational Linguistics, pages 2340–2353, Santa Fe, New Mexico, USA. Association for Computation… OpenAlex ↗ · Scholar ↗
  43. Marco Tulio Ribeiro, Tongshuang Wu, Carlos Guestrin, and Sameer Singh. 2020. Beyond accuracy: Behavioral testing of NLP models with CheckList. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4902– 4912, Online. Association for Computational Linguisti… OpenAlex ↗ · Scholar ↗
  44. Isar Nejadgholi and Svetlana Kiritchenko. 2020. On cross-dataset generalization in automatic detection of online abuse. In Proceedings of the Fourth Workshop on Online Abuse and Harms, pages 173–183, Online. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  45. Joni Salminen, Hind Almerekhi, Milica Milenković, Soon-gyo Jung, Jisun An, Haewoon Kwak, and Bernard Jansen. 2018. Anatomy of online hate: Developing a taxonomy and machine learning models for identifying and classifying hate in online news media. Proceedings of the 12th International AAAI Conferen… OpenAlex ↗ · Scholar ↗
  46. Yixin Nie, Adina Williams, Emily Dinan, Mohit Bansal, Jason Weston, and Douwe Kiela. 2020. Adversarial NLI: A new benchmark for natural language understanding. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4885–4901, Online. Association for Computa…
  47. Mattia Samory, Indira Sen, Julian Kohne, Fabian Floeck, and Claudia Wagner. 2020. Unsex me here: Revisiting sexism detection using psychological scales and adversarial samples. arXiv preprint arXiv:2004.12764. — arXiv:2004.12764 OpenAlex ↗ · Scholar ↗
  48. Maarten Sap, Dallas Card, Saadia Gabriel, Yejin Choi, and Noah A. Smith. 2019. The risk of racial bias in hate speech detection. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1668–1678, Florence, Italy. Association for Computational Linguistics.
  49. Timothy Niven and Hung-Yu Kao. 2019. Probing neural network comprehension of natural language arguments. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4658–4664, Florence, Italy. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  50. William Warner and Julia Hirschberg. 2012. Detecting hate speech on the World Wide Web. In Proceedings of the Second Workshop on Language in Social Media, pages 19–26, Montréal, Canada. Association for Computational Linguistics.
  51. Maarten Sap, Saadia Gabriel, Lianhui Qin, Dan Jurafsky, Noah A. Smith, and Yejin Choi. 2020. Social bias frames: Reasoning about social and power implications of language. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 5477–5490, Online. Association…
  52. Alex Warstadt, Alicia Parrish, Haokun Liu, Anhad Mohananey, Wei Peng, Sheng-Fu Wang, and Samuel R. Bowman. 2020. BLiMP: The benchmark of linguistic minimal pairs for English. Transactions of the Association for Computational Linguistics, 8:377–392.
  53. Anna Schmidt and Michael Wiegand. 2017. A survey on hate speech detection using natural language processing. In Proceedings of the Fifth International Workshop on Natural Language Processing for Social Media, pages 1–10, Valencia, Spain. Association for Computational Linguistics.
  54. Zeerak Waseem. 2016. Are you a racist or am I seeing things? Annotator influence on hate speech detection on Twitter. In Proceedings of the First Workshop on NLP and Computational Social Science, pages 138–142, Austin, Texas. Association for Computational Linguistics.
  55. Rico Sennrich. 2017. How grammatical is character-level neural machine translation? Assessing MT quality with contrastive translation pairs. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, pages 376–382, Valencia…
  56. Zeerak Waseem, Thomas Davidson, Dana Warmsley, and Ingmar Weber. 2017. Understanding abuse: A typology of abusive language detection subtasks. In Proceedings of the First Workshop on Abusive Language Online, pages 78–84, Vancouver, BC, Canada. Association for Computational Linguistics.
  57. Deven Santosh Shah, H. Andrew Schwartz, and Dirk Hovy. 2020. Predictive biases in natural language processing models: A conceptual framework and overview. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 5248–5264, Online. Association for Computationa…
  58. Zeerak Waseem and Dirk Hovy. 2016. Hateful symbols or hateful people? Predictive features for hate speech detection on Twitter. In Proceedings of the NAACL Student Research Workshop, pages 88–93, San Diego, California. Association for Computational Linguistics.
  59. Thanh Tran, Yifan Hu, Changwei Hu, Kevin Yen, Fei Tan, Kyumin Lee, and Se Rim Park. 2020. HABER-TOR: An efficient and effective deep hatespeech detector. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 7486–7502, Online. Association for Comput… OpenAlex ↗ · Scholar ↗
  60. Zeerak Waseem, James Thorne, and Joachim Bingel. 2018. Bridging the gaps: Multi-task learning for domain transfer of hate speech detection. In Jennifer Golbeck, editor, Online Harassment. Springer. OpenAlex ↗ · Scholar ↗
  61. Michael Wiegand, Josef Ruppenhofer, and Thomas Kleinbauer. 2019. Detection of abusive language: The problem of biased datasets. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short…
  62. Bertie Vidgen and Leon Derczynski. 2020. Directions in abusive language training data, a systematic review: Garbage in, garbage out. PLOS ONE, 15(12):e0243300. OpenAlex ↗ · Scholar ↗
  63. Bertie Vidgen, Scott Hale, Ella Guest, Helen Margetts, David Broniatowski, Zeerak Waseem, Austin Botelho, Matthew Hall, and Rebekah Tromble. 2020a. Detecting East Asian prejudice on social media. In Proceedings of the Fourth Workshop on Online Abuse and Harms, pages 162–172, Online. Association for… OpenAlex ↗ · Scholar ↗
  64. Bertie Vidgen, Alex Harris, Dong Nguyen, Rebekah Tromble, Scott Hale, and Helen Margetts. 2019. Challenges and frontiers in abusive content detection. In Proceedings of the Third Workshop on Abusive Language Online, pages 80–93, Florence, Italy. Association for Computational Linguistics.
  65. Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pier-ric Cistac, Tim Rault, Remi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lho… — Transformers: State-of-the-Art Natural Language Processing
  66. Bertie Vidgen, Tristan Thrush, Zeerak Waseem, and Douwe Kiela. 2020b. Learning from the worst: Dynamically generated datasets to improve online hate detection. CoRR, abs/2012.15761.
  67. Tongshuang Wu, Marco Tulio Ribeiro, Jeffrey Heer, and Daniel Weld. 2019. Errudite: Scalable, reproducible, and testable error analysis. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 747–763, Florence, Italy. Association for Computational Linguistic… OpenAlex ↗ · Scholar ↗
  68. Ellery Wulczyn, Nithum Thain, and Lucas Dixon. 2017. Ex machina: Personal attacks seen at scale. In Proceedings of the 26th International Conference on World Wide Web, pages 1391–1399. OpenAlex ↗ · Scholar ↗
  69. Marcos Zampieri, Shervin Malmasi, Preslav Nakov, Sara Rosenthal, Noura Farra, and Ritesh Kumar. 2019. Predicting the type and target of offensive posts in social media. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Languag…
  70. Ziqi Zhang and Lei Luo. 2019. Hate speech detection: A solved problem? The challenging case of long tail on Twitter. Semantic Web, 10(5):925–945. OpenAlex ↗ · Scholar ↗
  71. Xiang Zhou, Yixin Nie, Hao Tan, and Mohit Bansal. 2020. The curse of performance instability in analysis datasets: Consequences, source, and suggestions. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 8215–8228, Online. Association for Comput… OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/rottger-2021-hatecheck-functional-tests-hate-speech/