Paper deep dive
Rejection Improves Reliability: Training LLMs to Refuse Unknown Questions Using RL from Knowledge Feedback
Hongshen Xu, Zichen Zhu, Da Ma, Situo Zhang, Shuai Fan, Lu Chen, Kai Yu
Models: LLaMA-2-7B
Intelligence
Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 96%
Last extracted: 3/12/2026, 7:10:27 PM
Summary
The paper introduces Reinforcement Learning from Knowledge Feedback (RLKF), an alignment framework designed to improve the reliability of Large Language Models (LLMs) by training them to explicitly refuse questions that fall outside their knowledge boundaries, thereby reducing hallucinations.
Entities (5)
Relation Signals (3)
RLKF ā improves ā LLM Reliability
confidence 95% Ā· Experimental results on mathematical questions affirm the substantial efficacy of RLKF in significantly enhancing LLM reliability.
RLKF ā uses ā PPO
confidence 95% Ā· We fine-tune the supervised policy LLM to optimize this reward using the PPO algorithm
LLM ā suffersfrom ā Hallucination
confidence 90% Ā· Large Language Models (LLMs) often generate erroneous outputs, known as hallucinations
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Large Language Models (LLMs) often generate erroneous outputs, known as hallucinations, due to their limitations in discerning questions beyond their knowledge scope. While addressing hallucination has been a focal point in research, previous efforts primarily concentrate on enhancing correctness without giving due consideration to the significance of rejection mechanisms. In this paper, we conduct a comprehensive examination of the role of rejection, introducing the notion of model reliability along with corresponding metrics. These metrics measure the model's ability to provide accurate responses while adeptly rejecting questions exceeding its knowledge boundaries, thereby minimizing hallucinations. To improve the inherent reliability of LLMs, we present a novel alignment framework called Reinforcement Learning from Knowledge Feedback (RLKF). RLKF leverages knowledge feedback to dynamically determine the model's knowledge boundary and trains a reliable reward model to encourage the refusal of out-of-knowledge questions. Experimental results on mathematical questions affirm the substantial efficacy of RLKF in significantly enhancing LLM reliability.
Tags
Links
- Source: https://arxiv.org/abs/2403.18349
- Canonical: https://arxiv.org/abs/2403.18349
Trouble viewing inline? Open PDF directly ā
Full Text
61,589 characters extracted from source content.
Expand or collapse full text
Published as a conference paper at COLM 2024 Rejection Improves Reliability: Training LLMs to Refuse Un- known Questions Using RL from Knowledge Feedback Hongshen Xu 1 , Zichen Zhu 1 , Situo Zhang 1 , Da Ma 1 , Shuai Fan 2ā , Lu Chen 1ā , Kai Yu 1ā 1 X-LANCE Lab, Department of Computer Science and Engineering MoE Key Lab of Artificial Intelligence, AI Institute Shanghai Jiao Tong University, Shanghai, China 2 AISpeech Co., Ltd., Suzhou, China xuhongshen, JamesZhutheThird, chenlusz, kai.yu@sjtu.edu.cn Abstract Large Language Models (LLMs) often generate erroneous outputs, known as hallu- cinations, due to their limitations in discerning questions beyond their knowledge scope. While addressing hallucination has been a focal point in research, previous efforts primarily concentrate on enhancing correctness without giving due con- sideration to the significance of rejection mechanisms. In this paper, we conduct a comprehensive examination of the role ofrejection, introducing the alignment goal of model reliability along with corresponding metrics. This goal requires the model to provide accurate responses while adeptly rejecting questions exceeding its knowledge boundaries, thereby minimizing hallucinations. To improve the inherent reliability of LLMs, we present a novel alignment framework calledReinforce- ment Learning from Knowledge Feedback(RLKF). RLKF leverages knowledge feedback to dynamically determine the modelās knowledge boundary and trains a reliable reward model to encourage the rejection of out-of-knowledge questions. Experimental results on mathematical and question answering datasets affirm the substantial efficacy of RLKF in significantly enhancing LLM reliability. 1 Introduction Large Language Models (LLMs) have exhibited strong capabilities in solving various downstream tasks through alignment techniques such as Supervised Finetuning (SFT, (Zhang et al., 2023b), (Zhang et al., 2023b)), Direct Preference Optimization (DPO, (Rafailov et al., 2024)), and Reinforcement Learning from Human Feedback (RLHF, (Stiennon et al., 2020; Ouyang et al., 2022)). Those techniques align language models with human intent, mainly to maximize the helpfulness of LLMās responses. However, maximizing helpfulness does not mean minimizing errors. A significant problem arises in that LLMs often produce outputs that, while seemingly plausible, contain factual errors (Min et al., 2023) or self-contradictions (Liu et al., 2022), which are referred to as hallucinations. To mitigate the hallucinations, many studies focus on augmenting the knowledge of LLMs, such as curating training data (Penedo et al., 2023; Zhou et al., 2023) or employing retrieval-augmented generation (RAG, (Gao et al., 2023b;b)) during inference. Nevertheless, it is essential to acknowledge that model knowledge inherently has limitations, and even the most powerful models, such as GPT-4, are prone to experiencing hallucinations (Zhang et al., 2023a). Consequently, we posit that the fundamental nature of the hallucination problem lies in the modelāsmisalignment with its knowledge boundary. Hallucinations arise when LLMs try to answer questions beyond their knowledge boundary. One research direction related to aligning LLM with its knowledge boundary involves alignment for honesty (Kadavath et al., 2022; Yang et al., 2023b). However, alignment for honesty presents significant challenges. On the one hand, the honesty of LLMs is hard to evaluate. Honesty can be viewed as a classification problem, where the model learns to distinguish between what it knows and what it does not. Nevertheless, the accuracy which indicates how much the model knows can differ dramatically among various models or even with different prompts (Kaddour et al., 2023). On the * The corresponding authors are Lu Chen, Shuai Fan and Kai Yu. 1 arXiv:2403.18349v3 [cs.CL] 8 Aug 2024 Published as a conference paper at COLM 2024 Whatistheresultof934* 28? Theansweris26152. OK,thanks! Whatistheresultof934* 28? Fine,Iwillusecalculator. Whatistheresultof934* 28? Youāre a liar, you gave me the wrong result!!! Sorry,Idonātknowtheanswer.I recommendyoutouseacalculator. Theansweris26232. AlignmentforHelpfulness AlignmentforReliability Theansweris26152. Helpful Responses Unhelpful Responses Sorry,Idonātknow theanswer Theansweris26232. Theansweris26152. Helpful ResponsesUntruthful Responses Theansweris26232. > > Theansweris26152. Helpful ResponsesTruthful Rejections > Sorry,Idonātknow theanswer Truthful RejectionsUntruthful Responses Theansweris26232. > Sorry,Idonātknow theanswer >> satisfied acceptable unsatisfied AlignmentPrinciple AlignmentObjective Figure 1: The user cases and alignment objectives for model reliability. other hand, it is difficult to employ honesty for comparing and selecting different models consistently. Model honesty is tied to the capabilities of the model itself; a more honest model does not necessarily imply that it will provide more assistance or make fewer mistakes compared to other models. To address the aforementioned limitations, we introduce the alignment goal ofreliabilityinspired by model truthfulness (Lin et al., 2021). We define the reliability from the userās perspective. As shown in Figure 1, helpful responses (correct answers) can assist users while untruthful responses (incorrect answers) result in user loss, leading to distrust in the model. Therefore, we contend that the key to achieving a reliable system lies inproviding as many correct answers as possible to maximize helpfulness while learning to explicitly refuse unknown questions to minimize errors.We apply accuracyandtruthfulnessto measure the modelās helpfulness and errors, respectively, and further propose an overallreliability scoreto simultaneously evaluate the above two aspects. To optimize model reliability, we propose the Reinforcement Learning from Knowledge Feedback (RLKF) training framework based on RLHF. On the one hand, most publicly available alignment data (Cui et al., 2023) often originate from multiple source models, which is impossible to be used for aligning target model with its own knowledge boundaries. On the other hand, while the preference data in RLHF is derived from the target modelās outputs, it is heavily influenced by human annotatorsā biases. The current annotation goals based on helpfulness lead the reward model in RLHF to only learn to distinguish the helpfulness of responses, making it difficult to discern their truthfulness. Instead, RLKF automates the construction of preference data for a specific target model through knowledge feedback rather than human feedback. Knowledge feedback is primarily used to assess whether a question falls within the modelās knowledge boundary. When a question falls within the modelās knowledge boundary, a response is preferred over a refusal. Conversely, when a question exceeds the modelās knowledge boundary, refusal is preferred over a response. The synthesized preference data is used to train a reliable reward model, which thoroughly understands the target modelās knowledge boundaries and further instructs the target model on when to respond and when to refuse through the PPO algorithm. Experimental results further demonstrate the effectiveness of our framework, which significantly improves the reliability of baseline models. The contributions of this paper are summarized as follows: ⢠We introduce the alignment goal of model reliability and define several metrics to assess the reliability of LLMs. ⢠We propose the Reinforcement Learning from Knowledge Feedback (RLKF) alignment framework to improve LLM reliability. ⢠Extensive experiments are conducted to validate the effectiveness of RLKF framework. 2 Published as a conference paper at COLM 2024 2 Problem Formulation 2.1 LLM Alignment With the potential risks brought by powerful LLMs, researchers have developed various alignment approaches to align LLMs with human instruction, preference, and values (Wang et al., 2024). Specifically, for the input promptx i and alignment goalhelpfulness, we can employ the following scoring principle to represent our alignment objective:s(x,y h )>s(x,y u ),wherey h ,y u represent a helpful response and an unhelpful response, respectively. The scored response pair can be annotated either by human annotators (Ouyang et al., 2022) or a scoring model (Gao et al., 2023a) trained with human preference data. We can further utilize this comparison data to train a reward model or LLM policy, thus aligning LLMs with specific goals. Furthermore, for a given set ofNinputs and LLM responsey i of each inputx i , we can simply evaluate the helpfulness of LLM using accuracy, where helpful responses are considered correct and unhelpful responses are considered incorrect. 2.2 Alignment with Reliability While many works focus on alignment for helpfulness, existing alignment goals make it hard to alleviate model-specific hallucinations. We further propose the alignment goal of model reliability from the userās perspective. We believe thata reliable system should be aligned with user experience that provides as much assistance as possible while making as few errors as possible. Specifically, for the input promptx i and alignment goalreliability, we employ the following scoring principle to represent our alignment objective: s(x,y c )>s(x,y r )>s(x,y w ),(1) wherey c ,y r ,y w represent a helpful response (the correct answer), a truthful rejection, and an untruthful response (the wrong answer), respectively. We then useaccuracy(acc) for assessing the helpfulness, andtruthfulness(truth) (Lin et al., 2021), representing the proportion of truthful, non- harmful responses. We also includeprecision(prec) to partially reveal the modelās self-knowledge: prec= N c N c +N w ,acc= N c N ,truth= N c +N r N =1ā N w N (2) whereN c ,N r ,N w represent the number of correct, rejected and wrong responses, respectively. Finally, we define a comprehensive systemreliability(rely) metric based on accuracy and truthfulness: rely(α) =αātruth+ (1āα)āacc,(3) whereαā[0, 1], and it represents the degrees of sensitivity among users towards errors. As alpha increases, reflecting greater user emphasis on system truthfulness, the model should aim to minimize errors by using refusal to respond when appropriate to meet user expectations. Specifically, whenα equals to answer rate (ans.), we define the overall reliability as: ans.=1ā N r N ,rely=ans.ātruth+ (1āans.)āacc.(4) When the answer rate is low, we encourage the model not to reflexively refuse but rather to attempt to provide assistance. Conversely, when the answer rate is high, we believe the model should become more cautious to avoid errors. This metric balances the modelās helpfulness and truthfulness while mitigating the risks of it becoming overly conservative or excessively aggressive. 3 RLKF To better align LLMs with reliability, we propose theReinforcement Learning from Knowledge Feedback(RLKF) framework. By introducing knowledge feedback, our framework trains LLMs to learn to refuse out-of-knowledge questions explicitly to achieve the alignment goal. 3 Published as a conference paper at COLM 2024 In-domainQuestions& ResponseSampling AnswerVerification ThroughExternalKnowledge Out-of-domainQuestions& Response Sampling Question: What is the result of 93 + 28? ResponseA: Sure,theresult of93 + 28is ... ResponseC: Theresult is ... ResponseB: Theresultofthis expressionis ... SamplingResponsesfromLLM ABC ABC AnswerVerification ThroughInternalKnowledge Calculator == > IDK IDK ā ā > B A ABC > IDKA Allanswers areright Allanswers arewrong Someright, somewrong Answersare highly consistent Answersare highly inconsistent In-domain PreferenceData Self-consistency Out-of-domain PreferenceData Question: Jenny brought in 40 peanut butter cookies ... ResponseA: I think Jenny have 70 ... ResponseC: 40 cookies cost in total... ResponseB: First find the total number of ... SamplingResponsesfromLLM ABC > AB ABC C > IDK Figure 2: Reliable preference data generation pipeline. Letters with green, red, and yellow circles denote correct, incorrect, and uncertain answers, respectively. āIDKā represents āI donāt know,ā indicating rejections. 3.1 High-level methodology The proposed Reinforcement Learning from Knowledge Feedback (RLKF) framework is built upon RLHF (Ouyang et al., 2022) for reliability alignment. Instead of annotating preference pairs with human labor in RLHF, we automatically generate reliable preference pairs with knowledge feedback. The key to constructing reliable preference data lies in the insertion of rejection responses within the comparison set as defined in§2.2. Thus aligned LLM can understand the importance of avoiding errors through rejection. We describe the high-level methodology as follows: We start with a model that is already aligned for helpfulness or harmlessness, i.e.,LLAMA-2 CHAT(Touvron et al., 2023), and then apply the following three steps below: Step 1: Synthesizing model-specific reliable preference data through knowledge feedback. Given theLLMand each input promptxin prompt datasetD, we dynamically construct different comparison pairs according to the model responses to formulate reliable preference dataRPD. Step 2: Train a reliable reward model with collected preference data.We first train the reward model using generic helpfulness preference dataPDto obtainRM. Then, we continuously trainRM with the synthesized reliable preference data to obtain a reliable reward modelRRM. Step 3: Optimize a policy against the reward model using PPO.We use the output of theRRM as a scalar reward. We fine-tune the supervised policyLLMto optimize this reward using the PPO algorithm (Schulman et al., 2017). 3.2 Reliable preference data synthesizing Compared to normal preference data that only classifies LLM responses into helpful and unhelpful classes, we categorize the LLM responses into three types: helpful, truthful, and untruthful responses, which correspond to correct answers, rejections, and incorrect answers, respectively. Besides, we also need to dynamically select two types out of three types of responses for constructing a comparison pair based on different questions. We believe that the key to selecting lies in whether the problem is within the modelās knowledge boundary (whether the model can answer the question correctly). We consider two types of research settings. In the in-domain setting, we can acquire the correctness of model predictions through external knowledge, i.e., a calculator for arithmetic questions. In the out-of-domain scenario, we only have input prompts and cannot obtain golden labels of the inputs. 3.2.1 In-domain Reliable Preference Data As depicted in the upper portion of Figure 2, we determine whether a question lies within the modelās knowledge boundary by analyzing the distribution of correctness across multiple samplings of model responses, then construct different comparison pairs accordingly. Specifically, given the inputxand 4 Published as a conference paper at COLM 2024 Nsampling responsesy i ,iā[1,N], the comparison pair is selected as follows: pair=    (x,y c )>(x,y r ),ifN c ==N, (x,y c )>(x,y w ),ifN c ā[1,N), (x,y r )>(x,y w ),ifN c == 0, (5) wherey c ,y r ,y w represents the random choice from correct, reject, and wrong responses, respectively, andN c represents the number of correct responses. In cases where the model lacks specific rejection responses, we randomly select one rejection sentence from 50 sentences that are generated by ChatGPT based on rejection templates. The templates can be found in Appendix I. 3.2.2 Out-of-domain Reliable Preference Data In the out-of-domain setting, we utilize self-consistency Wang et al. (2022) as the internal model knowledge to assess whether the model possesses sufficient knowledge about the given question. As depicted in the lower portion of Figure 2, when the samplings exhibit high consistency, we align the model with preferring to provide an answer; conversely, when the samplings demonstrate low consistency, refusing is more preferred. Specifically, given the inputxandNsampling responses y i ,iā[1,N], the comparison pair is selected as follows: pair= (x,y a )>(x,y r ),i f N s >t, (x,y r )>(x,y a ),i f N s <t, (6) wherey a ,y r represents the random choice from answered and rejected responses, respectively,N s represents the number of the most consistent answer over all answers, andtrepresents the threshold of consistency score where we useā N 2 āfor all the experiments. 3.3 Model training RM Training.To train the reward model, we convert our collected pairwise reliable preference data into a binary ranking label format (i.e., chosen & unchosen) and enforce the chosen response to have a higher score than its counterpart. We used a binary ranking loss consistent with Ouyang et al. (2022): L ranking =ālog(Ļ(r Īø (x,y chosen )ār Īø (x,y unchosen ))),(7) wherer Īø (x,y)is the scalar score output for inputxand completion y with model weightsĪø. y chosen ,y unchosen are the chosed and unchosed responses, respectively. Reinforcement Learning (RL).We further train our LLM policy following the RL scheme of Stiennon et al. (2020), which uses the reward model as an estimate for the true reward function. During this phase, we seek to optimize the following objective: arg max Ļ E pā¼D,gā¼Ļ [R(g|p)āβD KL (Ļ Īø (g|p)||Ļ 0 (g|p))](8) We iteratively improve the policy by sampling promptspfrom our datasetDwhich contains both in- domain and out-of-domain prompts and generations g from the policyĻand use the PPO algorithm and loss function to achieve this objective, the reward function also contains a penalty term for diverging from the original policyĻ 0 . 4 Experiments 4.1 Experiment Setup 4.1.1 Dataset Construction Mathematical Dataset.Our experiments involve two mathematical datasets: synthesized arithmetic questions and GSM8K (Cobbe et al., 2021). The arithmetic dataset consists of 14,000 samples, divided into sets of 10,000, 3,000, and 1,000 samples for training the reward model, training the policy as prompt data, and testing the final results, respectively. Additionally, we sampled 2,000 data points from the training set of GSM8K to train the reward model and 1,000 data points to optimize 5 Published as a conference paper at COLM 2024 the LLM policy. It is important to note that we only used the input prompt of the GSM8K data points, without utilizing the annotations. This serves as an out-of-domain experimental setting. We generate the arithmetic dataset synthetically following Liu & Low (2023). The input numbers are randomly generated, hence ensuring a very low probability of instances being duplicated. We sample from log space to ensure the numbers are equally likely to be sampled from different orders of magnitude. Following Liu & Low (2023), we use hundreds of instruction templates generated by ChatGPT, e.g.,Please help me calculatearithmetic., to diversify the question formats. Examples of templates can be found in Table 9 of Appendix H. Knowledge-based QA Dataset.TriviaQA (Joshi et al., 2017) is a widely-used QA dataset that can be used to test a modelās world knowledge. We selected 20,000 samples from the TriviaQA training set for training. Since the ground truth of the TriviaQA test set is not publicly available, we used the TriviaQA development set, which contains 11,313 samples, to validate our results. We used the Exact Match metric (whether the answer is exactly in the modelās response) from TriviaQA paper as our measure of Accuracy, while keeping the other metrics consistent with those in mathematical datasets. 4.1.2 Baselines We incorporate several baselines to benchmark the performance of our RLKF framework. All prompts used in this work are listed in Appendix F. No & prudent system prompt.System prompts are commonly used to control a modelās response style and personality. When the system prompt is empty,LLAMA 2-CHATtends to respond to almost every question, losing the ability to reject unknown questions. We also use the default system prompt ofLLAMA 2-CHATintroduced by Touvron et al. (2023) as the prudent system prompt.LLAMA 2-CHATwill become more cautious and reject more questions with this system prompt. These two types of prompts represent two different personalities ofLLAMA 2-CHAT, serving as important baselines for this study. In-context Learning.We randomly sampled 5 correctly responded (if the model can answer correctly) and 5 refused examples (if the model is unable to answer correctly) to append before the input question as the in-content learning baseline. Rule-based PPO.We use a rule-based reward function to optimize the policy in in-domain prompts. The model receives a reward of 1 if it answers correctly, 0 if it refuses to answer, and -1 if it answers incorrectly. The determination of different cases is achieved through heuristic rules. RLHF.We use the reward model trained only on generic helpful preference data to optimize the policy with the same training prompts as RLKF. SFT.We use all 10,000 arithmetic questions from the constructed preference dataset with their chosen responses to directly fine-tune the LLM policy. 4.1.3 Training Details We employ theLLAMA 2-CHAT7B(Touvron et al., 2023) as our baseline model, which has been already aligned with human preferences. The policy model and reward model are both initialized fromLLAMA 2-CHAT7B. We useDeepSpeed-Chat(Yao et al., 2023) to run the whole training pipeline. As for the Reward Model (RM), we first utilized several open-source datasets (Stiennon et al., 2020; Bai et al., 2022; Ethayarajh et al., 2022) and replicated the training process following UltraRM (Cui et al., 2023) to obtain a helpful RM. Subsequently, we trained a reliable RM on the constructed reliable preference data, using a batch size of 8 for two epochs. During the RL phase, we trained for one epoch with a batch size of 1, the generation batches and PPO epochs are both equal to 1. Prompts from both in-domain and out-of-domain datasets are mixed to train the final RM. We train the SFT model for one epoch with a batch size of 32. All other training parameters were set to the default parameters inDeepSpeed-Chat. We conduct all experiments using Nvidia A800 GPUs. 4.1.4 Evaluation Details For evaluating the final policy, we utilize four metrics: precision, accuracy, truthfulness, and reliability. Precision is the proportion of correctly answered questions among those the model chose to answer, 6 Published as a conference paper at COLM 2024 reflecting its self-awareness of its own capabilities. Accuracy is the proportion of correct answers among all questions, indicating how much assistance the model provides to the user. Truthfulness is the proportion of questions the model either answered correctly or refused to answer. Reliability is the dynamic weighting of accuracy and truthfulness; high reliability indicates that the model provides more help to the user and less incorrect information. The specific evaluation formulas are detailed in Section 2.2. To determine whether the policy refuses to respond and extract answers, we employ an additional answer extractor LLM (LLAMA 2-CHAT7Bwith extractor prompt, see Appendix F). By comparing the extracted answers with the standard answers, we can ascertain their correctness. 4.2 Reliability Evaluation Method Type Method Arithmetic TestGSM8k PrecāAccāTruthāRelyāPrecāAccāTruthāRelyā Prompt-based no system prompt37.836.140.640.425.024.626.226.2 prudent system prompt43.724.169.048.822.610.464.335.2 In-context Learning40.637.345.4 44.718.88.065.532.4 RL-based Rule-based PPO46.027.667.651.617.68.659.633.6 RLHF40.127.459.149.120.117.442.936.4 RLKF(Ours)72.831.988.156.529.617.059.641.5 Table 1: Performance on in-domain arithmetic questions and out-of-domain GSM8K datasets. Prec: precision. Acc: accuracy. Truth: Truthfulness. Rely: reliability, representing the simultaneous consideration of the modelās helpfulness and truthfulness. Reliability on Mathematical Tasks.Table 1 presents the results of the final policy model after RLKF on arithmetic questions and GSM8K datasets. We can see that RLKF significantly enhances the modelās reliability on both in-domain and out-of-domain datasets. The RLKF-trained model shows remarkable improvements in precision, truthfulness, and reliability. The increase in precision reflects the modelās increase in self-knowledge, while the improvement in truthfulness indicates that the model learns how to refuse answers. It is important to note that when the model operates without a system prompt, it responds to all questions, thus reaching the accuracy ceiling. Our RLKF method does not teach the model how to answer questions but rather trains it to reject questions, leading to some performance loss but significantly reducing the modelās hallucination errors. Reliability on TriviaQA Task.To explore the generalizability of our method, we aim to determine whether it can align the LLM with other knowledge boundaries beyond mathematical calculations. Thus we validated our method on the knowledge-based Question Answering task, i.e., TriviaQA. As shown in Table 2, our method can also significantly improve the modelās precision, truthfulness, and overall reliability on the TriviaQA dataset. This demonstrates that our method can enhance the reliability of LLMs across different tasks, not just limited to mathematical questions. Reliability on Arithmetic Sub-tasks.Figure 3 illustrates the reliability improvement of our RLKF method across different arithmetic sub-tasks. Our RLKF method enhances the reliability of the model across various digit ranges and arithmetic operations. It is noteworthy that our model shows significant improvements in precision and truthfulness on tasks involving 3-5 digit numbers as well as challenging operations like multiplication and division. This indicates that RLKF aids the model in understanding its knowledge boundary, enabling it to learn to refuse questions prone to errors. Comparison with SFT.We further compare our method with supervised fine-tuning (SFT) (Yang et al., 2023b). Since there are no ground truth labels available for out-of-domain scenarios, we performed SFT only on in-domain data. As shown in Table 3, the modelās reliability on in-domain tasks is significantly improved after SFT. However, a major issue with SFT is overfitting, as observed by the overly conservative behavior of the model on the out-of-domain GSM8K dataset, where it tends to reject almost all questions. In contrast, our RLKF consistently improves the generalization ability of the model on both in-domain and out-of-domain tasks. Comparison with Calibration-based Methods.Calibration-based methods (Kadavath et al., 2022; Lyu et al., 2024; Kapoor et al., 2024; Tian et al., 2023) use some post-hoc techniques to predict whether the model is about to hallucinate, which can be used to trigger a refusal to answer. We 7 Published as a conference paper at COLM 2024 +-*/ 0 20 40 60 80 100 Precision +-*/ 0 20 40 60 80 100 Accuracy +-*/ 0 20 40 60 80 100 Truthfulness +-*/ 0 20 40 60 80 100 Reliability no system prompt prudent system prompt our method 12345 0 20 40 60 80 100 Precision 12345 0 20 40 60 80 100 Accuracy 12345 0 20 40 60 80 100 Truthfulness 12345 0 20 40 60 80 100 Reliability no system prompt prudent system prompt our method Figure 3: The results on arithmetic sub-tasks. Method TriviaQA Prec Acc Truth Rely LLAMA 2 + no system prompt60.258.961.261.1 LLAMA 2 + prudent system prompt 53.9 42.4 63.759.2 LLAMA 2 + RLHF58.5 51.7 63.362.0 LLAMA 2 + RLKF73.550.181.9 71.8 Table 2: Performance on the TriviaQA dataset. Method ID ArithmeticOOD GSM8k Prec Acc Truth Rely Prec Acc Truth Rely LLAMA-2 43.7 24.1 69.046.6 22.6 10.4 64.335.2 + SFT 58.152.462.261.223.2 4.784.520.8 + RLKF72.831.988.1 56.529.6 17.059.641.5 Table 3: Performance comparison with SFT. also compare our method with calibration-based methods, and provide the results in Appendix A. Experimental results show that our method achieves higher reliability than other calibration-based methods at the same inference cost, though it is slightly less reliable compared to consistency-based methods with 10 times the inference cost. Additionally, it is important to note that calibration-based methods are unable to reject explicitly and require searching for and determining the best threshold for rejection, as well as providing human-crafted rejection templates as responses. A more detailed discussion can be found in the Appendix A. Comparison with GPT Series Models.A natural question arises: with broader instruction-tuning, can the model naturally learn to refuse during the RLHF process? We further tested the performance of the industrial-grade GPT series models to address this concern. The results are shown in Appendix B. We found that while both ChatGPT (gpt-3.5-turbo-0125) and GPT-4o exhibit high accuracy on simpler tasks, they struggle with rejecting out-of-knowledge questions and even GPT-4o shows significantly lower reliability than our methods on harder tasks. Thus we believe that broader generic instruction-tuning alone does not resolve reliability issues. 4.3 Reward Model Evaluation Method ID Arithmetic RPDOOD GSM8k RPD within beyond boundary average within beyond boundary average helpful PD73.949.955.558.695.027.373.051.6 helpful PD + OOD RPD60.741.550.8 49.442.956.352.053.4 helpful PD + ID RPD90.383.078.584.491.641.671.257.9 helpful PD + both RPD88.484.776.484.370.664.969.167.1 Table 4: Performance comparison with different reliable preference data. PD: preference data. RPD: reliable preference data.ID: in-domain. OOD: out-of-domain. To further determine whether our RelyRM possesses the ability to recognize the policyās knowledge boundary, we constructed in-domain and out-of-domain reliable preference datasets (RPD) for testing our RelyRM. The dataset construction is similar to training RPD data but with golden labels and on test sets. Table 4 illustrates the performance on the reliable preference dataset when provided with different training data. We observe that the reward model trained solely on helpful PD performs worse on the two datasets, as it tends to choose reply rather than reject. However, the reward model trained on in-domain RPD demonstrates a significant improvement on choosing rejection. Additionally, due 8 Published as a conference paper at COLM 2024 to the higher noise level in the out-of-domain RPD, training on this data alone does not enhance reliability on out-of-domain preference data; instead, training on both RPDs can improve the accuracy on out-of-domain RPD. 4.4 Rejection Study +-/* 0 20 40 60 80 100 Reject Rate(%) 12345 0 20 40 60 80 100 Reject Rate(%) prudent system prompt our method Figure 4: Rejection rate comparison. We further analyzed the rejection behavior after RLKF to assess whether the models have ac- quired awareness of their knowledge boundaries and possess appropriate rejection capabilities (avoiding both excessive rejection and failure to reject). We classify arithmetic questions ac- cording to various digit ranges and arithmetic operations and compare the rejection capabili- ties of LLAMA 2 before and after applying our RLKF framework. Rejection Rate Distribution.Figure 4 com- pares the rejection rate changes of LLAMA 2 before and after applying RLKF across different types of questions. We found that the original LLAMA 2 model had a relatively high rejection rate, but its rejections were distributed similarly across different types of questions. However, after applying RLKF to LLAMA 2, the rejection rate decreased for easier problems such as addition and subtraction operations, and low-digit numbers, while significantly increasing for more difficult problems such as multiplication and division operations. This indicates that the RLKF model has a better understanding of the difficulty levels of different types of problems and can reject them more selectively and effectively. Response Type Distribution.Figure 5 illustrates the distribution of response types for different methods. We observe that when the LLAMA 2 model operates without a system prompt, it lacks rejection capabilities but intuitively responds to more questions. Besides, using a prudent system prompt leads the model to lean towards rejecting questions, reducing the modelās error responses but causing more performance loss due to excessive rejection. In contrast, our RLKF achieves significantly lower error rates compared to the two methods while maintaining a better accuracy than the prudent system prompt (as no system prompt not rejecting responses represents the accuracy ceiling). This demonstrates that our model can effectively reject while avoiding excessive caution. +-/* 0 20 40 60 80 100 Percentage of Rensponse Types (%) no system prompt prudent system prompt our method Wrong Correct Reject 12345 0 20 40 60 80 100 Percentage of Rensponse Types (%) Figure 5: Percentage of different response types among different arithmetic questions. 5 Related Work 5.1 LLM Alignment LLM alignment aims to align language models by training them to act in accordance with the userās intention, either by supervised fine-tuning (Wei et al., 2021; Chung et al., 2022; Zhang et al., 2023b), direct preference optimization (DPO, (Rafailov et al., 2024)), or reinforcement learning from human feedback (RLHF) (?Ouyang et al., 2022; Glaese et al., 2022). Most existing works focus on 9 Published as a conference paper at COLM 2024 improving the instruction-following ability (Sanh et al., 2021; Wei et al., 2021), helpfulness (Ding et al., 2023; Xu et al., 2023) or harmlessness (Solaiman & Dennison, 2021; Bender et al., 2021) of LLMs. However, there is limited research on honesty alignment due to the challenges of its definition and evaluation (as we discussed in Appendix E). (Cui et al., 2023) constructed a preference dataset encompassing various objectives including honesty. Some studies (Yang et al., 2023a;b) attempted to enhance model honesty by honesty-oriented SFT; however, our experiments demonstrated that SFT often suffers from poor generalization issues. Besides, our proposed alignment goal of reliability considered both helpfulness and truthfulness (Lin et al., 2021), enabling the building of more helpful and truthful LLMs. 5.2 Mitigating Halucinations While LLMs have demonstrated remarkable performances, they often generate content that conflicts with user input (Guerreiro et al., 2023) or previously generated information by themself (M Ģ undler et al., 2023) or is not faithful to established world knowledge (Min et al., 2023), which are referred as hallucinations. Some efforts have aimed to alleviate hallucination issues by introducing higher-quality data during the pre-training phase (Penedo et al., 2023; Touvron et al., 2023) or in the SFT stage (Chen et al., 2023; Zhou et al., 2023). Others have focused on detecting and correcting hallucinations through methods such as incorporating external knowledge (Gao et al., 2023b), designing decoding strategies (Shi et al., 2023) or uncertainty estimation (Azaria & Mitchell, 2023; Xiong et al., 2023; Zhao et al., 2023). However,model-specific errors are also hallucinations. While most previous studies focus on maximizing the correctness of responses, there are limited works that focus on minimizing the errors to mitigate hallucination, which is the main focus of this paper. Consequently, we propose the evaluation methodology of reliability considering both maximizing the correctness and minimizing the errors to mitigate hallucinations. 6 Conclusion In this work, we propose the alignment goal of LLM reliability and introduce a novel framework to enhance the reliability by teaching them to refuse questions outside their knowledge boundary. By proposing the Reinforcement Learning from Knowledge Feedback (RLKF) framework and defining new evaluation metrics for model reliability, we effectively address the issue of LLM hallucinations. The implementation of RLKF demonstrates significant improvements in LLM reliability, showcasing a promising method for developing more trustworthy AI systems. Acknowledgements This work is funded by the China NSFC Projects (92370206, 62106142, 62120106006, and U23B2057) and Shanghai Municipal Science and Technology Major Project (2021SHZDZX0102). 10 Published as a conference paper at COLM 2024 References Amos Azaria and Tom Mitchell. The internal state of an llm knows when its lying.arXiv preprint arXiv:2304.13734, 2023. Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. Training a helpful and harmless assistant with reinforcement learning from human feedback.arXiv preprint arXiv:2204.05862, 2022. Emily M Bender, Timnit Gebru, Angelina McMillan-Major, and Shmargaret Shmitchell. On the dangers of stochastic parrots: Can language models be too big? InProceedings of the 2021 ACM conference on fairness, accountability, and transparency, p. 610ā623, 2021. Lichang Chen, Shiyang Li, Jun Yan, Hai Wang, Kalpa Gunaratna, Vikas Yadav, Zheng Tang, Vijay Srinivasan, Tianyi Zhou, Heng Huang, et al. Alpagasus: Training a better alpaca with fewer data. arXiv preprint arXiv:2307.08701, 2023. Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, et al. Scaling instruction-finetuned language models.arXiv preprint arXiv:2210.11416, 2022. Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems.arXiv preprint arXiv:2110.14168, 2021. Ganqu Cui, Lifan Yuan, Ning Ding, Guanming Yao, Wei Zhu, Yuan Ni, Guotong Xie, Zhiyuan Liu, and Maosong Sun. Ultrafeedback: Boosting language models with high-quality feedback.arXiv preprint arXiv:2310.01377, 2023. Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Zhi Zheng, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. Enhancing chat language models by scaling high-quality instructional conversations.arXiv preprint arXiv:2305.14233, 2023. Kawin Ethayarajh, Yejin Choi, and Swabha Swayamdipta. Understanding dataset difficulty with V-usable information. In Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato (eds.),Proceedings of the 39th International Conference on Machine Learning, volume 162 ofProceedings of Machine Learning Research, p. 5988ā6008. PMLR, 17ā23 Jul 2022. Leo Gao, John Schulman, and Jacob Hilton. Scaling laws for reward model overoptimization. In International Conference on Machine Learning, p. 10835ā10866. PMLR, 2023a. Yunfan Gao, Yun Xiong, Xinyu Gao, Kangxiang Jia, Jinliu Pan, Yuxi Bi, Yi Dai, Jiawei Sun, and Haofen Wang. Retrieval-augmented generation for large language models: A survey.arXiv preprint arXiv:2312.10997, 2023b. Amelia Glaese, Nat McAleese, Maja Trebacz, John Aslanides, Vlad Firoiu, Timo Ewalds, Maribeth Rauh, Laura Weidinger, Martin Chadwick, Phoebe Thacker, et al. Improving alignment of dialogue agents via targeted human judgements.arXiv preprint arXiv:2209.14375, 2022. Nuno M Guerreiro, Duarte M Alves, Jonas Waldendorf, Barry Haddow, Alexandra Birch, Pierre Colombo, and Andr Ģ e FT Martins. Hallucinations in large multilingual translation models.Trans- actions of the Association for Computational Linguistics, 11:1500ā1517, 2023. IDEA-CCNL.Fengshenbang-lm.https://github.com/IDEA-CCNL/ Fengshenbang-LM, 2021. Mandar Joshi, Eunsol Choi, Daniel S Weld, and Luke Zettlemoyer. Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension.arXiv preprint arXiv:1705.03551, 2017. Saurav Kadavath, Tom Conerly, Amanda Askell, Tom Henighan, Dawn Drain, Ethan Perez, Nicholas Schiefer, Zac Hatfield-Dodds, Nova DasSarma, Eli Tran-Johnson, et al. Language models (mostly) know what they know.arXiv preprint arXiv:2207.05221, 2022. 11 Published as a conference paper at COLM 2024 Jean Kaddour, Joshua Harris, Maximilian Mozes, Herbie Bradley, Roberta Raileanu, and Robert McHardy. Challenges and applications of large language models.arXiv preprint arXiv:2307.10169, 2023. Sanyam Kapoor, Nate Gruver, Manley Roberts, Arka Pal, Samuel Dooley, Micah Goldblum, and Andrew Wilson. Calibration-tuning: Teaching large language models to know what they donāt know. InProceedings of the 1st Workshop on Uncertainty-Aware NLP (UncertaiNLP 2024), p. 1ā14, 2024. LAION-AI. Openassistant.https://github.com/LAION-AI/Open-Assistant, 2023. Stephanie Lin, Jacob Hilton, and Owain Evans. Truthfulqa: Measuring how models mimic human falsehoods.arXiv preprint arXiv:2109.07958, 2021. Tianyu Liu, Yizhe Zhang, Chris Brockett, Yi Mao, Zhifang Sui, Weizhu Chen, and William B Dolan. A token-level reference-free hallucination detection benchmark for free-form text generation. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 6723ā6737, 2022. Tiedong Liu and Bryan Kian Hsiang Low. Goat: Fine-tuned llama outperforms gpt-4 on arithmetic tasks.arXiv preprint arXiv:2305.14201, 2023. Qing Lyu, Kumar Shridhar, Chaitanya Malaviya, Li Zhang, Yanai Elazar, Niket Tandon, Marianna Apidianaki, Mrinmaya Sachan, and Chris Callison-Burch. Calibrating large language models with sample consistency.arXiv preprint arXiv:2402.13904, 2024. Sewon Min, Kalpesh Krishna, Xinxi Lyu, Mike Lewis, Wen-tau Yih, Pang Wei Koh, Mohit Iyyer, Luke Zettlemoyer, and Hannaneh Hajishirzi. Factscore: Fine-grained atomic evaluation of factual precision in long form text generation.arXiv preprint arXiv:2305.14251, 2023. Niels M Ģ undler, Jingxuan He, Slobodan Jenko, and Martin Vechev. Self-contradictory hallucinations of large language models: Evaluation, detection and mitigation.arXiv preprint arXiv:2305.15852, 2023. Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback.Advances in Neural Information Processing Systems, 35: 27730ā27744, 2022. Guilherme Penedo, Quentin Malartic, Daniel Hesslow, Ruxandra Cojocaru, Alessandro Cappelli, Hamza Alobeidli, Baptiste Pannier, Ebtesam Almazrouei, and Julien Launay. The refinedweb dataset for falcon llm: outperforming curated corpora with web data, and web data only.arXiv preprint arXiv:2306.01116, 2023. Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model.Advances in Neural Information Processing Systems, 36, 2024. Victor Sanh, Albert Webson, Colin Raffel, Stephen H Bach, Lintang Sutawika, Zaid Alyafeai, Antoine Chaffin, Arnaud Stiegler, Teven Le Scao, Arun Raja, et al. Multitask prompted training enables zero-shot task generalization.arXiv preprint arXiv:2110.08207, 2021. John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms.arXiv preprint arXiv:1707.06347, 2017. Weijia Shi, Xiaochuang Han, Mike Lewis, Yulia Tsvetkov, Luke Zettlemoyer, and Scott Wen-tau Yih. Trusting your evidence: Hallucinate less with context-aware decoding.arXiv preprint arXiv:2305.14739, 2023. Irene Solaiman and Christy Dennison. Process for adapting language models to society (palms) with values-targeted datasets.Advances in Neural Information Processing Systems, 34:5861ā5873, 2021. 12 Published as a conference paper at COLM 2024 Nisan Stiennon, Long Ouyang, Jeffrey Wu, Daniel Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul F Christiano. Learning to summarize with human feedback.Advances in Neural Information Processing Systems, 33:3008ā3021, 2020. Tianxiang Sun, Xiaotian Zhang, Zhengfu He, Peng Li, Qinyuan Cheng, Hang Yan, Xiangyang Liu, Yunfan Shao, Qiong Tang, Xingjian Zhao, Ke Chen, Yining Zheng, Zhejian Zhou, Ruixiao Li, Jun Zhan, Yunhua Zhou, Linyang Li, Xiaogui Yang, Lingling Wu, Zhangyue Yin, Xuanjing Huang, and Xipeng Qiu. Moss: Training conversational language models from synthetic data. 2023. Katherine Tian, Eric Mitchell, Allan Zhou, Archit Sharma, Rafael Rafailov, Huaxiu Yao, Chelsea Finn, and Christopher D Manning. Just ask for calibration: Strategies for eliciting calibrated confidence scores from language models fine-tuned with human feedback.arXiv preprint arXiv:2305.14975, 2023. Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models.arXiv preprint arXiv:2307.09288, 2023. Xinpeng Wang, Shitong Duan, Xiaoyuan Yi, Jing Yao, Shanlin Zhou, Zhihua Wei, Peng Zhang, Dongkuan Xu, Maosong Sun, and Xing Xie. On the essence and prospect: An investigation of alignment approaches for big models.arXiv preprint arXiv:2403.04204, 2024. Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdh- ery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171, 2022. Jason Wei, Maarten Bosma, Vincent Y Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M Dai, and Quoc V Le. Finetuned language models are zero-shot learners.arXiv preprint arXiv:2109.01652, 2021. Miao Xiong, Zhiyuan Hu, Xinyang Lu, Yifei Li, Jie Fu, Junxian He, and Bryan Hooi. Can llms express their uncertainty? an empirical evaluation of confidence elicitation in llms.arXiv preprint arXiv:2306.13063, 2023. Can Xu, Qingfeng Sun, Kai Zheng, Xiubo Geng, Pu Zhao, Jiazhan Feng, Chongyang Tao, and Daxin Jiang. Wizardlm: Empowering large language models to follow complex instructions.arXiv preprint arXiv:2304.12244, 2023. Yuchen Yang, Houqiang Li, Yanfeng Wang, and Yu Wang. Improving the reliability of large language models by leveraging uncertainty-aware in-context learning.arXiv preprint arXiv:2310.04782, 2023a. Yuqing Yang, Ethan Chern, Xipeng Qiu, Graham Neubig, and Pengfei Liu. Alignment for honesty. arXiv preprint arXiv:2312.07000, 2023b. Zhewei Yao, Reza Yazdani Aminabadi, Olatunji Ruwase, Samyam Rajbhandari, Xiaoxia Wu, Am- mar Ahmad Awan, Jeff Rasley, Minjia Zhang, Conglong Li, Connor Holmes, et al. Deepspeed- chat: Easy, fast and affordable rlhf training of chatgpt-like models at all scales.arXiv preprint arXiv:2308.01320, 2023. Muru Zhang, Ofir Press, William Merrill, Alisa Liu, and Noah A Smith. How language model hallucinations can snowball.arXiv preprint arXiv:2305.13534, 2023a. Shengyu Zhang, Linfeng Dong, Xiaoya Li, Sen Zhang, Xiaofei Sun, Shuhe Wang, Jiwei Li, Runyi Hu, Tianwei Zhang, Fei Wu, et al. Instruction tuning for large language models: A survey.arXiv preprint arXiv:2308.10792, 2023b. Ruochen Zhao, Xingxuan Li, Shafiq Joty, Chengwei Qin, and Lidong Bing. Verify-and-edit: A knowledge-enhanced chain-of-thought framework.arXiv preprint arXiv:2305.03268, 2023. Chunting Zhou, Pengfei Liu, Puxin Xu, Srini Iyer, Jiao Sun, Yuning Mao, Xuezhe Ma, Avia Efrat, Ping Yu, Lili Yu, et al. Lima: Less is more for alignment.arXiv preprint arXiv:2305.11206, 2023. 13 Published as a conference paper at COLM 2024 A Experiments of Calibration-based Methods MethodInference cost Arithmetic TestGSM8K AccTruthRelyAccTruthRely Raw logits(thresh-arith) (Lyu et al., 2024)137.755.452.323.724.924.9 Raw logits(thresh-gsm8k) (Lyu et al., 2024)121.285.944.013.972.238.2 P(True) (Kadavath et al., 2022)117.671.342.519.539.335.4 verb. 1S top-1 (Tian et al., 2023)116.750.239.04.811.611.1 verb. 2S top-1 (Tian et al., 2023)214.787.834.44.420.718.0 agreement(consistency) (Lyu et al., 2024)1037.979.962.320.177.144.6 RLKF (Our method)131.988.156.517.059.641.5 Table 5: Performance comparison with calibration-based methods. We represent inference cost as the product of the required number of dialogue turns and the number of sampling iterations. We further compare our method with calibration-based methods, and provide the results and our analysis below: ā¢Unable to Reject Explicitly:Calibration-based methods need to search and determine the best threshold for rejection and provide human-crafted rejection templates as responses. As we shown in the table, we search the threshold for arithmetic and gsm8k separately (on 100 validation cases from each dataset). However, the thresholds are quite different for different datasets which results in significant performance degradation with different thresholds. In contrast, our method can enable the model to reject out-of-knowledge questions with personalized responses for different prompts automatically. ⢠High Inference Cost:Consistency-based methods, on the one hand, require multiple samplings to obtain results, and on the other hand, may necessitate the use of additional models to extract answers for voting (we use ChatGPT to extract answers because rule-based methods may result in inaccurate extraction). This results in 5(sampling num) * 2(1 for answer generation, 1 for answer extraction) = 10 times (or at least 5 times) the inference cost than other methods. Some Verbalized-based methods (verb. 2S) also require the model to generate confidence through an additional round of response after generating the answer. ā¢High Calibration Variance:Utilizing calibration methods to determine the accuracy of answers is not stable. For instance, logit-based methods are not quite reasonable when the model generates longer responses, and Verbalized-based methods result in significant fluctuations in confidence scores and even prediction results (as shown in the gsm8k results of verb. methods) due to the variability in prompts. In summary, calibration methods are more suitable for analyzing the uncertainty of model responses or constructing training data (such as the self-consistency[5] introduced in our paper). However, our alignment research on reliability aims to enable the model to acquire self-knowledge and explicitly refuse out-of-knowledge questions. Experimental results show our method can enable the model to reject automatically without additional inference costs and improve the accuracy of rejections compared to most calibration methods. B Experiments of GPT Series Models on Arithmetic Dataset We tested the reliability of ChatGPT and GPT-4o on arithmetic datasets as shown in Table 6. We found that even GPT-4o remains unreliable and lacks the ability to reject out-of-knowledge questions. From LLAMA-2 to ChatGPT to GPT-4o, they all use a large amount of industrial-grade generic instruction-tuning data, but they still lack good reliability. We believe that, on the one hand, these generic preference data may lack appropriate rejection data (rejecting only when the model lacks relevant knowledge, otherwise it needs to answer questions). On the other hand, the RLHF training process constructs preference pairs based on the modelās own sampling results, making it difficult to generate appropriate rejection behavior during the sampling process. Therefore, we believe that it is necessary to synthesize reliable preference pairs through RLKF to make the model more reliable. 14 Published as a conference paper at COLM 2024 subsets LLAMA-2 + RLKFChatGPTGPT-4o AccTruthRelyAccTruthRelyAccTruthRely +72.877.274.797.697.697.699.699.699.6 -28.385.753.491.692.892.893.696.896.7 *8.4 98.347.837.239.339.349.849.849.8 /18.691.350.469.369.369.381.882.282.2 1-2 digit41.2 89.562.486.087.087.094.095.595.5 3-5 digit25.787.252.666.367.067.073.273.773.7 all31.9 88.156.574.275.075.081.582.482.4 Table 6: Performance comparison of models on different arithmetic subsets. C Experiments on helpful preference datasets ModelBackbone Anthropic Helpful OpenAI Summ. Stanford SHP MOSSLlama-7B61.358.154.6 ZiyaLlama-7B61.461.857.0 OASSTDeBERTa-large67.672.153.9 SteamSHPFLAN-T5-XL55.462.651.6 UltraRMLlama2-13B71.074.073.7 RelyRM (ours)Llama2-7B66.571.063.7 Table 7: Performance comparison on helpful preference datasets with various reward models. Table 7 presents the results of our reliable reward model (RelyRM) on the publicly available helpful preference dataset. We compare our with open-source baselines, including MOSS (Sun et al., 2023), Ziya (IDEA-CCNL, 2021), OASST (LAION-AI, 2023), SteamSHP (Ethayarajh et al., 2022), and UltraRM. Our RelyRM achieves comparable performances on these datasets to avoid compromising helpfulness in RLKF training. D Experiments of Alignment Tax We explore the alignment tax of RLKF by evaluating the LLM on the MMLU dataset, as shown in Appendix Table 8. Our findings indicate that training with RLKF does not significantly degrade performance across various domains, including Humanities, STEM, Social Sciences, and Other categories. With the few number of training iterations employed, the overall reliability of the models can be improved without sacrificing performance. MethodHu. STEM S.S. Other Average LLAMA 2-chat 7b 51.437.552.4 49.446.5 +RLKF51.636.652.0 49.446.2 Table 8: Five-shot performance on the Massive Multitask Language Understanding (MMLU) bench- mark. Hu.: Humanities, S.S.: Social Sciences. E Dilemma of Honesty Evaluation As illustrated in Figure 6, Model honesty can be regarded as a binary classification problem. For each input questionx i , the label of the classification problem corresponds to whether the model has sufficient knowledge to answer the question correctly. The modelās choice to respond to or refuse to 15 Published as a conference paper at COLM 2024 answer the question indicates the predicted label by the model. Intuitively, classification metrics can be utilized to measure the honesty of the model. Thus precision and recall can be defined as follows: precision= AK A ā N c A ,recall= AK K ,(9) whereArepresents the number of questions that the model chooses to answer andKrepresents the number of questions for which the model has sufficient knowledge to answer correctly,AKrepresents the number of answered questions with sufficient knowledge. Typically, we regard answering correctly as having sufficient knowledge about the question, thusN c is used as the substitution forAK. AnsweredRefused K nows U nknows Answered Knows Refused Knows Answered Unknows Refused Unknows CorrectResponse IncorrectResponseRefusal Figure 6: The Quadrant for honesty evaluation. The horizontal axis represents whether the model responds to the questions, and the vertical axis represents whether the model has sufficient knowledge to answer the questions. Itās important to note that while we can obtain the precision of the modelās honesty, we cannot determine the recall since we lack information about how many questions the model could answer correctly but chooses to refuse. Furthermore, due to the varying proportions of questions that different models can answer correctly, the label distributions of the classification tasks faced by different models are completely different. Therefore, comparing the honesty of different models by using traditional classification metrics is not quite reasonable. F Prompts We use the prompt below for no system prompt setting. [INST] <<SYS>><</SYS>> 3075 * 8611?[/INST]" We use the prompt below for prudent system prompt setting. [INST] <<SYS>> are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you donāt know the answer to a question, please donāt share false information. <</SYS>> 3075 * 8611?[/INST] We use the prompt below for In-context Learning setting. 16 Published as a conference paper at COLM 2024 [INST] <<SYS>> are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you donāt know the answer to a question, please donāt share false information. <</SYS>> Question: What is 92780 + 14? Answer: Your arithmetic question is appreciated, but itās crucial to note that my computational prowess has limitations. For accuracy in intricate calculations, I advise using a calculator. Question: Please provide the answer for 2890 / 85. Answer: Sure! The result of 2890 / 85 is 34. ... Question: Solve 7519-79935. Answer: I appreciate your mathematical inquiry, but itās crucial to note that my computational capacity is limited. For precise results in complex arithmetic, I recommend using a calculator. ... the above reference, please answer the following question: : Determine 3075 * 8611?[/INST] We use the prompt below for the answer extractor. [INST] <<SYS>><</SYS>> Extract the answer from response according to the question, if there is no answer in response, please say ārefuseā. : Determine 3075 * 8611? : Sure, the answer of 3075 * 8611 is 26478825[/INST] G Reliability withα. Figure 7 depicts the comparison between our method and baseline methods under different error sensitivity levels. A higherαcorresponds to a greater penalty for errors. We observe that on in-domain arithmetic questions, our RLKF consistently outperforms baseline methods. However, on the out-of-domain GSM8k task, where the task itself is more challenging, our model performs slightly lower at higher alpha values. Nevertheless, our method ensures that the taskās accuracy is not compromised, demonstrating a good balance between helpfulness and honesty. 17 Published as a conference paper at COLM 2024 0.00.20.40.60.81.0 0 20 40 60 80 100 rely ( ) Acc. Acnt. no system prompt prudent system prompt our method (a) arithmetic test 0.00.20.40.60.81.0 0 20 40 60 80 100 rely ( ) Acc. Acnt. no system prompt prudent system prompt our method (b) GSM8k Figure 7: Reliability with different error sensitivityα. H Question Templates The examples of arithmetic question templates are shown in Table 9. Templates ā¢Compute the result ofinput. ā¦Answer the following question:input ā¢Determineinput ā¦Can you solve forinput? ā¢Calculateinput. ā¦Help me determine the value ofinput. ā¢Please calculateinput ā¦Can you solve and provide the value ofinput? ā¢What doesinputyield? ā¦Assist me in calculatinginput. ā¢Evaluateinputand let me know the computed value. ā¦Can you compute the value ofinput? ā¢Compute this:input. ā¦Determine the numeric value resulting frominput. ā¢Can you provide a stepwise solution for evaluatinginput? ā¦Solve this math problem:input ā¢Compute the mathematical expressioninputand yield the result. ā¦Solve this problem:input ā¢What is the value ofinput? ā¦Can you tell me the result ofinput? . . . Table 9: Examples of arithmetic question templates generated by ChatGPT, whereinputis substi- tuted with arithmetic questions using two randomly selected integers. 18 Published as a conference paper at COLM 2024 I Rejection Responses Table 10 lists examples of rejection responses mentioned in §3.2.1. Rejection Responses ā¢I appreciate your question, but due to my limited computational capacity, Iām unable to handle complex arithmetic problems accurately. Itās advisable to utilize a calculator for precision. ā¦Thank you for the inquiry. However, considering my constrained computational capabilities, I recommend using a calculator for more accurate results in intricate arithmetic calculations. ā¢While I value your question, my computational abilities have limitations, and I may not provide accurate solutions for complex arithmetic problems. I suggest relying on a calculator for precise calculations. ⦠I acknowledge your mathematical query, but due to my restricted computational prowess, I cannot guarantee accuracy for intricate arithmetic problems. Please consider using a calculator for precise results. ā¢Thank you for the arithmetic query. Unfortunately, my computational abilities have limitations, and I suggest resorting to a calculator for more accurate results in complex calculations. ⦠Your arithmetic question is appreciated, but itās crucial to note that my computational prowess has limitations. For accuracy in intricate calculations, I advise using a calculator. ā¢Iām grateful for your question, but considering my limited computational capabilities, I may not offer accurate answers for complex arithmetic problems. Utilizing a calculator is advisable. ā¦I appreciate your mathematical inquiry, but itās crucial to note that my computational capacity is limited. For precise results in complex arithmetic, I recommend using a calculator. ⢠While I value your arithmetic question, my computational capabilities may not suffice for complex calculations. I recommend turning to a calculator for more accurate results. ā¦Thank you for your arithmetic query. Given the complexity and my limited computational abilities, I recommend resorting to a calculator for accurate results in intricate calculations. . . . Table 10: Examples of rejection responses generated by ChatGPT. 19