LEATHER: A Framework for Learning to Generate Human-like Text in Dialogue

Anthony Sicilia, Malihe AlikhaniarXiv 2022

TL;DR

The paper introduces LEATHER, a novel theoretical framework designed to analyze and optimize multi-faceted objectives (like task success and human-likeness) in dialogue generation. By deriving a new domain adaptation bound based on "statistical energy," the authors create a predictive tool to detect dialogue quality degradation caused by data-shifts during training, leading to a regularized cooperative learning algorithm that significantly improves both text quality and task performance.

What Problem Does This Paper Address?

Training dialogue systems to be both effective and human-like is notoriously difficult. Standard classification approaches (like next-word prediction) often result in bland, generic text. On the other hand, optimizing purely for task success using Reinforcement Learning (RL) frequently leads to "mode collapse," where the agent learns to repeat a small set of safe but completely unnatural phrases.

While traditional Probably Approximately Correct (PAC) learning theory provides solid guarantees for simple classification tasks, it fails in dialogue generation. Dialogue involves diverse, multi-faceted goals (e.g., fluency, relevance, lexical diversity) and is highly susceptible to data-shift—where the distribution of data changes between training phases or deployment environments. The authors address this lack of theoretical foundation by developing a framework that can mathematically model these complex objectives and quantify the impact of data-shift.

Methods

The authors propose the LEATHER (LEArning Theory for Human-like dialogue genERation) framework. The core components include:

  1. Test Functions and Test Divergence: Instead of relying on a single metric, LEATHER uses a set of mathematical "test functions" to evaluate specific high-level properties of dialogue (e.g., question relevance, diversity). The difference in performance on these tests between human and machine dialogue is defined as test divergence.
  2. Discrete Energy Distance (Statistical Energy): To measure data-shift without needing constant, expensive access to human evaluators or complex automated metrics, the authors adapt the concept of energy distance into a discrete form. This metric quantifies the distance between two dialogue distributions.
  3. Coarsening Functions: Because the space of possible natural language dialogues is infinitely large and sparse, calculating energy distance directly is impractical. The authors introduce a coarsening function—implemented via $k$-means clustering on the encoder's latent space representations—to map complex dialogues into a manageable, finite set of clusters.
  4. LEATHER-Inspired Regularization: The authors apply their theory to a Cooperative Learning (CL) baseline for a visual dialogue game. In standard CL, the model alternates between a language learning phase (conditioned on human text) and a task-oriented phase (conditioned only on generated text). This alternation causes a severe internal data-shift. The authors fix this by regularizing the task-oriented phase with human dialogue data, explicitly minimizing the statistical energy shift between the two phases.

Datasets

The framework and algorithm were evaluated using the GuessWhat?! dataset (De Vries et al., 2017). This is a visual dialogue game dataset consisting of:

  • 67K unique images and 134K unique objects.
  • 277K total questions asked by human players attempting to guess a secret object in an image via yes/no questions.

Key Insights and Ideas

  • Internal Data-Shift is a Silent Killer: In multi-phase training setups (like cooperative learning), the model's internal data distribution shifts drastically when switching from mimicking humans to optimizing for task success. This shift degrades the human-likeness of the text.
  • Predicting Quality Without Evaluators: The derived discrete energy distance bound acts as a reliable proxy for target error. This means researchers can predict whether a model's dialogue quality will degrade without running expensive human evaluations or deploying the model.
  • The Power of Coarsening: Clustering latent space representations allows rigorous statistical bounds from learning theory to be applied to the messy, high-dimensional reality of natural language processing.

Key Results

The LEATHER-regularized algorithm was compared against the original Cooperative Learning (CL) baseline and a Reinforcement Learning (RL) baseline:

  • Task Success: LEATHER achieved the highest object-guessing accuracy at 58.4%, outperforming the baseline CL (57.1%) and RL (56.3%).
  • Human-Likeness: According to human annotators, LEATHER reduced the percentage of irrelevant questions by 4.8% and overly specific questions by 1.7% compared to the CL baseline, aligning much closer to actual human behavior.
  • Mitigating Mode Collapse: While the RL baseline suffered from severe repetition (a 96.5% question repetition rate), LEATHER maintained a low repetition rate (53.6%), proving its ability to preserve lexical diversity.
Figure 1: Examples of human and generated dialogue with original cooperative learning algorithm CL (Shekhar et al., 2019) and our learning algorithm motivated by our theory (LEATHER). Roughly, LEATHER works by applying a series of tests to generated dialogue and comparing the test results across the human and generated dialogue. Well-generated dialogue is expected to perform similarly to human dialogue on these tests. The example tests the % of relevant questions. Compared to CL, LEATHER asks more relevant questions and therefore behaves more human-like. Aggregate empirical results in Section 5 echo this trend.

Additionally, the authors empirically validated that their statistical energy metric has a strong, direct linear relationship with the actual change in dialogue quality metrics across training epochs, proving its utility for unsupervised model selection.

Figure 2: Energy between training phases. Energy is predic- tive of change in test divergence as desired. Dotted line is line of best fit. Blue circles (CL) indicate use of only generated dialogue in task-oriented learning phase. Orange triangles (LEATHER) indicate regularization with human data.

Limitations and Future Work

The primary limitation acknowledged by the authors is the absence of sample-complexity bounds. The current framework does not explicitly quantify how many samples are required to guarantee that the empirical observation of statistical energy matches the true population energy.

For future work, the authors plan to mathematically investigate sample complexity within LEATHER and extend empirical testing to other dialogue settings, such as open-domain conversational agents and different task-oriented benchmarks.

Summary updated

BibTeX
@misc{sicilia2022leather,
  author = {Anthony Sicilia and Malihe Alikhani},
  title = {{LEATHER: A Framework for Learning to Generate Human-like Text in Dialogue}},
  year = {2022},
  eprint = {2210.07777},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.07777},
}
Figure