Paper · Open models · Version v1
OOM@GermEval Shared Task 2026: Classical ML, ModernGBERT, and Few-Shot LLMs for German Offensive Language Detection
First published: arXiv, . Original
Copyright the authors. Licensed under Creative Commons Attribution 4.0 International.
This page holds the text of the paper, converted to HTML; figures may be left out.
Detecting harmful content in social media is crucial for maintaining safe online spaces but remains challenging due to the nuanced nature of abusive language. This paper describes our submission to the GermEval 2026 Shared Task on Harmful Content Detection in Social Media, addressing all four subtasks. We explore and compare three approaches: classical machine learning classifiers, the modern transformer-based model ModernGBERT-134M, and a large language model approach using Qwen2.5-14B in a few-shot prompting setup. Additionally, we evaluate an ensemble utilizing a majority vote of all three methods. Our results show that the fine-tuned ModernGBERT appears to consistently perform better than the other standalone approaches, achieving the highest macro f1 scores in C2A ($0.8436$), DBO ($0.5975$) and DEF ($0.7467$). While the few-shot large language model (LLM) approach lags behind, the majority vote ensemble successfully improves robustness on the most challenging subtask, Violence Detection, reaching an f1 score of $0.3831$. Our findings highlight the continued competitiveness of domain-specific fine-tuned transformers over broader few-shot LLMs for highly specialized German text classification.
Abstract
Detecting harmful content in social media is crucial for maintaining safe online spaces but remains challenging due to the nuanced nature of abusive language. This paper describes our submission to the GermEval 2026 Shared Task on Harmful Content Detection in Social Media, addressing all four subtasks. We explore and compare three approaches: classical machine learning classifiers, the modern transformer-based model ModernGBERT-134M, and a large language model approach using Qwen2.5-14B in a few-shot prompting setup. Additionally, we evaluate an ensemble utilizing a majority vote of all three methods. Our results show that the fine-tuned ModernGBERT appears to consistently perform better than the other standalone approaches, achieving the highest macro f1 scores in C2A (), DBO () and DEF (). While the few-shot large language model (LLM) approach lags behind, the majority vote ensemble successfully improves robustness on the most challenging subtask, Violence Detection, reaching an f1 score of . Our findings highlight the continued competitiveness of domain-specific fine-tuned transformers over broader few-shot LLMs for highly specialized German text classification.
1 Introduction
In recent years, the speed and scale at which content can be spread over social media have increased drastically. This creates new opportunities for the spread of harmful content.
Hate speech cannot be universally defined in this context (MacAvaney et al., 2019), as it is a multifaceted phenomenon that occurs in a variety of forms (Alkomah and Ma, 2022). Its appearance and extent can change rapidly and it tends to become especially nuanced and difficult to detect as it attempts to bypass filters.
Natural Language Processing provides methods for automatically detecting and categorizing such offensive language. While English has historically dominated research in this area, the growing availability of datasets in other languages allows for more systematic investigations of offensive speech with respect to language-specific phenomena (Tonneau et al., 2024; Maity et al., 2024). Among these efforts, the GermEval shared task offers the opportunity to study both coarse- and fine-grained offensive-language classification in German social media.
The 2026 GermEval Shared Task on Harmful Content Detection compromises four subtasks available on Codabench (2026). Two binary tasks, Call to Action (C2A) and Detection of Defamatory Offences (DEF) and two multi-class tasks, Attacks on the Democratic Basic Order (DBO) and Violence Detection (VIO)(Felser et al., 2026). The DEF task is a new subtask for this year’s and was not yet an option in last year’s shared task (Felser et al., 2025). Together, these four subtasks cover a broad spectrum of harmful-language phenomena, ranging from political agitation to explicit calls for violence (GermEval, 2026).
Together, these four subtasks capture a broad spectrum of offensive-language phenomena, ranging from opinions without further consequences to the planning of actual crimes. This paper investigates these subtasks using three different approaches. First in Section 4.1, we apply classical machine learning classifiers, Logistic Regression (LR), Random Forest (RF), Support Vector Machine (SVM), k-Nearest Neighbors (kNN), and Multilayer Perceptron (MLP) as a simple and cost-effective baseline. Here, we additionally draw on embeddings from our second approach, ModernGBERT, a contemporary German-specialized transformer model, which we fine-tune separately for each subtask in Section 4.2. Third in Section 4.3, we evaluate a well-established large language model (LLM) prompted in a few-shot setting. Finally in Section 4.4, we combine the predictions of these three approaches into an unweighted majority vote computed separately for each subtask. In the rare event of a tie, we resolve it in favor of ModernGBERT, as it is the strongest individual performer. Our code is made publicly available at GitLab (2026).
Across all four subtasks, ModernGBERT achieves the strongest individual performance, followed closely by the classical machine learning pipeline, while the LLM performs considerably worse throughout. All methods struggle most with the fine-grained VIO task and perform comparatively better on the binary C2A and DEF tasks. Notably, the majority vote only surpasses ModernGBERT on VIO, the most difficult subtask, suggesting that ensembling is most beneficial precisely where individual models are weakest and their errors are less correlated.
By comparing these methods across all four GermEval subtasks, we aim to provide an empirical picture of how model specialization, pretraining data and architectural choices influence performance in offensive-language detection. Our results should highlight the evolving landscape of German NLP and offer insights into the design of robust moderation systems capable of handling broad and fine-grained language phenomena.
The remainder of this paper is organized as follows. Section 2 reviews related work on harmful-content detection. Section 3 provides a closer look at the data available and datasets used in our research. Section 4 outlines the different experimental setups and Section 5 discusses our findings as well as possible directions for future work. Section 6 concludes by situating our findings within the results of the shared task.
2 Related Work
Large language models based on the Transformer architecture have become the dominant approach for text classification (Tonneau et al., 2024). BERT (Devlin et al., 2019) introduced a bidirectional encoder that contextualizes each token using both its left and right neighbors. We take a closer look at this architecture, as 2025 GermEval report stated BERT as a promising method for hate speech classification (Felser et al., 2025). Since its release, numerous variants have emerged, including models specialized for improved pretraining objectives (Alkomah and Ma, 2022; Dehghan and Yanıkoğlu, 2024) and for different or multiple languages beyond English (Makram et al., 2022; Ghosh and Senapati, 2025), such as GBERT (Chan et al., 2020). As the German counterpart of BERT, it was pretrained on large German corpora.
ModernBERT (Warner et al., 2024) improves on BERT through an updated training corpus, revised pretraining objectives, and architectural refinements, and has been shown to outperform BERT in efficiency and in-domain accuracy, though not necessarily in out-of-domain generalization (Yamagishi et al., 2026). Combined with the German-language adaptation, this yields ModernGBERT (Wunderle et al., 2025a), the model underlying our transformer-based approach. It was pretrained on German corpora and inherits ModernBERT’s architectural improvements. We use ModernGBERT in two complementary ways: fine-tuned as a standalone, and, in its pretrained form, as a frozen feature extractor providing the sentence embeddings used by our classical machine learning pipeline.
LLMs Kumarage et al. (2024) as well as classical machine learning approaches such as SVMs remain competitive with more advanced state-of-the-art methods (MacAvaney et al., 2019; Pen et al., 2024) and still play a relevant role in hate speech detection (Albladi et al., 2025). Their inclusion here is particularly motivated by the fact that in our setting, they operate directly on ModernGBERT’s contextualized representations rather than on sparse, hand-designed features.
According to Chan et al. (2020), language models inevitably encode "gender, racial and religious biases". Nonetheless, they can be used for our purposes without any disadvantages, as this study focuses on offensive-language detection (Felser et al., 2026) rather than open-ended text generation.
3 Datasets
The data used in this work consists of German real-world tweets from a group of right-wing extremists collected between December 2014 and July 2016 by members of Mittweida University of Applied Sciences (GermEval, 2026). From a pool of approximately 800,000 such tweets, around 15,500-16,500 were annotated for C2A, DBO and VIO, and about 3,000 for DEF. The annotation was done by four people and only tweets for which the majority of them could agree on a label were included in the shared task. As preprocessing, all mentions of other Twitter users were anonymized and replaced with category-specific placeholders: [@PRE] for press/news agencies or news portals, [@POL] for police or police authorities, [@GRP] for groups, organizations, or associations, and [@IND] for individuals. This was the only preprocessing step already applied to the data. The additional preprocessing steps we performed are described in the following subsection.
3.1 Data Preparation
The first data preparation steps are deduplication and numerical encoding of the labels. We try different preprocessing steps in various combinations. The minimal preprocessing only includes removing leading and trailing whitespaces. The baseline additionally consists of replacing links with an artificial ’[Link]’ token, which we continue to do in the remaining preprocessing methods.
For clean, we try removing all special characters except German umlauts, ’#’, ’@’, ’!’ and ’?’ as well as dot and comma, and reducing multiple consecutive whitespaces to one. For full, we test replacing mentioned users completely with an ’[User]’ token and removing the ’#’ symbol while keeping the hashtag text itself, this time without preserving ’#’ and ’@’ among the allowed special characters.
The reduce_punctuation method reduces repeated punctuation: multiple consecutive ’!’, ’?’, or ’#’ characters are collapsed into a single one, sequences of three or more dots are normalized to exactly three dots and exactly two consecutive dots are reduced to one. We additionally try no_punctuation_lowercase, a variant that removes ’!’, ’?’, ’.’ and ’#’ entirely and lowercases the entire text. As we are using German texts, we also try normalize_umlauts, which replaces German umlauts with their usual written-out forms (e.g. ’Ä’ -> ’Ae’, ’ß’ -> ’ss’).
For the classical machine learning pipeline, we use link replacement, punctuation reduction and whitespace reduction (reduce_punctuation) for VIO. For the other three subtasks, we decided on link replacement, whitespace reduction and removal of non-standard special characters (clean). For ModernGBERT and the LLM approach, we use only link replacement as the preprocessing method (baseline).
4 Experiments and Results
This section describes our three individual approaches, classical machine learning, ModernGBERT and an LLM, as well as their combination via majority voting, and presents the corresponding results.
4.1 Classical Machine Learning Pipelines
With the rise of deep learning models, we want to compare them to a classical machine learning pipeline, as there is also support for the claim (Pen et al., 2024) that classical methods appear to perform better than deep learning models. Similar to Makram et al. (2022), we combine the strengths of a BERT model with a classical machine learning pipeline: instead of relying on traditional sparse text representations (e.g. TF-IDF or bag-of-words), we use dense sentence embeddings produced by the pretrained ModernGBERT-134M model, used purely as a frozen feature extractor, as input features for the classical classifiers. This allows the classical models to benefit from ModernGBERT’s contextualized, German-specific representations.
For the multi-class subtasks (DBO, VIO), each subtask is treated as a single multi-class classification problem rather than being split into separate binary tasks.
The tested machine learning methods, implemented using scikit-learn, include RF, kNN, LR, SVM and MLP (for hyperparameters, see Table 1). For LR, RF, and SVM we set , as the data is highly imbalanced and the models would otherwise nearly always predict the majority class. kNN and MLP are left out, because they do not support this parameter. We tested each model against seven different preprocessing methods using nested 5-fold cross-validation over the full dataset: in each of the five outer folds, four folds serve as training data and the remaining fold as the held-out outer test fold. So every sample is evaluated exactly once.
Table 1: Hyperparameters used for the classical machine learning models.
| Model | Hyperparameter | Value |
|---|---|---|
| RF | n_estimators | 300 |
| RF | min_samples_leaf | 3 |
| RF | max_depth | 12 |
| RF | n_jobs | -1 |
| RF | class_weight | balanced |
| kNN | n_neighbors | 3 |
| kNN | metric | cosine |
| kNN | weights | distance |
| kNN | n_jobs | -1 |
| LR | max_iter | 1000 |
| LR | class_weight | balanced |
| SVM | kernel | rbf |
| SVM | class_weight | balanced |
| MLP | hidden_layer_sizes | (512, 128) |
| MLP | activation | relu |
| MLP | max_iter | 300 |
| MLP | early_stopping | True |
We then use two different methods for combining the results: a majority vote, taking the mode of the resulting hard labels, and a meta-learner. The meta-learner trains a second classifier on the predicted probabilities of the base models. Within each outer training fold, we generate meta-features via an inner 5-fold cross-validation: each base model is retrained on four of the five inner folds and its predicted probabilities on the fifth, held-out inner fold are stored. Repeating this for all five inner folds gives out-of-fold probabilities for every row of the outer training set, so no model ever sees the rows for which it is generating features. For the outer test fold, probabilities are instead averaged across the five inner-fold models. Stacking these per-model, per-class probabilities together produces a new feature matrix with columns per sample, on which a final LR (using the same parameters as above) is trained on the outer training fold and evaluated on the outer test fold. In some variants, these meta-features are also concatenated with handcrafted text features (punctuation counts, uppercase ratio, length) before the final fit (meta-learner denoted with pure, meaning no handcrafted text features). Because it works with probabilities rather than just predicted labels, the meta-learner can learn how much to trust each base model per class, rather than treating every model’s vote as equally reliable, as majority voting does.
Since kNN and RF perform the worst on every subtask across all preprocessing methods, we also tested leaving those two models out of the majority vote and the meta-learner (denoted with Top-3).
As an example of the results of all tested combinations of the methods on C2A, see Table 5 in the Appendix.
Table 2 compares the seven preprocessing methods across all four subtasks (C2A, DBO, DEF, VIO). Since each subtask evaluates the same classifiers per preprocessing variant and raw F1-Macro is dominated by model choice, we report the mean rank: for each classifier, the seven variants are ranked 1 (best) to 7 (worst) by F1-Macro, and these ranks are averaged across all classifiers within a subtask. This controls for model-specific performance and isolates the effect of preprocessing alone. The ’Overall’ column averages the per-subtask mean ranks. clean and reduce_punctuation consistently rank best across all four subtasks, while normalize_umlauts and no_punctuation_lowercase consistently rank worst, indicating that the choice of preprocessing has a stable effect independent of the subtask, whereas minimal is inconsistent (best on DEF, weak elsewhere).
Table 3 compares the ten classification methods across all four subtasks using the same mean-rank methodology as the preprocessing comparison, but with the roles reversed: for each preprocessing variant, the ten models are ranked 1 (best) to 10 (worst) by F1-Macro, and these ranks are averaged across all seven preprocessing variants within a subtask, then across subtasks for the ’Overall’ column. This isolates model performance from the choice of preprocessing. Majority Vote (Top-3) achieves the best overall mean rank, ranking first or second on every subtask and winning outright on DBO and VIO. The unrestricted Majority Vote is competitive but inconsistent, ranking first on C2A and DEF yet dropping to rank 5.29 on VIO. Majority voting only over the three strongest base learners performs better and is thus more robust than each single classifier or an unweighted vote over all models. kNN and RF are the weakest models on every subtask without exception.
Notably, the meta-learner does not live up to its theoretical motivation. Despite being designed to learn per-class trust weights for each base model, the full Meta-Learner achieves only an overall mean rank of 6.54, performing worse than a single MLP (4.96) and even slightly worse than SVM (6.00) and LR (6.04). Restricting the meta-learner to the three strongest base models improves this substantially (Meta-Learner (Top-3): 4.71), and dropping the handcrafted text features improves it further still (Meta-Learner (Top-3, pure): 3.43), suggesting that both the inclusion of weak base learners (kNN, RF) and the additional handcrafted features introduce noise rather than useful signal. Even in its best configuration, however, the meta-learner appears to perform worse than the simple Majority Vote (Top-3) (1.71) and the unrestricted Majority Vote (2.61). This indicates that, at least at the scale of our dataset, learning a probabilistic weighting over base-model confidences does not translate into a practical advantage compared to hard-label voting.
| Preprocessing | C2A | DBO | DEF | VIO | Overall |
|---|---|---|---|---|---|
| clean | 1.90 | 1.70 | 3.45 | 3.70 | 2.69 |
| reduce_punctuation | 2.30 | 3.00 | 4.25 | 1.70 | 2.81 |
| full | 3.30 | 3.00 | 3.50 | 2.50 | 3.08 |
| baseline | 2.90 | 3.30 | 2.90 | 4.00 | 3.27 |
| minimal | 5.10 | 4.80 | 2.25 | 4.35 | 4.12 |
| normalize_umlauts | 5.50 | 5.30 | 5.95 | 6.05 | 5.70 |
| no_punctuation_lowercase | 7.00 | 6.90 | 5.70 | 5.70 | 6.33 |
Table 2: Mean rank of each preprocessing variant per subtask (1 = best of 7, averaged over all classical models within a subtask; lower is better) and the overall mean rank across subtasks.
| Model | C2A | DBO | DEF | VIO | Overall |
|---|---|---|---|---|---|
| Majority Vote (Top-3) | 2.57 | 1.00 | 2.29 | 1.00 | 1.71 |
| Majority Vote | 1.00 | 2.00 | 2.14 | 5.29 | 2.61 |
| Meta-Learner (Top-3, pure) | 3.86 | 4.29 | 2.57 | 3.00 | 3.43 |
| Meta-Learner (Top-3) | 4.29 | 6.29 | 3.86 | 4.43 | 4.71 |
| MLP | 3.29 | 4.43 | 5.57 | 6.57 | 4.96 |
| SVM | 7.00 | 4.00 | 6.71 | 6.29 | 6.00 |
| LR | 8.00 | 6.29 | 7.86 | 2.00 | 6.04 |
| Meta-Learner | 6.00 | 7.71 | 5.00 | 7.43 | 6.54 |
| kNN | 9.00 | 9.00 | 9.00 | 9.00 | 9.00 |
| RF | 10.00 | 10.00 | 10.00 | 10.00 | 10.00 |
Table 3: Mean rank of each classical model per subtask (1 = best of 10, averaged over all preprocessing variants within a subtask; lower is better) and the overall mean rank across subtasks.
4.2 ModernGBERT
As our second approach, we fine-tune ModernGBERT-134M (Wunderle et al., 2025a), a German-language encoder based on the ModernBERT architecture, separately for each of the four subtasks. We additionally fine-tune the larger ModernGBERT-1B variant under the same setup, as Wunderle et al. (2025b) presented promising results. However, we found that the larger model does not appear to perform better than the 134M model, presumably due to the comparatively small amount of available training data in general.
Our parameter configuration is adopted from Pfister and Hotho (2024), with minor adjustments. All models are trained for 5 epochs with a learning rate of 5e-5, a batch size of 32 (training) and 64 (evaluation), a warm-up ratio of 0.1, weight decay of 0.01 and mixed precision (fp16) training. To address the strong class imbalance present in all four subtasks, we replace the standard cross-entropy loss with an inverse-frequency class-weighted cross-entropy loss, computed per task from the training label distribution. Model selection uses the checkpoint with the best macro-F1 score on the validation split at the end of each epoch.
For binary subtasks, we perform a post-hoc threshold search over the validation set (range 0.30–0.85 in steps of 0.05), selecting the threshold that maximizes macro-F1. For multiclass subtasks, predictions are obtained via standard argmax over the softmax output.
| Approach | C2A | DBO | VIO | DEF |
|---|---|---|---|---|
| Classical ML | 0.7758 | 0.5134 | 0.3027 | 0.7151 |
| ModernGBERT | 0.8436 | 0.5975 | 0.3735 | 0.7467 |
| LLM | 0.5720 | 0.3849 | 0.2256 | 0.5507 |
| Majority Vote | 0.7923 | 0.5901 | 0.3831 | 0.7396 |
Table 4: Macro-F1 scores per subtask on our submission.
ModernGBERT achieves the best performance among all three standalone approaches (see Table 4). As to be expected, it performs substantially better on the binary tasks, reaching F1 scores of 0.8436 (C2A) and 0.7467 (DEF), while having much more difficulty classifying the multiclass tasks, only reaching F1 scores of 0.5975 (DBO) and 0.3735 (VIO).
4.3 LLM
Thirdly, we explore several large language models using several prompting methods. We ultimately settle on using Qwen2.5-14B with few-shot prompting, providing the model with the official competition definitions and 1–2 random examples per class. We extracted the model’s output tokens as the final results, restricting the output to a 0 or 1 for binary tasks (C2A and DEF—where we also explored post-hoc threshold tuning) and using class-specific keywords for the multiclass tasks (DBO and VIO).
Our choice of combining task definitions with few-shot demonstrations is informed by recent papers on hate-speech detection, where several models and different ways of selecting examples were used. For instance, Ming Shan Hee and Lee (2024) use TF-IDF, BM-25 and random selection as a way of choosing high-value examples. They also yield slightly better results from Qwen2-7B over Mistral-7B for 4-shot prompting using both their datasets. This is further backed up by Faeze Ghorbanpour and Fraser (2025), where Qwen2.5-7B-Instruct on 3-shot definition prompting performs best compared to other models.
The LLM yielded the lowest performance among the three submitted standalone approaches (see Table 4). For the binary tasks it achieves F1-scores of 0.572 (C2A) and 0.551 (DEF) and for the multiclass tasks scores as low as 0.385 (DBO) and 0.226 (VIO). These results align with the findings of Ming Shan Hee and Lee (2024) and Faeze Ghorbanpour and Fraser (2025), where LLM-based approaches underperformed compared to fine-tuned encoder models (Faeze Ghorbanpour and Fraser, 2025).
4.4 Majority Vote
We combine the strengths of all three methods, classical machine learning, ModernGBERT and the LLM, via an unweighted majority vote, computed independently for each subtask. This approach is motivated by prior work (Zimmerman et al., 2018; Melton et al., 2020; Guragain et al., 2024) showing that ensembles of individual classifiers reliably perform better than single models on related social-media text classification tasks. Zimmerman et al. (2018), for example, report consistent F1 gains from ensembling on both an abusive-language and a sentiment classification dataset on Twitter.
Applying this majority vote in practice requires a rule for resolving ties. For the binary subtasks (C2A, DEF), a tie between three models is impossible. For the multi-class subtasks (DBO, VIO), ties can occur, but on our test data they are rare (1.8 % and 2.6 % of instances, respectively). In the event of a tie, we let ModernGBERT decide, as it is the strongest individual performer.
The majority vote appears to perform better than ModernGBERT only on VIO, where the ensemble yields a joint improvement over all single models. On the remaining subtasks, the majority vote falls short of ModernGBERT, though it remains close to it, notably closer on DBO and DEF than on C2A. This proximity is nonetheless noteworthy, as it suggests that at least one of the other two methods frequently agrees with ModernGBERT’s predictions.
Notably, the LLM performs considerably worse than the other two methods across all subtasks, which limits its contribution to the ensemble. Since the majority vote treats all three methods equally, the LLM’s predictions can only be overridden when the other two methods agree with each other. This means the ensemble’s performance largely depends on how often classical machine learning and ModernGBERT align in cases where the LLM is wrong.
It is worth noting that VIO is also the subtask with the lowest scores for all three individual methods. This may indicate that when the models are individually weaker, their errors are less correlated and more complementary, giving the majority vote more room to correct mistakes than on subtasks where ModernGBERT already performs strongly on its own.
5 Discussion and Future Work
Across all four subtasks, ModernGBERT achieved the strongest standalone performance, followed by the classical machine learning pipeline, while the LLM lagged considerably behind. VIO was the hardest subtask, due to its imbalance and fine-grained classification. As Alkomah and Ma (2022) already stated, "small datasets are insufficient for generalizing conclusions or capturing features."
Part of ModernGBERT’s advantage over the other two approaches likely originates not only from its architecture but from the fact that it is pretrained specifically on German text, including German tweets (Wunderle et al., 2025a). Qwen2.5-14B, in contrast, is trained on a broad multilingual mixture in which German constitutes only a small share of the pretraining data, limiting its ability to capture the typical phrasing of German right-wing extremist tweets.
This pattern is in line with related work on hate speech detection outside English (Ghosh and Senapati, 2025). Comparing zero- and few-shot prompting with fine-tuned encoder models across eight non-English languages, Faeze Ghorbanpour and Fraser (2025) find that prompting-based approaches generally lag behind fine-tuned encoders on real-world evaluation data. Right-wing extremist tweets differ substantially from the general web text such models are typically pretrained on. Few-shot prompting with only one to two examples per class offers limited signal for a six-way distinction such as VIO. At the same time, the size of the gap in our results is larger than what is typically reported for few-shot prompting baselines in the literature, which points to our prompt design as a likely contributing factor rather than an actual ceiling for few-shot LLM approaches on this task. We also did not evaluate a reasoning-capable model. Explicit step-by-step reasoning over the class definitions could plausibly help the LLM handle these subtasks better than direct few-shot classification. Overall, this reinforces our finding that domain-specific fine-tuning still appears to perform better than broad few-shot prompting for specialized German text classification.
The classical ML pipeline’s competitive performance should be interpreted with caution. Since these classifiers operate on ModernGBERT embeddings rather than independent features, part of their success is inherited from ModernGBERT itself. This also means the three components of the majority vote are not fully independent, which likely explains why the ensemble so often tracks ModernGBERT’s predictions closely rather than diverging from them.
Next steps could include data augmentation for underrepresented classes to reduce the imbalance in the training data, especially for VIO, as well as improving the LLM approach with more systematic prompt engineering.
We theorize that the large-language-model’s sub-optimal performance is partially due to our reliance on random sampling for few-shot examples, a constraint imposed by time limitations. According to Ming Shan Hee and Lee (2024) using Okapi-BM25 as a retrieval methods can lead to significant gains in performance. A different area, we are yet to explore, is using models capable of reasoning. As highlighted by Guo et al. (2026) even for small reasoning-models a better performance can be observed and would help us draw firmer conclusions about the ceiling of few-shot LLM performance on specialized German text classification.
6 Conclusion
In our submission to the GermEval 2026 Shared Task on Harmful Content Detection in Social Media, we compare classical machine learning, a fine-tuned German transformer (ModernGBERT), and a few-shot LLM (Qwen2.5-14B) across four subtasks, together with an unweighted majority-vote ensemble. Our submission ranked in the middle of the field for all tasks. ModernGBERT achieves the strongest standalone performance on three of four subtasks, while the ensemble improves robustness specifically on VIO, the most challenging and error-prone subtask (Figure 1). These results confirm that domain-specific fine-tuned transformers appear to perform better than broader few-shot LLM approaches for specialized German text classification. In addition, our findings suggest that ensembling delivers the greatest benefit where individual models are weakest, rather than a uniform improvement across tasks.
Figure 1: Macro -scores achieved by our standalone pipelines and the majority vote ensemble across the four GermEval 2026 subtasks.
References
- Albladi et al. (2025) A. Albladi, M. Islam, A. Das, M. Bigonah, Z. Zhang, F. Jamshidi, M. Rahgouy, N. Raychawdhary, D. Marghitu, and C. Seals Hate speech detection using large language models: a comprehensive review. IEEE Access 13 (), pp. 20871–20892. Document
- Alkomah and Ma (2022) F. Alkomah and X. Ma A literature review of textual hate speech detection methods and datasets. Information 13 (6), pp. 273.
- Chan et al. (2020) B. Chan, S. Schweter, and T. Möller German’s next language model. In Proceedings of the 28th International Conference on Computational Linguistics, D. Scott, N. Bel, and C. Zong (Eds.), Barcelona, Spain (Online), pp. 6788–6796. Link
- Dehghan and Yanıkoğlu (2024) S. Dehghan and B. Yanıkoğlu Multi-domain hate speech detection using dual contrastive learning and paralinguistic features. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024), N. Calzolari, M. Kan, V. Hoste, A. Lenci, S. Sakti, and N. Xue (Eds.), Torino, Italia, pp. 11745–11755. Link
- Devlin et al. (2019) J. Devlin, M. Chang, K. Lee, and K. Toutanova BERT: pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), J. Burstein, C. Doran, and T. Solorio (Eds.), Minneapolis, Minnesota, pp. 4171–4186. Link
- Faeze Ghorbanpour and Fraser (2025) D. D. Faeze Ghorbanpour and A. Fraser Can prompting llms unlock hate speech detection across languages? a zero-shot and few-shot study. In Proceedings of the 9th Workshop on Online Abuse and Harms (WOAH), Vienna, Austria, pp. 413–425.
- Felser et al. (2026) J. Felser, T. Holzhausen, T. Katzwinkel, F. Zufall, F. Ludwig, M. Hofer, M. Siegel, and M. Spranger Overview of the germeval 2026 shared task on harmful content detection. In Proceedings of the 22nd Conference on Natural Language Processing (KONVENS 2026): Workshops, Hamburg, Germany, pp. 306–319.
- Felser et al. (2025) J. Felser, M. Spranger, and M. Siegel Overview of the germeval 2025 shared task on harmful content detection. In Proceedings of the 21st Conference on Natural Language Processing (KONVENS 2025): Workshops, pp. 306–319.
- Fröhlich et al. (2026) H. Fröhlich, M. Holitschke, T. Hussein, M. Minar, and P. Wimmer GermEval repository. Note: https://git.uni-regensburg.de/hom05337/germevalAccessed: 2026-07-15
- GermEval (2026) GermEval GermEval 2026: harmful content detection in social media. Note: https://www.codabench.org/competitions/14006/Accessed: 2026-07-12
- Ghosh and Senapati (2025) K. Ghosh and A. Senapati Hate speech detection in low-resourced indian languages: an analysis of transformer-based monolingual and multilingual models with cross-lingual experiments. Natural Language Processing 31 (2), pp. 393–414. Document
- Guo et al. (2026) X. Guo, Y. Zhang, and J. Qin TextReasoningBench: does reasoning really improve text classification in large language models?. arXiv preprint arXiv:2603.19558. Link
- Guragain et al. (2024) A. Guragain, N. Poudel, R. Piryani, and B. Khanal NLPineers@ nlu of devanagari script languages 2025: hate speech detection using ensembling of bert-based models. Link
- Kumarage et al. (2024) T. Kumarage, A. Bhattacharjee, and J. Garland Harnessing artificial intelligence to combat online hate: exploring the challenges and opportunities of large language models in hate speech detection. Link
- MacAvaney et al. (2019) S. MacAvaney, H. Yao, E. Yang, K. Russell, N. Goharian, and O. Frieder Hate speech detection: challenges and solutions. PloS one 14 (8), pp. e0221152.
- Maity et al. (2024) K. Maity, A.S. Poornash, S. Saha, and P. Bhattacharyya ToxVidLM: a multimodal framework for toxicity detection in code-mixed videos. In Findings of the Association for Computational Linguistics: ACL 2024, L. Ku, A. Martins, and V. Srikumar (Eds.), Bangkok, Thailand, pp. 11130–11142. Link
- Makram et al. (2022) K. Makram, K. G. Nessim, M. E. Abd-Almalak, S. Z. Roshdy, S. H. Salem, F. F. Thabet, and E. H. Mohamed CHILLAX - at Arabic hate speech 2022: a hybrid machine learning and transformers based model to detect Arabic offensive and hate speech. In Proceedinsg of the 5th Workshop on Open-Source Arabic Corpora and Processing Tools with Shared Tasks on Qur’an QA and Fine-Grained Hate Speech Detection, H. Al-Khalifa, T. Elsayed, H. Mubarak, A. Al-Thubaity, W. Magdy, and K. Darwish (Eds.), Marseille, France, pp. 194–199. Link
- Melton et al. (2020) J. Melton, A. Bagavathi, and S. Krishnan DeL-hate: A deep learning tunable ensemble for hate speech detection. CoRR abs/2011.01861. Link
- Ming Shan Hee and Lee (2024) A. K. Ming Shan Hee and R. K. Lee Bridging modalities: enhancing cross-modality hate speech detection with few-shot in-context learning. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Miami, Florida, USA, pp. 7785–7799.
- Pen et al. (2024) H. Pen, N. Teo, and Z. Wang Comparative analysis of hate speech detection: traditional vs. deep learning approaches. In 2024 IEEE Conference on Artificial Intelligence (CAI), Vol. , pp. 332–337. Document
- Pfister and Hotho (2024) J. Pfister and A. Hotho SuperGLEBer: German language understanding evaluation benchmark. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), K. Duh, H. Gomez, and S. Bethard (Eds.), Mexico City, Mexico, pp. 7904–7923. Link
- Tonneau et al. (2024) M. Tonneau, D. Liu, S. Fraiberger, R. Schroeder, S. A. Hale, and P. Röttger From languages to geographies: towards evaluating cultural bias in hate speech datasets. In Proceedings of the 8th Workshop on Online Abuse and Harms (WOAH 2024), Y. Chung, Z. Talat, D. Nozza, F. M. Plaza-del-Arco, P. Röttger, A. Mostafazadeh Davani, and A. Calabrese (Eds.), Mexico City, Mexico, pp. 283–311. Link
- Warner et al. (2024) B. Warner, A. Chaffin, B. Clavié, O. Weller, O. Hallström, S. Taghadouini, A. Gallagher, R. Biswas, F. Ladhak, T. Aarsen, N. Cooper, G. Adams, J. Howard, and I. Poli Smarter, better, faster, longer: a modern bidirectional encoder for fast, memory efficient, and long context finetuning and inference. Link
- Wunderle et al. (2025a) J. Wunderle, A. Ehrmanntraut, J. Pfister, F. Jannidis, and A. Hotho New encoders for german trained from scratch: comparing moderngbert with converted llm2vec models. Link
- Wunderle et al. (2025b) J. Wunderle, J. Pfister, and A. Hotho Die SuperGLEBer at GermEval 2025 shared tasks: growing pains - when more isn’t always better. In Proceedings of the 21st Conference on Natural Language Processing (KONVENS 2025): Workshops, C. Wartena and U. Heid (Eds.), Hannover, Germany, pp. 479–493. Link
- Yamagishi et al. (2026) Y. Yamagishi, T. Kikuchi, S. Hanaoka, T. Yoshikawa, and O. Abe ModernBERT is more efficient than conventional BERT for chest CT findings classification in Japanese radiology reports. Scientific Reports 16 (1), pp. 15956. Link
- Zimmerman et al. (2018) S. Zimmerman, U. Kruschwitz, and C. Fox Improving hate speech detection with deep learning ensembles. In Proceedings of the eleventh international conference on language resources and evaluation (LREC 2018),
Appendix A Appendix
| Preprocessing | Model | F1-Macro (± Std) |
|---|---|---|
| clean | MV | 0.7700 ± 0.0122 |
| baseline | MV | 0.7655 ± 0.0089 |
| full | MV | 0.7647 ± 0.0142 |
| clean | MLP | 0.7615 ± 0.0202 |
| normalize_umlauts | MV | 0.7597 ± 0.0045 |
| reduce_punctuation | MV | 0.7578 ± 0.0051 |
| baseline | MLP | 0.7550 ± 0.0147 |
| baseline | MV (Top-3) | 0.7522 ± 0.0088 |
| reduce_punctuation | MetL (Top-3, pure) | 0.7520 ± 0.0104 |
| reduce_punctuation | MV (Top-3) | 0.7517 ± 0.0093 |
| normalize_umlauts | MLP | 0.7516 ± 0.0120 |
| minimal | MV | 0.7512 ± 0.0128 |
| clean | MV (Top-3) | 0.7512 ± 0.0056 |
| full | MV (Top-3) | 0.7504 ± 0.0082 |
| full | MLP | 0.7499 ± 0.0293 |
| reduce_punctuation | MetL (Top-3) | 0.7497 ± 0.0094 |
| minimal | MV (Top-3) | 0.7478 ± 0.0111 |
| baseline | MetL (Top-3, pure) | 0.7469 ± 0.0077 |
| clean | MetL (Top-3) | 0.7466 ± 0.0072 |
| clean | MetL (Top-3, pure) | 0.7462 ± 0.0086 |
| full | MetL (Top-3, pure) | 0.7460 ± 0.0092 |
| minimal | MetL (Top-3, pure) | 0.7458 ± 0.0108 |
| full | MetL (Top-3) | 0.7455 ± 0.0071 |
| minimal | MetL (Top-3) | 0.7453 ± 0.0082 |
| reduce_punctuation | MLP | 0.7453 ± 0.0096 |
| baseline | MetL (Top-3) | 0.7448 ± 0.0073 |
| normalize_umlauts | MV (Top-3) | 0.7445 ± 0.0066 |
| reduce_punctuation | MetL | 0.7384 ± 0.0099 |
| clean | MetL | 0.7381 ± 0.0089 |
| normalize_umlauts | MetL (Top-3, pure) | 0.7379 ± 0.0105 |
| full | MetL | 0.7372 ± 0.0086 |
| no_punctuation_lowercase | MV | 0.7368 ± 0.0139 |
| normalize_umlauts | MetL (Top-3) | 0.7364 ± 0.0105 |
| baseline | MetL | 0.7359 ± 0.0085 |
| minimal | MLP | 0.7334 ± 0.0264 |
| minimal | MetL | 0.7332 ± 0.0097 |
| no_punctuation_lowercase | MV (Top-3) | 0.7307 ± 0.0078 |
| normalize_umlauts | MetL | 0.7285 ± 0.0091 |
| clean | SVM | 0.7266 ± 0.0111 |
| no_punctuation_lowercase | MetL (Top-3) | 0.7264 ± 0.0099 |
| reduce_punctuation | SVM | 0.7261 ± 0.0095 |
| baseline | SVM | 0.7259 ± 0.0079 |
| full | SVM | 0.7255 ± 0.0114 |
| no_punctuation_lowercase | MLP | 0.7242 ± 0.0220 |
| reduce_punctuation | LR | 0.7241 ± 0.0100 |
| no_punctuation_lowercase | MetL (Top-3, pure) | 0.7240 ± 0.0089 |
| clean | LR | 0.7237 ± 0.0065 |
| baseline | LR | 0.7229 ± 0.0095 |
| minimal | SVM | 0.7226 ± 0.0097 |
| full | LR | 0.7225 ± 0.0079 |
| minimal | LR | 0.7200 ± 0.0115 |
| normalize_umlauts | SVM | 0.7167 ± 0.0083 |
| no_punctuation_lowercase | MetL | 0.7165 ± 0.0084 |
| normalize_umlauts | LR | 0.7156 ± 0.0085 |
| no_punctuation_lowercase | SVM | 0.7023 ± 0.0061 |
| no_punctuation_lowercase | LR | 0.6987 ± 0.0100 |
| reduce_punctuation | kNN | 0.6535 ± 0.0201 |
| clean | kNN | 0.6504 ± 0.0203 |
| full | kNN | 0.6503 ± 0.0197 |
| baseline | kNN | 0.6498 ± 0.0203 |
| minimal | kNN | 0.6476 ± 0.0210 |
| normalize_umlauts | kNN | 0.6462 ± 0.0128 |
| full | RF | 0.6421 ± 0.0128 |
| clean | RF | 0.6401 ± 0.0157 |
| baseline | RF | 0.6359 ± 0.0122 |
| reduce_punctuation | RF | 0.6291 ± 0.0160 |
| minimal | RF | 0.6289 ± 0.0155 |
| normalize_umlauts | RF | 0.6242 ± 0.0211 |
| no_punctuation_lowercase | kNN | 0.6111 ± 0.0113 |
| no_punctuation_lowercase | RF | 0.6020 ± 0.0181 |
Table 5: 5-fold cross-validation results for task C2A, sorted by F1-Macro. Models: RF = Random Forest, kNN = -Nearest Neighbors, LR = Logistic Regression, SVM = Support Vector Machine, MLP = Multi-Layer Perceptron, MV = Majority Vote, MetL = Meta-Learner. pure indicates that no handcrafted text features were concatenated to the meta-features. Top-3 indicates that kNN and RF were excluded from the ensemble, as they performed worst across all preprocessing methods and subtasks.