Semantically Informed Slang Interpretation

Zhewei Sun, Richard S. Zemel, Yang Xu · DOI

TL;DR

This paper introduces a novel framework for interpreting slang in natural language, going beyond simple contextual analysis to incorporate semantic extensions. Their "Semantically Informed Slang Interpretation" (SSI) framework significantly improves slang interpretation accuracy and enables better machine translation of informal language, even in low-resource scenarios.

What Problem Does This Paper Address?

Interpreting slang is a significant challenge for Natural Language Processing (NLP) systems. Slang often involves flexible and extended uses of words, where meanings deviate from their conventional definitions (e.g., "steamed" meaning "angry" instead of "vapor"). Existing NLP approaches, which primarily rely on context, struggle to capture these semantic shifts. This limitation hinders downstream applications like machine translation, where misinterpreting slang can lead to nonsensical outputs. The paper aims to bridge this gap by developing a method that jointly considers both the contextual and semantic appropriateness of a slang interpretation.

Methods

The proposed framework, Semantically Informed Slang Interpretation (SSI), builds upon existing context-based interpretation methods. It consists of three main components:

  1. Context-based Interpretation: This initial step generates an n-best list of candidate interpretations for a slang term within its context. The authors explore two baseline approaches:
  2. Language Infill Model (LM Infill): Utilizes large pre-trained language models (like GPT-2) to predict words that best fit a masked slang position in a sentence.
  3. Dual Encoder: A sequence-to-sequence model that encodes both the slang term and its context, inspired by machine translation architectures.
  4. Semantic Model of Slang: This component models the semantic plausibility of candidate interpretations. It leverages a contrastive learning approach to learn semantic embeddings that capture how conventional meanings can extend to slang meanings. This allows the model to understand relationships like "vapor" extending to "angry."
  5. Semantically Informed Reranking: The final step uses the semantic model to rerank the candidate interpretations generated by the context-based interpreter. This reranking prioritizes interpretations that are semantically aligned with the slang term's extended meanings, leading to a more accurate final interpretation. The framework also incorporates collaborative filtering to leverage similar words' semantic extensions.

Datasets

The study utilizes two online English slang dictionaries for training and evaluation:

  • Online Slang Dictionary (OSD): A smaller, higher-quality dataset.
  • Urban Dictionary (UD): A much larger dataset, used for evaluating larger neural network-based approaches.

Both datasets contain slang terms, their definitions, and example sentences. The authors also used the Oxford Dictionary (OD) to retrieve conventional senses for slang terms.

Key Insights and Ideas

  • Slang is more than just context: The paper strongly argues that context alone is insufficient for accurate slang interpretation. Semantic extensions, the core of how slang evolves, must be explicitly modeled.
  • Inverse of slang generation: Framing slang interpretation as the inverse of slang generation provides a powerful conceptual lens.
  • Contrastive learning for semantic extensions: Using contrastive learning to map conventional and slang meanings into a shared semantic space is key to capturing flexible word usage.
  • SSI improves baselines significantly: The semantically informed reranking consistently boosts the performance of both LM-based and dual-encoder baselines, even when the baselines are trained on much larger datasets.
  • Zero-shot and few-shot effectiveness: The SSI framework demonstrates strong performance even in low-resource scenarios, highlighting its robustness and ability to generalize.

Key Results

  • Improved Slang Interpretation: The SSI framework achieved state-of-the-art accuracy on both OSD and UD datasets, outperforming baseline models in mean reciprocal rank (MRR) across various evaluation settings. For instance, on the UD dataset with LM Infill, SSI improved MRR from 0.517 to 0.569 (distinct negatives) and 0.521 to 0.579 (random negatives).
  • Enhanced Machine Translation: Applying SSI to machine translation significantly improved translation scores (BLEU, BLEURT, COMET) for sentences containing slang, compared to directly translating the original slang-containing sentences.
  • Robustness in Low-Resource Settings: Even when the baseline LM Infill model was not specifically trained on slang, the SSI framework enabled it to select better interpretations than a dual-encoder model trained on a much larger slang dataset.

Limitations and Future Work

  • Offensive Content: The authors acknowledge that slang datasets like Urban Dictionary can contain offensive language. While they strive to minimize its representation in examples, models trained on such data may exhibit offensive language generation.
  • Novel Word Forms: The current framework primarily focuses on interpreting slang expressions that are existing word forms. Future work could extend this to model the coinage of new slang expressions and multi-word expressions.
  • Emergence of Slang: Investigating how slang terms emerge within specific individuals and groups is a potential avenue for future research.
  • Integration with Slang Detection: The authors suggest integrating their framework with slang detection systems for fully automated slang translation in natural contexts.

Summary updated

BibTeX
@inproceedings{sun2022semantically,
  author = {Zhewei Sun and Richard S. Zemel and Yang Xu},
  title = {{Semantically Informed Slang Interpretation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.naacl-main.383},
}
Figure