A Turkish Hate Speech Dataset and Detection System
Paper · 2022 · Fatih Beyhan, Buse Çarık, İnanç Arın et al.
Summary
A tweet can contain an insult without attacking a disadvantaged group, and it can attack such a group without using an obvious slur. Fatih Beyhan and colleagues study both problems in Turkish Twitter posts. They build collections around the debate following Turkey’s withdrawal from the Istanbul Convention and around discussion of refugees in Turkey. The work begins with a practical question for linguistic annotation. What should people record about a post so that a computational detector can be trained and its mistakes can be understood?
The authors give annotators named categories for insults, exclusion, wishes for harm, and threats of harm, along with a category for posts judged to contain no hate speech. Annotators also record offensive language, stance on the issue, and the kind of group targeted. A post’s position on the issue and its level of hostility can thus be examined separately. The Istanbul Convention collection contains 1206 annotated tweets, of which 1033 remain after conflicting hate speech labels are set aside for classification. The Refugee collection contains 1278 tweets. The collections and their additional annotations are publicly available.
The authors adapt BERTurk, a Turkish Transformer, separately for each collection. They test whether it can detect the presence of hate speech, identify its category, and estimate its strength along the annotation scale. In 5-fold cross-validation, binary classification reaches mean accuracies of 77.06% on Istanbul Convention tweets and 71.06% on Refugee tweets. Accuracy for the finer category decision is 72.22% and 71.74%, respectively. For strength prediction, the corresponding root mean squared errors are 0.66 and 0.83. The paper also reports results on official train–test splits, so later evaluations can use a designated test set.
The errors show what aggregate scores leave out. On the official Istanbul Convention test set, the category classifier frequently confused neighboring labels and correctly identified none of the few posts in the two harm categories. The authors also examine mistakes involving a religious allusion, unusual spelling, and an infrequent expression. The benchmark therefore measures performance on a specific labeling scheme and on two differently collected bodies of tweets. It also makes visible some of the judgments a detector still struggles to reproduce, including how to recognize a target or a hostile implication that the tweet leaves unstated.
Deep dive: A Turkish Hate Speech Dataset and Detection System
A Turkish hate speech study compares tweets about the Istanbul Convention and refugees, testing how well BERTurk detects abuse and rates its severity. · about 32 minutes to read
The problem and its context
Deciding what counts as hate speech
Social media gives hostile messages a way to circulate quickly and reach audiences beyond the people who first received them. The authors point out that this kind of discourse can come from recognized institutions as well as from unofficial or anonymous accounts. Their study approaches the problem through the text of individual tweets. A detector needs examples it can learn from, and preparing those examples requires people to decide what kind of hostility they are seeing and whom it is directed at.
The paper starts from definitions that connect hate speech to the potential harm done by targeting disadvantaged social groups. For annotation, the authors also want language that helps a reader recognize the behavior in a concrete post. Hatred, humiliation, and group-directed insults can all be relevant, as can demands for exclusion and expressions of harm. The group criterion limits how broadly the term applies. A hostile remark about a person, a sharp disagreement over public policy, and a derogatory statement about people based on their gender or nationality present different questions for an annotator.
The distinction is especially important in a short social media post. A reader can encounter profanity and immediately recognize an offensive register while still having little evidence of a group-directed attack. In another post, a demand that a group be excluded can be expressed in ordinary language. A rule that marks swear words would pick up the first kind of evidence. The second calls for identifying what the writer wants to happen and who would be affected. That difference helps explain why the paper treats offensive language as a separate annotation field.
The strength of hate speech presents a further problem. The authors describe a range from stereotyping to explicit violence. Within that range, speakers can perform different acts. An insult attributes a degrading quality to people. An exclusionary statement argues for keeping them away from a place, institution, or part of public life. A wish for harm presents a harmful outcome as desirable, and a threat communicates that harm may be carried out. The task involves distinguishing these forms in addition to judging the overall hostility of the wording. A scale with named acts gives readers something more concrete to look for than an unrestricted judgment about tone.
Context affects all of these decisions. A post can name the people it attacks, signal them through a familiar reference, or assume that readers already know who is being discussed. The authors regard this as a source of disagreement as well as a challenge for automation. Readers with different background knowledge can interpret the same words differently. They can also understand the same reference and disagree about whether its use crosses the boundary into hate speech. A dataset needs a way to record the judgment made under its own instructions, even when that judgment would be open to dispute elsewhere.
Why the authors chose these discussions
The authors chose the Istanbul Convention and discussion of refugees because both were prominent on Turkish Twitter and offered access to different kinds of group-directed hostility. The Convention concerns violence against women and domestic violence. In the debate described by the paper, feminist and LGBTI+ activists supported it, while some conservative critics argued that its protections threatened traditional family values. The authors also describe misinformation about the Convention and clashes between opposing groups. Turkey’s withdrawal in March, 2021 gave the researchers a specific event around which to collect tweets.
A debate about the Convention could involve gender or sexual orientation, but the topic of a tweet could identify its subject only loosely. Participants could also direct hostility at a political camp, invoke religion, or insult people on the other side of the debate. For the authors’ purpose, the discussion provided a setting where the target needed to be annotated alongside the stance. A tweet supporting the Convention and a tweet opposing it could each address the policy, attack people, or do both. The topic supplies the setting for the decision and the post supplies the evidence for its labels.
For the Refugee collection, the paper situates online hostility in discussions about Syrians and Afghans in Turkey. The authors describe a shift away from an initially more welcoming public response and discuss misconceptions about access to rights and services. They also connect the discussion with the pandemic, economic problems, and political polarization. That account explains their interest in collecting refugee-related tweets across a longer period. Their detection experiments concern the language found in the resulting collection. The social account provides the motivation for studying it.
Putting both discussions into the project broadens the kinds of targets and hostile statements the authors can examine. It also poses a question that matters for evaluation and benchmarks. A procedure that performs well in the aftermath of a single political event may encounter a different mixture of language in a discussion collected over a longer period. Here the collections differ in their construction as well as in subject matter. The paper treats those differences as part of the conditions under which the benchmarks should be interpreted.
What earlier datasets had made measurable
The earlier work reviewed in the paper addresses several versions of the problem. Waseem and Hovy study racism and sexism in tweets using rules to guide labeling. Their detection results use features that include character n-grams, which are short sequences of consecutive characters. This gives the classifier access to recurring pieces of written words as well as a gender feature. Davidson and colleagues focus on the boundary between hate speech and offensive language, giving hate, offense, and neither their own categories. Their definition makes the presence of a group target part of that distinction.
Poletto and colleagues study tweets about refugees and Muslims in Italy. They use terms associated with targeted groups to collect relevant material and discuss the difficulties of separating hate from offense by lexical cues. The collection and detection problems have different requirements. A keyword can be useful for finding texts that deserve review even if its occurrence tells a reader very little about the author’s intent. The Turkish study uses that distinction in practice. Terms related to a topic help build a collection, and annotators then judge what the tweets do with those terms.
The Italian work by Sanguinetti and colleagues supplies a closer precedent for the Turkish annotation scale. It moves from insulting a minority group through denying rights and wishing violence on people to threatening or calling for violence. The Turkish authors adopt a related organization of hostile acts. The earlier work also reports that annotators can disagree despite relevant expertise. A scale can sharpen the questions put to readers while leaving the hard examples hard.
The paper describes a different arrangement in Ross and colleagues’ study of German tweets. Hate speech receives a binary judgment, while offensiveness is graded. That work also reports that people’s interpretations can follow their own opinions and argues for fuller annotation guidance. Mathew and colleagues add another kind of detail by asking for a target community and a rationale, a span of text that supports the label. Together, these studies show how the recorded fields shape the research questions a corpus can answer. An overall label supports detection, while information about a target or a span of evidence supports a different investigation into how the decision was reached.
For Turkish, the closest prior resource discussed is Çöltekin’s corpus of offensive social media language. Its tweets were sampled from the Twitter stream, and its tasks distinguish offensive from nonoffensive posts, targeted from untargeted offense, and different types of targets. The present paper narrows the collection to particular discussions and gives group-directed hate its own categories of severity. The prior corpus provides a way to study offense and its targets. The new collections let the authors concentrate on how hostility towards groups takes different forms within politically charged discussions.
The method, step by step
Turning a definition into decisions readers can make
The first design choice concerns the difference between a definition used to guide the research and the evidence that can be recorded about a particular tweet. The authors retain the emphasis on disadvantaged groups in their working definition. During annotation, however, they ask readers to record hateful content even when its target cannot be established. The reason is practical. A tweet can sound hostile towards some group without specifying who the group is, and forcing a judgment at that point would discard information about the hostility itself. With a separate field for targets, researchers using the data can make their own decision about how strictly to apply the target requirement.
The next choice is how finely to grade the hostile behavior. The authors initially try a scale of 1-10 on Istanbul Convention tweets. Annotators report difficulty choosing a level. Fine numerical distinctions give them more places to put a tweet, but a reader still needs a basis for preferring one adjacent value over another. The authors respond by replacing that scale with a 5-level scheme with category names and examples. Tweets labeled in the initial exercise are excluded from the dataset. The new values refer to distinctions explained in the instructions rather than carrying over the earlier marks.
At level 0, the annotator finds no hate speech. An insult at level 1 degrades the people it addresses or describes. Exclusion at level 2 concerns pushing people out or keeping them apart. Wishing harm at level 3 expresses a desire that something harmful happen to them. Threatening harm at level 4 states a threat. The examples shown in the annotation tool help readers distinguish the form of a message from its general unpleasantness. For example, wanting children from a particular nationality kept out of a classroom illustrates exclusion because the statement concerns who is allowed to share a space. A wish that people suffer and a statement that the writer intends to hurt them illustrate the distinction at the high end of the scale.
In the tutorial, annotators learn the definition, the role of target groups, and the distinction between offensiveness and hate speech. Their work produces a record with separate answers about the same tweet. For offensive language, the available labels are none, weak, and strong. The authors give no precise definition of offense, so that part of the record captures a judgment made with broader guidance than the hate speech judgment. For stance, the options are support, opposition, and a combined neutral or inapplicable response. Stance concerns the issue associated with the collection.
The target field can hold multiple labels because a tweet can attack more than one kind of group. The choices cover race or ethnicity, country or nationality, religion, gender, sexual orientation, and groups associated with opinions or positions. A reader can also mark that there is no target group. Hate speech severity is the final field. The collection uses LabelStudio to put these judgments into one annotation interface. Their separation matters for later interpretation. A researcher can examine how stance and hate labels coincide without treating the stance as the answer to the hate speech question, or inspect offensiveness without assuming that every strong offense has an identifiable group target.
From Turkish tweets to hate speech benchmarks
The steps in order.
Collecting tweets about the Istanbul Convention
The Istanbul Convention collection begins with Twitter trends in the immediate aftermath of the withdrawal. The paper gives the collection window as March 20 to 25, 2021 and reports an initial retrieval of 284,989 tweets. Since this retrieval follows trending topics, it contains material outside the Convention debate as well as posts the authors want to study. The subsequent filtering determines which part of that traffic becomes a candidate for annotation.
For duplicate detection, the authors compare tweet content without URLs, hashtags, or mentions. They also use hashtags to filter out off-topic material and identify tweets relevant to the Convention through a set of 30 popular hashtags. These operations give hashtags different roles at different stages. Removing them from a comparison of message content helps detect repetition even when the surrounding tags differ. Looking at them separately helps identify the public discussion to which a post belongs. About 10,000 tweets remained after the removal of irrelevant material.
The authors then favor candidates containing a small set of words or expressions associated with biased discourse about the issue. They look for wording that could signal prejudice without simply limiting the collection to explicit insults or profanity. They examine how each side describes the other and apply the selection to both sides of the debate. This is a targeted sample for annotation. The aim is to find a useful range of relevant and potentially hateful material, so the chance of entering the labeled set depends in part on how a tweet is worded.
The annotators for this collection are 3 senior undergraduates in Cultural Studies. They label 1206 tweets, and 599 tweets receive judgments from more than one person. The overlapping judgments allow the paper to examine agreement and note cases where labels conflict. The paper distinguishes the original annotated count from the set retained for classification. Of the 1206 Istanbul Convention tweets, 173 are recorded as having conflicting hate speech annotations, and the no-conflict count reported for the collection is 1033.
Collecting tweets about refugees
For the Refugee collection, the starting point is topic vocabulary instead of the trends surrounding a single event. The authors query the Twitter Academic API for posts between January 2020 and September 2021. Search terms include Turkish words for refugee, immigrant, and Syrian. The words are used to find discussion of immigration and refugees. A post retrieved because it uses one of those terms can have any stance or severity label.
The collection procedure removes non-Turkish tweets and retweets. Tweets with more than three hashtags are excluded because the authors see heavy use of tags as a possible sign that accounts are trying to gain visibility through trends. The authors also impose a minimum content length of 100 characters after leaving URLs, hashtags, and mentions out of the count. They remove near duplicates based on the wording of the tweets. The length rule and the restriction on hashtags further define the pool from which they can draw examples.
Another filter removes posts from media and journalist accounts, as well as accounts with news-related terms in their usernames. The authors use it to reduce the amount of news coverage and give more space to tweets expressing an emotional or hostile response. They then randomly select candidates within the pool that remains. This is random sampling after several choices about whose tweets and which kinds of text will enter the pool. The Istanbul Convention selection instead applies additional cues intended to find prejudicial language directly among the topical candidates.
In addition to the university annotators, members of the Hrant Dink Foundation help annotate the Refugee collection. The paper explains their relevant experience through the foundation’s project monitoring hate speech in the press. It reports that foundation members annotated 398 tweets and the university team annotated 953 under the same scheme. Those are counts for the teams’ annotation work. The collection itself is reported as containing 1278 tweets. The authors consider differences in readers’ backgrounds and experience when interpreting how the two collections turned out.
Preparing the labels for detection
The labeled categories support several text classification questions. For the binary question, level 0 is the absence of hate speech and every other level is counted as presence. Under that rule, calling exclusion an insult still gives the right binary decision if the tweet is recorded as hateful. For the fine-grained question, the classifier must select the category used by the annotators. Confusing insult and exclusion then counts as an error. The binary experiment asks whether there is enough evidence to identify the broad class. The finer experiment asks whether that evidence also identifies the kind of act.
For regression, the desired answer is a numerical estimate of severity on the [0-4] scale. A classifier returns a category decision, while the regressor can produce a value between the integers used by annotators. To prepare a tweet with conflicting judgments for this task, the authors average its assigned levels. For classification, they leave conflicting cases out. The use of averages in regression preserves some information from cases that would otherwise be excluded. It represents disagreement by a single intermediate value, so the different judgments that produced it are compressed into one training target.
This use of the scale adds assumptions to the original annotation. The levels were introduced as named types of speech, and assigning them numerical values makes distances between them count in training. For example, a prediction that moves from insult to exclusion contributes a discrepancy just as any other move of the same numerical size would. The authors regard the order as approximate. They are especially cautious about levels 1 and 2, since the severity of a particular insult and that of a particular exclusionary statement can depend on what each actually says.
The paper’s detection targets come from the hate speech field. The other fields remain valuable for describing the collections and for further research, including work that might ask separately about stance or offensiveness. The authors retain tweets whose auxiliary labels are missing. This allows the hate speech experiments to use a tweet with an available hate speech judgment even if its record is incomplete in another respect. It also means that the released auxiliary fields should be read with their missing values in mind.
Adapting BERTurk to each task
The authors start with uncased BERTurk, which was pretrained on a Turkish Wikipedia dump, OSCAR, and OPUS. Pretraining supplies an encoder that represents a word in relation to the words around it. BERT uses context in both directions, so evidence later in the tweet can contribute to the representation of wording that appeared earlier. Uncased processing uses a common representation across capitalization variants. The authors use fine-tuning to adapt the pretrained encoder to the labels in each collection.
A task-specific output layer turns the encoder’s representation into a prediction. For the binary task, a sigmoid converts the output into a score for one of the binary outcomes. For the finer task, a softmax converts category scores into a distribution across the available labels. Both classification tasks use cross-entropy, a training loss that rises as the assigned probability of the recorded answer falls. The same category loss supplies no special credit for selecting a neighboring label. That treatment follows from the classification target, where the job is to identify a named category.
The regression version uses a linear output layer to produce a scalar severity estimate. It is trained with mean squared error, the average of the squared differences between estimates and their targets.
MSE = Σᵢ (ŷᵢ − yᵢ)² / n
MSE is mean squared error. The index i identifies a tweet among the n tweets used in the calculation. The symbol ŷᵢ denotes the predicted severity and yᵢ the severity assigned as the training target. The minus sign gives the prediction error, and the superscript squares it. The summation sign Σᵢ adds the squared errors across the indexed tweets, and division by n gives their mean. Squaring makes large misses count more heavily than small ones.
RMSE = √MSE
RMSE is root mean squared error. The square-root sign √ takes the root of MSE, the mean squared error defined above, so the result is expressed in severity-scale units. The article reports this quantity for evaluation. Minimizing the squared loss during training and then reporting its square root give two views of the same kind of discrepancy, with the reported value easier to read alongside the original scale.
Setting aside tweets for evaluation
The two collections are used separately. A run on one collection learns from and is tested on tweets from that collection. The authors evaluate all the tasks with 5-fold cross-validation, rotating through held-out portions. In each run, the reported proportions are 70% for training, 10% for validation, and 20% for testing. Training provides the examples used to fit the system. The validation split is a separate part of the run, and the test portion supplies the scores for held-out tweets.
Within each fold, the authors use 3 initialization seeds. A seed controls a run’s random setup so that the evaluation can include the effect of different initializations. The paper reports 15 runs for each cross-validation task setting. The reported averages summarize performance across the evaluation runs, and the accompanying standard deviations show how much the scores vary in those runs. The practical question is how reliably a task score recurs when the held-out tweets and initialization can vary.
The authors also designate official train–test splits for each collection. They repeat training with 3 seeds for these benchmarks. In that setting the held-out split stays fixed and the runs vary by seed. Variation in the official results therefore concerns a different set of changes from variation across cross-validation. The two evaluations together show how the approach performs under rotating held-out portions and furnish a common split for later comparisons.
Experiments and results
What the systems were evaluated on
The distributions of the hate speech labels differ in ways that matter for interpreting each task. In the Istanbul Convention set without conflicts, 499 tweets carry the no-hate label, 380 are labeled insult, and 118 are labeled exclusion. The harm categories have 35 tweets for wishing harm and 1 for threatening harm. In the Refugee set, the reported corresponding counts are 774, 181, 277, 39, and 7. The authors describe the no-hate share as around 48% for Istanbul Convention and 60% for Refugee tweets among cases without conflicts.
This changes the task in more than one way. A frequent answer in the finer evaluation may be absent from the hate side altogether, and the common hate label differs between collections. Insults are more numerous than exclusion judgments in Istanbul Convention tweets. The reverse holds in the Refugee collection. The scarcity of the harm labels poses a separate problem. A classifier can be accurate across the set while having very few opportunities to learn those categories or to be tested on them. Binary classification gathers those rare labels into a broader group, so the binary score cannot reveal whether the classifier distinguishes them.
The paper compares the trained classifiers with a majority baseline. This is a frequency-based comparison point that uses a class decision based on the labels instead of learning distinctions from tweet wording. Accuracy is the share of examples assigned the recorded label. Precision describes the share of predicted positives that are correct, and recall describes the share of recorded positives recovered. F1 combines precision and recall, so it can fall when either side of that balance is weak. The paper describes its results as micro-averaged, meaning they are calculated from pooled decisions. For single-label multiclass classification, the pooled accuracy, precision, recall, and F1 coincide, and the paper reports one score for that setting.
The binary rows present different values for those metrics, even though the table caption also describes them as micro-averaged. The binary baseline rows, for instance, show recall of 100.0 for both collections alongside lower precision. The paper gives no further averaging convention for reconciling the binary rows with the caption. The results below use the binary metrics as tabulated. The baseline values used in the figures are the reported comparison values, with no substitution from the full-corpus label counts.
Binary detection and finer classification
In cross-validation, BERTurk achieves 77.06% mean binary accuracy on Istanbul Convention tweets, with a reported standard deviation of 1.92. The corresponding baseline accuracy is 51.69%. On Refugee tweets, the mean binary accuracy is 71.06%, with a standard deviation of 4.43, against a baseline of 39.02%. The reported binary F1 scores are 77.86 for Istanbul Convention and 65.54 for Refugee tweets. The higher binary accuracy on Istanbul Convention tweets is accompanied by a higher F1 in that collection.
Binary accuracy on Istanbul Convention and Refugee tweets in cross-validation
BERTurk exceeds the reported majority baseline in both collections.
The numbers
| System or setting | accuracy % |
|---|---|
| Istanbul Convention majority baseline | 51.69 |
| Istanbul Convention BERTurk (this paper) | 77.06 |
| Refugee majority baseline | 39.02 |
| Refugee BERTurk | 71.06 |
For the Istanbul Convention binary task, cross-validation precision is 77.73 and recall is 78.33 for BERTurk. On the Refugee task, reported precision is 61.66 and recall is 71.37. These describe different aspects of the positive decisions. The Refugee system recovered positives at the reported recall while a smaller share of its positive predictions agreed with the labels, as reflected in the reported precision. The cross-validation baseline F1 scores are 68.16 and 56.14 for the Istanbul Convention and Refugee tasks, respectively.
When the answer must identify the hate speech category, the mean cross-validation accuracy is 72.22% for Istanbul Convention and 71.74% for Refugee tweets. The corresponding standard deviations are 2.94 and 2.17. The majority baseline accuracies are 48.31% and 60.98%. The trained classifiers end up close to each other in overall accuracy, but they start from different majority baselines. To interpret the gain over a frequency-based decision, the composition of the test material therefore matters alongside the final score.
Multiclass accuracy on Istanbul Convention and Refugee tweets in cross-validation
BERTurk exceeds the majority baseline in both collections, with a wider gap on Istanbul Convention tweets.
The numbers
| System or setting | accuracy % |
|---|---|
| Istanbul Convention majority baseline | 48.31 |
| Istanbul Convention BERTurk (this paper) | 72.22 |
| Refugee majority baseline | 60.98 |
| Refugee BERTurk | 71.74 |
The binary and fine-grained results answer different questions, and the binary and multiclass accuracy scores need to be read within their respective label schemes. Collapsing the hate categories allows some confusions to count as successful detection. The reported Refugee multiclass accuracy nevertheless comes out slightly above its binary accuracy. These are separate training runs with different output decisions. The numerical ordering of their overall accuracies does not tell a reader which individual tweets received the correct label in both experiments.
The official test sets provide another view of binary performance. Over the runs on the fixed Istanbul Convention split, mean accuracy is 76.70%, mean F1 is 77.90, precision is 78.20, and recall is 77.68. The reported standard deviation for accuracy is 1.46. On the fixed Refugee split, mean accuracy is 73.80%, F1 is 64.95, precision is 70.19, and recall is 60.51, with an accuracy standard deviation of 0.76. The Refugee binary accuracy is higher on the official split than in cross-validation, while its F1 is lower. The two measures give different weight to the decisions, and the split changes which tweets contribute to each measure.
For the fine-grained official evaluation, the table reports a mean score of 71.52% for Istanbul Convention tweets and 72.34% for Refugee tweets, with standard deviations of 0.28 and 1.33. This table uses the pooled score for the multiclass setting. The paper also gives an accuracy when discussing a multiclass confusion matrix for the official Istanbul Convention test set. That stated accuracy differs from the multiclass aggregate in the results table. The error discussion is most useful for the types of mistakes it identifies.
Estimating the strength of hate speech
For regression, the error magnitude indicates how far severity predictions tend to fall from the recorded values, with larger deviations carrying more weight. The cross-validation RMSE for Istanbul Convention tweets is 0.66, with a standard deviation of 0.05, compared with a baseline RMSE of 0.77. For Refugee tweets, the cross-validation RMSE is 0.83, with a standard deviation of 0.06, against a baseline of 0.96. The paper presents the baseline errors as comparison points for regression. It gives less detail about how those reference predictions are formed than about the majority reference used for classification.
Severity prediction error on Istanbul Convention and Refugee tweets in cross-validation
BERTurk lowers severity prediction error against the reported baseline in each collection.
The numbers
| System or setting | RMSE |
|---|---|
| Istanbul Convention regression baseline | 0.77 |
| Istanbul Convention BERTurk (this paper) | 0.66 |
| Refugee regression baseline | 0.96 |
| Refugee BERTurk | 0.83 |
The paper also reports R², which evaluates squared prediction error relative to variation around the mean of the evaluated targets. Its interpretation differs from that of a comparison with a separately reported baseline error. A negative value indicates that the predictions account poorly for the variation, with squared error exceeding the mean-based reference in the R² calculation. The reported mean cross-validation R² is -0.24 for Istanbul Convention tweets and -0.23 for Refugee tweets, with standard deviations of 0.09 and 0.08. The authors point to these values as a reason to be cautious about the quality of the severity estimates in spite of the improvement in reported RMSE.
On the official Istanbul Convention test split, mean RMSE is 0.67, with a standard deviation of 0.02, and mean R² is 0.21, with a standard deviation of 0.04. On the official Refugee test split, RMSE is 0.79, with a standard deviation of 0.04, and R² is 0.31, with a standard deviation of 0.01. The official Refugee split has higher RMSE than the official Istanbul Convention split and also higher R². The first statistic uses the units of the severity scale, while the second relates the errors to the spread of the evaluated targets. Each reported pair belongs to its own test data. The positive R² values on these fixed splits and the negative averages in cross-validation make the choice of evaluation setting important to any overall description of the regression results.
What the ablations show
The paper reports no component ablations. It offers a comparison of annotation schemes, comparisons across tasks and collections, a confusion matrix, and a close reading of selected mistakes. These analyses show how the labels and the test examples shape the observed performance. They give less direct evidence about which part of the detector is responsible for recognizing a particular construction.
What changed when the labels changed
The first comparison took place before the detection experiments. Readers found the initial 1-10 scale difficult to apply, and the authors report that the named 5-level scheme was easier and less ambiguous for them. The revision gave annotators examples of acts to identify in a tweet. It also removed the need to place a post on a finer scale whose neighboring positions were difficult to distinguish. The result is evidence about the annotators’ experience of the revision. The earlier labels were discarded, so the paper gives no matched comparison of agreement on the same tweets under both schemes.
The paper reports Krippendorff’s alpha of 0.84 for the binary setting and 0.82 for the multiclass setting in connection with the 1033 Istanbul Convention tweets. Alpha measures the consistency of annotators’ decisions relative to agreement expected by chance. Since 599 tweets are reported as having more than one annotation, the agreement scores should be read alongside the fact that the full collection did not receive overlapping judgments throughout. The binary decision compresses several possible points of disagreement into a single label. Readers can agree about the presence of hate while making different judgments about the kind of hostility they see.
The authors also examine differences among readers’ average severity ratings. The minimum and maximum annotator averages reported for Istanbul Convention are 0.66 and 0.88. For Refugee tweets, the reported extrema are 0.42 and 0.90. Those values show that the annotations supplied by different readers can have different overall severity profiles. The paper discusses variation in how readily annotators call a post hateful. The averages alone cannot establish the cause of every difference, particularly when readers’ assignments and the types of tweets they labeled may vary.
The collection comparison also shows how a decision made before annotation can affect the resulting benchmark. The Istanbul Convention cues were chosen to bring in more material containing prejudice. The Refugee sample was selected randomly after topical and content filtering. The resulting collections differ in the prevalence and types of hate speech. Because topic, collection procedure, and annotators all vary, the comparison reveals how much these benchmarks differ under realistic construction choices. It does not estimate the individual effect of any one choice.
What the category confusions reveal
The multiclass confusion matrix for the official Istanbul Convention test set gives a view of which recorded categories were substituted for one another. The authors describe frequent confusion between adjacent levels, including tweets from level 0 assigned to level 1 and tweets from level 1 assigned to level 0. That particular boundary determines the binary answer as well. A dispute over whether an expression constitutes an insult can therefore matter to both the incidence of detected hate speech and the distribution of severity categories.
The discussion accompanying the matrix states an accuracy of 76.7% for the multiclass test set. The official results table reports 71.52 for the pooled Istanbul Convention multiclass score and 76.70 for binary accuracy. The paper gives no account of how the matrix’s stated accuracy relates to the table’s multiclass mean. The matrix discussion still supplies categorical evidence about where it reports the mistakes occurring, including missed distinctions that an overall score would obscure.
For the few official test tweets in levels 3 and 4, the authors report that none were assigned to the correct category. They link this to the scarcity of training examples, which is consistent with the distributions they report. This is an observation about the rare classes under the given setting. The authors did not change how often those classes appeared and rerun the experiment to measure the effect. The result establishes that the fine-grained classifier missed those examples, while the role of rarity remains the paper’s explanation for the pattern.
Reading individual mistakes
One example invokes the people of Lut. The authors read the reference as conveying hostility towards LGBTQ+ people. The words alone may look like a religious statement or praise for a public figure to a reader who misses the association. The example shows what it means for target recognition to depend on background knowledge. The people being attacked can be recoverable to readers familiar with the allusion even when the text names neither the group nor the act in the terms used by the annotation scheme.
Another tweet uses a modified spelling with an asterisk in a reference to LGBTQ+ people. The authors identify unusual spellings and shortened forms as sources of error. A classifier may encounter several forms of an expression, each less common than the expression would be if always written the same way. The same punctuation can appear in unrelated uses. Detecting the intended word and recognizing the attitude expressed toward the people it denotes are both needed to interpret the tweet. The authors illustrate the difficulty with the case, without testing a separate treatment of spelling variants.
An example of an infrequent expression appears in a tweet telling people who dislike the state of affairs in Turkey to go to Arabia. The authors highlight the word yallah in their discussion of rare wording. Its use contributes to a dismissive or exclusionary reading of the whole utterance. The example is evidence of a failure on a tweet where an infrequent expression mattered to the authors’ interpretation. The paper does not isolate the contribution of that word from the references to the addressees or the demand that they leave.
The authors also examine a tweet that received the insult label but for which the predicted strength was 0.4. The post criticizes the ignorance it associates with a hashtag and answers the opposing side’s language about being bruised or embarrassed. The authors consider the low prediction defensible. That judgment matters for understanding what an error count contains. Some errors are failures to detect what a reader would recognize with relevant background. In other cases, a prediction departs from the assigned label and the authors themselves find the assignment debatable. A benchmark score records agreement with the labels as used in evaluation, so these cases can contribute to the same error total for different reasons.
Limitations
Limits the authors identify
The authors emphasize the difficulty of identifying the target group. Their theoretical definition emphasizes disadvantaged groups, yet some posts use hostile language towards people who are only vaguely identifiable. The instructions preserve a judgment about the hateful act in such cases. This accommodates uncertainty in the text, while leaving users of the annotations to resolve how to apply the target criterion in a later study. A label that is valid under those instructions carries their operational choices with it.
They also emphasize differences between readers. Cultural knowledge, familiarity with the discussion, and the tendency to classify a message as hateful can all affect a decision. Examples and a tutorial make the instructions more concrete, but the examples discussed in the paper still call for interpretation. The auxiliary offensiveness field has an additional limit acknowledged by the authors. Readers were asked to distinguish degrees of offense without a precise definition of offensive speech. The released field can support investigation, with the understanding that it reflects the broad guidance given to annotators.
Another limitation the authors identify is the distance between BERTurk’s pretraining sources and the short, informal tweets used here. The error analysis illustrates the distance through shorthand and infrequent wording. Other errors involve background knowledge from religious references or previous news. The authors suggest that hashtags can convey stance and some information about severity, while observing that their meaning depends on the discussion. They propose examining hashtag polarity across a collection before detection. The reported experiments give no separate result for that proposal.
The scarcity of harm examples limits the finer distinctions the system can learn and evaluate. The authors propose combining wishing harm and threatening harm in future work to obtain a better balanced label distribution. They also describe a larger collection as work in progress. Combining the categories would change the question asked of the system: a prediction could then succeed by identifying that a post concerns harm even if it could not tell whether the author wishes for it or threatens it. The existing experiments test the original distinction.
For regression, the authors question the ordering of insult and exclusion. They are more confident about the relative placement of no hate speech, wishing harm, and threatening harm. In regression, all the categories inhabit the same numerical scale. The method makes the scale usable as a prediction target, but the difficulty in placing insults and exclusion in a fixed order makes a severity estimate harder to interpret. The cross-validation R² results reinforce the authors’ caution about how much the numerical predictions explain.
Further limits visible in the design
The collection procedures restrict what can be inferred about the prevalence of hate speech. For the Convention debate, the initial trends, the relevant hashtags, and the later keywords influence the selection. For the Refugee collection, search terms, text length, hashtag count, and account filters define the pool. Even where the authors sample randomly within a pool, statements about the resulting proportions apply first to that pool and the labeled tweets. They cannot serve directly as estimates of hate speech across Turkish Twitter or of attitudes in the general population.
The same filters can affect which language phenomena are visible. A discussion retrieved through familiar immigration terms gives the detector many opportunities to learn from explicit references to the topic. An indirect comment that avoids those terms needs another way to enter the pool. In the Convention collection, the dependence on trending discussions and selected hashtags favors tweets that connect clearly to the event under study. The annotated examples can illuminate the behavior of a particular community or debate in that setting, while leaving posts that use different topical cues or formats outside the evaluation.
The comparison across topics also leaves several explanations intertwined. The Istanbul Convention and Refugee collections differ in time window, group targets, retrieval and selection rules, prevalence of the labels, and the personnel involved in annotation. The authors train and evaluate within each collection. As a consequence, a higher within-collection score can describe a difference in benchmark performance, but it cannot establish that the topic itself is easier. The setup also provides no direct score for transfer between the two discussions, since the systems are not evaluated by training on one collection and testing on the other.
The tasks do not use exactly the same inclusion rule. The classification results omit examples with conflicting hate speech labels. The regression results can include those examples with a target derived by averaging. Their reported scores thus reflect differences in what the systems predict, how errors are counted, and which examples are available. An average target may also hide the distinction between a tweet on which readers chose widely separated labels and a tweet on which their judgments were close. A regression score then measures how well the system approaches the target it received, even when the target is a compromise among incompatible readings.
The aggregate measures give limited information about errors on particular targets or harms. The multiclass score can be driven by frequent labels, and the official confusion matrix shows how severe categories may be missed in a run with appreciable overall accuracy. The separate target annotations establish which groups readers identified, including cases with multiple targets. The paper describes these distributions, while the reported detection results do not break out performance for each target type. A score for the whole collection consequently leaves open how the system behaves for a particular group or intersection of targets.
Finally, the evaluation concerns agreement with labels on held-out tweets. It gives no measurement of the consequences of acting on a prediction in moderation or any other use. Cases needing previous news, shared cultural references, or surrounding discussion illustrate a gap between the evidence in a single post and the evidence a reader may use in practice. The system’s success where the wording supplies a clear signal and its mistakes where that signal is indirect explain why the paper treats the results as benchmarks for further work.
What came after
Corpus construction in Arabic
Work citing Beyhan and colleagues includes a study of corpus design, construction, and evaluation for Arabic hate speech detection. Its stated focus parallels the part of the Turkish study that begins before training, when a research team decides what texts to collect and how to turn judgments about those texts into a benchmark. The connection is relevant because this paper shows how changes in collection and labeling can alter the kinds of hate speech an evaluation contains. The citation establishes a link between the studies. It does not establish that the Arabic corpus adopted the Turkish severity categories, used the same selection rules, or evaluated on Turkish tweets. Hate speech detection in the Arabic language
Turkish euphemisms
Turkish Delights brings a different dataset question into view by focusing on Turkish euphemisms. The point of contact is indirect wording. Beyhan and colleagues describe tweets whose implications depend on an allusion, a modified expression, or knowledge shared by readers. A euphemism dataset has its own linguistic object of study, but its focus is adjacent to the difficulty of recognizing meaning when a writer uses something other than a direct expression. The citation connects the two works at that level. The later work’s stated subject gives no basis for claiming that it reannotated the Convention or Refugee tweets or used the Turkish hate speech scale. Turkish Delights
Detection in Turkish and Arabic tweets
The Team Curie study at HSD-2Lang 2024 is the closest in stated task. It uses BERT-based approaches to detect hate speech in Turkish and Arabic tweets. Beyhan and colleagues establish a within-collection benchmark for Turkish tweets using BERTurk, while Team Curie places tweet detection in a setting that includes both languages. That is continuity in the detection problem and the broad approach to text representation. The fact that the later work covers both languages leaves the details of training and transfer open. Its citation alone does not identify which Turkish examples, labels, or split it used. Team Curie at HSD-2Lang 2024
Cite
Cite as Fatih Beyhan, Buse Çarık, İnanç Arın, Ayşecan Terzioğlu, Berrin Yanikoglu and Reyyan Yeniterzi. 2022. A Turkish Hate Speech Dataset and Detection System. Proceedings of the Thirteenth Language Resources and Evaluation Conference.
@inproceedings{beyhan2022turkish,
title = {{A Turkish Hate Speech Dataset and Detection System}},
author = {Fatih Beyhan, Buse Çarık, İnanç Arın, Ayşecan Terzioğlu, Berrin Yanikoglu and Reyyan Yeniterzi},
booktitle = {Proceedings of the Thirteenth Language Resources and Evaluation Conference},
year = {2022},
url = {https://aclanthology.org/2022.lrec-1.443/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/beyhan-2022-turkish-hate-speech-dataset-detection/