mlsanityData to 13 Oct 2026

CoGate-LSTM: Prototype-Guided Feature-Space Gating for Mitigating Gradient Dilution in Imbalanced Toxic Comment Classification

arXiv 2510.17018 ↗First posted 19 Oct 2025cs.CL cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Toxic text classification for online moderation remains challenging under extreme class imbalance, where rare but high-risk labels such as threat and severetoxic are consistently underdetected by conventional models. We propose CoGate-LSTM, a parameter-efficient recurrent architecture built around a novel cosine-similarity feature gating mechanism that adaptively rescales token embeddings by their directional similarity to a learned toxicity prototype. Unlike token-position attention, the gate emphasizes feature directions most informative for minority toxic classes. The model combines frozen multi-source embeddings (GloVe, FastText, and BERT-CLS), a character-level BiLSTM, embedding-space SMOTE, and weighted focal loss. On the Jigsaw Toxic Comment benchmark, CoGate-LSTM achieves 0.881 macro-F1 (95% CI: [0.873, 0.889]) and 96.0% accuracy, outperforming fine-tuned BERT by 6.9 macro-F1 points (p < 0.001) and XGBoost by 4.7, while using only 7.3M parameters (about 15× fewer than BERT) and 48 ms CPU inference latency. Gains are strongest on minority labels, with F1 improvements of +71% for severetoxic, +33% for threat, and +28% for identityhate relative to fine-tuned BERT. Ablations identify cosine gating as the primary driver of performance (-4.8 macro-F1 when removed), with additional benefits from character-level fusion (-2.4) and multi-head attention (-2.9). CoGate-LSTM also transfers reasonably across datasets, reaching a 0.71 macro-F1 zero-shot on the Contextual Abuse Dataset and 0.73 with lightweight threshold adaptation. These results show that direction-aware feature gating offers an effective and efficient alternative to large, fully fine-tuned transformers for classifying imbalanced toxic comments.

Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Builds on 4 of its 29 references that are in the map. First posted on arXiv 19 Oct 2025.

Builds on

4 of 29 references.

References · 4

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
  2. 2021Offensive Language and Hate Speech Detection with Deep Learning and Transfer Learningcited by 7
  3. 2020HENIN: Learning Heterogeneous Neural Interaction Networks for Explainable Cyberbullying Detection on Social Mediacited by 6
  4. 2021A Survey of Toxic Comment Classification Methodscited by 2

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2026: 1.

1 paper.