[Paper Review] R-Tuning: Instructing Large Language Models to Say `I Don't Know'
This paper proposes R-Tuning, a novel instruction tuning method that enables large language models to refuse answering questions they cannot answer by identifying knowledge gaps between parametric knowledge and instruction tuning data. By splitting training data into certain and uncertain parts and appending 'I don't know' expressions to uncertain examples, R-Tuning significantly improves refusal accuracy and generalization, outperforming standard instruction tuning in both in-domain and out-of-domain settings.
Large language models (LLMs) have revolutionized numerous domains with their impressive performance but still face their challenges. A predominant issue is the propensity for these models to generate non-existent facts, a concern termed hallucination. Our research is motivated by the observation that previous instruction tuning methods force the model to complete a sentence no matter whether the model knows the knowledge or not. When the question is out of the parametric knowledge, it will try to make up something and fail to indicate when it lacks knowledge. In this paper, we present a new approach called Refusal-Aware Instruction Tuning (R-Tuning). This approach is formalized by first identifying the disparity in knowledge encompassed by pre-trained parameters compared to that of instruction tuning data. Then, we construct the refusal-aware data based on the knowledge intersection, to tune LLMs to refrain from responding to questions beyond its parametric knowledge. Experimental results demonstrate R-Tuning effectively improves a model's ability to answer known questions and refrain from answering unknown questions. Furthermore, when tested on out-of-domain datasets, the refusal ability was found to be a meta-skill that could be generalized to other tasks. Further analysis surprisingly finds that learning the uncertainty results in better calibration and an improved ability to estimate the uncertainty than uncertainty-based testing. Our code is available at https://github.com/shizhediao/R-Tuning.
Motivation & Objective
- To address the issue of large language models hallucinating facts when faced with unknown questions.
- To identify the knowledge gap between parametric knowledge (learned during pre-training) and instruction tuning data.
- To train models to recognize when they lack knowledge and refuse to answer accordingly.
- To improve model reliability by teaching it to abstain from answering unknowns, reducing hallucinations.
- To investigate whether refusal ability can be generalized as a meta-skill through multi-task learning.
Proposed method
- Measure the knowledge gap by comparing model predictions on instruction tuning data with ground-truth labels to classify examples as certain ($D_1$) or uncertain ($D_0$).
- Construct refusal-aware training data by appending uncertainty expressions (e.g., 'I don't know') to labels in the uncertain set $D_0$.
- Fine-tune the LLM on the combined dataset, where $D_1$ contains standard answers and $D_0$ contains refusal-aware responses.
- Use entropy of prediction distributions as a proxy for uncertainty during data splitting and analysis.
- Apply multi-task learning across multiple datasets to abstract and generalize the refusal meta-skill.
- Evaluate performance using AP scores, precision, and recall on in-domain and out-of-domain benchmarks.
Experimental results
Research questions
- RQ1Can instruction tuning be modified to teach models to refuse answering unknown questions?
- RQ2Does identifying the knowledge gap between parametric knowledge and instruction data improve refusal capability?
- RQ3Can refusal ability be generalized to out-of-domain tasks as a meta-skill?
- RQ4Does learning uncertainty during training yield better performance than uncertainty-based filtering at inference time?
- RQ5How does R-Tuning compare to standard instruction tuning in terms of precision, recall, and hallucination reduction?
Key findings
- R-Tuning significantly improves the model's ability to refuse unknown questions, with AP scores increasing by up to 0.426 on ParaRel for OpenLLaMA-3B.
- On the MMLU benchmark, the model's refusal accuracy on uncertain questions reached 0.457 for LLaMA-13B, showing strong performance on complex reasoning tasks.
- The method generalizes well to out-of-domain datasets, demonstrating that refusal is a meta-skill trainable via multi-task learning.
- Learning uncertainty during training leads to better uncertainty estimation and response quality than applying uncertainty filtering at test time.
- The entropy of prediction distributions on training data correlates with uncertainty, supporting the validity of the data splitting approach.
- R-Tuning achieves a better trade-off between precision and recall than standard instruction tuning, reducing hallucinations without sacrificing accuracy on known questions.
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.