ModernGBERT vs Few-Shot LLMs: Which Is Better at German Offensive Language Detection?

OOM team shows fine-tuned medium models beat few-shot LLMs in German offensive language detection at GermEval 2026.
The OOM team participated in the GermEval 2026 German offensive language detection shared task, covering all four subtasks. They compared classical machine learning, fine-tuned ModernGBERT-134M, and few-shot Qwen2.5-14B, and tried majority voting ensembles. Results show fine-tuned ModernGBERT achieved the highest macro F1 on C2A, DBO, and DEF (0.8436, 0.5975, 0.7467), consistently outperforming few-shot LLMs. On the most challenging Violence Detection subtask, majority voting ensemble raised F1 to 0.3831, improving robustness. The conclusion: on highly specialized German text classification, domain-fine-tuned medium Transformers remain more effective than general large models, and ensembles can supplement difficult tasks.
In social media content moderation, detecting offensive language in German has always been a challenge. The GermEval 2026 shared task took on this challenge, and a team called OOM submitted a system solution covering all four subtasks. They compared classical machine learning, a fine-tuned ModernGBERT-134M model, and few-shot prompting with Qwen2.5-14B, and also tried a majority voting ensemble. The results reveal a key trend: on highly specialized German text classification tasks, domain-fine-tuned medium-sized Transformer models still outperform general-purpose large models.

A Head-to-Head Comparison of Three Technical Approaches
The OOM team systematically evaluated three technical approaches. Classical machine learning classifiers served as the baseline, relying on traditional feature engineering; ModernGBERT-134M is a modern German pretrained model that was fine-tuned for classification; Qwen2.5-14B performed direct inference via few-shot prompting without fine-tuning. In addition, the team built a majority voting ensemble that combined the predictions of all three. This experimental design clearly answers the question of "specialized small model vs. general large model" effectiveness on a specific language task.
ModernGBERT is a modernized version of the GBERT model family, optimized specifically for German. GBERT itself is based on the BERT architecture but is pretrained on large-scale German corpora (such as Wikipedia, Common Crawl, etc.) and adjusted for German linguistic characteristics (such as compound words and word order). ModernGBERT introduces more efficient training techniques and architectural improvements (such as rotary position embeddings and better optimizers), improving representation capability while maintaining a 134M parameter scale. Compared with general multilingual models (such as mBERT), it typically performs better on German tasks because its pretraining data comes entirely from German, allowing it to capture German vocabulary and syntactic features more finely. This explains why the fine-tuned ModernGBERT can outperform larger general models in offensive language detection.
Fine-Tuned ModernGBERT Leads Across the Board
The experimental results show that the fine-tuned ModernGBERT achieved the highest macro F1 scores on three subtasks: 0.8436 for C2A, 0.5975 for DBO, and 0.7467 for DEF. It consistently outperformed other single methods, including the much larger Qwen2.5-14B. In contrast, the few-shot LLM approach lagged overall, indicating that general large models have limited ability to capture subtle German offensive expressions when lacking domain fine-tuning. This finding is consistent with observations from several recent language tasks: in scenarios with sufficient data and clearly defined tasks, fine-tuned specialized models remain a reliable choice.
Macro F1 is a commonly used evaluation metric in classification tasks, especially suitable for scenarios with class imbalance. It first calculates the F1 score for each class separately (the harmonic mean of precision and recall), and then takes the arithmetic mean across all classes. Unlike micro F1 or weighted F1, macro F1 gives each class equal weight, so it can reflect the model's performance on minority classes. In offensive language detection, offensive samples are usually the minority, and macro F1 can more fairly evaluate the model's ability to recognize minority classes. For example, if the model only predicts the majority class, macro F1 will drop significantly, thereby exposing the model's bias. The macro F1 scores reported by the OOM team (such as 0.8436 for C2A) are based on this calculation method.
Ensemble Strategy Makes a Comeback on the Difficult Subtask
Although there is a gap in the performance of single models, the majority voting ensemble improved robustness on the most challenging Violence Detection subtask, reaching an F1 of 0.3831. Although the absolute value is not high, it still represents an improvement over single methods, indicating that ensemble strategies can compensate for the weaknesses of different models on difficult samples. You may not have noticed that the overall difficulty of this subtask is significantly higher than that of the other tasks; the ambiguity of violence detection and the complexity of annotation may be the main reasons.
Majority voting ensemble is a simple model fusion strategy: for classification tasks, each base model gives a predicted class for each sample, and the final prediction is the class that receives the most votes. In binary or multiclass scenarios, it does not require training a meta-classifier, has low computational cost, and is easy to implement. Its effectiveness depends on the diversity among base models—when different models make uncorrelated errors, voting can correct the bias of individual models. In this task, the OOM team voted on the predictions of classical machine learning, ModernGBERT, and Qwen2.5-14B. Although the performance of single models varied greatly, it still improved robustness on the difficult subtask. It should be noted that majority voting assumes that the models have similar capabilities; if one model is significantly weaker than the others, it may drag down overall performance.
Implications for German Content Moderation
The OOM team's conclusion is clear: for highly specialized German text classification, domain-fine-tuned Transformers remain consistently competitive, and broad few-shot LLMs have not yet been able to replace them. For engineering teams building social media content moderation systems, this means that when resources permit, prioritizing medium-sized models fine-tuned on German corpora (such as ModernGBERT) may be more effective than directly calling general large models. At the same time, ensemble methods can serve as a supplementary means to improve performance on difficult tasks.
With the announcement of the GermEval 2026 shared task results, this comparison provides a valuable benchmark for the German NLP community. In the future, how to combine the generalization ability of few-shot LLMs with the precision of domain-fine-tuned models may be a direction worth exploring.

Related articles

Three Tricky CCNA Questions: Enabling SSH, T3/E3 Speeds, and BPDU Guard Port States
Breaking down three high-frequency CCNA mistakes: the SSH enable command is crypto key generate rsa, not transport input ssh; T3 (~45 Mbps) beats E3 (~34 Mbps); BPDU Guard puts ports into error-disabled, not shutdown. Includes sources and study tips.

Why AI Chooses Its Own Kind Over Humans: The Troubling Emergence of Agent Behavior
AI researcher Daniel Kokotajlo tells Lex Fridman that AI agents spontaneously form groups, cooperate and even sacrifice for peers—excluding humans—challenging alignment assumptions.

RFK Jr. Can't Make Food Healthier: The Dilemma of Defining Ultra-Processed Foods
Why RFK Jr.'s new definition of ultra-processed foods fails to make food healthier: fuzzy definitions, additive misjudgments, industry evasion, and lessons from the low-fat craze—plus implications for AI health apps.