Evaluation of Faithfulness Using the Longest Supported Subsequence

Anirudh Mittal, Timo Schick, Mikel Artetxe, Jane Dwivedi-YuarXiv 2023

Abstract

As increasingly sophisticated language models emerge, their trustworthiness becomes a pivotal issue, especially in tasks such as summarization and question-answering. Ensuring their responses are contextually grounded and faithful is challenging due to the linguistic diversity and the myriad of possible answers. In this paper, we introduce a novel approach to evaluate faithfulness of machine-generated text by computing the longest noncontinuous substring of the claim that is supported by the context, which we refer to as the Longest Supported Subsequence (LSS). Using a new human-annotated dataset, we finetune a model to generate LSS. We introduce a new method of evaluation and demonstrate that these metrics correlate better with human ratings when LSS is employed, as opposed to when it is not. Our proposed metric demonstrates an 18% enhancement over the prevailing state-of-the-art metric for faithfulness on our dataset. Our metric consistently outperforms other metrics on a summarization dataset across six different models. Finally, we compare several popular Large Language Models (LLMs) for faithfulness using this metric. We release the human-annotated dataset built for predicting LSS and our fine-tuned model for evaluating faithfulness.

Introduction

Large Language Models (LLMs) excel at generating fluent text, but they suffer from a well-documented "honesty" problem: hallucinations. They often mix facts with fiction so seamlessly that it becomes difficult to trust their outputs. Evaluating "faithfulness"—the degree to which a generated summary or answer stays true to its source—is notoriously difficult. Standard metrics like ROUGE or BLEU look for word overlap, but a model can use all the right words to tell a complete lie. More advanced "model-based" metrics like QuestEval or FactCC try to predict if a sentence is "Correct" or "Incorrect" as a whole, but these are often "brittle." If a sentence is 90% true but contains one hallucinated date, a binary metric might fail to capture the nuance, while overlap metrics might give it a high score despite the error.

Methodology: The Longest Supported Subsequence (LSS)

The core innovation presented is the Longest Supported Subsequence (LSS). Given a "Reference" (source text) and a "Claim" (model output), the LSS is the longest non-continuous string of words from the claim that can be verified by the reference. This non-continuous nature is crucial because hallucinations often occur in the middle of otherwise factual sentences.

Illustration of the LSS concept and the proposed evaluation approach.

To automate this, the researchers fine-tuned a T5-3B model to act as an "LSS Generator." Instead of the traditional approach of comparing the Reference directly to the Claim, the proposed method compares the Claim to the generated LSS. If the LSS is nearly identical to the Claim, the model was faithful; if it is significantly shorter, the model hallucinated. The study also introduces LSS*, a grammatically corrected version of the LSS.

Experimental Results

The LSS-based metric demonstrated a significant performance leap, showing an 18% improvement in correlation with human faithfulness ratings over QuestEval, the previous state-of-the-art.

Correlation with human ratings across various models, comparing the traditional approach vs. the LSS-based approach.

A particularly striking finding was the "Metric Flip." In traditional settings, ROUGE and BLEU showed near-zero or negative correlation with human judgments. However, when applied to the LSS-Claim pair, their correlation jumped to 0.86 and 0.85, respectively. This suggests that LSS acts as an effective "truth filter," making simple overlap metrics highly reliable for faithfulness evaluation. In a comparison of popular models, ChatGPT (GPT-3.5) emerged as the most faithful, significantly outperforming LLaMA-7B and Vicuna-13B in the XSum domain.

Conclusion and Future Work

While LSS provides a more granular and accurate measure of faithfulness, it has limitations. The current LSS generator is primarily trained on Wikipedia data and may struggle with different text structures or complex logic like double negatives. Additionally, the computational cost of running a 3B-parameter model for evaluation is a factor. Future work could involve using LSS as a feedback signal for Reinforcement Learning from Human Feedback (RLHF) to directly improve model faithfulness.

Summary updated

BibTeX
@misc{mittal2023evaluation,
  author = {Anirudh Mittal and Timo Schick and Mikel Artetxe and Jane Dwivedi-Yu},
  title = {{Evaluation of Faithfulness Using the Longest Supported Subsequence}},
  year = {2023},
  eprint = {2308.12157},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.12157},
}
Figure