Euphemisms serve as linguistic tools to mask offensive, sensitive, or potentially illegal content—for instance, using "weed" for drugs or "collateral damage" for civilian casualties. In Natural Language Processing (NLP), these expressions pose a significant challenge because their meanings are highly context-dependent. Traditional approaches have struggled with fragmented tasks and a lack of diverse, large-scale data.
To address these gaps, researchers have introduced JointEDI, a unified generative framework, and BME, a comprehensive bilingual dataset. This work represents a significant step forward in detecting and identifying euphemisms across both English and Chinese.
The JointEDI Framework
Until now, NLP systems typically treated "Euphemism Detection" (determining if a word is a euphemism) and "Euphemism Identification" (determining its underlying meaning) as separate, sequential tasks. This pipeline approach often suffers from error propagation: if the detector fails, the identifier never has a chance to succeed.
JointEDI solves this by using a generative approach built on mBART (a multilingual version of the Bidirectional and Auto-Regressive Transformer). Instead of simple classification, the model treats the problem as a sequence-to-sequence task. Given an input sentence, it generates a structured text output that combines both detection and identification labels.
To further refine performance, the researchers integrated two auxiliary loss functions during training. This multi-task learning approach helps the model develop more robust internal representations for both binary detection and multi-class identification.
The BME Dataset
A major contribution of this research is the BME (Bilingual Multi-category Euphemism) dataset. While previous benchmarks were often limited to single languages or narrow domains like darknet slang, BME offers a broader scope:
- Scale and Diversity: It contains 4,512 English and 4,495 Chinese sentences across 12 categories, including death, sexual activity, weapons, politics, and employment.
- High Quality: The data underwent a rigorous construction pipeline—including collection, cleaning, filtering, and professional labeling—to ensure subtle implicit meanings were captured accurately.
Key Results and Insights
JointEDI demonstrated impressive performance on the BME dataset, achieving F1 scores of 0.9311 for English and 0.8881 for Chinese. Notably, it outperformed state-of-the-art large language models (LLMs) like GPT-4 and LLaMA2-70b, which often struggle with domain-specific or highly informal euphemisms.
The research highlights that "context is king." Because euphemisms are subjective and informal, a word may be a euphemism in one sentence but literal in another. JointEDI’s ability to process entire sentence contexts via its mBART backbone was crucial to its success. While the model has achieved human-level parity with non-professional evaluators, it still slightly trails professional linguists in understanding the most subtle, culturally-embedded metaphors.
Future Directions
While JointEDI and BME represent a major advancement, the authors acknowledge that expanding the framework to more of the world's 7,000+ languages is a necessary next step. Future work will also focus on scaling data collection to cover even more obscure categories of "coded" speech and narrowing the gap between model performance and professional linguistic expertise.
Summary updated