Abstract
A major concern in using deep learning-based generative models for document-grounded dialogs is the potential generation of responses that are not faithful to the underlying document. Existing automated metrics for evaluating faithfulness often measure similarity between the response and the document but fail to align well with human judgment. We propose a new metric, PMI-FAITH, which utilizes Conditional Pointwise Mutual Information (PMI) between the generated response and the source document, conditioned on the dialogue history. We also introduce PMI-DECODE, a decoding technique that incorporates PMI into the generation process to predict more faithful responses. Experiments on the BEGIN benchmark and other datasets demonstrate improved correlation with human evaluation and higher faithfulness compared to standard techniques.
The Challenge of Faithfulness in Dialogue
In Document-Grounded Dialog (DGD), an AI system answers user queries based on a specific source text, such as a technical manual or a news article. A critical requirement for these systems is faithfulness: the AI must generate responses derived strictly from the provided document rather than hallucinating information or relying on external knowledge.
Current metrics like BLEU, BERTScore, or the question-answering based $Q^2$ often suffer from a "context blind spot." They typically compare the response directly to the document in isolation, ignoring the preceding dialogue history. This approach fails for "non-sentential" responses—short, natural answers like "Yes, of course." Without considering the history, a metric might incorrectly flag such a response as unfaithful simply because those specific words do not appear in the source document, even if the answer is factually supported by the context.
Proposed Methods: PMI-FAITH and PMI-DECODE
To address these limitations, we leverage Conditional Pointwise Mutual Information (CPMI) to quantify the influence of the document on the response.
1. PMI-FAITH (The Metric)
PMI-FAITH calculates how much the grounding document ($d$) increases the probability of a response ($r$) given the dialogue history ($h$). The core logic is that if the probability of a response significantly increases when the model has access to the document compared to when it only sees the history, the response is likely faithful to that document.
The formula is defined as: $$PMI\text{-}FAITH = \log \frac{P(r|d, h)}{P(r|h)}$$
2. PMI-DECODE (The Strategy)
Beyond evaluation, we integrate PMI into the generation process itself. PMI-DECODE modifies the standard decoding objective to balance two competing goals:
- Likelihood: Ensuring the response sounds natural and fluent.
- Faithfulness: Prioritizing tokens that are specifically encouraged by the document.
To prevent the model from generating ungrammatical "word salad" (a risk when over-prioritizing document-specific tokens), we employ top-p masking. This restricts the selection to the most grammatically probable tokens before applying the faithfulness boost, ensuring the output remains fluent.
Key Insights
- Contextual Faithfulness: Faithfulness is a three-way relationship between the response, the document, and the dialogue history. By accounting for history, PMI-FAITH correctly identifies short, context-dependent answers as faithful.
- Quantifying Influence: PMI serves as an effective measure of influence, asking whether a response was prompted by the conversation flow or specifically by the document's content.
- Balancing Grammar and Accuracy: The use of top-p masking acts as a safety rail, allowing the model to seek document-supported facts without sacrificing linguistic quality.
Experimental Results
We evaluated our approach using the BEGIN Benchmark (comprising CMU-DoG, TopicalChat, and WoW datasets) and others like MultiDoc2Dial and FaithDial.
- Human Alignment: PMI-FAITH demonstrated a significantly higher correlation with human judgments than $Q^2$ or BERTScore, achieving an F1 score of 0.697 (vs. 0.610 for $Q^2$).
- Generation Quality: In human evaluations, responses generated via PMI-DECODE were rated as 15% more faithful than those from standard greedy decoding.
- Robustness: As an information-theoretic approach, PMI-FAITH performed consistently across diverse datasets without requiring task-specific training, unlike many "trained" metrics.
Limitations and Future Directions
While effective, the CPMI calculation introduces computational overhead, as the model must perform extra passes to calculate probabilities with and without the document. This can reduce throughput by approximately 50%. Additionally, the current decoding strategy can struggle with generic social cues (e.g., "Hello") not present in the document. Future work will explore the use of control tokens to better manage the transition between social "chit-chat" and factual, document-grounded responses.
Summary updated