---
title: "CUET_Binary_Hackers@DravidianLangTech EACL2024: Hate"
description: "A study of hate and offensive language detection in code-mixed Telugu compares Indic-SBERT with simpler classifiers on a shared benchmark."
canonical: "https://research.elamur.ai/free/en/papers/farsi-2024-cuet-binary-hackers-dravidianlangtech-eacl2024-2024-dravidianlangtech-1-32/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/farsi-2024-cuet-binary-hackers-dravidianlangtech-eacl2024-2024-dravidianlangtech-1-32/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / CUET_Binary_Hackers@DravidianLangTech EACL2024: Hate and Offensive Language Detection in Telugu Code-Mixed Text Using Sentence Similarity BERT

# CUET_Binary_Hackers@DravidianLangTech EACL2024: Hate and Offensive Language Detection in Telugu Code-Mixed Text Using Sentence Similarity BERT

Paper · 2024 · Salman Farsi, Asrarul Eusha, Jawad Hossain et al.

**Authors:** Salman Farsi, Asrarul Eusha, [Jawad Hossain](https://md.research.elamur.ai/free/en/authors/jawad-hossain/), [Shawly Ahsan](https://md.research.elamur.ai/free/en/authors/shawly-ahsan/), [Avishek Das](https://md.research.elamur.ai/free/en/authors/avishek-das/) and [Mohammed Moshiul Hoque](https://md.research.elamur.ai/free/en/authors/mohammed-moshiul-hoque/) · **Year:** 2024 · **Venue:** Proceedings of the Fourth Workshop on Speech, Vision, and Language Technologies for Dravidian Languages · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the Fourth Workshop on Speech, Vision, and Language Technologies for Dravidian Languages · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2024.dravidianlangtech-1.32/)
- [PDF](https://aclanthology.org/2024.dravidianlangtech-1.32.pdf)
- [DOI 10.18653/v1/2024.dravidianlangtech-1.32](https://doi.org/10.18653/v1/2024.dravidianlangtech-1.32)

## Summary

A social media comment can switch languages partway through a phrase and still carry a meaning that readers readily understand. For an automated classifier, the same switch can make it harder to connect the words that convey that meaning. Farsi and colleagues study this problem in Telugu code-mixed posts and comments. They take part in a shared task that asks for a single judgment about each text: whether it belongs to the benchmark’s combined hate-and-offensive category or to its negative category. The comparison tests how much the choice of text representation matters when the training examples are limited and the writing mixes languages.

The authors try several ways of representing a comment before making that judgment. Their simplest classifiers learn from the importance of individual terms. Their neural sequence classifiers use [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), which represent words as vectors, and look for useful patterns across those vectors. Their strongest entries start with pretrained [transformers](https://md.research.elamur.ai/free/en/concepts/transformer/) and use [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) to adapt them to the task labels. The authors select L3Cube Indic-SBERT, a multilingual sentence encoder adapted for Indian languages. It comes from work on [semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/), where the aim is to represent sentences in a way that reflects how closely their meanings are related. In this study, it learns to assign a label to an individual comment.

Indic-SBERT and XLM-R each reach a test macro F1 of 0.70 at the precision shown in the paper’s system comparison. Macro F1 gives the hate and non-hate classes equal weight when it combines their individual F1 scores. The authors select Indic-SBERT because its reported test recall is 0.70, compared with 0.69 for XLM-R. In the shared-task ranking, the CUET_Binary_Hackers run scores 0.7013 macro F1 and places 6 th. Among the simpler approaches, the support vector machine reaches 0.65 test macro F1. Every neural sequence architecture does better with fastText than with Word2Vec, and the best of those runs is a bidirectional recurrent classifier with fastText at 0.60.

Indic-SBERT still makes substantial errors in both directions. The paper reports that it misclassifies 28.4% of the hate examples and 31.2% of the non-hate examples in its confusion-matrix analysis. The authors suspect that the same mixed-language vocabulary can appear in both categories, making words difficult to interpret in isolation. The experiments establish how the tested systems compare on this benchmark. They leave open how much of Indic-SBERT’s performance comes from sentence-similarity training, how much comes from its adaptation for Indian languages, and how well the classifier would handle a different collection of social media text.

## Deep dive: CUET_Binary_Hackers@DravidianLangTech EACL2024: Hate and Offensive Language Detection in Telugu Code-Mixed Text Using Sentence Similarity BERT

A study of hate and offensive language detection in code-mixed Telugu compares Indic-SBERT with simpler classifiers on a shared benchmark. · about 30 minutes to read

**In this deep dive**

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

### The problem and its context

#### A decision about a whole comment

The shared task treats detection as [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/). The input is a social media post or comment, and the output is one of the categories used by the dataset. The positive category covers hate or offensive content. The negative category covers the remaining examples. A classifier succeeds when its prediction agrees with the dataset label. The decision concerns the whole text, so the task gives a system credit for choosing the right category without requiring it to identify particular words, explain their role, or identify the target.

This formulation reflects a practical concern in the paper’s introduction. Social media gives people a place to publish and respond at a scale that makes systematic manual review difficult. The authors describe cases in which people are targeted on grounds such as religion, appearance, or sexual orientation. They see automated detection as a way to help identify material that warrants attention. In the experiment, that broader motivation becomes a specific, measurable question about agreement with a benchmark. The paper evaluates that question with labeled text and predictions on a test set.

The positive label also sets the scope of what the comparison can tell a reader. In everyday discussion, offensive language can refer to a wider range of material than hate speech, and the paper places both alongside related research on abuse, aggression, bullying, and toxicity. The task groups hate and offensiveness into one category for scoring. A system could therefore improve on examples that are easier to recognize as offensive while making little progress on examples whose classification depends on how a group is described. The combined score alone gives no separate accounting for those cases. The earlier study the authors cite by Fortuna and colleagues makes the question of what different datasets are classifying explicit. [Toxic, Hateful, Offensive or Abusive?](https://md.research.elamur.ai/free/en/papers/fortuna-2020-toxic-hateful-offensive-or-abusive/)

[Code-mixing](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/) adds another dimension to the task. Here it means that material from more than one language can occur within the same text. A collection can contain mixed writing even when individual posts differ considerably in where and how the mixing occurs. For the classifier, a word or short expression can be a clue whose relevance depends on the surrounding words. If a useful cue repeatedly occurs with different expressions around it, a system needs some way to learn when it carries the meaning associated with the positive class. The paper’s comparisons are partly about which text representations can make those recurring patterns available to a learner.

The authors place Telugu in the context of [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/). In this setting, the resource at issue includes task-specific datasets and the tools that researchers can bring to them. They contrast the situation with the body of detection research they describe for languages such as English, Spanish, and Arabic. The public task gives participants a common collection and a defined decision problem. It lets them start with the same benchmark and compare systems whose pretraining, representations, and ways of processing text differ.

#### What earlier studies had tried

The authors trace a progression from conventional supervised classification to neural sequence processing and pretrained encoders. In the conventional approach, a researcher first represents the text using features, then trains a classifier to link those features to labels. The cited Bengali abusive-text work compared support vector machines, random forests, and Naive Bayes. The Telugu study keeps that line of work in view because a classifier built from simple lexical features can be a serious baseline. The practical comparison is whether a more elaborate representation makes better decisions on the same examples.

The nearest earlier lexical comparison described in the paper concerns code-mixed Tamil and Malayalam, along with script-mixed Malayalam. Saumya and colleagues paired [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) features with [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/), a weighting scheme that takes account of how often a term appears in a document and how widely it appears across documents. The review identifies different leading approaches across those settings. That variation provides context for testing conventional classifiers and neural alternatives on Telugu. A method that handles one mix of languages or scripts well still has to be evaluated on the particular form of writing found in the new task.

The paper also describes earlier systems that learn from the order of words. Its example from Arabic hate-speech detection compares recurrent and convolutional approaches. A recurrent network can carry information along a sequence, while a convolutional network can pick up local patterns wherever they occur in the input. In a comment classification task, these mechanisms give the system access to some relationships that are lost when words enter as independent features. They also depend on the information in the vectors supplied for those words. This helps explain why the Telugu study varies the word representation within each of its neural architectures.

Earlier work also used pretrained BERT with a combination of recurrent components for multi-label hate-speech detection. In a multi-label task, a text can receive several labels at once. The Telugu task calls for one binary decision. The architectural precedent is relevant because it shows how pretrained representations and multiple decision components had been brought together in the area. It supplies a different kind of precedent from a binary benchmark with comparable predictions. The paper’s discussion of BERT starts from the broader development of pretrained encoders for language understanding. [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/)

The prior Dravidian shared-task work provides a closer comparison in language setting. The paper describes work on Tamil, Kannada, and Malayalam that used multilingual transformer systems such as XLM-R, m-BERT, and Indic-BERT. It also describes another entry in the same shared task that explored MuRIL and Distil-BERT. The examples motivate trying several pretrained starting points on Telugu. They include systems with different reasons to be plausible candidates, among them broad multilingual coverage, work focused on Indian languages, and a compressed BERT design.

An additional precedent comes from the HASOC work by Joshi and Joshi, which tested sentence encoders for identifying offensive content in Indian languages. Their systems included L3Cube Indic-SBERT. This line of work makes sentence-level representation a natural candidate for the Telugu task. A sentence encoder has already been adapted to produce representations useful for comparing meanings. The task then asks whether supervised training can make that starting point useful for assigning a specific hate-or-offensive label. The resemblance is at the level of what has to be represented. The labels and the training objective give the new task its own meaning.

These strands lead to two questions in the Telugu experiments. One concerns the choice between individual-word features, vector sequences, and pretrained contextual representations. The other concerns which pretrained encoder to start from once the authors choose the transformer approach. In the initial comparison, the systems vary in both their architectures and how they represent inputs. The second gives several pretrained encoders a common task-training setup. Keeping the two questions distinct helps make sense of the reported scores and of the narrower comparisons that can be drawn from them.

### The method, step by step

#### From raw text to a prediction

All the approaches take a labeled comment as their training example. The label supplies the desired output. The text has to be converted into a form that a classifier can use, and that conversion differs by approach. With lexical features, the system receives a weighted inventory of terms in the comment. With the neural sequence approaches, it receives a sequence of word vectors. With the pretrained transformers, the authors start from encoders that already assign context-dependent representations to text and adapt them using the labeled examples.

The authors start with cleaning. They remove emojis, numbers, symbols, signs, and selected punctuation. Their stated reason is that social media writing contains material they consider extraneous to the task. In practical terms, the cleaning determines what can reach any later representation. A word can contribute directly to a unigram feature or enter an encoder as part of a sequence. A removed symbol is unavailable for either operation. The paper describes cleaning as part of the common method and gives the comparison of representations and classifiers most of its experimental attention.

The procedure branches after preprocessing. The conventional classifiers learn from weighted individual terms. The neural sequence systems learn from word embeddings with convolution, recurrence, or a combination of the two. The pretrained encoders are adapted to make the same class prediction. Each branch leads to an independent classification run. The paper’s conventional ensemble is one system in that branch and combines conventional learners, while the paper selects an individual transformer for its shared-task entry.

Training and evaluating the Telugu comment classifiers The steps in order.

#### Weighted terms and conventional classifiers

For the conventional [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) systems, the authors use TF-IDF features restricted to unigrams, or individual terms. A comment becomes a collection of feature values, with a feature corresponding to a term in the representation. Term frequency reflects occurrence within the comment. Inverse document frequency reduces the relative influence of terms that occur across many documents. Together, they give the classifier a way to distinguish terms by their distribution across texts as well as by their presence in a particular text. The learned classifier then determines whether those features are evidence for either label.

A unigram representation lets a system find a useful word independently of its position. If a term is informative even when comments vary in length and phrasing, its contribution can survive that variation. Conversely, the representation gives no direct positional account of what the word modifies or how it relates to a term elsewhere in the comment. The classifier can still learn from the presence of several terms. It receives those values without their original ordering. That distinction matters when comparing this branch with a convolution or a recurrent layer, which can use the order of the word vectors.

The paper trains logistic regression, a support vector machine, and an ensemble. Logistic regression learns how to combine the feature values into a score associated with the class. The support vector machine learns a decision boundary for separating labeled examples in its feature representation. The logistic regression run uses `liblinear` as its solver and sets C to 1. C is a regularization setting that governs the tradeoff between fitting the training examples and constraining the decision function. The SVM also sets C to 1 and uses a `sigmoid` setting. The authors describe `sigmoid` as the optimizer and give no further specification of that choice.

The conventional ensemble combines a random forest, logistic regression, a support vector machine, and a decision tree. A decision tree makes a prediction by moving through successive tests on the input features. A random forest gets its prediction from a collection of trees. The ensemble therefore brings together learners with different ways of using the same kind of text features. The paper names the members but gives little detail about the rule that combines their decisions. It reports a single test row for the resulting ensemble.

#### Word vectors and neural sequence classifiers

For the neural sequence experiments, the authors replace the weighted inventory with word vectors from either Word2Vec or fastText. A word vector is a list of numerical values intended to encode properties of a word in a form a neural network can process. The embeddings provide the inputs to the neural layers. The order of those inputs follows the text sequence, which gives the layers information about which words occur together and where they occur in relation to one another. The sequence still depends on the vocabulary and the quality of the vectors representing its words.

The word vectors have 300 dimensions in both conditions, meaning that each vector has 300 numerical components. The authors describe this size as a compromise between the capacity to represent lexical information and the cost of using the vectors. Both embeddings are tested with each neural architecture. This is a more closely matched comparison than changing the entire system family, since the same kind of network can be evaluated with each representation at the same dimensionality. Word2Vec provides the word-vector reference point, and fastText introduces the use of information from parts of words. [Word2Vec](https://md.research.elamur.ai/free/en/papers/mikolov-2013-distributed-representations-words-phrases-their/) · [fastText](https://md.research.elamur.ai/free/en/papers/bojanowski-2017-enriching-word-vectors-subword-information/)

The convolutional neural network, or CNN, looks for patterns within local stretches of the sequence. The paper calls for a 1D convolution with 128 filters and a kernel of size 5. The kernel size is the width of the window the convolution uses along the sequence. Each filter responds to patterns in the vectors within that window, and the same filter is applied across positions. A filter can therefore produce a strong response anywhere in a comment. A global max-pooling layer keeps the strongest response for each filter as a feature for the final decision. With that summary, the presence of a pattern can matter even when its position varies across comments.

The recurrent alternative is a bidirectional long short-term memory network, or BiLSTM. An LSTM maintains a state as it moves along a sequence, allowing information from earlier positions to affect its representation of later ones. The bidirectional version processes the sequence in both directions. This lets a representation draw on material that comes before or after a word. The paper includes this alternative to test whether a sequence representation with access to a wider stretch of text helps with the binary judgment. It gives the general training settings for the BiLSTM but describes the internal configuration of the combined CNN and BiLSTM in greater detail.

In that combined architecture, the convolutional layer first processes the input embeddings with 128 filters. A max-pooling window of size 2 reduces the output sequence by keeping prominent responses in local windows. This pooling operates before the recurrent layer. It still leaves a sequence of features for the BiLSTM to process. The authors specify 200 bidirectional cells at that stage and a dropout rate of 0.2 in the BiLSTM layer. Dropout temporarily suppresses some activations during training, which is intended to reduce dependence on particular features of the training data. The classifier concatenates the outputs of the bidirectional processing and sends the resulting representation to a sigmoid output layer.

The sigmoid activation maps the final score into a range suitable for a binary prediction. The paper lists binary crossentropy as the training loss for the neural sequence systems. That loss measures the disagreement between the score assigned to the label and the observed binary label, so learning responds to the confidence of a wrong prediction as well as to its direction. The paper also lists ReLU as the hidden-layer activation. ReLU suppresses negative inputs to a unit and passes through positive inputs. The activation and the loss have separate roles. One transforms values inside the network, while the other determines the training error used to update the weights.

The neural training table specifies Adam as the optimizer, a learning rate of `1e −3`, a batch size of 32, and 30 epochs. The optimizer controls how parameters are updated, and the learning rate determines the scale of those updates. A batch is the group of examples used together for a training update. An epoch is a pass through the training examples. The table also sets MaxLen to 80 and lists dropout at 0.2. MaxLen limits the length of the input representation given to the network. The paper supplies these settings by name and value. Its presentation uses no mathematical equations for the representations, the loss, or the classifier.

#### Adapting pretrained encoders

The transformer branch starts from earlier training. A pretrained encoder already represents a word or part of a word in relation to other material in its input. Fine-tuning uses the Telugu task labels to turn that ability into a classifier for the benchmark. This differs from taking a fixed word vector from an embedding table, since a contextual encoder can produce different representations depending on the rest of the comment. The supervision in this study still comes from the shared task. Pretraining supplies weights that can be adapted instead of a ready-made definition of what the task counts as hate or offensiveness.

The authors evaluate both the cased and uncased versions of multilingual BERT. The distinction concerns how the encoder’s input processing handles letter case. They also include [DistilBERT](https://md.research.elamur.ai/free/en/papers/sanh-2019-distilbert-distilled-version-bert-smaller/), a smaller derivative of BERT, and [MuRIL](https://md.research.elamur.ai/free/en/papers/khanuja-2021-muril-multilingual-representations-indian-languages/), which focuses on multilingual representations for Indian languages. Another starting point is XLM-R, which the paper draws from work on broad [cross-lingual representation learning](https://md.research.elamur.ai/free/en/papers/conneau-2020-unsupervised-cross-lingual-representation-learning/). The variants supply different starting representations for the same task. The paper treats each pretrained system as an intact alternative rather than modifying its pretraining in the Telugu experiments.

Indic-SBERT has a distinct history within this group. The paper describes L3Cube’s encoder as an adaptation of BERT for Indian languages using a synthetic corpus, or a collection of examples created for training. Its earlier task concerned sentence-level similarity across languages. That history gives a reason to try the encoder on multilingual comments. If meaning is represented in a way that holds across different language choices, adapting the representation to hate-and-offensive labels may be easier than learning all of those relationships from the task data. The experiment tests the usefulness of the resulting encoder as a starting point. It does not independently vary the pieces of its earlier training.

The authors discuss [LaBSE](https://md.research.elamur.ai/free/en/papers/feng-2020-language-agnostic-bert-sentence-embedding/) and [LASER](https://md.research.elamur.ai/free/en/papers/artetxe-2018-massively-multilingual-sentence-embeddings-zero/) in explaining that choice. They describe Indic-SBERT as stronger than those alternatives in earlier sentence-similarity work involving Indian languages. Here the classifier receives an individual comment and learns to predict its label. The methodology describes no comparison between that comment and a fixed sentence expressing hate, and no retrieval of similar labeled comments to produce a decision. Sentence similarity explains the origin of the encoder. The new supervision comes from examples carrying the benchmark’s binary labels.

The authors obtain the pretrained systems through [Hugging Face’s Transformers library](https://md.research.elamur.ai/free/en/papers/wolf-2020-transformers-state-art-natural-language/) and train them with ktrain. They report using a random seed to help reproduce the results and choosing hyper-parameters through repeated trials. The transformer settings are AdamW, a learning rate of `3e −5`, batches of 16, a Maxlen of 100, and 10 epochs. The table presents this configuration for the transformer group as a whole. The authors view a common configuration as a way to compare the encoders under consistent task-training conditions. The paper also identifies a GitHub repository for the task implementation.

### Experiments and results

#### The data and the unit of evaluation

The organizers supplied code-mixed Telugu material from social media posts and comments. The training split contains 4,000 samples. The dataset description gives the training counts as 2,061 non-hate examples and 1,939 hate examples. Both labels therefore have substantial representation in training. The participants received training and test data and no organizer-supplied validation split. The paper reports results on the test data and describes the training setup as the outcome of repeated hyper-parameter trials.

The paper’s accounts of dataset size require some care. The prose identifies which training count goes with which label, while the ordering of class names and values in the dataset statistics table makes the mapping unclear. The test entries in that table also present difficulty when read alongside the error analysis. The confusion-matrix discussion refers to 250 samples and then reports correct and incorrect predictions for each class. Its error counts and rates appear to treat 250 as a class-level denominator. The paper does not explain how those confusion-matrix entries relate to the test sample counts in the dataset table. The comparison scores are explicitly identified as test scores, and the error figures can be reported in the terms the authors use for that analysis.

The task reports precision, recall, and macro F1. When hate is the class being examined, precision asks how many texts predicted as hate actually carry that label. Recall asks how many texts labeled hate are recovered by the classifier. The same concepts can be applied with the non-hate class as the class of interest. In that case, a claim about recall refers to how frequently the classifier correctly recognizes the non-hate examples. The results table identifies the F1 column as macro-averaged. It does not specify the averaging convention for the precision and recall columns, so the figures in those columns are best read as the paper’s reported test precision and recall.

F1 combines precision and recall through a harmonic mean. It is sensitive to a low value in either component. Macro F1 first applies that idea separately to each class, then averages the resulting class scores with equal weight. Recognizing common examples can improve a class score, but performance on the other class still has its own contribution to the final average. For this task, that means both recovering hate-labeled texts and correctly handling non-hate texts matter to the ranking metric. A row also need not show an F1 equal to the result one would get by combining the displayed precision and recall values, because those columns do not give the class-level inputs to macro F1.

#### The conventional baselines

The best conventional classifier is the support vector machine. It records 0.65 test macro F1, with reported test precision and recall of 0.65 each. Logistic regression records 0.63 for each of those measures on the test data. Those runs use the same type of unigram TF-IDF representation, so they show that a system with no explicit word-order features can make useful distinctions on the benchmark. The result gives the neural approaches a substantial baseline to meet.

The conventional ensemble records 0.59 test macro F1 and has reported test precision and recall of 0.60. It trails both stand-alone classifiers in that comparison. A vote or combination over several learners can benefit from their distinct successes when the errors are complementary. Here the single ensemble row gives evidence about the combined predictions only. The paper gives no individual results for the random forest and decision tree in that combination and does not trace which members agree or disagree on the examples that drive the ensemble’s score.

#### The choice of word vectors

Each of the neural sequence architectures scores higher with fastText than with Word2Vec on test macro F1. The convolutional network moves from 0.40 with Word2Vec to 0.57 with fastText. The bidirectional recurrent system records 0.41 with Word2Vec and 0.60 with fastText. The combined architecture records 0.42 with Word2Vec and 0.55 with fastText. These paired runs show that the representation supplied to the network can matter as much to the outcome as the choice among the sequence architectures in this experiment.

Word vectors and neural architectures on the Telugu test set by macro F1 FastText leads its Word2Vec counterpart for every architecture, with the bidirectional recurrent system scoring highest.

**The numbers**

| System or setting | macro F1 |
| --- | --- |
| CNN with Word2Vec | 0.40 |
| CNN with fastText | 0.57 |
| BiLSTM with Word2Vec | 0.41 |
| BiLSTM with fastText (this paper) | 0.60 |
| CNN plus BiLSTM with Word2Vec | 0.42 |
| CNN plus BiLSTM with fastText | 0.55 |

The precision and recall columns point in the same direction within each architecture. For the convolutional network, the test values go from precision of 0.54 and recall of 0.51 with Word2Vec to precision of 0.64 and recall of 0.60 with fastText. The recurrent system reports precision of 0.58 and recall of 0.52 with Word2Vec, then precision of 0.68 and recall of 0.63 with fastText. In the hybrid, the respective test values are 0.56 and 0.52 with Word2Vec and 0.65 and 0.60 with fastText.

The choice of embeddings changes which architecture leads. The hybrid has the highest macro F1 among the Word2Vec runs. The BiLSTM has the highest macro F1 among the fastText runs. Adding convolution and local pooling ahead of a recurrent layer creates a different way for information to travel through the network. The score comparison gives no uniform advantage for that combination. In the strongest of the sequence systems, the reported precision of 0.68 coexists with macro F1 of 0.60. The different values show why the paper uses a metric that considers both precision and recall at the class level to make its overall comparison.

None of the neural sequence runs exceeds the SVM’s macro F1. The best sequence run does exceed the conventional ensemble’s macro F1 and falls below logistic regression. This ordering matters when reading the authors’ general observation that the neural sequence systems perform less well. The strongest conventional classifiers set the higher benchmark for this part of the comparison. The ensemble ranks among the upper fastText runs, and the result is more varied at that point in the table.

#### The pretrained encoders

The uncased m-BERT run records 0.65 test macro F1. The cased version reaches 0.69. MuRIL also scores 0.69, while Distil-BERT records 0.67. XLM-R and Indic-SBERT lead the test comparison with a displayed macro F1 of 0.70 each. The transformer runs all meet or exceed the SVM on the reported macro F1. The uncased version meets it, while the other pretrained entries show higher scores. This puts both multilingual pretraining and the particular choice of encoder in view.

Pretrained encoders on the Telugu test set by macro F1 Indic-SBERT and XLM-R share the highest displayed macro F1, and the authors select Indic-SBERT using recall.

**The numbers**

| System or setting | macro F1 |
| --- | --- |
| m-BERT uncased | 0.65 |
| m-BERT cased | 0.69 |
| MuRIL | 0.69 |
| Distil-BERT | 0.67 |
| XLM-R | 0.70 |
| Indic-SBERT (this paper) | 0.70 |

The comparison table supplies the reason the authors give for choosing one of the leading systems. Indic-SBERT and XLM-R both report test precision of 0.70. Indic-SBERT has test recall of 0.70 and XLM-R has test recall of 0.69. The authors use the higher reported recall to select Indic-SBERT. The displayed macro F1 entries show a tie at their reported precision. The paper gives a more precise score for the selected shared-task run and supplies no correspondingly detailed score for XLM-R, so the two tables do not establish a more precise head-to-head macro F1 ordering.

The agreement between the two leaders on the displayed precision and macro F1 also leaves room for different patterns of predictions. The same aggregate score can result from different texts being correctly or incorrectly labeled. The paper makes a confusion matrix available for Indic-SBERT and does not give a matching matrix for XLM-R. The recall entries explain the selection. They do not identify the particular comments on which the systems differ or give an account of whether the same kinds of language mixing were difficult for both.

#### The shared-task ranking

The shared-task table gives a separate view of how the selected run compares with other teams. It lists CUET_Binary_Hackers at rank 6 with an F1 score of 0.7013 for run 2. The abstract identifies the score as macro F1 and associates it with the fine-tuned Indic-SBERT system. Sandalphon and Selam appear at rank 1 and rank 2 respectively, each with a displayed F1 of 0.7711. MUCS appears at rank 15 with 0.6501. The paper presents these as a selection of leaderboard entries. The matching displayed values for the leading teams do not explain the different ranks.

Selected shared-task runs on the Telugu benchmark by macro F1 The CUET_Binary_Hackers run falls below both leaders and above the other entry shown.

**The numbers**

| System or setting | macro F1 |
| --- | --- |
| Sandalphon | 0.7711 |
| Selam | 0.7711 |
| CUET_Binary_Hackers with Indic-SBERT (this paper) | 0.7013 |
| MUCS | 0.6501 |

The ranking answers how the authors’ submitted run placed among participants. The paper’s internal test comparison answers which of the systems they trained scored well under their setup. The shared-task table contains team names, run identifiers, ranks, and scores. It supplies no architectural comparisons with the teams above the selected run. Differences in score there therefore establish relative placement, while the paper’s own comparison is where the reader can relate performance to differences in representation or classification method.

### What the ablations show

#### Matched comparisons within the experiments

The paper reports no formal ablation that removes a component from Indic-SBERT while keeping the rest fixed. It instead offers comparisons across embeddings and architectures, across pretrained starting points, and an error analysis of the selected run. These analyses have different strengths. Changing embeddings within a named architecture gives a relatively close comparison. Substituting one pretrained encoder for another changes several properties together. Inspecting the selected system’s errors characterizes the mistakes it makes without identifying which component produced them.

The embedding results are the clearest paired comparison. Vector size is held at 300 dimensions, and both embedding choices appear with each of the same neural architecture names. FastText leads on macro F1 for the CNN, the BiLSTM, and the combination. The consistency across the architectures makes it unlikely that the pattern is specific to a single type of sequence layer within the reported setup. The paper does not give a controlled comparison of sub-word information alone. Among other details, it leaves the preparation of the embedding vocabularies and the treatment of missing words unspecified. The measured result attaches to the two embedding conditions as used.

The authors interpret the difference in terms of the difficulty of capturing meaning in mixed-language text. FastText’s use of word parts offers a reason it could have an advantage when whole words provide sparse evidence. A vector that draws on pieces of a word can potentially receive information that an independent entry for the entire word would lack. The paper has no test breakdown showing that the benefit actually comes from words absent from the other vocabulary or from particular patterns of variation in spelling. The matched runs establish the advantage in scores. The proposed explanation concerns a mechanism the experiment leaves open.

The comparison also admits a reading about architecture. With Word2Vec, the hybrid leads the two single-architecture runs. With fastText, the BiLSTM leads, and the hybrid scores below the CNN. Thus the apparent value of the hybrid depends on the representation supplied to it. Local pattern extraction, pooling, and recurrent processing change together when comparing the hybrid with its alternatives. The data do not isolate a contribution from pooling or from the size of the recurrent layer. They indicate that adding layers of a different type gave no general advantage across the embedding conditions.

#### Comparing pretrained starting points

The m-BERT variants offer a narrower comparison than the change from a conventional classifier to a transformer. The cased version has the better reported test score. The result shows that the choice of m-BERT variant mattered in this evaluation. The paper does not lower-case the data as a controlled change while holding the encoder fixed, nor does it identify which examples gained from preserving case. The observed difference belongs to the complete cased and uncased setups. It leaves unresolved whether a case cue in particular comments, the vocabulary, or another property of the pretrained variants accounts for the result.

The results for XLM-R and Indic-SBERT are informative for a related reason. They reach the same displayed macro F1 despite having different pretraining histories. The result shows that a multilingual encoder with broad training and an encoder adapted for sentence similarity in Indian languages can both support strong performance here. To measure the effect of sentence-similarity training itself would require a starting point matched to Indic-SBERT in other respects. No reported experiment begins with the same weights and training data and selectively changes only the similarity adaptation. The explanation the authors favor is contextual representation of mixed-language meanings, which the scores are consistent with but do not isolate.

The conventional ensemble tests a combination at a different point in the method. Its lower result shows that these conventional learners, combined as implemented, produced less successful predictions than the stand-alone SVM or logistic regression. An ensemble’s usefulness depends on how its members’ individual successes overlap and how their outputs are combined. The paper reports no comparison of alternative combination rules. It also gives no transformer ensemble result from which to infer whether the stronger encoders would have been complementary.

#### Where the selected classifier makes mistakes

In the confusion-matrix analysis, the paper reports 179 hate examples correctly classified and 71 assigned to non-hate. For the non-hate class, it reports 172 correct and 78 predicted as hate. A confusion matrix organizes these outcomes by the observed label and the assigned label. The two off-diagonal entries correspond to different errors. One misses a text that the benchmark regards as hate or offensive. The other flags a text that the benchmark treats as non-hate. Tracking them separately matters because either error can be obscured by a single overall score.

The authors give class-specific misclassification rates of 28.4% for hate and 31.2% for non-hate. The rates are close, with the higher reported error rate in the non-hate class. The authors suggest that differences in training examples could play a role. They also consider the possibility that similar mixed-language words occur across the two labels. Either explanation would require evidence about the examples themselves. A confusion matrix records outcomes by class and gives no direct information about which words, contexts, or properties of the training set contributed to them.

The paper proposes using [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/) to study the misclassified texts and possibly remove mixed-language material the authors consider redundant. Named entity recognition identifies spans that refer to entities in text. In the paper, this is a proposal for working through concrete errors. The reported study does not apply it to produce a new set of predictions. There are no example-by-example analyses showing that a detected name or another identifiable span led the classifier to the wrong label.

### Limitations

#### Limits the authors identify

The authors caution that the pretrained encoders may struggle when the context of future inputs differs substantially from the material encountered during earlier training. Their evaluation concerns the kinds of Telugu social media text found in one shared task. A score on that evaluation can justify trying the same approach on related material. It provides no measurement of the effect of changes in topic, style, or the way Telugu is mixed with other language material. The concern about context is especially relevant to their explanation for choosing Indic-SBERT, which relies partly on how its previous training helps it represent mixed-language meaning.

They also identify the neural sequence performance as a limit of their investigation. Word2Vec and fastText give a comparison of two representations of words under the reported setup. The authors propose investigating other embeddings and better neural architectures. The weaker results for the tested systems leave open how much of the gap is associated with the particular vectors, with the sequence architectures, or with the way those components work together on the data. The authors’ conclusion mentions contextualized alternatives and [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/) among possible directions. These appear as suggestions for further experiments.

The authors report that GPU constraints prevented them from testing a transformer ensemble. This matters because the leading individual runs are close in aggregate score, and close aggregate scores leave open the possibility that one succeeds on comments the other misses. An ensemble could exploit that pattern if it were present and detectable, or combine errors if it were not. The conventional ensemble is the only ensemble tested in this study. Its result is about the conventional learners and gives no measurement of a combination involving Indic-SBERT, XLM-R, or the other pretrained encoders.

#### Limits visible in the evaluation

The reported data partition leaves uncertainty about how settings were selected. The organizers supplied no validation split, and the authors say they ran trials to choose hyper-parameters. The paper does not describe a held-out subset of the training data, a cross-validation procedure, or another specific way of making that choice independently of the final test. It therefore leaves the selection procedure incomplete for a reader trying to reconstruct it. The absence of that detail is enough to identify a reporting limitation. It does not establish which data the authors actually used to make the trial decisions.

The transformer runs use a shared training configuration. This lets the reader compare what happens when different pretrained encoders are fine-tuned under the same reported settings. At the same time, identical settings do not establish that every system was operating at its own best point. A particular choice of training duration, learning rate, or sequence limit might suit one encoder more than another. The paper uses a random seed and reports point estimates. It supplies no repeated-run variability or significance analysis, which leaves the stability of close orderings such as the leading recall comparison unresolved.

The preprocessing decisions have a similar evidential boundary. Removing punctuation and emojis can eliminate variation the authors regard as incidental. Those same kinds of material could sometimes carry information about how a message is meant. The paper does not compare cleaned text with the original text or report which errors involve removed material. The cleaning procedure thus forms part of the setting in which the results hold. Its independent effect on either class remains unknown.

The effect of length limits is also unclear. The sequence and transformer settings specify different maximum lengths, and the paper gives basic dataset statistics. It does not report how often a run encounters input beyond its limit or whether errors concentrate among examples affected by that limit. The length setting can matter whenever the words needed for a judgment fall in a portion of the comment that the classifier does not see. The reported overall scores cannot tell whether this issue affected the observed differences between families or the mistakes within the selected run.

The comparison spans systems that differ at several levels. The conventional systems see weighted unigrams. The neural sequence systems see embeddings and preserve order. The transformers start from pretrained contextual representations and go through a different training schedule. Their different outcomes describe complete approaches under the conditions of the study. They do not give individual estimates for the effect of word order, contextual encoding, the source of pretraining, or a particular optimizer. The comparison between XLM-R and Indic-SBERT narrows the family of architectures under consideration but still compares complete pretrained systems.

The benchmark also leaves several aspects of label interpretation outside the analysis. The paper reports the binary labels and class counts. It gives little information about the instructions annotators used, how disagreements were handled, or how the labels apply to difficult cases such as a comment recounting someone else’s offensive language. It reports no separate results by target, form of code-mixing, or type of offense. The confusion matrix therefore establishes an error rate for each of the benchmark classes in the analysis, while the paper gives no basis for locating those errors in more specific categories of speech or among particular groups.

The ambiguity between the dataset statistics and the error analysis makes it difficult to reconstruct the exact evaluation population from the paper’s counts. The training prose clearly assigns the two reported counts to their classes. The test statistics and the confusion-matrix wording are harder to reconcile. The authors report an overall benchmark score and separately describe a pattern of misclassification. A reader can use each reported result for its stated purpose, while treating the scope of the confusion matrix as incompletely documented.

Finally, the paper evaluates hard class predictions. It does not report how the error balance changes at different thresholds or whether scores are calibrated, meaning whether a given level of confidence corresponds to a similar frequency of correct predictions. Those questions become consequential if a classifier score is used to determine which comments receive human review. The paper motivates the work with the demands of moderation and reports performance on a labeled benchmark. Evidence about the usefulness of predictions in an actual review process lies outside the experiment.

### What came after

No later citing study is documented for this paper. A follow-up result showing how another group extended the Telugu benchmark, reused the classifier, or separated the effect of sentence-similarity training from the rest of pretraining therefore cannot be attributed to subsequent work. The earlier sentence-encoder studies explain where the chosen representation came from. The shared-task leaderboard records contemporaneous comparisons among participants.

The paper closes with directions its authors considered worth testing. One was to try contextualized representations in the neural sequence systems. The contrast between the Word2Vec and fastText runs makes the input representation a reasonable place to investigate. A different vector source could change the information available to the convolutional or recurrent layers, while keeping the focus on how those layers classify mixed-language text. The authors also mention embeddings derived from BERT as a possible input to those systems. They report no results for such a configuration.

A separate direction was to combine pretrained transformers or to develop a fusion approach tailored to hate-speech contexts. The internal test comparison gives a reason to consider that question because different pretrained encoders reach similar aggregate scores. It leaves the overlap in their errors unknown. A comparison of their predictions on the same individual comments would show whether there is complementary evidence for a combined system to use. In the reported experiments, the selected shared-task classifier remains the individually fine-tuned Indic-SBERT run.

## Cite

Cite as Salman Farsi, Asrarul Eusha, Jawad Hossain, Shawly Ahsan, Avishek Das and Mohammed Moshiul Hoque. 2024. CUET_Binary_Hackers@DravidianLangTech EACL2024: Hate and Offensive Language Detection in Telugu Code-Mixed Text Using Sentence Similarity BERT. Proceedings of the Fourth Workshop on Speech, Vision, and Language Technologies for Dravidian Languages.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2024.dravidianlangtech-1.32](https://doi.org/10.18653/v1/2024.dravidianlangtech-1.32)

```bibtex
@inproceedings{farsi2024cuet,
  title = {{CUET\_Binary\_Hackers@DravidianLangTech EACL2024: Hate and Offensive Language Detection in Telugu Code-Mixed Text Using Sentence Similarity BERT}},
  author = {Salman Farsi, Asrarul Eusha, Jawad Hossain, Shawly Ahsan, Avishek Das and Mohammed Moshiul Hoque},
  booktitle = {Proceedings of the Fourth Workshop on Speech, Vision, and Language Technologies for Dravidian Languages},
  year = {2024},
  doi = {10.18653/v1/2024.dravidianlangtech-1.32},
  url = {https://doi.org/10.18653/v1/2024.dravidianlangtech-1.32}
}
```

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