ToKen: Task Decomposition and Knowledge Infusion for Few-Shot Hate Speech Detection
Paper · 2022 · Badr AlKhamissi, Faisal Ladhak, Srinivasan Iyer et al.
Summary
Detecting hate speech requires more than recognizing offensive vocabulary. A post can insult an individual without attacking a social group, while an apparently ordinary sentence can communicate a hostile stereotype. ToKen investigates whether a system learns this distinction more effectively when it must identify the ingredients of a hate-speech judgment before producing the judgment itself. The paper focuses on few-shot learning, where only a small collection of annotated examples is available for the target task. Its central proposal is to replace a single binary prediction with an ordered sequence of related predictions, then strengthen that sequence through additional training on commonsense and stereotype-related material.
The authors build their experiments around the Social Bias Inference Corpus, or SBIC. This resource supplies annotations for offensiveness, the kind of target, and the identities of targeted groups. Because it does not directly provide the hate-speech labels required for these experiments, the authors derive them from its annotations: offensive content directed at a group is treated as hate speech. Their baseline receives a post and generates only the final label. ToKen instead generates an offensiveness decision, distinguishes a group from an individual or an absent target, identifies any targeted groups, and finally produces the hate-speech decision. Both approaches use BART LARGE, allowing the experiments to examine the effect of changing the prediction task while keeping the underlying architecture comparable.
Decomposition helps most when training examples are scarce. On the SBIC test set with 16 training examples, the direct baseline obtains binary F1 of 45.31, minimal decomposition reaches 50.79, and adding group identification reaches 58.89. The extra group-identity task matters because the authors identify group detection as a weaker component than offensiveness prediction. They then introduce knowledge infusion: additional training before the final SBIC training stage. ATOMIC 2020 supplies commonsense relations expressed through natural-language templates, while StereoSet supplies selected examples concerning stereotypes. Combining ATOMIC 2020 training with the decomposed task yields 63.14 binary F1 in the 16-shot setting. The paper describes its headline improvement over the baseline as an absolute gain of 17.83%.
The results also establish qualifications. Knowledge infusion does not consistently help a system that predicts the final label directly, and the strongest knowledge-training sequence changes with the amount of SBIC supervision. Decomposition loses its clear advantage as more training examples become available. Experiments on HateXplain, HS18, and Ethos show encouraging transfer from SBIC without further training on those evaluation resources, but the authors report statistically significant differences from the baseline for HS18 and Ethos rather than HateXplain. ToKen also shows lower variation across the tested training configurations. These findings concern English datasets, mostly reflecting Western social contexts, rather than universal agreement about what constitutes hate speech.
The paper’s broader contribution is a way to make a difficult classification task more inspectable. An intermediate prediction exposes whether an error concerns offensiveness, target type, or group identity. That visibility supports a concrete intervention: improve the weak component and check whether the final task improves. It does not make the generated sequence a proof of the decision. The analyses show that additional explanation text can reduce performance, output order matters, and the benefits do not fully carry over to BART BASE. ToKen therefore offers evidence for carefully chosen decomposition and background training under particular conditions, together with useful warnings about assuming that more intermediate output automatically produces better reasoning.
Interesting ideas
Decompose around the decision criteria. A difficult label becomes easier to investigate when its supporting distinctions are explicit. ToKen chooses intermediate tasks that correspond to the definition used to construct its hate-speech labels, rather than adding unrelated auxiliary predictions. This approach can help document classification, policy assessment, or semantic interpretation whenever a final judgment depends on recognizable components. The important design question is whether those components explain the decision being measured.
Find the bottleneck before adding supervision. The authors compare offensiveness prediction with group detection and discover that the latter is weaker. They then add group identification, a more specific task connected to that weakness. This creates a diagnostic cycle: inspect intermediate performance, choose an intervention, and evaluate the final outcome. The same pattern applies to parsing pipelines, extraction systems, and rule-based readers, where a poor final answer may originate in a particular upstream distinction.
Use a shared output format for different subtasks. ToKen expresses binary decisions, target categories, and group names through conditional text generation. This lets fixed labels and more open-ended answers participate in the same training sequence. Elsewhere, the transferable principle is to give heterogeneous observations a common interface while preserving their meanings. A structured record can serve that purpose in a symbolic system even when generating a text sequence is unsuitable.
Make background knowledge legible to the learner. The ATOMIC 2020 experiments replace relation identifiers with readable templates. A relation is therefore presented through the kind of language that also appears in downstream inputs. This suggests a general representational question: does the encoding expose the relationship the learner needs, or merely name it? The paper’s observation is useful for knowledge representation, supervision design, and systems that connect graph relations with ordinary language.
Test interactions between interventions. Additional knowledge training and task decomposition are not interchangeable improvements. Knowledge infusion is unreliable when used alone, while combining it with the intermediate tasks produces the strongest overall results. An intervention should therefore be evaluated both independently and together with the mechanism expected to use it. This applies to dictionaries, retrieval components, repair rules, and other additions whose value depends on the surrounding decision process.
Treat stability and transfer as separate evidence. A higher score on one test set does not show that a method tolerates a different training sample or a changed evaluation distribution. ToKen varies sampled supervision and training settings, then evaluates on external hate-speech datasets. These checks address different uncertainties. Repeating them separately helps distinguish a method that performs well under a favorable configuration from one that remains useful across the conditions actually examined.
Do not equate longer explanations with better decisions. Adding an implied-stereotype generation task lowers performance relative to ToKen without that task. Intermediate language can be noisy, generic, or too demanding under limited supervision. An explanation component should therefore earn its place through both content evaluation and its effect on the final task. This lesson applies to generated rationales and to symbolic explanations that introduce unsupported steps.
Deep dive: ToKen: Task Decomposition and Knowledge Infusion for Few-Shot Hate Speech Detection
How ToKen combines task decomposition and background knowledge to improve few-shot hate speech detection, and where its gains hold. · about 36 minutes to read
How Mova uses it
Mova is a small language system implemented in Rust. Its native path turns dependency structure into frames and a world representation, with rules, learned parameters, and explicit knowledge supporting its answers. Those mechanisms provide several points of contact with ToKen, but they do not establish a ToKen-style hate-speech detector. The connections below are proposed transfers assessed against Mova’s documented mechanisms. Their status marks describe that correspondence; they are not measurements of applications of this paper. In particular, the neural training procedure studied by the authors should not be confused with Mova’s direction towards logic, rules, and statistics.
Idea: Decompose a judgment into its defining conditions. Where: Task Decomposition, Section 4.1, and Figure 2. Area: semantics and decision rules. Mova: частково є (prag frames, world state predicates, and compiled global principles). Mova already represents several ingredients of an interpretation separately. A proposed extension would make a sensitive classification depend on explicitly recorded observations about the event, its target, and the applicable principle. Why Mova: this would let a reviewer locate the unsupported condition rather than receiving only an unexplained final label. The usefulness of this particular decomposition remains unmeasured in Mova.
Idea: Choose intermediate tasks through error analysis. Where: Fine-Grained Error Analysis, Section 5.1.1. Area: evaluation and diagnostics. Mova: частково є (fast-reader miss classifications and parser diagnostic audits). ToKen adds group identification after finding weakness in group detection. Mova could apply the same procedure when deciding which frame role, reference distinction, or knowledge link deserves a new rule. Why Mova: it would direct development toward the component constraining the final answer, rather than towards the component that is easiest to improve in isolation.
Idea: Preserve a common interface for heterogeneous observations. Where: Table 2 and Section 4.1. Area: data representation. Mova: частково є (typed frames, layers interfaces, and source-bound groupants). ToKen combines categorical and generated outputs in a sequence; Mova could instead expose typed fields for each constituent observation and its evidence. Why Mova: a common record would make rules, statistical suggestions, and worker observations easier to compare without erasing the difference between a category, an entity identity, and an explanation. No equivalent ToKen output contract is established by the digest.
Idea: Translate relation names into understandable teaching material. Where: Knowledge Infusion, Section 4.2, and Appendix A.1. Area: knowledge representation and training data. Mova: частково є (global relations with explanations and source-bound enrichment packets). Mova could use a reviewed verbal form of a relation alongside its typed representation when preparing lessons or inspecting a knowledge import. Why Mova: this could expose a mismatch between a relation’s formal name and its intended meaning before that mismatch reaches a reader. The proposal concerns representation and review, not a claim that textual templates would improve Mova’s parameters.
Idea: Evaluate knowledge additions together with their consumer. Where: Section 5.2 and Table 4. Area: experimental design. Mova: частково є (regression-gated seed extensions and bounded self-study comparisons). A dictionary entry or knowledge relation should be tested with the reader or rule that is expected to use it, as well as without that consumer change. Why Mova: ToKen shows that a knowledge intervention can behave differently depending on the surrounding task. This suggests testing the interaction instead of treating a larger knowledge store as an improvement by itself.
Idea: Separate stability from transfer performance. Where: Generalizability, Section 5.3, and Robustness, Section 5.4. Area: evaluation. Mova: частково є (deterministic repeated runs, held-out evaluation, and contrast sets). Mova’s repeatability checks establish identical behavior under identical conditions, while ToKen studies changes in sampled data and settings. Mova could add explicitly varied training subsets and source collections where appropriate. Why Mova: deterministic execution does not reveal sensitivity to which evidence was used to build a rule or parameter set.
Idea: Require explanation tasks to demonstrate their value. Where: Do Implications Matter?, Section 6.2, and Table 7. Area: pragmatics and evaluation. Mova: частково є (rule reasons, enrichment review, and review-only consultant notes). Mova could compare an answer path with and without an additional inferred-explanation requirement, checking both correctness and evidential support. Why Mova: ToKen’s negative result warns that a more elaborate explanation requirement can make the underlying decision worse. An explanation should expose supported reasoning rather than introduce another unverified assertion.
Idea: Keep offensive language separate from group-directed hostility. Where: Datasets and Figure 2. Area: pragmatics and classification. Mova: нове (proposed task-specific distinction; corresponding assessment is unknown). A possible Mova module could record offensiveness and the direction of an attack as separate observations before applying a declared classification policy. Why Mova: this would prevent a policy rule from silently treating every insult as an attack on a social group. The digest does not establish whether equivalent distinctions exist elsewhere, so novelty remains provisional.
Idea: Distinguish a target’s type from its identity. Where: Section 4.1 and Table 2. Area: reference resolution and semantics. Mova: частково є (coref, frame participants, and world entities). Mova identifies participants, but identifying a participant is different from deciding whether a statement targets an individual or a group. A proposed extension would keep those questions in separate fields. Why Mova: a system can recognize a name or noun phrase while still assigning the wrong social scope to the statement, the kind of failure illustrated by ToKen’s error analysis.
Idea: Use a more specific answer to supervise a broader distinction. Where: Section 5.1.1 and Figure 3. Area: learning and semantic classification. Mova: частково є (fine-grained concepts, role features, and learned school parameters). Mova could test whether identifying a concrete participant class helps a reader distinguish a broader category needed for its final answer. Why Mova: group identification improves group detection in ToKen, suggesting that a specific supervised observation can support a coarser decision. The effect depends on the task and should not be assumed for Mova’s existing hierarchy.
Idea: Make final-label construction explicit. Where: SBIC description in Datasets and Figure 2. Area: annotation and data processing. Mova: частково є (source manifests, admission checks, and versioned evidence). When a benchmark label is derived from existing annotations, Mova could retain the derivation rule alongside the source labels. Why Mova: a derived judgment is an operational interpretation of the annotations, not an independent observation. Recording the derivation would make later disagreements about the evaluation policy easier to distinguish from reader errors.
Idea: Preserve annotator disagreement as information. Where: Limitations. Area: annotation and social interpretation. Mova: частково є (parser disagreements and source-bound reviewed evidence); a comparable treatment of subjective human judgments is unknown. Mova could keep alternative judgments and their provenance rather than allowing a majority label to become an apparently uncontested fact. Why Mova: the authors warn that majority voting can suppress minority perspectives. This transfer would concern disputed interpretation, while remaining separate from Mova’s existing agreement procedures for syntactic annotations.
Idea: Balance few-shot material across qualitatively different cases. Where: SBIC sampling procedure in Datasets. Area: data and evaluation. Mova: частково є (school controls and contrast sets). Mova could construct small development collections that deliberately include a target phenomenon, a related non-target phenomenon, and ordinary controls. Why Mova: ToKen’s sampling distinguishes offensive non-hate content from hate speech and inoffensive content. That design tests the boundary a rule must learn rather than merely supplying positive examples and unrelated negatives.
Idea: Spread positive examples across target categories. Where: SBIC sampling procedure in Datasets. Area: coverage and sampling. Mova: частково є (dictionary source strata and sense-review candidates). A small teaching set could deliberately cover different participant classes or lexical senses instead of spending its positive budget on one frequent category. Why Mova: this would make it harder for a rule or parameter change to succeed by recognizing a narrow recurring subtype. Mova’s dictionary statistics already expose some source and feature variation, but an equivalent balanced intervention is not established.
Idea: Use nested training subsets for learning curves. Where: Datasets. Area: statistics and evaluation. Mova: нове (proposed controlled sampling protocol; equivalent use is unknown). Mova could build increasing training collections so that each smaller collection remains inside the next one. Why Mova: this makes changes along a learning curve easier to interpret because added supervision does not simultaneously replace the previous examples. The procedure would still need repeated independently sampled collections to reveal sensitivity to the initial selection.
Idea: Repeat experiments over different selected examples. Where: Datasets and the opening of Results. Area: statistics. Mova: частково є (repeatability requirements and held-out gates). Mova could distinguish repeated execution of one fixed experiment from experiments built with different admitted training samples. Why Mova: identical repeated output checks determinism, whereas ToKen’s seed-based sampling examines dependence on the examples selected. These address different failure modes and should appear separately in a report.
Idea: Evaluate upstream components and the final task. Where: Section 5.1.1 and Figure 3. Area: pipeline evaluation. Mova: вже є (parser and frame benchmarks alongside world and school assessments). ToKen supports retaining this separation and linking the reports more directly. Mova could trace whether a changed frame or reference decision reaches a corrected answer. Why Mova: an upstream gain may be irrelevant to the downstream questions, while a downstream gain may conceal a new upstream failure. Component and end-task measurements explain different parts of the result.
Idea: Test output order as an implementation choice. Where: Does Order Matter?, Section 6.1, and Table 6. Area: operational design. Mova: частково є (explicit pipeline stages and bounded capability plans). ToKen’s autoregressive output order is not the same mechanism as Mova’s execution order, but it suggests testing whether an intermediate observation becomes available before a dependent decision. Why Mova: dependencies should be visible and evaluated. A transfer experiment must respect Mova’s typed interfaces rather than assuming that rearranging prose has the same effect as changing a symbolic pipeline.
Idea: Include an order that tests the proposed dependency. Where: Table 6. Area: experimental controls. Mova: частково є (negative controls and regression gates). Mova could test a deliberately altered dependency sequence when assessing whether one stage actually supports another. Why Mova: an intervention is more informative when a plausible dependency can fail under a controlled change. The paper’s ordering comparisons motivate this kind of test, although their numerical results concern generated subtask sequences rather than native Mova execution.
Idea: Treat outside-domain evaluation as a frozen transfer test. Where: Section 5.3 and Figure 4. Area: evaluation and generalization. Mova: частково є (held-out assessments and source-bound corpus handling). Mova could evaluate an admitted reader on a separately sourced collection without adapting it to that collection first. Why Mova: this would test whether the learned distinction survives a source change. Any subsequent repair should be reported as a new development stage, preserving the meaning of the original transfer result.
Idea: Describe how far an evaluation source differs. Where: Section 5.3. Area: dataset analysis. Mova: частково є (source credits, domains, and versioned corpus identities). ToKen distinguishes HateXplain’s relatively modest shift from its other external evaluations. Mova could similarly describe source overlap and annotation differences when reporting transfer. Why Mova: calling every external collection equally out of distribution can hide how much familiar material or policy structure remains.
Idea: Report error direction separately. Where: Error Analysis, Section 6.4, and Figure 5. Area: evaluation. Mova: частково є (diagnostic miss categories and rejected-edit reasons). A Mova classifier could report false positives and false negatives separately, while a reader could distinguish unsupported assertions from missed supported answers. Why Mova: the same aggregate score can conceal different operational consequences. The paper’s preference between enforcement errors is an application judgment and should not become a universal Mova policy.
Idea: Examine cases where the proposed method loses. Where: Section 6.4. Area: qualitative diagnostics. Mova: вже є (journals of unsuccessful experiments and documented regression controls). ToKen includes a case correctly handled by the baseline but missed after decomposition. Mova should retain similarly informative regressions when reviewing a promising change. Why Mova: such cases reveal which new dependency caused harm and prevent a successful aggregate result from erasing a recognizable weakness.
Idea: Test whether gains survive a smaller implementation. Where: Does Scale Matter? and Appendix A.3. Area: efficiency and architectural transfer. Mova: нове (proposed transfer study; corresponding ToKen-style comparison is unknown). Before borrowing a decomposition developed with a larger neural architecture, Mova could test a small rule-and-statistics implementation against its direct counterpart. Why Mova: the paper’s smaller-BART results show that an intervention’s advantage can depend on capacity. A successful large-system design is therefore a hypothesis for Mova rather than evidence of suitability.
Idea: Keep social knowledge descriptive rather than asserted as fact. Where: StereoSet training in Section 4.2 and Appendix A.2. Area: knowledge provenance and pragmatics. Mova: частково є (Frame::evid, hearsay handling, and retained-knowledge admission gates). If stereotype-related material were used for analysis, Mova should represent it as a documented belief or hostile implication, not as a factual property of a group. Why Mova: understanding what a text implies requires recognizing an association without endorsing it. Existing epistemic distinctions provide relevant machinery, although they do not establish this social-analysis capability.
Idea: Separate recognition of an implication from its admission into knowledge. Where: Section 6.2 and Appendix A.2. Area: learning boundaries. Mova: вже є (reviewed enrichment staging, admission gates, and separation of narrative content from established facts). A candidate implied stereotype could be retained as an interpretation proposal with its source and uncertainty. Why Mova: ToKen’s noisy-implication analysis reinforces the need to keep a generated explanation outside durable factual knowledge until its role and evidential status are reviewed.
Idea: Compare a sequential decomposition with independent subtask heads. Where: Limitations. Area: architectural evaluation. Mova: нове (proposed controlled comparison; relevant measurement is unknown). A native implementation could compare a direct decision, independently computed constituent observations, and an ordered decision process. Why Mova: the authors identify a missing multitask comparison, so Mova should not attribute any improvement automatically to decomposition’s sequential form. This comparison would help choose a transparent implementation without importing unnecessary machinery.
Idea: Treat natural-language templates as reviewed adapters. Where: Appendix A.1 and Table 8. Area: data processing and lexical semantics. Mova: частково є (typed relations, explanatory knowledge links, and source validation). Mova could maintain a checked mapping between each relation and its verbal rendering, including participant roles and direction. Why Mova: a readable template can help interpretation, but an incorrect adapter could reverse a relation or obscure who experiences an effect. The template layer should therefore remain inspectable and separately testable.
Idea: Record the complete knowledge-training sequence. Where: Section 4.2 and Table 4. Area: provenance and experimental configuration. Mova: частково є (versioned models, source fingerprints, and experiment journals). Mova could record not just which teaching sources were used but the order and role of each admitted stage. Why Mova: ToKen’s ATOMIC 2020 and StereoSet combinations show that “uses background knowledge” is too vague to identify an intervention. A reproducible claim needs the particular sequence and the downstream task configuration.
Idea: Respect the cultural scope of a classification policy. Where: Limitations. Area: domain routing and values. Mova: частково є (layers domain routing and documented viewpoint modules as direction). A future social-language module could declare the setting and interpretation policy under which it operates, keeping unsupported cross-cultural transfer visible. Why Mova: the paper evaluates English material with a mostly Western orientation and explicitly leaves broader transfer unresolved. Mova should preserve that boundary rather than compiling a dataset-specific convention into an unexplained universal judgment.
The problem and its context
Hate-speech detection is difficult in part because its target is a relationship between language, social categories, and a particular act of communication. Offensive vocabulary alone is insufficient. A sentence may be rude without attacking a group, and hostility toward a group may depend on an implied association rather than an explicit slur. The paper treats these distinctions as central to the task, rather than as unusual exceptions that a word-based classifier can ignore.
The authors also emphasize disagreement. People do not reliably converge on a binary hate-speech judgment, and earlier annotation work had responded by asking more detailed questions. Instead of requesting only a final category, an annotation scheme can ask about offensiveness, the target, or the type of attack. These questions do not eliminate subjectivity, but they make the judgment’s components more explicit. ToKen asks whether the same decomposition that helps organize annotation can improve learning from limited examples.
Why limited supervision matters
The data problem is not simply that annotation takes time. According to the paper, hateful posts are relatively uncommon in the material researchers wish to sample. Searching for indicative keywords can make collection more practical, but it can also restrict the resulting examples. Subtle hostility may be underrepresented, while conspicuous vocabulary becomes unusually predictive.
The authors connect this collection problem with generalization and racial bias. A system trained on a keyword-shaped dataset may recognize familiar surface cues without learning the intended distinction. The discussions of dataset-related racial bias and racial bias risk in detection provide part of the paper’s motivation. ToKen does not solve these problems by collecting an exhaustive new corpus. It instead studies what can be learned when the available task-specific examples are deliberately limited.
That framing changes the research question. The goal is not merely to maximize performance with all available SBIC supervision. It is to compare methods when each receives a small sampled collection and must generalize beyond it. Under those conditions, the structure imposed on the output may supply a useful learning bias: the system is repeatedly taught which distinctions support the final category.
From annotation hierarchies to prediction hierarchies
The related-work discussion contrasts earlier binary-label approaches with more detailed annotation schemes. Work such as Hateful Symbols or Hateful People? and Automated Hate Speech Detection and the Problem of Offensive Language represents the background against which the authors discuss direct classification. The paper then points to approaches that separate types and targets of offensive content.
Predicting the Type and Target of Offensive Posts is relevant because its annotation scheme distinguishes several aspects of an offensive post. Social Bias Frames supplies the SBIC resource used in ToKen’s experiments. The important transition is from collecting those component annotations to making their prediction part of the learning task.
The authors distinguish their contribution from earlier efforts to improve annotation consistency. Their experiments concern whether a predictor trained to produce constituent judgments becomes more sample-efficient, stable, and transferable. That is a different claim from saying that annotators prefer a hierarchical questionnaire. An annotation scheme can be useful for human labeling without necessarily improving a trained classifier, so the downstream comparison is necessary.
Where background knowledge enters
The paper argues that hate-speech interpretation can require commonsense relations and awareness of stereotypes. These are related needs, but not identical ones. Commonsense material may describe ordinary causes, effects, desires, or reactions. Stereotype-related material concerns associations attributed to social categories. ToKen investigates additional training on resources representing both kinds of information.
COMET-ATOMIC 2020 supplies the commonsense component. StereoSet supplies the stereotype-related component. The paper’s proposal is that these resources may help a system connect the intermediate tasks, especially when SBIC itself offers little supervision. The experiments later show that this benefit is conditional: adding background training without decomposition is not reliably sufficient.
The authors also distinguish their setting from prior low-data work centered on transfer between languages. Their discussion of zero-shot cross-lingual detection places ToKen in a different position. The immediate question is how to learn with limited English hate-speech supervision. Whether the same method benefits other languages remains an explicit future question.
The method, step by step
ToKen uses a text-to-text formulation of text classification. The input is a social-media post, and the output is a sequence containing the requested decisions. This formulation allows a binary answer, a target category, and group names to be generated through the same architecture. The baseline and decomposed systems differ in what that output sequence must contain.
The main experiments use BART, specifically BART LARGE. The authors use the implementation distributed through Transformers. Their setup does not replace BART with a separate symbolic inference engine. It changes the supervision sequence and, in the knowledge-infusion experiments, the training that precedes the hate-speech task.
ToKen’s training and prediction path
The steps in order.
Construct the task labels
SBIC provides information about whether a post is offensive, what kind of target it addresses, and which groups it targets. It also contains implications intended to explain stereotypes conveyed by a post. The authors use the first set of annotations to derive the final binary hate-speech label.
The operational rule is straightforward: content must be offensive and directed towards a group to receive the positive label. This is the definition used for the experiments, consistent with the earlier work the authors cite. It should not be mistaken for an independently observed label already present in SBIC, or for a complete account of every possible institutional or cultural definition.
This construction also explains the choice of minimal subtasks. Offensiveness and group detection are the ingredients used in deriving the label. Asking a predictor to produce those ingredients is therefore closely aligned with the evaluation target. Group identification goes further: it asks which group is involved, not merely whether the target belongs to the group category.
Sample small, structured training collections
The authors use stratified sampling, meaning that they allocate examples across specified kinds of cases rather than taking an unrestricted random sample. They reserve one portion for inoffensive posts and another for offensive posts that do not satisfy their hate-speech definition.
n/4
Here, n is the target training-set size. This allocation is used separately for the inoffensive category and for the offensive, non-hate-speech category. The notation describes the sampling budget, not a probability estimated by the classifier.
The remaining allocation is used for hate-speech examples:
n/2
Again, n denotes the requested training-set size. Within this positive portion, the examples are spread across targeted groups to encourage diversity. The procedure therefore controls both the broad label composition and coverage among positive examples.
Training collections range from 16 examples to 1024 examples. The evaluated sizes include 32, 64, 128, 256, and 512 between those endpoints. Within a sampled sequence of collections, the smaller collection is contained in the larger one. This nesting means that moving to a larger size adds examples instead of replacing the entire earlier sample.
The authors repeat sampling with 10 random seeds. Each seed produces a different sampled collection for a given size. As a result, a reported average reflects variation in which examples were available, rather than only repeated training on an identical small dataset. This matters in a few-shot setting, where the presence or absence of a particular example can strongly influence what is learnable.
Compare a direct answer with constituent predictions
The direct baseline is prompted with the post and asked for a binary hate-speech decision. Its training target contains only that answer. This gives the authors a comparison within the same conditional-generation framework, avoiding an architecture change between the basic systems.
Minimal decomposition adds two preliminary decisions. The first asks whether the post is offensive. The next assigns a target category: group, individual, or no target. The final hate-speech answer follows those intermediate outputs.
The fuller decomposition inserts group identification before the final answer. Group identities are generated as names, so this part is not limited to the small fixed set used for target type. The distinction is important: knowing that a post attacks a group and identifying the group are related tasks, but their answer spaces differ.
Table 2 names the output fields OFF, GD, GI, and HS. OFF is the binary offensiveness decision. GD is the target-type category. GI denotes the identity or identities of targeted groups. HS is the final binary hate-speech judgment. These fields are generated in a specified order, so later output can be conditioned on earlier output within the sequence.
The paper describes this arrangement as encouraging the system to work through the component tasks. The observable mechanism is supervision over those intermediate outputs. It does not enforce a logical rule that mechanically computes HS from OFF and GD. That distinction leaves room for inconsistency, and it is one reason the generated sequence should be treated as an inspectable prediction instead of a formal derivation.
Add commonsense training before SBIC
For knowledge infusion, the authors first train BART on ATOMIC 2020 and subsequently train it on the SBIC task. ATOMIC 2020 contains 1.33M inferential tuples covering social and physical aspects of ordinary experience. The basic representation connects a textual head with a textual tail through a relation.
⟨Head, Relation, Tail⟩
Head is the starting event or entity description. Relation identifies the connection to be learned. Tail supplies the associated consequence, property, intention, reaction, or other completion. The tuple notation specifies the resource’s structure; it is not a training-loss equation.
The authors report that using the tuple representation directly was less effective than rendering the relation through readable language. They therefore replace relation identifiers with templates and train the system to predict the tail. The input retains the head, but the relation is expressed as a recognizable question or statement fragment.
The template collection covers several kinds of relation. Object-use and location relations describe ordinary properties of things. Event relations concern ordering, causes, and obstacles. Person-centered relations describe needs, intentions, reactions, and subsequent actions. Relations concerning other participants extend the same idea beyond the main actor.
This step is an interface adaptation between structured knowledge and language-based training. It does not create new human annotations for the SBIC examples. Instead, it changes the background training from which the subsequent few-shot learner starts. The authors say that the resulting ATOMIC 2020 performance is comparable to the earlier reported result, but they do not supply a numerical comparison in this discussion.
Add selected stereotype-context training
StereoSet contains 17k sentences and addresses gender, profession, race, and religion. The authors do not use the entire resource in an undifferentiated way. They select its intersentence task, which concerns associations across sentences, and include stereotypical material while excluding the anti-stereotype examples.
The training input supplies a target group, a bias category, and a stereotype sentence. The requested output is the associated explanatory context. In the appendix example, the input concerns Cape Verde and ports, while the completion gives a water-related context. The key methodological point is the direction of prediction: the system receives the association and category information, then generates the context.
The authors apply this stage to BART directly and also to a version already trained on ATOMIC 2020. Those alternatives distinguish stereotype-related training from the sequence that combines commonsense training with stereotype-related training. Only the decomposed systems receive the StereoSet treatment described for this purpose.
Recognizing a stereotype is different from endorsing it. The experiment uses selected stereotypical associations as training material for a detection task; it does not demonstrate that the resulting representations are socially neutral. That issue becomes relevant when interpreting both the knowledge-infusion gains and the limitations.
Evaluate the resulting predictions
The main outcome is binary F1 for the final hate-speech decision. F1 summarizes the balance between precision and recall for that positive category. The paper additionally evaluates intermediate tasks, external-dataset transfer, and sensitivity to training configurations.
Main comparisons average results across 10 seeds. The authors use Welch’s t-test for experiments repeated under that protocol and treat p < 0.05 as the significance criterion. Several later analyses use only 5 seeds, so their numbers should not be treated as interchangeable with the main experimental averages.
No explicit optimization-loss formula is developed in the paper’s method description. The training is specified through conditional-generation inputs, output sequences, and successive fine-tuning stages. Those operational details are more informative here than supplying an equation the authors do not state.
Experiments and results
The main experiments ask whether decomposition helps on SBIC, whether background training adds value, and whether the resulting system transfers beyond SBIC. A further set of measurements examines robustness to the tested training settings. These are related questions, but each requires its own evidence.
Decomposition on the SBIC test set
The main decomposition comparison has three settings: a direct binary prediction, minimal decomposition, and decomposition including group identification. All use BART LARGE. Table 3 reports test-set binary F1 averaged across 10 seeds.
SBIC test binary F1 with 16 training examples
Adding target identities strengthens the decomposed prediction.
The numbers
| System or setting | binary F1 |
|---|---|
| Direct baseline | 45.31 |
| Minimal decomposition | 50.79 |
| ToKen with group identification (this paper) | 58.89 |
The pattern continues across several small-data settings. With 32 training examples, the baseline scores 53.23 and the group-identification setting scores 61.77. At 64 examples, the corresponding scores are 56.41 and 68.03. At 128 examples, they are 60.12 and 70.25. These results support the claim that explicit constituent supervision is useful when the available SBIC training collection is small.
The comparison is also informative about what does not suffice. Minimal decomposition reaches 56.46 with 64 examples and 59.78 with 128 examples. At the latter size, that setting does not surpass the baseline’s reported mean. Thus, the result is not simply that any intermediate labels guarantee an improvement. The group-identity task contributes materially to the successful configuration.
At larger sizes, the advantage narrows. With 512 examples, the baseline scores 70.29 and the group-identification setting scores 70.65. With 1024 examples, the baseline reaches 73.95 while the decomposed setting reaches 72.76. The authors state that differences cease to be statistically significant beyond 512 examples. The strongest claim supported by this comparison is therefore about the few-shot regime, rather than an unconditional advantage across all training sizes.
Knowledge infusion on SBIC
Table 4 compares different training histories for both direct prediction and decomposition. It separates ordinary BART from versions receiving StereoSet training, ATOMIC 2020 training, or the sequence involving both resources.
SBIC test binary F1 for decomposed systems, 16 examples
Commonsense training produces the strongest result in this setting.
The numbers
| System or setting | binary F1 |
|---|---|
| Decomposition without knowledge infusion | 58.89 |
| Decomposition with StereoSet | 42.86 |
| ToKen with ATOMIC 2020 (this paper) | 63.14 |
| Decomposition with ATOMIC 2020 then StereoSet | 59.74 |
This comparison shows why the headline result should not be summarized as “more knowledge training is always better.” At this training size, StereoSet alone lowers the decomposed system’s score relative to decomposition without knowledge infusion. Adding StereoSet after ATOMIC 2020 also does not produce the strongest result in this column.
With 32 SBIC examples, however, the StereoSet-trained decomposed setting reaches 66.17, which the authors identify as the best result for that regime. The configuration trained on ATOMIC 2020 and then StereoSet becomes strongest from 64 examples through 512 examples. Its scores across those settings are 70.08, 70.99, 70.57, and 72.36.
The direct-prediction results tell a different story. With 16 examples, ATOMIC 2020 training gives the baseline 44.76, while the version receiving the additional StereoSet stage scores 44.75. With 64 examples, the ATOMIC 2020 baseline reaches 64.89, showing that background training can help in an individual setting without establishing a consistent pattern across the experiment.
The authors’ interpretation is that background knowledge becomes more useful when the task explicitly exposes relationships among constituent judgments. The experiments support an interaction between training history and decomposition. They do not isolate an internal reasoning process or establish precisely which ATOMIC 2020 relations cause the final improvement.
Transfer beyond SBIC
The external evaluations use HateXplain, HS18, and Ethos. HateXplain contributes 1,924 test examples, HS18 contributes 9,916, and Ethos contributes 998. The HateXplain labels are converted into a binary distinction for this experiment. Ethos is evaluated using its binary labels.
All evaluated systems are trained on SBIC before being applied to these resources. The authors do not perform additional dataset-specific fine-tuning. “Zero-shot” in this part of the paper therefore means transfer to a new evaluation dataset without adapting to that dataset, instead of learning hate-speech detection without any labeled examples.
Figure 4 compares baseline and decomposed systems with different knowledge-training histories. The authors describe a consistent advantage for ToKen and stronger few-shot generalization. Their significance discussion is narrower: the differences from the direct baseline are statistically significant for Ethos and HS18, while HateXplain does not show the same significant separation.
The paper attributes the weaker distinction on HateXplain in part to its smaller distribution change relative to SBIC, since both include Twitter material. The figure’s exact plotted F1 values are not enumerated in the accompanying discussion, so its qualitative pattern should not be replaced with reconstructed numbers.
Variation across training configurations
Table 5 reports average standard deviations associated with the tested hyper-parameter configurations and repeated runs. On the validation set with 16 training examples, the baseline’s value is 15.75 and ToKen’s is 2.44. With 32 examples, the respective values are 14.15 and 0.55.
The same direction appears at the larger sizes reported. At 256 examples, the baseline value is 21.20 and ToKen’s is 2.69. At 1024 examples, the corresponding values are 15.72 and 3.20. These measurements support lower sensitivity within the configurations actually tested.
This robustness result complements the mean F1 comparisons. A method can have a promising average while being difficult to reproduce under a slightly different training setup. ToKen’s smaller reported dispersion suggests a practical advantage in the studied setting. It does not establish insensitivity to arbitrary changes in architecture, annotation policy, language, or deployment population.
What the ablations show
The paper offers several controlled comparisons that explain the main result more precisely. Some remove or add components, while others change output order or architecture size. Together, they show that the benefit depends on how the decomposition is designed and on the capacity available to learn it.
Group identification addresses a weaker component
The first diagnostic compares the intermediate tasks themselves. Figure 3 reports validation F1 for offensiveness and group detection. The authors observe that group detection trails offensiveness, especially with little supervision. Offensiveness reaches roughly 68% even in the low-data setting they discuss, while the target-type decision remains more difficult.
This is a useful distinction because both intermediate tasks participate in the final label’s definition. If offensiveness were already relatively strong, improving it further might leave the main constraint untouched. The authors instead add the more specific requirement to identify targeted groups.
The resulting comparison shows better group detection and better final hate-speech prediction in the few-shot regime. This supports the proposed intervention at the level of observed task behavior. It does not establish that generated group names are always correct or that they causally determine every final answer.
The qualitative examples reinforce that distinction. In a post objecting to female football presenters, the direct baseline misses the hate-speech label while ToKen identifies women as the target and produces the expected final decision. In another example involving epilepsy-related wordplay, ToKen assigns an individual target where a group interpretation is required and loses a case handled correctly by the baseline. The added intermediate task can expose and sometimes repair the relevant distinction, but it can also become the location of a failure.
The order of generated decisions matters
Table 6 changes the position of the final hate-speech label relative to the other outputs. These experiments report validation performance using 5 seeds. When training sizes are 64 or smaller, placing the final label after the constituent tasks gives the strongest result among the main position variants.
At 16 examples, the sequence OFF–GD–GI–HS reaches 55.60. Moving HS to the beginning gives 51.64. At 64 examples, the same two orders give 68.47 and 64.48. These are order-analysis results, not the main test-set scores from Table 3.
The interpretation is consistent with the intended sequential structure: under limited supervision, generating relevant observations before the final answer is useful. Yet the ordering advantage is not universal. At 256 examples, OFF–HS–GD–GI scores 71.37, while OFF–GD–GI–HS scores 69.64. The best position can change when more task data is available.
The table also includes GD–GI–OFF–HS, which rearranges the constituent sequence rather than merely moving the final answer. That order scores 38.28 with 16 examples and 27.11 with 32 examples. These results show that output design is a consequential training choice. They do not establish a general optimal ordering for all hierarchical classification tasks.
Generating the implied stereotype does not help
The implications analysis adds a further natural-language task. For a hate-speech post, the system must articulate the stereotype conveyed by it; otherwise, it generates an absence indication. The hypothesis is understandable: explicitly expressing the implication might help the system detect hostility that is not directly stated.
The measured result goes against that expectation. Table 7 compares the baseline, ToKen, and ToKen with the additional implication task across 5 runs.
SBIC hate-speech binary F1, implication analysis with 64 examples
Requiring an implied stereotype lowers performance relative to ToKen.
The numbers
| System or setting | binary F1 |
|---|---|
| Direct baseline | 57.60 |
| ToKen (this paper) | 70.93 |
| ToKen with implication generation | 65.50 |
The implication setting remains below ToKen without that addition throughout the reported table. With 128 examples, the scores are 67.89 for the implication setting and 71.25 for ToKen. With 1024 examples, they are 71.45 and 74.09.
The authors suggest that implication annotations may be noisy or overly generic. That is an explanation they propose, rather than a separately isolated causal finding. They also speculate that a substantially larger architecture could make better use of the implication task. The paper does not test that possibility.
This negative result is important for interpreting the method. The successful decomposition is selective: it asks for intermediate information that helps the target decision under the tested supervision budget. It does not support a general rule that adding more generated reasoning text improves classification.
The result depends on scale
Appendix A.3 repeats the comparison using BART BASE. In this setting, ToKen includes decomposition and knowledge infusion through ATOMIC 2020 and StereoSet. The authors find an advantage only from 16 through 64 examples.
At 16 examples, the direct baseline scores 53.49 and ToKen scores 55.23. At 32 examples, the scores are 51.47 and 60.29. At 64 examples, they are 58.28 and 63.68.
From 128 examples onward, the direct baseline leads. Its score is 66.70 at 128 examples, compared with ToKen’s 65.10. At 1024 examples, the respective scores are 71.30 and 69.66. The smaller architecture therefore does not reproduce the full pattern associated with the main setup.
This comparison supports a capacity-related limitation, but it does not identify a precise mechanism. The additional outputs and training stages may interact with capacity in several ways. The experiment establishes the observed dependence on the tested architecture sizes, not a general scaling law.
Error types reveal where the gains occur
Figure 5 separates false positives from false negatives across 10 runs for training sizes from 16 through 128. The authors describe the performance advantage as arising largely from reduced false positives as the training sample grows. False negatives change less substantially in the comparison they discuss.
The distinction matters because the two errors correspond to different practical outcomes. A false positive marks content as hateful when the benchmark says otherwise. A false negative misses content labeled hateful. Aggregate F1 does not on its own explain which type of mistake an intervention reduces.
The authors favor avoiding missed hate speech even at the cost of some over-enforcement. That preference is part of their application framing. The empirical contribution of the analysis is the separation of error directions; the acceptable balance between them remains a policy question instead of something determined by the score.
Limitations
The paper is strongest as evidence about a particular low-data classification setup. It compares carefully related prediction tasks, varies the amount of supervision, and includes external evaluations. Several boundaries are explicit in the authors’ discussion, while others follow from what the experiments do and do not isolate.
Limitations stated by the authors
The authors identify a missing architectural comparison. Their baseline predicts the final binary label directly through conditional generation. They do not compare against an equally scaled multitask system with separate classification heads for each constituent task.
Such a system could learn offensiveness and target distinctions without generating all outputs as one sequence. The authors connect this possibility with multitask learning and self-correction. They note that a classification-head approach would require deciding on a discrete group-identity inventory.
This omission matters for attribution. The experiments show that their sequential task formulation improves on the direct-generation baseline in the relevant settings. They do not prove that sequential generation is superior to every other way of using the same component annotations.
The authors also say that they were not aware of earlier SBIC work using this few-shot hate-speech formulation. Their chosen direct baseline is therefore an internally comparable starting point, rather than a comprehensive comparison against an established collection of few-shot SBIC systems. Stronger alternatives could change the size or interpretation of the advantage.
A further limitation concerns social and linguistic scope. The evaluated material is English and primarily reflects Western perspectives. The authors expect the method to be relevant beyond that setting but do not evaluate the expectation. Different societies and languages can encode relevant distinctions differently, so transfer remains unverified.
Finally, the authors explicitly question the use of majority voting to determine labels. A majority decision can erase minority disagreement, which is particularly consequential for judgments about group-directed harm. They identify preservation of dissenting perspectives as a future direction. The reported labels therefore represent an annotation aggregation procedure, not unanimous social agreement.
Limits visible in the experimental design
A careful reader should distinguish learning a benchmark’s operational definition from learning a complete concept of hate speech. SBIC’s final labels are derived from offensiveness and group-directed targeting. The decomposition is deliberately aligned with that derivation. This is a strength for testing the approach, but it also means the experiment rewards the distinctions encoded in that particular labeling policy.
The generated constituent sequence is not a guaranteed faithful explanation. A system may output a plausible target identity and still rely on other associations when producing its final label. The paper measures intermediate accuracy and uses qualitative examples, but it does not establish that every final decision follows a valid causal chain through those outputs.
Knowledge infusion also remains only partly explained. ATOMIC 2020 and StereoSet differ in content and training format, and their effects vary with sample size. The results show useful combinations, but they do not identify which relations, stereotype categories, or examples account for the gains. The proposed interpretation about improved relationships among subtasks is plausible and supported indirectly, rather than isolated through a complete mechanistic analysis.
The readable-template observation has a similar boundary. The appendix reports that direct tuple training was less effective and motivates natural-language rendering. A detailed numerical ablation of every template choice is not supplied. It would therefore be too strong to conclude that natural-language templates are always better than structured relation identifiers.
The external evaluations broaden the evidence without exhausting it. The three resources differ in origin and labeling structure, and HateXplain requires conversion to a binary target. Transfer performance can reflect how those policies align with the SBIC-derived definition as well as how well the system understands unfamiliar text.
Statistical significance should also be kept separate from universal reliability. The paper uses a stated threshold and repeated experiments, but its tests concern the sampled data and settings under study. The order and implication analyses use 5 seeds, whereas the main comparisons use 10. Conclusions from those analyses should retain their specific experimental conditions.
There is no dedicated demonstration that knowledge infusion reduces demographic bias. The motivation discusses biased datasets, and StereoSet supplies stereotype-related material, but improved hate-speech F1 does not itself establish fairness across groups. Recognizing more benchmark-positive examples and reducing harmful disparities are distinct evaluation goals.
Nor does the paper establish a deployment policy. Its preference regarding false positives and false negatives reflects the authors’ priorities. A practical moderation system would still need decisions about review, disputed cases, and the consequences of errors. ToKen studies predictive behavior; it does not resolve those institutional choices.
The limits of added explanation and reduced capacity are especially concrete. The implication task worsens the reported results relative to the selected decomposition, and BART BASE does not preserve the main advantage beyond the smallest training regimes. Those findings discourage treating the method as an architecture-independent recipe or assuming that a richer output sequence must be better.
What came after
The later citation record connects ToKen with research on reasoning-based moderation and more specialized extraction of toxicity. That connection is meaningful, but citation alone does not establish that a later study adopted ToKen’s exact output sequence, reproduced its results, or confirmed the value of ATOMIC 2020 and StereoSet training.
Moderating New Waves of Online Hate with Chain-of-Thought Reasoning in Large Language Models appeared in 2023 and cites ToKen. Its title places explicit reasoning at the center of moderation, making the conceptual connection clear: both works examine an alternative to treating the moderation decision as an isolated label. The available bibliographic description does not specify how the later work uses ToKen, so its citation cannot be treated as evidence that the same decomposition or knowledge-infusion stages were retained.
The distinction is particularly important because ToKen’s own analyses qualify the value of intermediate language. Its successful constituent predictions coexist with an unsuccessful implication-generation addition. A later reasoning-based approach therefore belongs to a related research direction, but whether it overcomes that particular limitation requires evidence from its own experiments.
Penetrating Linguistic Disguises: A Slang-aware Label-Aligned Framework for Fine-Grained Toxicity Extraction in Chinese Hate Speech Detection appeared in 2026 and also cites ToKen. Its title identifies slang awareness, label alignment, and fine-grained extraction as central concerns. These concerns connect with ToKen’s attention to hidden meaning and explicit constituent information, while moving to a Chinese-language task.
That later citation does not by itself validate ToKen across languages. ToKen leaves non-English evaluation open, and the later work’s title does not establish that it tests the same method. What the citation record supports is a continuing interest in making hate-speech analysis more structured and sensitive to indirect expression. ToKen’s particular contribution remains the evidence that a carefully selected sequence of constituent judgments, supported by appropriate background training, can improve few-shot detection while exposing useful—and sometimes damaging—intermediate decisions.
Cite
Cite as 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. Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{alkhamissi2022token,
title = {{ToKen: Task Decomposition and Knowledge Infusion for Few-Shot Hate Speech Detection}},
author = {Badr AlKhamissi, Faisal Ladhak, Srinivasan Iyer, Veselin Stoyanov, Zornitsa Kozareva, Xian Li, Pascale Fung, Lambert Mathias, Asli Celikyilmaz and Mona Diab},
booktitle = {Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing},
year = {2022},
doi = {10.18653/v1/2022.emnlp-main.136},
url = {https://doi.org/10.18653/v1/2022.emnlp-main.136}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/alkhamissi-2022-token-task-decomposition-knowledge-infusion/