Manuscript Offprint
arXiv:2609.09791MUCnoHARM@GermEval Shared Task 2026: Retrieval-based In-Context Learning for Defamatory Offences, and Where It Falls Short
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
With hate speech being ubiquitous online, automatic detection is crucial, in particular when it comes to criminally relevant social media posts. We study a variety of retrieval-based in-context learning (RetICL) strategies for detecting defamatory offences under §§ 185–187 StGB (the subject of GermEval 2026 Subtask 4). Few-shot prompting beats zero-shot, but retrieval-based approaches offer only marginal gains over random demonstrations, and even fall behind an optimised static set of demonstrations. Providing concrete legal knowledge helps, yet model choice outweighs every other system choice. Models over-predict criminal relevance while still missing 26–57% of criminally relevant posts, suiting them for triage rather than autonomous moderation.
1 Introduction
Hate speech detection has become a socially consequential application domain for LLM-based text classification. Hate speech is highly prevalent online: In Germany, 34% of internet users reported encountering instances thereof in the first quarter of 2025 (Destatis, 2025). The volume of potentially harmful content has far outstripped the capacity of human moderation, making automated detection a critical concern for platforms and policymakers alike (European Union Agency for Fundamental Rights, 2023). Large language models (LLMs) have demonstrated strong capabilities in addressing the core semantic challenges of automated hate speech detection (Albladi et al., 2025; Kums et al., 2025), making them a natural fit for the task. To date, most research has focused on English-language datasets and settings (Albladi et al., 2025; Gandhi et al., 2024; Usman et al., 2025), although a growing body of work addresses hate speech detection in other languages, including German (Demus et al., 2022; Glasebach et al., 2024; Goldzycher et al., 2024).

Figure 1: RetICL framework. Embedded training samples make up a knowledge base, from which few-shot demonstrations are retrieved, which are given to a model along with a task description (conditioning) and the post.
Detecting criminally relevant hate speech, however, introduces a further layer of complexity: models must be sensitive to the specific thresholds and distinctions encoded in (country-specific) law, a requirement that current systems only partially meet (Kums et al., 2025; Ludwig et al., 2025; Schäfer, 2023). Subtask 4 (DEF) of the GermEval Shared Task 2026 on Harmful Content Detection in Social Media instantiated precisely this challenge: classifying posts according to whether they constitute defamatory offences under §§ 185–187 StGB (German Criminal Code) (Felser et al., 2026).
Contributions. In this work, we test different prompting strategies for the detection of defamatory offences. Our RetICL framework consists of two main components (Fig. 1):
-
The legal information on §§ 185–187 StGB that is provided to the model (Conditioning); and
-
The retrieval mechanisms for few-shot demonstrations (Embedding and Retrieval).
The first component builds on Ludwig et al. (2025), who use prompts of differing abstraction levels—“conditioning” models on different degrees of legal knowledge—to detect whether a post falls under § 130 StGB (incitement to hatred) (Sec-tion 2.2). The second component tests different strategies for selecting demonstrations for few-shot prompting, which are also compared to zero-shot prompting. Section 2 situates our two components in prior work on legal conditioning and RetICL. Section 3 details the conditioning modes and retrieval strategies we compare, and Section 4 the experimental setups. Section 5 reports that concrete legal knowledge and few-shot prompting help, but retrieval strategy barely matters, with the full discussion of implications in Section 6.
2.1 Defamatory Offences
The StGB sections central to this task are the three defamatory offences in §§ 185–187, which all protect a person's right to honour and differ mainly in whether the disparaging statement is an opinion or a factual claim, and to whom it is addressed (Research Services of the German Parliament, 2022): § 185 Insult (Beleidigung), § 186 Defamation (Üble Nachrede), and § 187 Intentional Defamation (Verleumdung).
The dataset (GermEval 2026, Subtask 4) was annotated with the decision scheme of Zufall et al. (2019). Derived directly from the statutory norms in the German deductive civil-law tradition, the scheme operationalises the legal assessment of §§ 185–187 StGB as a sequence of six binary (yes / no) decisions based solely on the text of a post. These decisions cover whether the post targets a valid holder of the right to honour, whether it is disparaging, whether it is a factual claim or a value judgment, and how freedom of expression is weighed against the right to honour (§ 193 StGB). The full scheme is provided in Appendix A.
Because it decomposes a complex legal judgment into independently checkable sub-decisions, the scheme yields reliable annotations—Zufall et al. (2019) report that instructed laypeople apply it with reasonable reliability against an expert reference. Additionally, the scheme provides a natural source of graded legal knowledge for prompting, which our conditioning settings utilise (Section 3).
2.2 Legal Conditioning
How a task is presented to an LLM strongly affects its performance. Even meaning-preserving changes to a prompt can shift performance substantially (Gan and Mori, 2023; Lu et al., 2022; Sclar et al., 2024). Beyond such surface-level choices, the content of the prompt—which task-relevant knowledge it makes available to the model—is itself a design decision. This is especially pertinent in specialised domains such as law, where general prompting techniques have proven helpful but require careful adaptation (Parizi et al., 2023; Trautmann et al., 2022), raising the question of how much and what kind of legal knowledge to place in the prompt.
Ludwig et al. (2025) address this question for hate speech falling under § 130 StGB (incitement to hatred) by conditioning LLMs on legal knowledge at different abstraction levels. Their prompts range from the title of a norm—relying on whatever knowledge the model has internalised—to the verbatim or simplified statutory text, and finally to an explicit decomposition of the offence into its constituent subtasks. The decomposition follows the subtask-based framing that AlKhamissi et al. (2022) found effective for few-shot hate speech detection. Following these approaches, we vary the legal knowledge supplied to the model, from merely stating the relevant section numbers and titles to decomposing the task into the subtasks of the annotation scheme of Zufall et al. (2019).
Counterintuitively, Ludwig et al. (2025) found that models conditioned on more abstract knowledge outperformed those given more concrete legal information. A substantial performance gap remained between LLM prompting approaches and legal experts, and the models could barely match laypeople applying the annotation scheme (Ludwig et al., 2025; Zufall et al., 2022). Conversely, von Cossel (2026) found that subtask decomposition for detecting § 130 StGB offences, combined with a logical scaffold in a neuro-symbolic approach, outperformed less complex prompting approaches.
2.3 Retrieval-based In-Context Learning
LLMs can perform classification through in-context learning (ICL), conditioning on a few input-output demonstrations in the prompt without updating model parameters. ICL, however, is highly sensitive to the choice, number, ordering, and format of those demonstrations (Luo et al., 2024). A fixed, manually curated, or randomly sampled set applied uniformly to every input is therefore suboptimal, which motivates RetICL , in which demonstrations are retrieved per query from a labelled pool (Luo
In the literature, RetICL is also referred to as dynamic few-shot prompting, RAG-enhanced LLMs, (selective) demonstration retrieval, and active learning for ICL.
et al., 2024).
Retrieval is usually guided by a similarity objective, most commonly selecting the top- examples by using sparse term-matching retrievers such as BM25 (Robertson and Jones, 1976; Robertson and Zaragoza, 2009) or dense sentence-embedding retrievers scored by cosine similarity (Fan et al., 2024; Luo et al., 2024). Margatina et al. (2023) show that similarity-based retrieval consistently outperforms uncertainty-, diversity-, and random-based selection, while zero-shot prompting performs worst for text classification tasks. Miller et al. (2025) find RetICL best across seven open-weights LLMs on clinical note section classification, raising substantially over both zero-shot and static few-shot; they note that static few-shot is sometimes no better than zero-shot, that smaller models benefit more, and that more demonstrations do not monotonically help.
These methods are increasingly applied to abusive language and content moderation tasks adjacent to hate speech detection. For implicit hate speech, Kim and Lee (2025) prioritise demonstrations sharing the target group before falling back to BM25 similarity, reducing the over-sensitivity of LLMs to toxic surface terms. Related work uses retrieval to discover emergent dog whistles (coded language used to evade automatic detection mechanisms; Sasse et al., 2025). The evidence is not uniformly positive, however: Liu and Shi (2024) found dynamic exemplar selection less reliable than their prompt-optimisation framework.
RetICL is a strong but task-dependent strategy, yet the relative behaviour of zero-shot, static, and RetICL remains unexamined for criminally relevant hate speech, where classification depends on a precise legal threshold rather than a general notion of toxicity. We address this gap by systematically testing retrieval mechanisms and prompting strategies for detecting defamatory offences as part of the shared task.
3 Materials and Methods
Dataset. The DEF task is based on a corpus of German-language tweets, each labelled according to the annotation scheme of Zufall et al. (2019) described in Section 2.1, with a binary label indicating whether the post falls under §§ 185–187 StGB. The labelled portion comprises 3,263 tweets, on which we report cross-validated results; a further 577 tweets form the unlabelled competition test set, which is used only for the shared task submission. In the training dataset, ~13% of the samples are labelled as positive (criminally relevant). In addition, one author annotated a subset of 797 training tweets at the level of each individual decision step of the scheme according to the explanations of Zufall et al. (2019). Whereas the organisers' data provide only the final label, these auxiliary annotations record the outcome of every step; they are used as the demonstration pool for few-shot retrieval when deconstructing the classification task into individual steps (Explicit conditioning setting).
Models. Four instruction-tuned models spanning different families, parameter scales, and degrees of openness are evaluated: Gemma-4 26B (gemma-4-26B-A4B-it), Gemma-4 E4B (gemma-4-E4B-it), Qwen3.5 9B (Qwen3.5-9B), and EuroLLM 22B (EuroLLM-22B-Instruct-2512). All models are loaded from the HuggingFace Hub and run with the Transformers library (Wolf et al., 2020).
Conditioning. The first component varies the legal information supplied to the model, following Ludwig et al. (2025). Each conditioning mode corresponds to a different task description. The Title setting states only the numbers and titles of the relevant StGB sections. The Description setting additionally provides a description of what constitutes a defamatory offence under the annotation scheme (Section 2.1). The Implicit setting presents all six decision steps of the scheme inline, so that the model traverses the full decision tree within a single inference call. The Explicit setting instead decomposes the task into the six steps as separate inference calls: each step is classified on its own, and the final label is derived from the sequence of step outcomes. Each step is run as an independent prompt containing only that step's instructions, its demonstrations, and the post. All prompts and additional information on chat template and few-shot integration are provided in Appendix B.
Demonstration selection. The second component governs how few-shot demonstrations are chosen. In the zero-shot configuration (), no demonstrations are included. In the few-shot configuration, we include demonstrations. The class ratio of demonstrations and the within-prompt ordering of demonstrations are varied for the ablation study (Section 5.3). Demonstrations are selected either statically—a single fixed set, chosen once and reused for every test instance—or dynamically, where a separate set is retrieved per instance at inference time. The dynamic strategies are our main object of study and are defined by the embedding and retrieval modes below.
Embedding mode. Dynamic retrieval draws demonstrations from a knowledge base built over the training split and stored in one of three ways. In the dense setting, each example is embedded with codefuse-ai/F2LLM-v2-1.7B (Zhang et al., 2026), the highest-ranked model in its size range on the MTEB leaderboard for German tasks (Muenighoff et al., 2023) throughout the entire duration of this project in the first half of 2026 (see Appendix C.2). The embeddings are stored in a LangChain InMemoryVectorStore (Chase, 2022). The sparse setting uses a LangChain BM25Retriever which vectorises training samples sparsely and retrieves demonstrations based on keyword matches using the BM25 algorithm. The fusion setting interleaves the results of both the dense and sparse retrievers.
Retrieval mode. Given a knowledge base made up of an embedded training dataset, demonstrations are selected by one of four strategies. Similarity retrieval returns the top- examples by cosine similarity (dense) or BM25 score (sparse). Diversity retrieval clusters the dense training embeddings with -means and draws one example at random from each cluster. MMR (Maximal Marginal Relevance) re-ranks dense candidates to balance similarity against diversity. Random retrieval samples uniformly from the training pool and serves as the baseline retrieval strategy. Because MMR and diversity rely on dense embeddings, they are applied only in the dense embedding setting; sparse and fusion embeddings are used only for similarity-based retrieval.
Baseline. As a non-neural reference point, we implement a naive 1-nearest-neighbour classifier using TF-IDF representations of the training split to assign each test post the label of its single closest training neighbour. It uses no legal domain knowledge and relies entirely on surface-level lexical overlap; conceptually, it corresponds to dynamic few-shot retrieval at .
4 Experiments
General Setup. All reported results use stratified four-fold cross-validation over the labelled set: in each fold, three parts form the knowledge base and the held-out part is used for evaluation. The primary metric is (unweighted mean of per-class scores); we additionally report True-class Precision () and Recall (). Instances on which a model abstains (no parseable label, model refusal) are excluded from scoring, but abstentions are reported separately. More details on experiment settings are reported in Appendix C.²
4.1 Exploration
In order to control the computational cost during the main experiments, we aim to find the optimal number of demonstrations (in terms of score) in an exploratory analysis: we test demonstration sizes across two prompting configurations and all models.
4.2 Main Experiments
Given that RetICL is the focus of this research, the main experiments investigate the different strategies across the four open-weights instruction-tuned models Gemma-4 26B, Gemma-4 E4B, Qwen3.5 9B, and EuroLLM 22B, and all four conditioning modes (Title, Description, Implicit, and Explicit). For RetICL, we evaluate random, diversity-, MMR-, and similarity-based retrieval; the latter for the three different embedding methods dense, sparse, and fusion. Additionally, zero-shot prompting is tested. The retrieved demonstrations are balanced in terms of their class labels, and their order in the prompt is random.
4.3 Ablations
Proprietary Model. In order to understand how the performance on this complex task scales with model size far beyond the 4B–26B parameter range, we evaluate the latest OpenAI model of the GPT series (GPT-5.5). Evaluations are run with the Title zero-shot setting and with Explicit mode with dense similarity-based demonstration retrieval.
Fine-Tuning. ICL strategies offer lower computational cost and greater adaptability than supervised fine-tuning (SFT) methods. In order to understand how the performance of our ICL strategies compares to an SFT baseline, we fine-tune the smaller Gemma-4 E4B model using the parameter-efficient method QLoRA (Dettmers et al., 2023).
²Code Repository: https://github.com/akristing22/GermEval2026-def-prompting
The model is trained with the Implicit conditioning mode in a zero-shot set-up.
Class Ratio and Ordering. The main experiments use only balanced (w.r.t. class label), randomly ordered few-shot demonstrations. We investigate the effects of class ratio and ordering on classification performance by also arranging the demonstrations by class label (true-first and true-last) and by selecting examples with a class ratio proportional to the ratio in the training dataset. These effects are tested for Implicit conditioning with dense, similarity-based retrieval.
Static Demonstrations. In order to compare RetICL demonstration approaches not only to zero-shot prompts but to a static few-shot strategy, a set of few-shot demonstrations is tested, which is selected by searching randomly for the best-performing set of demonstrations (more details are reported in Appendix C.6). Two sets of eight demonstrations for Gemma-4 26B are selected, using the Implicit and Title conditioning modes.
4.4 Shared Task
We select five model / configuration combinations for running on the held-out competition test set. The best two runs are mentioned in the respective experiment sections; more details are reported in Appendix D.5.
5 Results
5.1 Exploration

Figure 2: Exploration: Mean by demonstration size, per model. The black dotted line shows the mean per demonstration size across models.
Across models, the largest average gain comes from increasing the demonstration count from 4 to 8 (+0.029). Beyond , larger sizes decrease performance slightly for Gemma-4 26B, whereas
performance continues to improve for the other three models (Fig. 2). Scores are reported in detail in Appendix D.1. To limit computational cost, we set for all subsequent experiments, even though larger sizes would likely benefit the other three models.
5.2 Main Experiments
A full score table can be found in Appendix D. Figure 3 reports score across all prompting configurations, for all models. The baseline classifier achieves an of 0.644, which only Gemma-4 26B consistently surpasses. The best performing configuration (Gemma-4 26B, Implicit conditioning, dense, similarity-based retrieval) achieves an score of 0.733 on our test set and 0.72 on the held-out competition set. As shown in Table 1, all models tend to over-predict the positive class, yielding low positive-class Precision; even so, between 26% and 57% of criminally relevant posts go undetected (positive-class Recall 0.43–0.74). While the 1-NN baseline is stronger than some models in terms of , it falls substantially behind all models in terms of Recall, except for Qwen3.5 9B, which is only marginally better than the baseline (+0.067).
| Model | Config | F1macro | PT | RT |
|---|---|---|---|---|
| Gemma-4 26B | Impl. D-Sim | 0.733 | 0.445 | 0.740 |
| Gemma-4 E4B | Expl. S-Sim | 0.659 | 0.341 | 0.622 |
| Qwen3.5 9B | Expl. D-Sim | 0.636 | 0.338 | 0.426 |
| EuroLLM 22B | Expl. S-Sim | 0.474 | 0.180 | 0.740 |
| 1-NN | 0.644 | 0.391 | 0.359 |
Table 1: Best configuration per model and naive baseline classifier. Impl. / Expl.: Implicit / Explicit conditioning. D / S: dense / sparse embeddings. Sim: similarity-based retrieval. Best scores per metric are indicated in bold.
Across models, more detailed conditioning tends to improve performance, with Explicit best on average. It is the best mode for Gemma-4 E4B, Qwen3.5 9B, and EuroLLM 22B, while Gemma-4 26B benefits most from Implicit conditioning (Table 2). Except for Gemma-4 E4B, the least detailed Title conditioning performs worst. However, the trend is not strictly monotonic: averaged across models, Description (0.567) slightly exceeds the more concrete Implicit mode (0.559). Zero-shot prompting yields the worst scores for every model; the gap to few-shot is most pronounced for EuroLLM 22B and smallest for Qwen3.5 9B.
Figure 4 reports the impact of each configuration axis on the performance of each model. Em

Figure 3: Each point shows the score of one model and prompting configuration. Configurations are sorted left to right by increasing cross-model mean . The lower panel shows which conditioning and retrieval choices correspond to each position on the curve. The best configuration per model is indicated by a star. The dotted line shows the naive nearest-neighbour classifier used as a baseline.
| Model | Title | Desc. | Impl. | Expl. | ZS | FS |
|---|---|---|---|---|---|---|
| Gemma-4 26B | 0.683 | 0.699 | 0.715 | 0.687 | 0.658 | 0.702 |
| Gemma-4 E4B | 0.579 | 0.593 | 0.545 | 0.639 | 0.532 | 0.598 |
| Qwen3.5 9B | 0.529 | 0.588 | 0.598 | 0.605 | 0.551 | 0.585 |
| EuroLLM 22B | 0.345 | 0.386 | 0.380 | 0.437 | 0.240 | 0.411 |
| Mean | 0.534 | 0.567 | 0.559 | 0.592 | 0.495 | 0.574 |
Table 2: Mean per model and conditioning mode, and per zero-shot (ZS) and few-shot (FS), . Best results per model are indicated in bold.
bedding and retrieval choices have little impact on , whereas the differences across conditioning modes and between zero- and few-shot prompting are more pronounced. The best model (Gemma-4 26B) is least affected by prompting configuration, whereas the weakest (EuroLLM 22B) is most affected, across all axes. For comparison: impact of model choice alone is 0.309.
Abstentions. All scores are computed only on replies that could be parsed into a binary True / False label. Across all 28 prompting configurations per model, fewer than 1% of generations could not be parsed (further details are reported in Appendix D.3).
5.3 Ablations
Proprietary Model. Under the minimal Title zero-shot setting, GPT-5.5 achieves an of 0.440, beating only EuroLLM 22B in the same configuration and falling substantially be-

Figure 4: Impact of each configuration axis on : difference between highest and lowest mean across that axis. Each cell reports this range for one model (row) and one configuration dimension (column), marginalising over all other axes.
hind the other models. With Explicit conditioning and dense, similarity-based retrieval, GPT-5.5 reaches 0.716, beating the best open-weights model Gemma-4 26B in the same configuration by 0.018, but falling behind Gemma-4 26B's best run by 0.017.
Fine-Tuning. Fine-tuned with Implicit conditioning in a zero-shot set-up, Gemma-4 E4B (FT) achieves an of 0.741. This is marginally above the best run of the main experiments (Gemma-4 26B, Impl. D-Sim; 0.733; +0.008), is a substantial improvement over the best Implicit Gemma-4 E4B run (0.582; +0.159), and is 0.082 above the best overall Gemma-4 E4B run (0.659).
The fine-tuned Gemma-4 E4B (FT) with Implicit conditioning also achieves our best results on the held-out competition test set: an score of 0.74. It shows a contrasting pattern in positive-class Precision (0.702) and Recall (0.431), being less sensitive to defamatory offences but more precise in its predictions.

Figure 5: Interaction effects between demonstration ratio and order. Mean scores per model and configuration are shown.
Class Ratio and Ordering. The impact of demonstration ratio and ordering (in terms of class labels) on is highly model-dependent, as depicted in Figures 5 and 6. Gemma-4 26B is barely affected. Gemma-4 E4B is only slightly affected by ordering, but the effect of class ratio is more pronounced. EuroLLM 22B is most affected by both class ratio and ordering. The individual ratio and order axes have little effect on Qwen3.5 9B, yet it shows the strongest interaction between them; the interaction is similar for EuroLLM 22B but negligible for both Gemma-4 models. Across models, ordering matters more when the demonstrations are class-balanced, whereas its effect is negligible under the proportional ratio—except for Qwen3.5 9B.
Static Demonstrations. The sets of demonstrations selected with the random search are reported in Appendix B.3. Under the static configuration, Gemma-4 26B reaches an of 0.723 for Title conditioning and an of 0.754 for Implicit conditioning, beating the results of best Title (+0.028) and Implicit (+0.021) conditioning configuration of the main experiments.
| Gemma-4 26B | 0.009 | 0.023 | 0.013 |
|---|---|---|---|
| Gemma-4 E4B | 0.107 | 0.038 | 0.018 |
| Qwen3.5 9B | 0.012 | 0.039 | 0.108 |
| EuroLLM 22B | 0.207 | 0.094 | 0.096 |
| Ratio | Order | Interaction |
Figure 6: Each cell shows the impact of one factor for one model. Ratio and Order report the range of marginal means. Interaction reports the range of interaction residuals .
6 Discussion
Although RetICL is our focus, the retrieval mechanisms contribute remarkably little to model performance: embedding mode and retrieval strategy move far less than the conditioning mode, the zero-/few-shot distinction, or the number, class ratio, and ordering of demonstrations, and the elaborate dynamic strategies barely beat random retrieval. This nuances the endorsement of similarity-based selection by Margatina et al. (2023) and aligns with Liu and Shi (2024): for criminally relevant hate speech, the gains demonstrations bring primarily come from few-shot prompting itself, not from how examples are selected. Also consistent with Liu and Shi (2024) is that an optimised, static set of demonstrations improves performance over all dynamic approaches within the same conditioning mode (at least for the tested configurations on Gemma-4 26B), suggesting that good demonstration selection for this task depends on metrics other than those used for dynamic selection. The fragility of fine-grained demonstration tuning is underlined by the shared task results: the ratio / ordering configuration that won in cross-validation fell behind the default on the held-out test set (Appendix D.5).
Model choice matters more than prompting: its mean impact on (0.309) exceeds that of any single prompting axis (Fig. 4). Scale, however, is not decisive—the small Gemma-4 E4B (0.659) beats the larger EuroLLM 22B (0.474), and even GPT-5.5 collapses to 0.440 under Title zero-shot prompting before reaching a result of 0.716 with Explicit conditioning. Weaker models are also often more configuration-sensitive (EuroLLM 22B spans ~0.5 across all its runs, including ablations), so a poor model should not be dismissed before its prompting is tuned; capability tracks training and conditioning rather than size (Miller et al., 2025).
Contrary to Ludwig et al. (2025), who found abstract conditioning superior for § 130 StGB, more concrete, decomposed legal knowledge helps here: Explicit conditioning is best on average and best for three of four models, while Title is usually worst. The effect is neither strictly monotonic nor model-independent, supporting subtask decomposition (AlKhamissi et al., 2022) while showing that the right form of legal conditioning depends on the model. Decomposition also aids explainability, a further argument for this configuration.
The naive TF-IDF baseline () is strikingly competitive, outperforming most smaller-model runs. This may reflect homogeneous data, where lexical overlap already proxies the label well—a shortcut unlikely to survive distribution shift or concept drift, where LLMs' semantic abilities should matter more. Reliability is a further concern: Recall on the positive class exceeds Precision, so the systems over-predict criminal relevance yet still miss between 26% and 57% of criminally relevant posts, positioning these models as triage tools for human review rather than for unsupervised moderation. Under this framing, the models clearly beat the baseline, which misses 64% of criminally relevant posts. Over-sensitivity of LLMs may be an unintended side-effect of alignment: Selvaganapathy and Nasim (2026) find that minimally aligned models outperform aligned ones in hate speech classification, echoing a broader unintended trade-off between safety and truthfulness reported by Mahmoud et al. (2026).
Finally, our QLoRA fine-tune of the small Gemma-4 E4B () exceeds the best dynamic prompting configuration (0.733, Gemma-4 26B), a lead that holds on the held-out test set (0.74 vs. 0.72): a cheaply fine-tuned 4B model can match a carefully prompted 26B one, so where a modest labelled set exists, parameter-efficient fine-tuning is a strong alternative to ICL. However, it is less suited as a triage tool, as it misses more than fifty percent of defamatory offences, albeit being more precise when predicting the positive class.
7 Conclusion
We tested prompting strategies for detecting defamatory offences under §§ 185–187 StGB, varying
both the legal knowledge supplied to the model and the way few-shot demonstrations are retrieved. Contrary to Ludwig et al. (2025), more concrete legal knowledge helps; and while few-shot prompting clearly outperforms zero-shot, more elaborate retrieval offers only a marginal advantage over randomly chosen demonstrations. Optimised static demonstrations can outperform dynamic retrieval, at least in the settings we tested. Model choice has more impact on task performance than any prompting configuration axis alone, and the task remains hard: most of the open-weights models we tested do not consistently match a naive nearest-neighbour baseline in terms of . However, models outperform this baseline consistently in terms of Recall, which we argue is the more relevant metric for a triage setting. The interaction of demonstration class ratio and ordering, the way such positional and class biases are represented within a model, and their stability across data splits remain promising directions for future work.
Limitations
Our findings are confined to a single language, dataset, and annotation scheme, all drawn from the same distribution; the homogeneity that makes the nearest-neighbour baseline strong also limits external validity. Assessing how concept drift and more heterogeneous data affect the baseline, the RetICL strategies, and the fine-tuning approach is a natural next step—we conjecture that nearest-neighbour, SFT and static demonstration approaches, which lean on specific training instances, may degrade more than concept-driven LLM prompting under such shift, though this remains to be tested. We also did not exhaust the entire configuration space: the most favourable demonstration settings were not all combined. Reasoning-based legal prompting (legal syllogism / chain-of-thought; Deng et al., 2024; Jiang and Yang, 2023; Zhang et al., 2025) remains an underexplored extension for explicitly modelling the statutory decision tree, as we only use models with their respective thinking modes disabled. Finally, §§ 185–187 are usually prosecuted only on application by the victim (§ 194 StGB); proactive automatic detection is therefore of more limited practical relevance for these offences than for ex officio offences such as § 130 StGB (incitement to hatred), where the public prosecutor initiates proceedings on its own motion (Beulke and Swoboda, 2025).
References
Aish Albladi, Minarul Islam, Amit Das, Maryam Bigonah, Zheng Zhang, Fatemeh Jamshidi, Mostafa Rahgouy, Nilanjana Raychawdhary, Daniela Marghitu, and Cheryl Seals. 2025. Hate Speech Detection Using Large Language Models: A Comprehensive Review. IEEE Access, 13:20871–20892.
Badr AlKhamissi, Faisal Ladhak, Srinivasan Iyer, Veselin Stoyanov, Zornitsa Kozareva, Xian Li, Pascale Fung, Lambert Mathias, Asli Celikyilmaz, and Mona Diab. 2022. ToKen: Task decomposition and knowledge infusion for few-shot hate speech detection. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 2109–2120.
Werner Beulke and Sabine Swoboda. 2025. Strafprozessrecht. CF Müller. ISBN: 9783811468115.
Harrison Chase. 2022. LangChain.
Christoph Demus, Jonas Pitz, Mina Schütz, Nadine Probol, Melanie Siegel, and Dirk Labudde. 2022. DeTox: A Comprehensive Dataset for German Offensive Language and Conversation Analysis. In Proceedings of the Sixth Workshop on Online Abuse and Harms (WOAH), pages 143–153, Seattle, Washington (Hybrid). Association for Computational Linguistics.
Chenlong Deng, Kelong Mao, Yuyao Zhang, and Zhicheng Dou. 2024. Enabling Discriminative Reasoning in LLMs for Legal Judgment Prediction. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 784–796, Miami, Florida, USA. Association for Computational Linguistics.
Destatis. 2025. Ein Drittel der Internetnutzenden stößt im Netz auf Hatespeech. Pressemitteilung Nr. 421 vom 27. November 2025. Last accessed 03.08.2026.
Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. 2023. QLoRA: Efficient Fine-tuning of Quantized LLMs. In Advances in Neural Information Processing Systems, volume 36, pages 10088–10115. Curran Associates, Inc.
European Union Agency for Fundamental Rights. 2023. Online content moderation–Current challenges in detecting hate speech. Last accessed 03.08.2026.
Wenqi Fan, Yujuan Ding, Liangbo Ning, Shijie Wang, Hengyun Li, Dawei Yin, Tat-Seng Chua, and Qing Li. 2024. A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, KDD '24, page 6491–6501, New York, NY, USA. Association for Computing Machinery.
Jenny Felser, Thomas Holzhausen, Tony Katzwinkel, Frederike Zufall, Florian Ludwig, Martin Hofer, Melanie Siegel, and Michael Spranger. 2026. 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.
Chengguang Gan and Tatsunori Mori. 2023. Sensitivity and Robustness of Large Language Models to Prompt Template in Japanese Text Classification Tasks. Preprint, arXiv:2305.08714.
Ankita Gandhi, Param Ahir, Kinjal Adhvaryu, Pooja Shah, Ritika Lohiya, Erik Cambria, Soujanya Poria, and Amir Hussain. 2024. Hate speech detection: A comprehensive review of recent works. Expert Systems, 41(8):e13562.
Jonas Glasebach, Max-Emanuel Keller, Alexander Döschl, and Peter Mandl. 2024. GMHP7k: A Corpus of German Misogynistic Hatespeech Posts. Proceedings of the International AAAI Conference on Web and Social Media, 18(1):1946–1957.
Janis Goldzycher, Paul Röttger, and Gerold Schneider. 2024. Improving adversarial data collection by supporting annotators: Lessons from GAHD, a German hate speech dataset. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 4405–4424, Mexico City, Mexico. Association for Computational Linguistics.
Cong Jiang and Xiaolei Yang. 2023. Legal Syllogism Prompting: Teaching Large Language Models for Legal Judgment Prediction. In Proceedings of the Nineteenth International Conference on Artificial Intelligence and Law, ICAIL '23, page 417–421, New York, NY, USA. Association for Computing Machinery.
Yumin Kim and Hwanhee Lee. 2025. Selective Demonstration Retrieval for Improved Implicit Hate Speech Detection. arXiv preprint. ArXiv:2504.12082 [cs].
Vincent Kums, Florian Meyer, Luisa Pivit, Uliana Vedenina, Jonas Wortmann, Melanie Siegel, and Dirk Labudde. 2025. A Novel Dataset for Classifying German Hate Speech Comments with Criminal Relevance. In Proceedings of the The 9th Workshop on Online Abuse and Harms (WOAH), pages 41–52, Vienna, Austria. Association for Computational Linguistics.
Menglin Liu and Ge Shi. 2024. PoliPrompt: A High-Performance Cost-Effective LLM-Based Text Classification Framework for Political Science. Available at SSRN 4940136.
Yao Lu, Max Bartolo, Alastair Moore, Sebastian Riedel, and Pontus Stenetorp. 2022. Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivity. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8086–8098, Dublin, Ireland. Association for Computational Linguistics.
Florian Ludwig, Torsten Zesch, and Frederike Zufall. 2025. Conditioning Large Language Models on Legal Systems? Detecting Punishable Hate Speech. In Proceedings of the 21st Conference on Natural Language Processing (KONVENS 2025): Long and Short Papers, pages 154–167, Hannover, Germany. HsH Applied Academics.
Man Luo, Xin Xu, Yue Liu, Panupong Pasupat, and Mehran Kazemi. 2024. In-context learning with retrieved demonstrations for language models: A survey. arXiv preprint arXiv:2401.11624.
Omar Mahmoud, Ali Khalil, Thommen George Karimpanal, Buddhika Laknath Semage, and Santu Rana. 2026. The Unintended Trade-off of AI Alignment: Balancing Hallucination Mitigation and Safety in LLMs. In Findings of the Association for Computational Linguistics: EACL 2026, pages 1017–1037, Rabat, Morocco. Association for Computational Linguistics.
Katerina Margatina, Timo Schick, Nikolaos Aletras, and Jane Dwivedi-Yu. 2023. Active Learning Principles for In-Context Learning with Large Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 5011–5034, Singapore. Association for Computational Linguistics.
Kurt Miller, Steven Bedrick, Qiuhao Lu, Andrew Wen, William Hersh, Kirk Roberts, and Hongfang Liu. 2025. Dynamic few-shot prompting for clinical note section classification using lightweight, open-source large language models. Journal of the American Medical Informatics Association, 32(7):1164–1173.
Niklas Muennighoff, Nouamane Tazi, Loic Magne, and Nils Reimers. 2023. MTEB: Massive Text Embedding Benchmark. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pages 2014–2037, Dubrovnik, Croatia. Association for Computational Linguistics.
Ali Hakimi Parizi, Yuyang Liu, Prudhvi Nokku, Sina Gholamian, and David B. Emerson. 2023. A Comparative Study of Prompting Strategies for Legal Text Classification. Proceedings of the Natural Legal Language Processing Workshop 2023.
Research Services of the German Parliament. 2022. Fundamentals of Defamatory Offences (§§ 185 ff. StGB) from a Criminal and Civil Law Perspective. Sachstand WD 7 - 3000 - 052/22, Deutscher Bundestag.
S. E. Robertson and K. Sparck Jones. 1976. Relevance weighting of search terms. Journal of the American Society for Information Science, 27(3):129–146.
Stephen Robertson and Hugo Zaragoza. 2009. The Probabilistic Relevance Framework: BM25 and Beyond. Found. Trends Inf. Retr, 3(4):333–389.
Kuleen Sasse, Carlos Alejandro Aguirre, Isabel Cachola, Sharon Levy, and Mark Dredze. 2025. Making
FETCH! Happen: Finding Emergent Dog Whistles Through Common Habitats. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5687–5709, Vienna, Austria. Association for Computational Linguistics.
Johannes Schäfer. 2023. Bias Mitigation for Capturing Potentially Illegal Hate Speech. Datenbank-Spektrum, 23(1):41–51.
Melanie Sclar, Yejin Choi, Yulia Tsvetkov, and Alane Suhr. 2024. Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formatting. In The Twelfth International Conference on Learning Representations.
Sanjeevan Selvaganapathy and Mehwish Nasim. 2026. Confident, Calibrated, or Complicit: Safety Alignment and Ideological Bias in LLM Hate Speech Detection. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 34537–34552, San Diego, California, United States. Association for Computational Linguistics.
Dietrich Trautmann, Alina Petrova, and Frank Schilder. 2022. Legal prompt engineering for multilingual legal judgement prediction. Preprint, arXiv:2212.02199.
Muhammad Usman, Muhammad Ahmad, Grigori Sidorov, Irina Gelbukh, and Rolando Quintero Tellez. 2025. A Large Language Model-Based Approach for Multilingual Hate Speech Detection on Social Media. Computers, 14(7).
Oskar von Cossel. 2026. Beyond Imperfect Alternatives with Rulemapping: A Neuro-Symbolic Case Study on Online Hate Speech. Preprint, arXiv:2605.16280.
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Remi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, and 3 others. 2020. Transformers: State-of-the-Art Natural Language Processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 38–45, Online. Association for Computational Linguistics.
Kepu Zhang, Weijie Yu, Zhongxiang Sun, and Jun Xu. 2025. SyLeR: A Framework for Explicit Syllogistic Legal Reasoning in Large Language Models. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management, CIKM '25, page 4117–4127, New York, NY, USA. Association for Computing Machinery.
Ziyin Zhang, Zihan Liao, Hang Yu, Peng Di, and Rui Wang. 2026. F2LLM-v2: Inclusive, Performant, and Efficient Embeddings for a Multilingual World. Preprint, arXiv:2603.19223.
Frederike Zufall, Marius Hamacher, Katharina Kloppenborg, and Torsten Zesch. 2022. A Legal Approach to Hate Speech – Operationalizing the EU’s Legal Framework against the Expression of Hatred as an NLP Task. In Proceedings of the Natural Legal Language Processing Workshop 2022, pages 53–64, Abu Dhabi, United Arab Emirates (Hybrid). Association for Computational Linguistics.
Frederike Zufall, Tobias Horsmann, and Torsten Zesch. 2019. From legal to technical concept: Towards an automated classification of German political Twitter postings as criminal offenses. 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), pages 1337–1347, Minneapolis, Minnesota. Association for Computational Linguistics.
Appendix
A Annotation Scheme
The dataset of the shared task is labelled according to the decision scheme of Zufall et al. (2019) for §§ 185–187 StGB (subsection 2.1). The three offences differ mainly in the nature of the statement and its addressee (Research Services of the German Parliament, 2022):
- § 185 Insult (Beleidigung): expressions of contempt toward a person, typically value judgments that can be proven neither true nor false.
- § 186 Defamation (Üble Nachrede): asserting a disparaging fact about someone to third parties when its truth cannot be established.
- § 187 Intentional Defamation (Verleumdung): the aggravated case of knowingly spreading a false fact, carrying the highest penalty.
The scheme of Zufall et al. (2019) operationalises punishability as six binary (yes / no) decisions taken solely from the text of a post: a three-step spine (steps 1–3) and, for value judgments, a three-way balancing of competing rights (steps 4–6).
-
Defamatory object. The post must target a valid holder of the right to honour: a living individual or a specific group distinguishable from the general public (including collective entities such as governments or companies). If neither is addressed, the statement is not punishable.
-
Disparaging statement. The statement must express contempt or allege shortcomings that could lower the victim's social standing. If it is not disparaging, it is not punishable.
-
Value judgment vs. factual claim. A disparaging statement is either a factual claim (provably true or false) or a value judgment (personal opinion). Establishing the punishability of a factual claim would require the court to take evidence on its truth—information beyond the text—so the assessment halts here. Value judgments proceed to the balancing step.
Balancing of rights (steps 4–6; value judgments only). A value judgment may be protected under freedom of expression and thus be safeguarded as legitimate interest (§ 193 StGB). The scheme
encodes the established case-law for weighing this freedom against the right to honour as three further binary decisions:
-
Abusive insult (Formalbeleidigung): a taboobreaking statement intended only to defame, excluded from free-speech protection → punishable.
-
Topic of public interest: a contribution to public discourse, carrying a presumption in favour of free speech → usually not punishable.
-
Abusive criticism (Schmähkritik): a statement going beyond plausible criticism primarily to offend the victim → usually punishable.
Where these signals conflict or coincide, the outcome depends on a free judicial balancing of the individual circumstances, which Zufall et al. (2019) deliberately leave unimplemented. The task, however, requires strictly binary True / False labels and does not allow for an “undecided” class. We therefore resolved undecided steps to “not punishable”, following the principle in dubio pro reo (“when in doubt, for the accused”). An alternative would be to resolve undecided steps to “punishable” instead—a defensible choice if the scheme is framed as a triage tool, as we argue for in the main part of this paper, where the goal is to flag potentially problematic content for human review rather than to render a final legal judgment.
Relatedly, while Zufall et al. (2019) operationalise the punishability of a post, we frame the task more broadly in this paper as classifying posts with respect to their criminal relevance under §§ 185–187 StGB. Since we are not legal experts and frame the task as a triage tool for law enforcement or content moderation rather than a substitute for judicial assessment, we deliberately leave any definitive judgement of punishability or prosecutability to human experts downstream.
Zufall et al. (2019) report that suitably instructed laypeople can apply the scheme with reasonable reliability relative to an expert reference, though they tend to interpret specific group and disparaging statement more leniently.
B Conditioning
B.1 Content
System Prompt
You are a legal expert for defamatory offences according to the German Criminal Code ( §§ 185–187 StGB). Help the user decide whether given posts fall within the scope of these sections.
Task All task descriptions are followed by the prompt to “Answer only with 'True' (criminally relevant according to §§ 185–187 StGB) or 'False' (not criminally relevant according to §§ 185–187 StGB).”, or “Answer only with 'True' or 'False'.” for the explicit conditioning mode.
Title
Is the following post criminally relevant with respect to §§ 185–187 StGB (Defamatory Offence)?
Description
Is the following post criminally relevant with respect to §§ 185–187 StGB (Defamatory Offence)? A statement is criminally relevant under these titles only if either a living individual or a specific group is an object of the respective statement, if the statement is disparaging, the statement is a value judgement and not a factual claim. If these hold and the statement constitutes an abusive insult, it is criminally relevant. If it is not an abusive insult, it is only criminally relevant if it contains abusive criticism and if the topic is not of public interest.
Implicit Steps
Step 1: A defamatory object can be a living individual, a group of persons that is distinguishable from the general public such that every member of that group could feel their honour is infringed or collective entities such as governments or press companies with a recognised social role and who act with a collective, single will.
Is there a defamatory object in this statement?
No → STOP (NOT criminally relevant according to §§ 185–187 StGB)
Yes → Step 2
Step 2: A disparaging statement is a statement which interferes with the potential victim’s right
to honour. It is already fulfilled by expressing contempt or disrespect through the allegation of shortcomings that could reduce the victim’s social standing.
Is there a disparaging statement directed towards the defamatory object?
No → STOP (NOT criminally relevant according to §§ 185–187 StGB)
Yes → Step 3
Step 3: A factual claim is a statement that can be proven to be true or untrue in front of a court. A value judgment constitutes an expression of personal opinions.
Is it primarily a value judgement and NOT primarily a factual claim?
No → STOP (NOT criminally relevant according to §§ 185–187 StGB)
Yes → Step 4
Step 4: An abusive insult is a statement that constitutes breaking a taboo by itself and intends only the defamation of the victim without any substantiated contribution.
Is the statement an abusive insult?
Yes → STOP (criminally RELEVANT according to §§ 185–187 StGB)
No → Step 5
Step 5: A statement is of public interest if it contains a contribution to the public discourse with respect to a particular relevant topic of public interest.
Is the statement of public interest?
Yes → STOP (NOT criminally relevant according to §§ 185–187 StGB)
No → Step 6
Step 6: A statement is considered abusive criticism if it goes beyond plausible criticism by primarily intending to abusively offend the victim, hereby neglecting a substantiated contribution.
Is the statement abusive criticism?
Yes → STOP (criminally RELEVANT according to §§ 185–187 StGB)
No → STOP (NOT criminally relevant according to §§ 185–187 StGB)
According to this decision scheme, decide whether the following text is criminally relevant according to §§ 185–187 StGB (Defamatory Offence).
Explicit
Step 1
A defamatory object can be a living individual, a group of persons that is distinguishable from the general public such that every member of that group could feel their honour is infringed or collective entities such as governments or press companies with a recognised social role and who act with a collective, single will.
Is there a defamatory object in this statement?
Step 2
A disparaging statement is a statement which interferes with the potential victim’s right to honour. It is already fulfilled by expressing contempt or disrespect through the allegation of shortcomings that could reduce the victim’s social standing.
Is there a disparaging statement directed towards the defamatory object?
Step 3
A factual claim is a statement that can be proven to be true or untrue in front of a court. A value judgment constitutes an expression of personal opinions.
Is the statement primarily a value judgement?
Step 4
An abusive insult is a statement that constitutes breaking a taboo by itself and intends only the defamation of the victim without any substantiated contribution.
Is the statement an abusive insult?
Step 5
A statement is of public interest if it contains a contribution to the public discourse with respect to a particular relevant topic of public interest.
Is the statement of public interest?
Step 6
A statement is considered abusive criticism if it goes beyond plausible criticism by primarily intending to abusively offend the victim, hereby neglecting a substantiated contribution.
Is the statement abusive criticism?
B.2 Chat Template
All experiments were conducted with user-assistant turns using the models’ tokenisers’ chat templates. The prompts are structured as follows:
[ {role:system,content:system_prompt}, {role:user,content:task}, {role:user,content:demonstration_1}, {role:assistant,content:class_1}, {role:user,content:demonstration_2}, {role:assistant,content:class_2}, ... {role:user,content:demonstration_k}, {role:assistant,content:class_k}, {role:user,content:post} ]
B.3 Static Demonstrations
Content Warning
This section contains examples of hate speech, including instances that are highly offensive and, in some cases, criminally relevant under German law (§ 130, §§ 185–187 StGB, inter alia). These examples are included solely for scientific and illustrative purposes, to enable transparent evaluation and reproducibility of our methods. They do not reflect the views of the authors. Reader discretion is advised.
The sets of demonstrations optimised using a random search (see Appendix C.6) are reported here.
Title Conditioning
"... komisches Interview... Hallo Baden-Württemberger: was hat euch dazu bewogen, diese Spastiker zu wählen ???..."
True
"Die ehrlose faschistische Ratte habe ich nie gekannt, sie ist ausgelöscht aus meinem Leben."
True
"Im Sommer werden solche Journalisten gehängt ;)"
False
"Linksfaschos schlagen auf Grenzer ein damit Flüchtlinge aus dem Herkunftsland der Links-faschos ausreisen können? Ja wie bekloppt ist das denn? Das ist doch völlig absurd!"
False
"Ob Journalisten oder Politiker, es sind doch alle nur noch scheinheilige Geister. Wenn sich diese sogenannte feine Gesellschaft anmaßt uns als Nazi, Mischpoke und Pack zu betiteln, dann werden wir uns doch erlauben dürfen dieses miese etwas in ähnlicher Weise zu behandeln."
False
"SOLLEN FROH SEIN ÜBERHAUPT HIER SEIN ZU DÜRFEN, DRECKSGELUMPE"
False
"Wer keine Ahnung von der Realität hat sollte die Fresse halten, kleines Antideutsches [name] Würstchen :D [url]"
True
"[name] du roter vollpfosten"
True
Implicit Conditioning
"@user, du bist geistig behindert und ein saudummer AFD-Russentroll !!!"
True
"Grammatik bei Yoda gelernt du hast ! Was für ein unterbelichtetes Höhlenkind. And now: GTFO !"
True
"Krankes Pack!"
False
"[name] Du kleiner dummer Junge,hast keine Ahnung vom Leben.Ich möchte dir so gerne eine neue saubere Windel überziehen.Die hast du dringend nötig!"
True
"Solange [name] keine nachprüfbare Dissertation vorlegen kann, ist er für mich der größte Scharlatan und Volksschädling aller Zeiten. Es ist an der Zeit für ihn Gift oder Kugel zu wählen. Der angerichtete Schaden für Wiedergutmachung ist zu groß."
True
"War doch eh wieder ein Asylbewerber...vielleicht gings ja wieder um die Haushaltsführung??? Kann [name] und Konsorten wieder Hände schütteln gehen und alles auf die bösen Nazis schieben. Die Armen brauchen nämlich Trost und Schutz. Am besten nimmt die [name] und [name] und wie sie
alle heißen gleich noch ein paar Nutten mit, natürlich zum Nulltarif... Die nordafrikanischen Testosteronbolzenschäumen sonst über und das wollen wir ja nicht...nicht das wir noch mit dem europäischen Gerichtshof für Menschenrechte zu tun bekommen..."
False
"also ich würde fahren und wenn das blut erstmal 5meter weit spritzt knochen und körper fliegen machen die anderen platz haben auf der bab nichts aber auch garnichts zu suchen ( eingriff in straßenverkehr )"
False
"Über die Ossis damals gemault! Die schwarzen willkommen heißen! Ihr seid ja Bazis"
False
C Detailed Experiment Settings
Except for the API-based inference calls, all models are loaded from the HuggingFace Hub and run with the Transformers library (Wolf et al., 2020). Inference calls are executed in batches for quicker computation. Thinking mode is explicitly turned off for the models and max_tokens is set to 10, because we expect only "True" or "False" labels in models' generated answers.
For the ablation using GPT-5.5, max_tokens has to be changed because minimum max_tokens when using the API is 16, which we set accordingly.
Generated answers are parsed directly as True / False labels, not allowing for any additional text. This works very well across all models; fewer than 1% of answers cannot be parsed (see Appendix D.3).
C.1 Exploration Setup
When exploring demonstration sizes , each model / k combination is explored twice: once with a Title, dynamic, dense, similarity prompting configuration and once with Description, dynamic, random configuration.
C.2 Knowledge Bases
For the dense embeddings, the codefuse-ai/F2LLM-v2-1.7B (Zhang et al., 2026) embedding model is used, which ranked among the highest on the MTEB leaderboard for German tasks (Fig. 7) during the first half of 2026. Only larger models of the same family surpass this model, but for efficiency reasons we opt for the 1.7-billion model.
MTEB Leaderboard - a Hugging Face Space by mteb
https://huggingface.co/spaces/mtebleaderboard

1 of 1
6/28/26, 22:14
Figure 7: Screenshot of the MTEB Leaderboard for embedding models on German tasks, dated 28 June 2026.
When using both similarity- and MMR-based retrieval, these embeddings are used to build a LangChain vector store³, which is queried at inference time for selecting the best training samples based on the respective retrieval strategy. LangChain’s vector store enables filtering when querying, making it easy to retrieve samples based on their class.
For diversity-based retrieval, the dense embeddings are clustered using sklearn’s K-Means algorithm, where . Clusters are built separately for positive and negative classes. At inference time, a training sample is drawn at random from each cluster, resulting in a diverse set of demonstrations, balanced by class.
The sparsely embedded knowledge base is built with a BM25Retriever module⁴, a LangChain com-
munity build. Because this retriever does not allow for filtered similarity search, a retriever is built for each class separately. At inference time, the most similar training samples are retrieved for both classes.
C.3 Explicit Conditioning
The Explicit mode deconstructs the task into six subtasks. These are prompted sequentially. After each step, the model’s answer is parsed into a True or False label. If the decision at step results in a definite final label (e.g. if there is no defamatory object present (step 1), resulting in a final False label), the decision scheme is halted and the final label is set.
The additionally labelled dataset is created in the same fashion—resulting in single-step annotations only for the subset of steps until a final decision is reached. When using the Explicit mode in a few-shot setting, this dataset is used for the demonstration pool. Labels get rarer for later steps, and there is a strong class imbalance for some of the steps (in total, there are only 10 positive instances for abusive insult). Especially for the clustering method of the diversity-based retrieval, this can mean that not enough demonstrations for one label can be retrieved at inference time. In the rare cases that this happens, demonstration ratio takes precedence over demonstration size: the demonstrations will be chosen so that the resulting set of few-shot demonstrations is balanced, even if this means that fewer than 8 demonstrations are used.
C.4 Proprietary Model
The GPT-5.5 model is used with the dated snapshot version gpt-5.5-2026-04-23.
C.5 Fine-Tuning
Gemma-4 E4B is loaded with 4-bit NF4 quantisation and double quantisation, and LoRA adapters are trained on the attention and feed-forward projection layers. Training uses a maximum sequence length of 1024 tokens, three epochs, batch size 1 with 32 gradient accumulation steps, a learning rate of , and gradient checkpointing. Prompt tokens are masked from the loss so that optimisation targets only the label completion. Generation uses thinking_mode: False with a maximum budget of 10 tokens per sample.
³https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore
⁴https://reference.langchain.com/python/langchain-community/retrievers/bm25/BM25Retriever
C.6 Static Demonstrations
To select the demonstration set for the static few-shot condition, we perform a random search over candidate sets drawn from the training data. We sample 30 class-balanced candidate sets of demonstrations each ( per class) and evaluate every set by using it as few-shot context for classifying a fixed evaluation subset of 300 posts, sampled from the training data stratified by class label and kept disjoint from the demonstration pool. Each candidate set is scored by over the model's predictions; the best-scoring set is retained. The search is conducted separately for the two prompt templates Title and Implicit, so the selected demonstrations are optimised for the exact prompt they are later used with. We only optimise sets of demonstrations for the Gemma-4 26B model.
D Detailed Results
Full results of all runs of the main experiments are reported in Table 9.
D.1 Exploration Results
Table 3 reports the mean scores per model, for all explored demonstration sizes , along with the respective gain or loss in score after doubling the demonstration size.
| Model | k=4 | k=8 | k=16 | k=32 |
|---|---|---|---|---|
| Gemma-4 26B | 0.660 | 0.689 (+0.029) | 0.682 (-0.007) | 0.686 (+0.005) |
| Gemma-4 E4B | 0.547 | 0.596 (+0.049) | 0.631 (+0.035) | 0.673 (+0.042) |
| Qwen3.5 9B | 0.549 | 0.560 (+0.011) | 0.584 (+0.024) | 0.617 (+0.033) |
| EuroLLM 22B | 0.373 | 0.399 (+0.026) | 0.443 (+0.044) | 0.475 (+0.031) |
| Mean | 0.532 | 0.561 (+0.029) | 0.585 (+0.024) | 0.613 (+0.028) |
Table 3: Mean per model and . Values in parentheses show the gain / loss vs. the previous . Largest gains are reported in bold.
D.2 RetICL Configurations
In the paper, we show that the embedding and retrieval modes have very little impact on model performance in comparison to conditioning mode and the difference between zero- and few-shot.
The best configuration per model (Table 1) is similarity-based for all models, based on dense embeddings for both Gemma-4 26B and Qwen3.5 9B and based on sparse embeddings for Gemma-4 E4B and EuroLLM 22B. However, on average (Table 4), a knowledge base made up of dense embeddings performs best for all models.
While similarity-based retrieval is also best on average for both Gemma-4 models and EuroLLM 22B, diversity-based retrieval performs slightly better on average for Qwen3.5 9B.
While dense similarity-based RetICL performs well on average, these settings should be explored for each conditioning mode so that the best overall configuration can be found.
| Model | D-Sim | D-MMR | D-Div | F-Sim | S-Sim | Rand | |
|---|---|---|---|---|---|---|---|
| Gemma-4 26B | 0.709 | 0.709 | 0.701 | 0.705 | 0.693 | 0.696 | 0.016 |
| Gemma-4 E4B | 0.607 | 0.584 | 0.606 | 0.598 | 0.594 | 0.600 | 0.023 |
| Qwen3.5 9B | 0.579 | 0.576 | 0.596 | 0.579 | 0.583 | 0.595 | 0.019 |
| EuroLLM 22B | 0.438 | 0.401 | 0.384 | 0.427 | 0.430 | 0.388 | 0.054 |
Table 4: by model and retrieval configuration (k=8, mean over all prompt modes). Bold: best retrieval config per model; italic: worst. = best—worst.
D.3 Abstentions
Absolute and relative abstention rates are reported in Table 5. Abstention is very low overall, with median 0–1 abstentions per run, which is less than 1% of posts. For Gemma-4 26B, 648 of the 657 abstentions occur in a single configuration: under Explicit zero-shot prompting, the model asks for further information to classify the first step (defamatory object) instead of replying True or False. Without context, many posts are ambiguous at this step, since personal pronouns—especially in the plural—cannot conclusively establish the existence of a defamatory object. When demonstrations are supplied as user–assistant turns, the model is far more likely to commit to an answer despite the ambiguity.
| Model | Total | Mean | Median | Rate |
|---|---|---|---|---|
| Gemma-4 26B | 657 | 23.5 | 0.0 | 0.7% |
| Gemma-4 E4B | 14 | 0.5 | 0.0 | 0.02% |
| Qwen3.5 9B | 25 | 0.9 | 1.0 | 0.03% |
| EuroLLM 22B | 25 | 0.9 | 1.0 | 0.03% |
Table 5: Abstentions per model across all configurations (total, mean and median per config and total rate).
D.4 Class Ratio and Ordering
Detailed scores for all ratio–ordering combinations are reported in Table 6. Per-factor mean scores (averaged over the other factor) are reported in Table 7. In terms of per-factor mean , the pattern is uniform: a proportional class ratio outperforms balanced demonstrations for all four models, and true-first ordering outper-
| Random | True first | True last | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| F1 | P_T | R_T | F1 | P_T | R_T | F1 | P_T | R_T | ||
| Gemma-4 26B | Balanced | 0.723 | 0.429 | 0.733 | 0.740 | 0.482 | 0.663 | 0.706 | 0.396 | 0.764 |
| Proportional | 0.727 | 0.471 | 0.617 | 0.741 | 0.523 | 0.586 | 0.728 | 0.465 | 0.641 | |
| Gemma-4 E4B | Balanced | 0.579 | 0.252 | 0.802 | 0.592 | 0.262 | 0.815 | 0.540 | 0.222 | 0.788 |
| Proportional | 0.677 | 0.393 | 0.528 | 0.690 | 0.415 | 0.547 | 0.665 | 0.382 | 0.484 | |
| Qwen3.5 9B | Balanced | 0.604 | 0.270 | 0.740 | 0.704 | 0.466 | 0.511 | 0.581 | 0.252 | 0.793 |
| Proportional | 0.663 | 0.547 | 0.306 | 0.608 | 0.670 | 0.176 | 0.653 | 0.362 | 0.465 | |
| EuroLLM 22B | Balanced | 0.445 | 0.181 | 0.870 | 0.546 | 0.225 | 0.773 | 0.361 | 0.160 | 0.918 |
| Proportional | 0.663 | 0.397 | 0.436 | 0.656 | 0.619 | 0.270 | 0.653 | 0.337 | 0.583 | |
Table 6: and true-class precision () and recall () for every demonstration ratio order combination (balance order ablation). Bold: best value per model across all combinations.
| Balanced | Proportional | Random | True first | True last | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| F1 | P_T | R_T | F1 | P_T | R_T | F1 | P_T | R_T | F1 | P_T | R_T | F1 | P_T | R_T | |
| Gemma-4 26B | 0.723 | 0.436 | 0.720 | 0.732 | 0.486 | 0.614 | 0.725 | 0.450 | 0.675 | 0.740 | 0.502 | 0.624 | 0.717 | 0.431 | 0.702 |
| Gemma-4 E4B | 0.571 | 0.245 | 0.802 | 0.677 | 0.397 | 0.520 | 0.628 | 0.322 | 0.665 | 0.641 | 0.339 | 0.681 | 0.603 | 0.302 | 0.636 |
| Qwen3.5 9B | 0.630 | 0.329 | 0.681 | 0.641 | 0.526 | 0.316 | 0.633 | 0.409 | 0.523 | 0.656 | 0.568 | 0.343 | 0.617 | 0.307 | 0.629 |
| EuroLLM 22B | 0.451 | 0.188 | 0.854 | 0.657 | 0.451 | 0.430 | 0.554 | 0.289 | 0.653 | 0.601 | 0.422 | 0.522 | 0.507 | 0.248 | 0.751 |
Table 7: and true-class precision () and recall () marginalised over each factor of the balance order ablation (ratio levels averaged over order; order levels averaged over ratio). Bold: best value per model within each factor block.
forms both random and true-last for all four models, with true-last consistently worst. The best individual combination deviates from these main effects for two models—Qwen3.5 9B peaks at balanced / true-first (0.704) and EuroLLM 22B at proportional / random (0.663)—reflecting the ratio-order interaction discussed in Section 5.3 (Fig. 6).
However, True-class Precision and Recall in Table 7 show another picture. Recall peaks for balanced and true-last demonstration sets for most models, while Precision is best for proportional and true-first demonstration sets across all models. As we argue that Recall is the most important metric for this task (while keeping an eye on Precision), balanced, true-last configuration for ratio / ordering of demonstrations comes out on top.
D.5 Shared Task Results
We submitted five runs to the DEF Subtask; the organisers scored them against the held-out test labels (Table 8). Our best submission, the fine-tuned Gemma-4 E4B (FT) (MUCnoHARM2), reached 0.74, narrowly ahead of the prompted Gemma-4 26B (MUCnoHARM1, 0.72). These held-out scores closely track the cross-validated results of Section 5 (0.741 → 0.74 for the fine-tune and 0.733 → 0.72 for Gemma-4 26B), indicating good transferability to the official test set. For the same Gemma-4 26B configuration, the default balanced, randomly ordered demonstrations (MUCnoHARM1) slightly outperformed the proportional, true-first variant (MUCnoHARM5, 0.70), suggesting that the gains from tuning demonstration ratio and ordering did not transfer to the held-out data.
| Run | Model | Cond. | Demonstrations | |
|---|---|---|---|---|
| 2 | G E4B (FT) | Impl. | zero-shot | 0.74 |
| 1 | G 26B | Impl. | D-Sim, bal. / rand. | 0.72 |
| 5 | G 26B | Impl. | D-Sim, prop. / T-first | 0.70 |
| 4 | Q 9B | Impl. | Rand, bal. / T-first | 0.64 |
| 3 | G E4B | Desc. | D-Div, prop. / T-first | 0.56 |
Table 8: Official shared task on the held-out DEF test set. Demonstrations: Dense-Similarity (D-Sim.), Random (Rand), Dense-Diversity (D-Div) retrieval configurations, balanced (bal.) or proportional (prop.) class ratio / random (rand.), true-first (T-first) or true-last (T-last) ordering. Best result in bold.
Table 9: Full results for all 112 configurations + GPT and fine-tuned models, sorted by (descending). : Precision / Recall for the criminal class. FS / ZS: few-shot / zero-shot. D / S / F: dense / sparse / fusion embeddings. Sim / Div / MMR / Rand: Similarity / Diversity / MMR / Random Retrieval.
| Model | Prompt | Retrieval | F1 | Acc. | ||
|---|---|---|---|---|---|---|
| Gemma-4 E4B (FT) | Implicit | ZS | 0.741 | 0.904 | 0.702 | 0.431 |
| Gemma-4 26B | Implicit | FS, D-Sim | 0.733 | 0.850 | 0.445 | 0.740 |
| Gemma-4 26B | Implicit | FS, D-MMR | 0.723 | 0.841 | 0.428 | 0.742 |
| Gemma-4 26B | Implicit | FS, D-Div | 0.722 | 0.833 | 0.417 | 0.788 |
| Gemma-4 26B | Implicit | FS, F-Sim | 0.719 | 0.836 | 0.419 | 0.745 |
| Gemma-4 26B | Implicit | FS, Rand | 0.717 | 0.829 | 0.410 | 0.790 |
| Gemma-4 26B | Description | FS, D-Sim | 0.716 | 0.830 | 0.411 | 0.773 |
| GPT-5.5 | Explicit | FS, D-Sim | 0.716 | 0.864 | 0.415 | 0.747 |
| Gemma-4 26B | Implicit | FS, S-Sim | 0.714 | 0.830 | 0.409 | 0.761 |
| Gemma-4 26B | Explicit | FS, D-MMR | 0.711 | 0.859 | 0.457 | 0.564 |
| Gemma-4 26B | Description | FS, F-Sim | 0.709 | 0.820 | 0.396 | 0.793 |
| Gemma-4 26B | Description | FS, D-MMR | 0.709 | 0.821 | 0.397 | 0.785 |
| Gemma-4 26B | Explicit | FS, F-Sim | 0.701 | 0.849 | 0.430 | 0.571 |
| Gemma-4 26B | Explicit | FS, D-Sim | 0.698 | 0.859 | 0.451 | 0.506 |
| Gemma-4 26B | Description | FS, S-Sim | 0.697 | 0.807 | 0.378 | 0.800 |
| Gemma-4 26B | Description | FS, D-Div | 0.696 | 0.799 | 0.373 | 0.848 |
| Gemma-4 26B | Title | FS, D-Div | 0.695 | 0.808 | 0.378 | 0.783 |
| Gemma-4 26B | Description | FS, Rand | 0.695 | 0.799 | 0.372 | 0.846 |
| Gemma-4 26B | Title | FS, D-MMR | 0.693 | 0.811 | 0.377 | 0.749 |
| Gemma-4 26B | Title | FS, Rand | 0.692 | 0.805 | 0.373 | 0.781 |
| Gemma-4 26B | Title | FS, D-Sim | 0.691 | 0.815 | 0.380 | 0.713 |
| Gemma-4 26B | Explicit | FS, D-Div | 0.691 | 0.847 | 0.421 | 0.532 |
| Gemma-4 26B | Title | FS, F-Sim | 0.690 | 0.809 | 0.374 | 0.747 |
| Gemma-4 26B | Title | FS, S-Sim | 0.686 | 0.803 | 0.366 | 0.757 |
| Gemma-4 26B | Explicit | FS, Rand | 0.681 | 0.848 | 0.416 | 0.492 |
| Gemma-4 26B | Explicit | FS, S-Sim | 0.676 | 0.836 | 0.392 | 0.523 |
| Gemma-4 26B | Implicit | ZS | 0.676 | 0.791 | 0.353 | 0.764 |
| Gemma-4 26B | Description | ZS | 0.674 | 0.782 | 0.347 | 0.807 |
| Gemma-4 E4B | Explicit | FS, S-Sim | 0.659 | 0.799 | 0.341 | 0.622 |
| Gemma-4 26B | Explicit | ZS | 0.652 | 0.777 | 0.329 | 0.683 |
| Gemma-4 E4B | Explicit | FS, D-Sim | 0.650 | 0.781 | 0.324 | 0.663 |
| Gemma-4 E4B | Explicit | FS, Rand | 0.646 | 0.798 | 0.328 | 0.559 |
| Gemma-4 E4B | Explicit | FS, F-Sim | 0.644 | 0.777 | 0.317 | 0.653 |
| Gemma-4 E4B | Explicit | FS, D-MMR | 0.644 | 0.762 | 0.313 | 0.733 |
| Gemma-4 E4B | Explicit | FS, D-Div | 0.640 | 0.792 | 0.319 | 0.559 |
| Qwen3.5 9B | Explicit | FS, D-Sim | 0.636 | 0.821 | 0.338 | 0.426 |
| Gemma-4 26B | Title | ZS | 0.630 | 0.758 | 0.299 | 0.670 |
| Qwen3.5 9B | Implicit | FS, Rand | 0.630 | 0.740 | 0.298 | 0.769 |
| Qwen3.5 9B | Explicit | FS, D-MMR | 0.628 | 0.818 | 0.326 | 0.407 |
| Qwen3.5 9B | Explicit | FS, F-Sim | 0.627 | 0.818 | 0.326 | 0.402 |
| Qwen3.5 9B | Description | FS, D-Div | 0.626 | 0.752 | 0.294 | 0.677 |
| Qwen3.5 9B | Description | FS, Rand | 0.626 | 0.749 | 0.293 | 0.689 |
| Gemma-4 E4B | Description | FS, D-Div | 0.612 | 0.715 | 0.280 | 0.788 |
| Qwen3.5 9B | Implicit | FS, D-Div | 0.610 | 0.722 | 0.277 | 0.733 |
| Gemma-4 E4B | Description | FS, Rand | 0.609 | 0.707 | 0.277 | 0.807 |
(continued on next page)
(continued)
| Model | Prompt | Retrieval | F1 | Acc. | P_T | R_T |
|---|---|---|---|---|---|---|
| Qwen3.5 9B | Explicit | FS, S-Sim | 0.606 | 0.839 | 0.336 | 0.275 |
| Gemma-4 E4B | Title | FS, D-Div | 0.600 | 0.706 | 0.267 | 0.747 |
| Gemma-4 E4B | Title | FS, D-Sim | 0.600 | 0.706 | 0.267 | 0.749 |
| Qwen3.5 9B | Explicit | ZS | 0.598 | 0.811 | 0.286 | 0.325 |
| Gemma-4 E4B | Description | FS, D-Sim | 0.598 | 0.697 | 0.266 | 0.788 |
| Qwen3.5 9B | Implicit | FS, F-Sim | 0.597 | 0.705 | 0.264 | 0.737 |
| Qwen3.5 9B | Implicit | FS, D-MMR | 0.597 | 0.702 | 0.265 | 0.754 |
| Qwen3.5 9B | Implicit | FS, S-Sim | 0.597 | 0.708 | 0.263 | 0.723 |
| Gemma-4 E4B | Description | ZS | 0.597 | 0.706 | 0.263 | 0.733 |
| Qwen3.5 9B | Implicit | FS, D-Sim | 0.597 | 0.709 | 0.263 | 0.711 |
| Gemma-4 E4B | Title | FS, F-Sim | 0.597 | 0.695 | 0.265 | 0.793 |
| Gemma-4 E4B | Description | FS, F-Sim | 0.594 | 0.685 | 0.265 | 0.831 |
| Qwen3.5 9B | Description | FS, S-Sim | 0.593 | 0.715 | 0.258 | 0.660 |
| Gemma-4 E4B | Explicit | ZS | 0.588 | 0.795 | 0.264 | 0.340 |
| Gemma-4 E4B | Title | FS, S-Sim | 0.582 | 0.686 | 0.250 | 0.735 |
| Gemma-4 E4B | Implicit | FS, D-Sim | 0.582 | 0.674 | 0.253 | 0.800 |
| Qwen3.5 9B | Description | FS, F-Sim | 0.580 | 0.692 | 0.246 | 0.692 |
| Qwen3.5 9B | Title | FS, D-Div | 0.578 | 0.689 | 0.245 | 0.692 |
| Gemma-4 E4B | Title | FS, D-MMR | 0.577 | 0.667 | 0.251 | 0.815 |
| Qwen3.5 9B | Description | FS, D-Sim | 0.576 | 0.683 | 0.244 | 0.711 |
| Gemma-4 E4B | Description | FS, S-Sim | 0.575 | 0.667 | 0.248 | 0.795 |
| Gemma-4 E4B | Title | FS, Rand | 0.574 | 0.680 | 0.242 | 0.711 |
| Qwen3.5 9B | Description | FS, D-MMR | 0.573 | 0.675 | 0.243 | 0.733 |
| Gemma-4 E4B | Implicit | FS, Rand | 0.572 | 0.663 | 0.245 | 0.793 |
| Gemma-4 E4B | Implicit | FS, D-Div | 0.572 | 0.663 | 0.245 | 0.793 |
| Qwen3.5 9B | Explicit | FS, Rand | 0.570 | 0.853 | 0.340 | 0.164 |
| Qwen3.5 9B | Explicit | FS, D-Div | 0.568 | 0.849 | 0.321 | 0.166 |
| Gemma-4 E4B | Description | FS, D-MMR | 0.567 | 0.646 | 0.245 | 0.860 |
| Gemma-4 E4B | Implicit | FS, S-Sim | 0.561 | 0.646 | 0.238 | 0.815 |
| Qwen3.5 9B | Implicit | ZS | 0.558 | 0.873 | 0.500 | 0.113 |
| Gemma-4 E4B | Implicit | FS, F-Sim | 0.557 | 0.639 | 0.235 | 0.819 |
| Qwen3.5 9B | Title | FS, Rand | 0.553 | 0.668 | 0.220 | 0.634 |
| Gemma-4 E4B | Implicit | FS, D-MMR | 0.548 | 0.622 | 0.232 | 0.855 |
| Qwen3.5 9B | Description | ZS | 0.541 | 0.660 | 0.207 | 0.593 |
| Qwen3.5 9B | Title | FS, S-Sim | 0.538 | 0.633 | 0.214 | 0.704 |
| Gemma-4 E4B | Title | ZS | 0.525 | 0.606 | 0.210 | 0.759 |
| Qwen3.5 9B | Title | FS, F-Sim | 0.511 | 0.586 | 0.202 | 0.764 |
| Qwen3.5 9B | Title | ZS | 0.509 | 0.614 | 0.184 | 0.595 |
| Qwen3.5 9B | Title | FS, D-Sim | 0.507 | 0.580 | 0.201 | 0.771 |
| Qwen3.5 9B | Title | FS, D-MMR | 0.507 | 0.576 | 0.202 | 0.790 |
| EuroLLM 22B | Explicit | FS, S-Sim | 0.474 | 0.539 | 0.180 | 0.740 |
| EuroLLM 22B | Explicit | FS, D-Sim | 0.473 | 0.523 | 0.190 | 0.843 |
| EuroLLM 22B | Explicit | FS, F-Sim | 0.464 | 0.517 | 0.182 | 0.798 |
| EuroLLM 22B | Implicit | FS, D-Sim | 0.447 | 0.485 | 0.182 | 0.872 |
| GPT-5.5 | Title | ZS | 0.440 | 0.464 | 0.192 | 1.000 |
| EuroLLM 22B | Explicit | FS, D-MMR | 0.438 | 0.476 | 0.176 | 0.851 |
| EuroLLM 22B | Description | FS, D-Sim | 0.436 | 0.474 | 0.175 | 0.843 |
| EuroLLM 22B | Explicit | FS, Rand | 0.434 | 0.479 | 0.166 | 0.769 |
(continued on next page)
(continued)
| Model | Prompt | Retrieval | F1 | Acc. | P_T | R_T |
|---|---|---|---|---|---|---|
| EuroLLM 22B | Implicit | FS, F-Sim | 0.433 | 0.467 | 0.177 | 0.875 |
| EuroLLM 22B | Description | FS, S-Sim | 0.428 | 0.465 | 0.170 | 0.829 |
| EuroLLM 22B | Implicit | FS, S-Sim | 0.427 | 0.459 | 0.174 | 0.870 |
| EuroLLM 22B | Description | FS, F-Sim | 0.425 | 0.459 | 0.172 | 0.848 |
| Gemma-4 E4B | Implicit | ZS | 0.420 | 0.448 | 0.174 | 0.892 |
| EuroLLM 22B | Explicit | FS, D-Div | 0.417 | 0.453 | 0.164 | 0.805 |
| EuroLLM 22B | Implicit | FS, D-MMR | 0.416 | 0.443 | 0.173 | 0.896 |
| EuroLLM 22B | Description | FS, Rand | 0.404 | 0.431 | 0.166 | 0.863 |
| EuroLLM 22B | Description | FS, D-MMR | 0.399 | 0.422 | 0.166 | 0.884 |
| EuroLLM 22B | Title | FS, D-Sim | 0.395 | 0.418 | 0.165 | 0.879 |
| EuroLLM 22B | Title | FS, S-Sim | 0.392 | 0.413 | 0.165 | 0.889 |
| EuroLLM 22B | Description | FS, D-Div | 0.389 | 0.413 | 0.158 | 0.834 |
| EuroLLM 22B | Title | FS, F-Sim | 0.385 | 0.403 | 0.165 | 0.908 |
| EuroLLM 22B | Implicit | FS, D-Div | 0.367 | 0.382 | 0.159 | 0.899 |
| EuroLLM 22B | Title | FS, D-Div | 0.362 | 0.379 | 0.151 | 0.841 |
| EuroLLM 22B | Title | FS, Rand | 0.358 | 0.376 | 0.149 | 0.829 |
| EuroLLM 22B | Explicit | ZS | 0.358 | 0.366 | 0.166 | 0.990 |
| EuroLLM 22B | Implicit | FS, Rand | 0.356 | 0.370 | 0.153 | 0.872 |
| EuroLLM 22B | Title | FS, D-MMR | 0.352 | 0.363 | 0.157 | 0.918 |
| EuroLLM 22B | Description | ZS | 0.222 | 0.223 | 0.137 | 0.969 |
| EuroLLM 22B | Implicit | ZS | 0.211 | 0.212 | 0.135 | 0.964 |
| EuroLLM 22B | Title | ZS | 0.169 | 0.174 | 0.133 | 0.990 |