TL;DR
To evade content moderation, online actors constantly evolve euphemisms (e.g., using "weed" for marijuana or "ice" for methamphetamine), often leveraging images and audio to bypass text-only filters. This paper introduces KOM-Euph, the first keyword-oriented multimodal euphemism dataset, alongside KOM-EI, a novel framework that aligns and dynamically fuses text, visual, and audio features. The proposed model significantly outperforms text-only baselines and large language models (LLMs) while operating at a fraction of the computational cost.
What Problem Does This Paper Address?
Content moderation on social media and darknet marketplaces is a continuous game of cat-and-mouse. Bad actors frequently use euphemisms to disguise illicit transactions involving drugs, weapons, or explicit content. Because language evolves like a "treadmill," text-only moderation systems quickly become obsolete.
Furthermore, euphemism evolution is inherently multimodal. A slang term often shares a phonetic similarity (audio) or a literal association (visual) with its target keyword—for example, "weed" refers to a plant visually, linking it semantically to marijuana. Existing NLP models look only at textual context, missing these crucial cross-modal cues and failing to map the euphemism back to its actual target keyword. The primary bottleneck preventing progress has been a total lack of standardized multimodal euphemism datasets.
Methods
The authors propose KOM-EI (Keyword-Oriented Multimodal Euphemism Identification), a framework designed to explicitly leverage text, vision, and audio for decoding slang.
The architecture consists of three main modules:
- Feature Representation: Sentences are processed using a domain-specific fine-tuned BERT model (with the euphemism masked). Images are embedded via a frozen CLIP model with a non-linear projection layer, and speech clips are processed using a frozen Wav2Vec 2.0 encoder.
- Dynamic Feature Fusion: To bridge the modality gap, the authors introduce Cross-modal Feature Alignment (CFA), which uses contrastive learning to pull matching text-image and text-speech pairs closer together in the embedding space. A Cross-modal Attention (CA) mechanism uses the text context as an anchor to extract relevant visual and auditory cues, while a Gated Unit (GU) filters out extraneous noise from the non-text modalities.
- Prediction Module: A final classifier takes the fused representation to predict the true target keyword class.
Datasets
The authors constructed and released KOM-Euph, the first multimodal euphemism corpus. Built on top of an existing text-only dataset derived from Reddit, Gab, and Slangpedia, it introduces curated multi-modal elements:
- Data Split: It contains over 86K text-image-speech triplets across three sensitive domains: Drug (33 subcategories), Weapon (9 subcategories), and Sexuality (12 subcategories).
- Modality Generation: Visual data was gathered from Google, Wikipedia, and generated via the Kandinsky 2.2 text-to-image model, then filtered by human annotators. Audio data consists of standard pronunciation clips generated using the Bark text-to-speech tool.
Key Insights and Ideas
- The Literal-Implicit Bridge: The core intuition behind the model's success is that the visual and audio properties of a euphemism's literal meaning (e.g., an image of a garden weed) provide a semantic bridge that helps neural networks resolve contextual ambiguity in text.
- The LLM Censorship Dilemma: Standard commercial LLMs and Multimodal LLMs (like GPT-4o) are heavily restricted by safety alignment and content censorship policies. When prompted with these datasets, they routinely refuse to process the text due to the inclusion of sensitive terms. This underscores the necessity of specialized, open-source architectures like KOM-EI for actual defense and moderation use cases.
Key Results
- Outperforming the State-of-the-Art: KOM-EI outperformed the leading text-only euphemism detection model (SelfEDI) by 12% to 18% in top-1 accuracy across all datasets.
- Multimodal Synergy: Ablation studies demonstrated that adding visual and audio modalities consistently boosted performance by 4–12% over text-only variants. As visualized via t-SNE, the dynamic fusion module successfully forces disparate modalities to converge distinctly around target keywords.
- Efficiency vs. LLMs: Compared to open MLLMs (like Qwen-VL or InternLM), KOM-EI achieved superior accuracy while being 3 to 7 times faster and 10 to 200 times more cost-effective per sentence processed.
Limitations and Future Work
The authors note a distinct distribution gap between training and testing phases. Because human-labeled euphemism datasets are incredibly rare, the model uses a self-supervised training scheme where it learns by masking target keywords (e.g., masking "marijuana"). However, during inference, it is evaluated on sentences where the euphemism is masked (e.g., masking "weed"). Mitigating this train-test distribution mismatch is highlighted as the primary focus for future iterations of this research.
Summary updated