Reproduce “Semantic Diversity in Dialogue with Natural Language Inference” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Katherine Stasaski, Marti A. Hearst

A new metric, NLI Diversity, quantifies semantic variety in dialogue responses using natural language inference, showing a 0.64 correlation with human judgments for semantic diversity. An iterative generation procedure, Diversity Threshold Generation, leverages this metric to increase response diversity by an average of 137% while maintaining conversational relevancy.

Key insights

  • Natural Language Inference, particularly the detection of 'contradiction' relationships, provides a strong and interpretable signal for measuring semantic diversity in dialogue.
  • Incorporating the NLI model's confidence in its predictions (Confidence NLI Diversity) leads to a metric that correlates more closely with human judgments of semantic diversity than other automatic metrics.
  • It is possible to significantly increase the semantic diversity of generated dialogue responses through a targeted iterative sampling process without sacrificing the relevancy or quality of the responses.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.