Towards Building an Open-Domain Dialogue System Incorporated with Internet Memes

Hua Lu, Zhen Guo, Chanjuan Li, Yunyi Yang, Huang He, Siqi Bao

TL;DR

Baidu researchers developed a top-performing system for the DSTC10 Meme Incorporated Open-domain Dialogue (MOD) Challenge by simplifying multimodal meme processing into a text-matching problem. By representing memes using only their titles and OCR text, and by modeling conversational "emotion flow," their system achieved first place on four out of six challenge leaderboards. This work demonstrates that clever text-based formulations can outperform complex vision-language models when integrating internet memes into open-domain chatbots.

What Problem Does This Paper Address?

While modern open-domain dialogue systems excel at text-based conversation, they are largely blind to internet memes—a staple of modern online communication. Memes add emotional expressiveness and engagement to chats, but incorporating them into dialogue systems introduces significant challenges:

  1. Text Response Modeling: Generating coherent text replies given a history of mixed text and images.
  2. Meme Retrieval: Selecting the perfect meme from a library to match the conversational context and text response.
  3. Meme Emotion Classification: Correctly identifying the emotional undertone of a meme within a specific conversation.

Existing vision-language models often fail here because they are pre-trained on standard real-world photos, creating a severe data distribution gap when applied to stylized, abstract internet memes. Furthermore, systems must generalize well enough to handle "unseen" memes that were never presented during training.

Figure 1: Two examples from the MOD dataset. Correspond- ing emotion is annotated for each meme in red.

Methods

The authors proposed distinct, optimized solutions for each of the three MOD challenge tasks, built on top of the pre-trained open-domain dialogue model PLATO-2:

  • Task 1: Text Response Modeling Counter-intuitively, the authors found that incorporating meme features (visual or textual) yielded negligible benefits for generating text responses. Because memes typically convey emotional punctuation rather than narrative plot points, the authors treated this purely as a text-to-text generation task, using PLATO-2 to minimize negative log-likelihood (NLL) loss.

  • Task 2: Meme Retrieval Instead of relying on complex visual encoders like EfficientNet, the authors unified the modalities by representing each meme purely as text: a combination of its meme title and its extracted OCR text. They framed retrieval as a text-matching problem using a cross-encoder architecture, allowing full self-attention interaction between the dialogue context, the text response, and the candidate meme text. The model was trained using a margin ranking (Hinge) loss paired with dynamic random negative sampling.

  • Task 3: Meme Emotion Classification To capture how mood evolves during a chat, the authors introduced Emotion Flow (EF) modeling, which appends the textual emotion descriptions of prior turns directly into the dialogue context. They also introduced an auxiliary task called Emotion Description Prediction (EDP). Using Masked Language Modeling (MLM), the network learns to predict masked emotion tokens within the response, boosting the primary cross-entropy classification objective.

Figure 2: Illustration of network inputs and training objec- tives for three tasks.

Datasets

The methods were evaluated on the DSTC10 MOD dataset, which consists of:

  • Train: 41,644 dialogues (558,181 utterances, 274 memes, 50 emotion categories)
  • Valid: 1,000 dialogues
  • Easy Test: 1,000 dialogues (contains the same 274 memes seen in training)
  • Hard Test: 1,530 dialogues (contains 307 memes, including completely unseen memes to evaluate generalization)

Key Insights and Ideas

  • Text is a Sufficient Proxy for Memes: The most surprising finding is that explicit visual features are not required to understand or retrieve memes. Converting an image into a text string (Title + OCR text) bypasses the domain gap plaguing vision-language pre-training on memes.
  • Cross-Encoders Beat Dual-Encoders: Rather than encoding the context and the meme separately (dual-encoder), encoding them together (cross-encoder) allows the transformer blocks to compute rich, token-level interactions, which proved vital for accurate meme matching.
  • Emotion Has Momentum: Conversations possess an emotional trajectory. Explicitly tracking and feeding past emotions back into the context window (Emotion Flow) significantly aids the model in predicting the emotional state of the current turn.

Key Results

The proposed framework achieved dominant results across the DSTC10 leaderboards:

  • Meme Retrieval (Task 2): The text-matching cross-encoder outperformed all competing teams by a wide margin. On the Easy Test set, it achieved a Recall_10@1 of 56.8% (vs. 34.4% for the runner-up). On the Hard Test set (unseen memes), it maintained a strong lead with 42.0% Recall_10@1 (vs. 27.9% for the runner-up).
  • Emotion Classification (Task 3): Combining Emotion Flow (EF) and Emotion Description Prediction (EDP) yielded a 62.3% Accuracy@1 on the Easy Test set, outperforming the second-place team by an absolute 4.0%. Ablation studies showed that adding EF alone provided a +2.2% boost.
  • Text Response Modeling (Task 1): While automatic metrics like BLEU were low, human evaluation ranked the system 1st on the hard test set and 2nd on the easy test set, demonstrating high grammatical correctness, relevance, and naturalness.
Examples of the input dialogue history and the system's generated text responses, retrieved memes, and classified emotions.

Limitations and Future Work

The primary bottleneck identified by the authors is the system's performance on unseen memes during emotion classification. While the retrieval mechanism generalized well to new memes, the emotion classification accuracy plummeted from 62.3% (Easy Test) to 27.3% (Hard Test). The authors acknowledge that accurately recognizing the emotional nuances of entirely novel internet memes remains a weak point that requires future research.

Summary updated

Abstract

In recent years, Internet memes have been widely used in online chatting. Compared with text-based communication, conversations become more expressive and attractive when Internet memes are incorporated. This paper presents our solutions for the Meme incorporated Open-domain Dialogue (MOD) Challenge of DSTC10, where three tasks are involved: text response modeling, meme retrieval, and meme emotion classification. Firstly, we leverage a large-scale pre-trained dialogue model for coherent and informative response generation. Secondly, based on interaction-based text-matching, our approach can retrieve appropriate memes with good generalization ability. Thirdly, we propose to model the emotion flow (EF) in conversations and introduce an auxiliary task of emotion description prediction (EDP) to boost the performance of meme emotion classification. Experimental results on the MOD dataset demonstrate that our methods can incorporate Internet memes into dialogue systems effectively.
BibTeX
@misc{lu2022towards,
  author = {Hua Lu and Zhen Guo and Chanjuan Li and Yunyi Yang and Huang He and Siqi Bao},
  title = {{Towards Building an Open-Domain Dialogue System Incorporated with Internet Memes}},
  year = {2022},
  eprint = {2203.03835},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.03835},
}
Figure