[Paper Review] Think Twice Before Trusting: Self-Detection for Large Language Models through Comprehensive Answer Reflection
The paper introduces a multi-answer reflection framework (TTA) to calibrate confidence estimates for black-box LLMs by having the model reflect on and justify multiple candidate answers before estimating a joint confidence score.
Self-detection for Large Language Models (LLMs) seeks to evaluate the trustworthiness of the LLM's output by leveraging its own capabilities, thereby alleviating the issue of output hallucination. However, existing self-detection approaches only retrospectively evaluate answers generated by LLM, typically leading to the over-trust in incorrectly generated answers. To tackle this limitation, we propose a novel self-detection paradigm that considers the comprehensive answer space beyond LLM-generated answers. It thoroughly compares the trustworthiness of multiple candidate answers to mitigate the over-trust in LLM-generated incorrect answers. Building upon this paradigm, we introduce a two-step framework, which firstly instructs LLM to reflect and provide justifications for each candidate answer, and then aggregates the justifications for comprehensive target answer evaluation. This framework can be seamlessly integrated with existing approaches for superior self-detection. Extensive experiments on six datasets spanning three tasks demonstrate the effectiveness of the proposed framework.
Motivation & Objective
- Motivate calibrated confidence estimation for black-box API LLMs to mitigate overconfidence and hallucinations.
- Propose a multi-answer evaluation paradigm to compare trustability across several candidate answers.
- Develop a two-step Think Twice Before Assure (TTA) framework to generate justifications per answer and perform joint confidence estimation.
- Demonstrate that TTA improves calibration and can augment existing calibration methods across multiple tasks and datasets.
Proposed method
- Propose a multi-answer evaluation paradigm that considers N candidate answers for a question and aggregates their evaluations to refine the target answer confidence.
- Step 1: Reflection and Justification, where LLMs generate justifications for each candidate answer using a designated prompt p^e.
- Step 2: Joint Confidence Estimation, where the justifications e_i are integrated via a Top-K verbalized method using prompt p^v to obtain a calibrated confidence c for the target answer.
- TTA can be combined with existing methods (e.g., Top-K verbalized, CAPE, or prompt ensembles) for further calibration gains.
- Experiments compare TTA against baselines across six datasets covering three tasks using multiple LLMs (GPT-3.5, GPT-4, GLM-4).
Experimental results
Research questions
- RQ1How does considering multiple candidate answers affect confidence calibration for LLM outputs compared to single-answer approaches?
- RQ2Can a two-step reflection-and-justification plus joint estimation framework improve calibration over existing self-consistency and prompt-ensemble methods?
- RQ3Is the TTA framework robust across different tasks, datasets, and LLMs, and can it synergize with other calibration techniques?
Key findings
- TTA improves calibration (AUROC and PRAUC) over several baselines on SA, NLI, and CQA tasks across datasets.
- Combining TTA with Top-K verbalized or prompt-ensemble methods yields further calibration gains across datasets and models.
- Ablation studies show that jointly considering multiple justifications and shuffling their order in prompts improves performance and reduces bias.
- TTA reduces the overlap of confidence scores between correct and incorrect answers, aiding selective prediction scenarios.
- Performance gains are observed across different LLMs (GPT-3.5, GPT-4, GLM-4) and target answers, with some sensitivity to prompt design and task type.
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.