[Paper Review] Describing Differences between Text Distributions with Natural Language
This paper proposes a method to automatically describe differences between two text distributions using natural language hypotheses, leveraging fine-tuned GPT-3 and a learned verifier to rank candidate descriptions. The approach achieves 76% accuracy in generating human-annotated-like descriptions on a 54-task benchmark, significantly outperforming zero-shot GPT-3.
How do two distributions of texts differ? Humans are slow at answering this, since discovering patterns might require tediously reading through hundreds of samples. We propose to automatically summarize the differences by "learning a natural language hypothesis": given two distributions $D_{0}$ and $D_{1}$, we search for a description that is more often true for $D_{1}$, e.g., "is military-related." To tackle this problem, we fine-tune GPT-3 to propose descriptions with the prompt: "[samples of $D_{0}$] + [samples of $D_{1}$] + the difference between them is_____." We then re-rank the descriptions by checking how often they hold on a larger set of samples with a learned verifier. On a benchmark of 54 real-world binary classification tasks, while GPT-3 Curie (13B) only generates a description similar to human annotation 7% of the time, the performance reaches 61% with fine-tuning and re-ranking, and our best system using GPT-3 Davinci (175B) reaches 76%. We apply our system to describe distribution shifts, debug dataset shortcuts, summarize unknown tasks, and label text clusters, and present analyses based on automatically generated descriptions.
Motivation & Objective
- To automate the discovery of natural language descriptions that distinguish two text distributions, such as train/test splits or temporal shifts.
- To address the challenge of human infeasibility in manually scanning thousands of text samples to detect distributional differences.
- To improve upon zero-shot LLM prompting by introducing fine-tuning and re-ranking with a learned verifier for higher-quality hypothesis generation.
- To validate the method on real-world NLP datasets, distribution shift detection, and dataset shortcut identification.
- To enable interpretable, human-understandable analysis of model behavior, data biases, and evolving text trends through natural language summaries.
Proposed method
- Fine-tune GPT-3 (Davinci, 175B) on a newly collected dataset of hypothesis-generation examples to improve its ability to propose natural language descriptions.
- Use a prompt-based approach: [D₀ samples] + [D₁ samples] + 'the difference between them is' to generate candidate hypotheses from GPT-3.
- Re-rank candidate hypotheses using a learned verifier that evaluates how often each hypothesis holds across a larger sample set of D₀ and D₁.
- Apply the framework to multiple tasks: identifying model activation triggers, detecting dataset shortcuts, summarizing text clusters, and analyzing distribution shifts.
- Use a probabilistic framework to define the hypothesis semantics as a majority vote among crowdworkers, ensuring alignment with human judgment.
- Leverage a three-stage data collection pipeline: (1) curate hypotheses, (2) generate positive/negative examples with GPT-3, (3) collect human annotations to filter and validate.
Experimental results
Research questions
- RQ1Can large language models, when fine-tuned and re-ranked, generate natural language descriptions that accurately capture differences between two text distributions?
- RQ2How effective is the proposed method in identifying known dataset shortcuts, such as negation or hyperlink correlations?
- RQ3To what extent can the system recover human-annotated descriptions of positive class characteristics in binary text classification tasks?
- RQ4Can the system detect and describe meaningful distribution shifts across time or data splits in real-world NLP datasets?
- RQ5How does the method scale across diverse applications such as model interpretability, bias detection, and cluster summarization?
Key findings
- The proposed method achieves 76% accuracy in generating descriptions that match human-annotated descriptions on a benchmark of 54 real-world binary classification tasks, using GPT-3 Davinci (175B) with fine-tuning and re-ranking.
- Zero-shot GPT-3 Curie (13B) only generates human-annotated-like descriptions 7% of the time, highlighting the need for fine-tuning and verification.
- The system successfully rediscovered known dataset shortcuts, such as the spurious correlation of negations with the contradiction class in MNLI and hyperlinks with spam in SMS Spam.
- The system correctly identified that the SUBJ dataset was constructed by contrasting movie reviews with plot summaries, a fact overlooked by many recent papers.
- The method enables interpretable analysis of model behavior, such as identifying which inputs trigger specific neurons in deep learning models.
- The framework generalizes across diverse applications, including summarizing text clusters, detecting distribution shifts, and debugging model biases.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.