Time to Take Emoji Seriously: They Vastly Improve Casual Conversational Models

Pieter Delobelle, Bettina Berendt

TL;DR

Emojis are often treated as "noise" in Natural Language Processing, but in casual conversation, they are essential semantic anchors. This paper demonstrates that by expanding BERT’s vocabulary to include thousands of emoji tokens and training on emoji-rich data, researchers can improve response selection accuracy from 12.7% to 17.8%—a significant leap for conversational AI.

What Problem Does This Paper Address?

Most state-of-the-art NLP models are "emoji-blind." Popular pre-trained models like BERT or GPT-2 often lack emojis in their default vocabularies, and many standard training corpora (like the Europarl proceedings or technical IRC logs) are naturally devoid of them. When these models encounter a thumbs-up (👍) or a rolling-eyes emoji (🙄), they often see an "unknown token" or a generic placeholder.

The authors argue that this is a major oversight for casual conversational AI. In a chat context, an emoji isn't just a decoration; it can be an entire utterance (e.g., a single 👍 signifying agreement) or a crucial modifier that flips the sentiment of a sentence. Without understanding these graphical cues, models struggle to interpret the nuances of human interaction.

Methods

The researchers took a standard multilingual BERT model (bert-base-multilingual-cased) and performed two key modifications:

  1. Vocabulary Expansion: They added 3,627 new tokens to the model. This included 2,740 emoji from the Unicode Standard (v12.0) plus various aliases (e.g., converting the UTF-8 character into a textual format like :face_with_rolling_eyes:).
  2. Unified Format: By using the :alias: format, the authors ensured the model could handle both standard Unicode emoji and "custom" emoji common on platforms like Slack or Twitch.
  3. Continued Pre-training: They didn't just fine-tune the model; they continued training it on a language modeling task (predicting masked tokens) to help the model learn the relationship between these new emoji tokens and existing text.
  4. Response Selection Task: Finally, they fine-tuned the model to perform "response selection"—given a question, the model must pick the most appropriate response from a pool of 100 candidates.

Datasets

The paper highlights a major "lacuna" (gap) in available data. Most popular datasets have surprisingly low emoji counts:

  • Ubuntu Dialog Corpus: 0% graphical emoji (due to technical encoding limits).
  • Amazon QA: 0.14% emoticons.
  • Twitter Customer Support Dataset: This was the primary dataset used for the experiment. Sourced from Twitter, it contains 2,000 tuples where 8.75% of utterances contain at least one emoji.

Key Insights and Ideas

  • Emoji as Semantic Anchors: The authors point out that emoji meanings are defined by usage, not just their official Unicode descriptions. For example, the "peach" emoji (🍑) is rarely used to discuss fruit in casual contexts. By training on real-world data rather than relying on descriptions, the model learns these "double entendres" and cultural nuances.
  • The Encoding Trap: Many NLP pipelines fail simply because of text encoding issues that drop emojis before the model even sees them. The authors' move to textual aliases (:emoji:) provides a robust workaround for this technical hurdle.
  • Contextual Necessity: In customer support contexts (like the Twitter dataset), emojis often signal the "tone" of the interaction. A model that ignores a heart emoji or a frustrated face is likely to pick a response that is tonally deaf.

Key Results

The impact of adding emoji support was immediate and measurable:

  • Accuracy Jump: On the "1-of-100" response selection task, the baseline BERT model achieved 12.7% accuracy. The emoji-aware BERT model reached 17.8% accuracy.
  • Mean Rank Improvement: The average rank of the correct response improved from 33 to 31.
  • Perplexity: The emoji-aware model achieved a final perplexity of 2.0281, suggesting it was much more "at home" with the casual, emoji-heavy language of Twitter than the standard model.

The authors note that while the accuracy increase is roughly 5 percentage points, this represents a 40% relative improvement over the baseline, proving that emojis provide a massive amount of signal for their "weight" in a sentence.

Limitations and Future Work

The most significant limitation acknowledged is the scarcity of high-quality, large-scale emoji datasets. The Twitter dataset used was relatively small (2,000 tuples), which limits the model's ability to learn the rarest emojis.

Additionally, the authors focused solely on the response selection task. They suggest that future work should investigate whether emoji-aware models also see gains in other NLP areas, such as sentiment analysis, sarcasm detection, or generative chat models where the AI must "write" its own emojis to sound natural.

Summary updated

BibTeX
@inproceedings{delobelle2019time,
  author = {Pieter Delobelle and Bettina Berendt},
  title = {{Time to Take Emoji Seriously: They Vastly Improve Casual Conversational Models}},
  booktitle = {BNAIC/BENELEARN},
  year = {2019},
  url = {https://openreview.net/forum?id=y4qstC5ngS},
}
Figure