Multimodal Emoji Prediction

Francesco Barbieri, Miguel Ballesteros, Francesco Ronzano, Horacio Saggion

TL;DR

Researchers have developed a multimodal system that predicts which emoji best fits an Instagram post by analyzing both the image and the caption simultaneously. By combining visual features from a ResNet-101 with textual features from FastText, the model significantly outperforms systems that look at text or images in isolation, proving that emojis are a "synergistic" form of communication where words and pictures complement each other.

What Problem Does This Paper Address?

While emojis are a cornerstone of modern digital communication, teaching machines to understand or predict them is surprisingly difficult. Most previous research focused on text-only platforms like Twitter. However, social media is increasingly visual.

The challenge is that emojis don't just repeat what is in the text; they often provide emotional context, react to visual elements in a photo, or bridge the gap between the two. For example, a photo of a sunset might have a caption like "Finally home," where the ☀️ emoji is triggered by the image rather than the words. This paper explores how to build a system that "sees" and "reads" at the same time to better predict human emoji usage.

Methods

The authors propose a multimodal fusion approach to emoji prediction:

  1. Visual Processing (ResNets): They used a Deep Residual Network (ResNet-101) pre-trained on ImageNet. They fine-tuned this model on their emoji dataset to extract high-level visual features from Instagram photos.
  2. Textual Processing (FastText): For the captions, they employed FastText, a computationally efficient linear model that represents sentences as a "bag of words" vectors. They chose this over more complex Recurrent Neural Networks (like LSTMs) because it offers comparable performance with much higher speed.
  3. Multimodal Fusion: The core innovation is "middle fusion." They took the feature vectors from the image model and the text model, concatenated them into a single long vector, and fed that into an L2-regularized logistic regression classifier to predict the final emoji.

Datasets

The study used a custom-built dataset of 299,809 Instagram posts collected between July and October 2016 in the United States. To ensure data quality, they filtered for:

  • Posts containing exactly one photo.
  • Captions with at least 4 words.
  • Posts using exactly one emoji from the top 20 most frequent emojis (e.g., ❤️, 😂, ✨, ☀️).

This resulted in a dataset where 184,044 posts belonged to the top 5 emojis, and 238,646 belonged to the top 10.

Key Insights and Ideas

  • Synergy is Key: The most important finding is that text and images encode different but complementary information. The multimodal model didn't just marginally improve on the text model; it showed that visual data helps resolve ambiguities that text alone cannot.
  • Visual vs. Textual Strengths: Some emojis are "text-heavy," like the US flag (🇺🇸), which is easily predicted when words like "USA" or "#NYC" appear. Others are "image-heavy," like the flexed bicep (💪) or the dog (🐶), which are often triggered by specific visual content regardless of the caption.
  • Saliency Matters: Using saliency maps, the researchers showed that the model actually "looks" at relevant parts of the image. For the 🕶️ emoji, the model focused on faces/eyes; for the 🐶 emoji, it focused on the animal; and for the 🙏 emoji, it often focused on the sky or symbolic objects.
  • Contextual Shift: On Instagram, the ❤️ emoji is easier to predict than on Twitter because the visual context of a "home" or "family" photo provides a stronger signal than a text-only tweet.

Key Results

The researchers evaluated their models using F1-scores (a balance of precision and recall) across three tasks: predicting the top 5, top 10, and top 20 emojis.

  • Multimodal vs. Text-Only: The multimodal model outperformed the text-only model across the board. The improvement was particularly dramatic as the task got harder:
  • Top 5: +3.3% improvement.
  • Top 10: +7.3% improvement.
  • Top 20: +13.4% improvement.
  • Visual-Only Performance: Predicting emojis using only the image is difficult (F1 of 16.1% for top 20), but it still significantly beats random guessing or "majority class" baselines, proving that images do carry a distinct "emoji signal."

Limitations and Future Work

  • Single Emoji Constraint: The study only looked at posts with exactly one emoji. In reality, people often use strings of multiple emojis, which adds a layer of complexity (sequence prediction) not addressed here.
  • Limited Vocabulary: The model was restricted to the 20 most frequent emojis. Expanding this to the hundreds of emojis in common use would likely require much larger datasets and more sophisticated architectures.
  • User Bias: The paper notes that emoji use is highly subjective. Future work could incorporate user-specific history to personalize predictions, as different people use the same emoji to mean different things.

Summary updated

BibTeX
@inproceedings{barbieri2018multimodal,
  author = {Francesco Barbieri and Miguel Ballesteros and Francesco Ronzano and Horacio Saggion},
  title = {{Multimodal Emoji Prediction}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=rJVuL7WubH},
}
Figure