When a text classifier sees ten benign comments for every toxic one, a common fix is to manufacture extra examples of the rare class. Current text versions of this idea fail in two opposite ways. Inserting curse words into benign sentences teaches the model that curse words mean toxicity. Blending the hidden representations of two rare-class texts produces points that may belong to neither, or to some unrelated topic. We argue that the second failure is the same problem that lexicon builders have studied for decades under the name semantic drift. Semantic drift is what happens when a system grows a word list from a few seed words and gradually wanders into a different category. That field already has a working fix: learn the "wrong" categories explicitly, and reject anything that drifts toward them.
The proposal joins the two ideas. We grow a category-structured toxicity lexicon from a small seed list, learning competing "negative" categories along the way. The lexicon then plays two roles in synthesis. First, it decides which rare-class examples may be blended together. Second, it acts as a rejection test for synthetic points that drift toward the learned negative categories. The bet is that this beats both unconstrained interpolation and keyword insertion, and does so in the regime where oversampling is known to matter at all: very rare classes. The same bet should show up on the two error types that published error analyses identify as dominant, namely missed toxicity carried by rare words and false alarms on benign uses of offensive words.
Core Claim
Synthetic minority over-sampling, or SMOTE, creates new rare-class points by interpolating between a rare example and its nearby rare neighbors. Text versions of SMOTE fail because "nearby" in a generic sentence-embedding space is not the same as "same kind of rare event." Lexical relation bootstrapping supplies the missing notion of sameness, and also a principled way to say "this point has drifted."
The method rests on two rules. Only rare-class examples that share a bootstrapped lexical subcategory may form an interpolation group. A synthetic point is kept only if a mutual-exclusion score favors its source subcategory over every discovered negative category and over the local benign density.
We claim this constrained oversampler improves precision-recall performance on rare toxicity labels at extreme imbalance, compared with no resampling, plain SMOTE-family oversampling in embedding space, and lexicon-based insertion. We further claim the gain concentrates on the error slices that keyword methods worsen. If the gain vanishes when the drift-rejection step is removed, the bootstrapping contribution is real. If it survives without lexical grouping, the lexicon adds nothing and we will say so.
Where the Pieces Come From
The bootstrapping side supplies the method for drift control. Unsupervised Discovery of Negative Categories in Lexicon Bootstrapping shows that drift is a coherent migration to alternative categories rather than random noise. Its NEG-FINDER system caches drifted terms, clusters them, and promotes the clusters to competing negative categories inside Weighted Mutual Exclusion Bootstrapping (WMEB), a bootstrapping scheme in which categories compete for candidate terms. This raised late-stage precision on MEDLINE from 62.1% to 72.8%, and reached 81.4% against 82.8% for a human expert's 15-day hand-built negatives. That paper never synthesizes anything. We reuse its negative categories as a guardrail on generated points, which it did not consider.
Graph propagation work, especially Semi-Supervised Polarity Lexicon Induction, runs label propagation over WordNet synonym and hypernym edges. It shows that seed lexicons can be expanded robustly from as few as 10 seeds. That work constrains our design: WordNet lacks slang, as Generate Adjective Sentiment Dictionary for Social Media Sentiment Analysis Using Constrained Nonnegative Matrix Factorization notes. Toxic vocabulary is mostly slang, so we bootstrap from corpus patterns and distributional neighbors rather than from the ontology. On the Impact of Seed Words on Sentiment Polarity Lexicon Induction warns that seed purity drives quality, so seed choice becomes an experimental variable.
The oversampling side supplies the generator and its known failure modes. SMOTE: Synthetic Minority Over-sampling Technique interpolates along line segments between a rare example and one of its neighbors. Simplicial SMOTE instead samples the interior of small groups of mutually close rare points, using random mixing weights over all members of the group. It reports average F1 gains of 4.5% over SMOTE for nearest-neighbor classifiers and 5% for gradient boosting on 21 tabular sets. Theoretical and experimental study of SMOTE proves two weaknesses of SMOTE. Its samples collapse onto existing points as data grows (the "copycat" effect), and its density vanishes at class boundaries. The same study proposes Multivariate Gaussian SMOTE (MGS), which samples from a local Gaussian around rare points. It also finds that no rebalancing was best on 11 of 13 datasets at native imbalance, with oversampling helping only near 1% minority rates. This negative result shapes our evaluation: we test where oversampling can plausibly help, and treat "do nothing" as a first-class competitor.
SMOTExT is the closest text analogue. It interpolates sentence embeddings and decodes them back to text, and it reports hallucination when the two endpoints are far apart. It uses no lexical structure and only pairwise interpolation, and its gain on 20 Newsgroups was small (Macro F1 0.8382 to 0.8404).
Finally, the existing intersection work motivates the gap. LIDA turns benign comments into synthetic toxic ones by inserting 1 to 3 words from a fixed 104-word list. It improves F1 on Wiki-TOX and Wiki-ATT but trails GPT3Mix. Prediction of Helpful Reviews Using Emotions Extraction feeds a fixed emotion lexicon into standard SMOTE. Neither grows its lexicon, and neither uses lexical structure to constrain synthesis. Challenges for Toxic Comment Classification supplies the target failure modes:
- 30% of Wikipedia false negatives and 43% of Twitter false negatives contain rare or unknown words.
- 60% of Wikipedia false positives contain swear words used non-toxically.
- 50% of Wikipedia toxic samples lack obvious hateful words.
LIDA-style insertion should make the second problem worse. Our negative categories are designed to capture exactly those benign contexts, such as quoting, reporting, anatomy, and gaming banter.
Research Program
The first component is a bootstrapped, structured lexicon. We start from LIDA-style seeds, split by hand into a few subcategories aligned with the Kaggle labels: insult, threat, obscenity, and identity-directed slurs. We run WMEB-style pattern and embedding-neighbor bootstrapping over the unlabeled text pooled by the toxic-comment-collection tool, which unifies more than 40 datasets and 812,993 comments. NEG-FINDER clustering of drifted terms yields negative categories. Every comment is then tagged with the subcategories and negative categories it activates. The tag is computed in context, using the embedding of the term occurrence rather than just the term string, so that a slur quoted in a moderation discussion can land in a negative category.
The second component is the constrained oversampler, which operates in the final-layer representation of an encoder fine-tuned on the real data. Working in this space avoids decoding, and with it SMOTExT's hallucination route. For each rare label we build a nearest-neighbor graph only among rare examples that share a lexical subcategory. We sample Simplicial-SMOTE points from small groups of mutually adjacent examples in that graph, with an MGS-style local Gaussian variant as an alternative generator.
Each candidate point $z$ is then scored by
$$s(z) = \log p(c \mid z) - \max\Big(\max_{g \in \mathcal{N}} \log p(g \mid z),\ \log p(\text{benign} \mid z)\Big),$$
where $c$ is the source subcategory, $\mathcal{N}$ is the set of discovered negative categories, and each $p(\cdot \mid z)$ comes from a small Gaussian density per category fit on the tagged real occurrences. Points with $s(z) < 0$ are discarded. This is the mutual-exclusion principle of WMEB transplanted from words to synthetic points.
We will also report a symmetric variant. It synthesizes extra benign points inside the negative categories, giving hard negatives that target the 60% false-positive slice.
The third component is a classifier. We retrain the classification head on real plus synthetic representations. As a secondary arm, we inject synthetic points as hidden-layer targets during fine-tuning.
Baselines
The naive reference point is a fine-tuned BERT-family classifier with no resampling and a tuned decision threshold. Following the evidence of Theoretical and experimental study of SMOTE, this may be the strongest baseline at native imbalance. It gets the same encoder, the same epochs, and the same hyperparameter-search budget as our method. A class-weighted loss variant is included under the same budget.
The strongest existing text-specific method is LIDA, run with its released 104-word list. On Wiki-TOX it reports an average F1 gain of 4.62 over no augmentation across CNN, RNN, and BERT, and margins of 3.40 over EDA and 1.17 over AEDA. On Wiki-ATT it reports a 2.55 gain. The file gives only relative gains; no reported result found on Lacuna for absolute F1 on Wiki-TOX, Wiki-ATT, or the Kaggle rare labels, nor for GPT3Mix. We will therefore re-run LIDA ourselves on identical splits and encoders. Beating it means a higher PR-AUC on rare labels with overlapping confidence intervals excluded across five seeds. It also means a lower false-positive rate on the benign-swear slice, where we expect LIDA to be worse than no augmentation.
The strongest generic oversamplers are SMOTE, Simplicial SMOTE, and MGS applied to the same fine-tuned representations without lexical grouping or rejection. For Simplicial SMOTE, the only reported number in the file is tabular (a 4.5% to 5% average F1 gain over SMOTE), not text. We also run SMOTExT-style pairwise interpolation with decoding on a subset, to check whether decoding changes conclusions; its reported 20 Newsgroups result is Macro F1 0.8404 versus 0.8382 without it.
Two ablations isolate the key ingredients. One keeps lexical grouping but removes rejection. The other keeps rejection but replaces bootstrapped negative categories with random clusters of benign text. A third ablation uses a non-bootstrapped lexicon, the static 104 words, to measure what bootstrapping adds.
Why not just…?
Why not just do no resampling with a well-tuned model? This is the most serious threat, and the tabular evidence (11 of 13 datasets) favors it. We do not argue around it. We expect no advantage at the 7.5% to 10.1% minority rates of Wiki-ATT and Wiki-TOX, and we will report that honestly. The claim is restricted to the extreme regime: the naturally very rare Kaggle labels such as threat and identity hate, plus Wiki-TOX subsampled to 1% and 0.5% positives. If no resampling still wins there, the proposal fails.
Why not just insert a bigger, bootstrapped lexicon, LIDA-style? This is cheap, and it isolates whether the lexicon alone helps. We run it as "bootstrapped-LIDA." The error analysis in Challenges for Toxic Comment Classification predicts that larger insertion lists will deepen the keyword shortcut and raise benign-swear false positives. If bootstrapped-LIDA matches our method on PR-AUC and does not hurt that slice, the representation-space machinery is unnecessary, and we would recommend the simpler method.
Why not just prompt a large language model for rare-class examples? LIDA reports that GPT3Mix outperforms it, so this is a real competitor on quality. Its costs are API latency, cost, and refusal behavior on toxic content. We include a prompted-generation baseline at matched synthetic-sample counts. We frame our contribution as a cheap, auditable alternative, and report the gap rather than assume it is in our favor.
Why not just reweight the loss per class? Reweighting changes how much rare examples count but adds no new coverage of rare vocabulary. The rare-word false-negative slice is where we expect synthesis to matter. Class-weighted training is included under the same tuning budget, and the slice analysis decides it.
Proposed Experiments
The datasets are the Kaggle Wikipedia Talk Pages multi-label set, Wiki-TOX, Wiki-ATT, and the Twitter hate-speech set. Wiki-TOX is evaluated at native imbalance and subsampled to 1% and 0.5% positives. The Twitter set serves as a cross-platform test of a lexicon bootstrapped mainly from other sources.
The primary metric is per-label PR-AUC on rare labels, with minority-class F1 at a validation-tuned threshold. Two diagnostic slices mirror the published error analysis and are annotated on held-out test data. The first contains toxic comments whose only toxicity cues are rare or out-of-lexicon words (measured as recall). The second contains benign comments containing lexicon terms (measured as false-positive rate). Lexicon quality is checked separately by human precision of the top bootstrapped terms per subcategory, with and without negative categories, mirroring the MEDLINE protocol.
Three outcomes are decisive:
- At 1% and 0.5% imbalance, our method should exceed both no resampling and unconstrained Simplicial SMOTE on rare-label PR-AUC.
- Removing the rejection step, or replacing learned negative categories with random benign clusters, should erase most of that gain. This would show that drift control, not merely more points, does the work.
- On the benign-swear slice, our method should lower false positives relative to no resampling, while LIDA and bootstrapped-LIDA raise them.
We will also measure the fraction of rejected synthetic points as a function of the distance between source examples. If rejection tracks distance closely, the score is doing little beyond a radius cutoff, and we will test a plain radius threshold as a further, simpler baseline.
References
- Unsupervised Discovery of Negative Categories in Lexicon Bootstrapping
- Semi-Supervised Polarity Lexicon Induction
- Generate Adjective Sentiment Dictionary for Social Media Sentiment Analysis Using Constrained Nonnegative Matrix Factorization
- On the Impact of Seed Words on Sentiment Polarity Lexicon Induction
- SMOTE: Synthetic Minority Over-sampling Technique
- Simplicial SMOTE: Oversampling Solution to the Imbalanced Learning Problem
- Theoretical and experimental study of SMOTE: limitations and comparisons of rebalancing strategies
- SMOTExT: SMOTE meets Large Language Models
- LIDA: Lexical-Based Imbalanced Data Augmentation for Content Moderation
- Prediction of Helpful Reviews Using Emotions Extraction
- Challenges for Toxic Comment Classification: An In-Depth Error Analysis
- Data Integration for Toxic Comment Classification: Making More Than 40 Datasets Easily Accessible in One Unified Format