NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Silent Signals, Loud Impact: LLMs for Word-Sense Disambiguation of Coded Dog Whistles

Julia Kruk, Michela Marchini, Rijul Magu, Caleb Ziems, David Muchlinski, Diyi Yang · DOI

Introduction

In the landscape of political and social discourse, "dog whistles" represent a sophisticated linguistic strategy. These are coded terms that appear innocuous to a general audience but convey specific, often exclusionary or harmful, messages to a targeted in-group. Because these terms rely on "plausible deniability"—leveraging standard dictionary definitions to mask subtext—they pose a significant challenge for automated content moderation. This research, a collaboration between Georgia Tech and Stanford University, introduces a high-precision method for unmasking these signals using Large Language Models (LLMs).

The Disambiguation Challenge

The primary obstacle in detecting dog whistles is not simple keyword matching, but Word-Sense Disambiguation (WSD). A term like "inner city" may be used in a purely geographic sense or as a coded racial trope. Traditional toxicity filters often fail here because the words themselves are not inherently "toxic" in a vacuum.

Previous NLP approaches have struggled with the subtlety and rapid evolution of these terms. To address this, the researchers reframed the problem: rather than asking a model if a sentence is "hateful," they task the model with determining which of two specific senses—the "standard" or the "coded"—is being employed in a given context.

Methodology: Precision through Consistency

The study benchmarks several state-of-the-art LLMs, including GPT-3.5, GPT-4, Mixtral-7B, and Gemini. The researchers found that while standard prompting yielded moderate results, a specialized "Simulated Ensembling" approach significantly boosted reliability.

By employing an $N$-inference strategy, the system requires the model to remain consistent across multiple independent runs (1, 3, or 5) before accepting a classification. This "consistency check" effectively filters out LLM hallucinations and volatility. When requiring consistency across five runs, GPT-4 achieved a remarkable 96.2% precision. This high bar for accuracy is essential for constructing reliable datasets without the prohibitive cost of exhaustive manual labeling.

The Silent Signals Dataset

A major contribution of this work is the release of Silent Signals, the largest disambiguated dog whistle dataset to date. It comprises 16,550 high-confidence examples categorized into:

  • Informal Discourse: 13,220 examples sourced from Reddit (2005–2023).
  • Formal Discourse: 3,330 examples sourced from U.S. Congressional Records (1900–2023).

This dataset provides a unique longitudinal view of how coded language evolves. The researchers observed that dog whistle usage is not static; it spikes in correlation with major cultural and political flashpoints, such as the Civil Rights movement, the "Southern Strategy," and more recently, the COVID-19 pandemic.

Performance and Insights

The study yielded several key findings:

  1. LLMs vs. Humans: In a comparative study, human workers (via Amazon Mechanical Turk) achieved only 66.8% accuracy in identifying dog whistles. LLMs significantly outperformed the general public, suggesting that models can be "tuned" to perceive nuances that the average listener might miss.
  2. Model Specialization: GPT-4 proved most effective at identifying the presence of dog whistles (87.4 F1 score), while Gemini excelled at providing accurate definitions for the coded terms (73.5 F1).
  3. The Referential Trap: The researchers identified "referential speech" as a primary source of false positives. This occurs when a speaker mentions a dog whistle term to critique or discuss it (e.g., "We must stop using the term 'welfare queen'") rather than using it as a slur.

Limitations and Future Directions

While LLMs show great promise, the researchers note that dog whistles are a moving target. As soon as a term is widely recognized as a dog whistle, the in-group often adopts new, more obscure language to maintain deniability. Furthermore, the question of intent remains complex—distinguishing between a speaker who uses a trope maliciously and one who repeats it out of ignorance is a hurdle that requires further sociolinguistic study.

Future work will focus on improving "recall" to capture a broader range of instances and developing methods to detect emergent dog whistles in real-time before they enter the mainstream lexicon.

Summary updated

BibTeX
@inproceedings{kruk2024silent,
  author = {Julia Kruk and Michela Marchini and Rijul Magu and Caleb Ziems and David Muchlinski and Diyi Yang},
  title = {{Silent Signals, Loud Impact: LLMs for Word-Sense Disambiguation of Coded Dog Whistles}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.675},
}
Figure