Think Before You Speak: Learning to Generate Implicit Knowledge for Response Generation by Self-Talk

Pei Zhou, Behnam Hedayatnia, Karthik Gopalakrishnan, Seokhwan Kim, Jay Pujara, Xiang Ren, Yang Liu, Dilek Hakkani‐Tür2021

Abstract

Pei Zhou, Behnam Hedayatnia, Karthik Gopalakrishnan, Seokhwan Kim, Jay Pujara, Xiang Ren, Yang Liu, Dilek Hakkani-Tur. Proceedings of the 3rd Workshop on Natural Language Processing for Conversational AI.

2021.

Current AI chatbots often jump straight to a response without "thinking" about the underlying context. This paper introduces a "self-talk" mechanism where a model first generates implicit commonsense knowledge (e.g., "a rose is a flower") before formulating its reply. This intermediate step leads to responses that humans find significantly more coherent, engaging, and grammatically correct.

Introduction

When humans converse, we rely on a "common ground" of mutual beliefs and shared knowledge. If someone says, "I need to buy flowers for my wife," and you respond, "Maybe she'd like red roses," you’ve performed an internal mental leap: you know that a rose is a type of flower.

Standard end-to-end response generation (RG) models, however, are usually trained to map an input directly to an output, skipping this intermediate reasoning step. Because they don't explicitly "process" the implicit knowledge required for a conversation, their responses can sometimes feel hollow, irrelevant, or lacking in logic. The authors aim to bridge this gap by forcing models to externalize this implicit knowledge through a process called "self-talk."

Methodology

The researchers framed the task as a conditional language modeling problem. Instead of just predicting a response $R$ given a dialogue history $U$, the model is trained to predict a sequence: History ($U$) $\rightarrow$ Implicit Knowledge ($I$) $\rightarrow$ Response ($R$).

Key technical details include:

  • Model Architecture: GPT-2 medium was used as the base transformer model.
  • Self-Talk Encapsulation: Special tokens (<implicit> and <\implicit>) wrap the generated knowledge, creating a "thought buffer" before the final response.
  • Training Variations:
    • Two-Step Training: The model is first trained to generate knowledge ($I$) based on history ($U$), and then trained to generate the response ($R$) based on both $U$ and $I$.
  • Selective Reasoning: The model was trained on a mix of "knowledge-heavy" turns and simple "chitchat" to learn when to perform self-talk versus when to respond directly.

Experimental Setup

The authors aggregated "commonsense-focused dialogues" from several sources: DailyDialog, EmpatheticDialogues, MuTual, and SocialIQA-prompted dialogues. ConceptNet served as the "Knowledge Schema," where dialogue turns were aligned with ConceptNet triples (e.g., "buy, RelatedTo, money") to create ground-truth implicit knowledge. In total, the dataset comprised roughly 31k dialogues (159k turns), with 57k turns containing at least one matched knowledge triple.

Results

Human evaluations were conducted across three criteria: Grammaticality, Coherence, and Engagement.

Self-Talk vs. Vanilla Models

In head-to-head matchups, humans preferred the "Self-Talk" model over a standard (vanilla) GPT-2 model across all metrics. The self-talk model demonstrated a significant improvement in Coherence and Engagement.

Human preference comparison between Self-Talk and Vanilla models.

Data Distribution Impact

The researchers also investigated the impact of training data distribution. Interestingly, training on a "balanced" dataset (an equal mix of turns with and without implicit knowledge) outperformed an "imbalanced" one that had more data but less variety.

Human preference comparison between Balanced and Imbalanced training data.

Discussion and Key Insights

  • Thinking Improves Speaking: Externalizing "thoughts" acts as a powerful regularizer. Even if the user doesn't see the "self-talk," the act of generating it forces the model's internal state to align better with human logic.
  • Emergent Knowledge: Models occasionally generated new commonsense facts not found in the original database (e.g., "bus is located at airport"), suggesting synthesis of pre-trained knowledge.
  • Selective Reasoning: Models learned to skip self-talk for simple greetings, preventing over-analysis of trivial interactions.

Limitations and Future Work

As a preliminary study, several areas for growth remain:

  • Knowledge Scope: Reliance on ConceptNet may not cover all nuances of human experience.
  • Inference Latency: Generating intermediate knowledge strings increases token production, potentially slowing real-time applications.
  • Evaluation Scale: Larger-scale studies are needed to confirm trends across more diverse conversational styles.
  • Future Direction: Exploring dynamic knowledge sources (like other LMs) could reduce noise from static database alignment.

Summary updated

BibTeX
@misc{zhou2021think,
  author = {Pei Zhou and Behnam Hedayatnia and Karthik Gopalakrishnan and Seokhwan Kim and Jay Pujara and Xiang Ren and Yang Liu and Dilek Hakkani‐Tür},
  title = {{Think Before You Speak: Learning to Generate Implicit Knowledge for Response Generation by Self-Talk}},
  year = {2021},
  doi = {10.18653/v1/2021.nlp4convai-1.23},
}
Figure