Learn to Refuse: Making Large Language Models More Controllable and Reliable through Knowledge Scope Limitation and Refusal Mechanism
Paper · 2024 · Lang Cao
Summary
A system can produce a plausible answer to a factual question even when the information it needs is missing. Learn to Refuse, or L2R, studies what happens when a large language model is given a defined body of evidence and permission to leave a question unanswered. The paper focuses on factual question answering, where an incorrect claim can undermine an otherwise fluent response. Its central design choice is to keep the facts the system may cite in a separate, inspectable store. The store starts empty and can be populated with human-verified statements or with automatically generated statements that carry confidence scores.
When a question arrives, L2R searches this store for relevant entries. A prompt asks the answering component to judge whether those entries support a response. A separate rule checks whether at least one of the retrieved statements is close enough to the question after accounting for its stored confidence. Both checks must pass. When they do, the system presents evidence, an explanation of how it reaches the answer, and the answer itself. Automatic Knowledge Enrichment, the paper’s method for filling the store, uses prompted agents to turn questions and proposed answers into short factual statements. Its confidence scores come from the agent that proposes the answers.
On TruthfulQA, the GPT version of L2R reached 65.1% accuracy over the 654 questions it answered in the single-correct-choice task. Direct prompting of gpt-3.5-turbo reached 46.6% over all 817 questions. In the task with multiple correct choices, L2R reached 70.0% choice-level accuracy while answering 655 questions, compared with 68.2% for direct prompting across all 817. The gains thus come with a change in which questions are scored. The factual store for this experiment was built from the benchmark questions themselves, without the benchmark’s answers or answer options. The paper also finds an accuracy gain on CommonsenseQA and a smaller gain on MedQA, where the system leaves many more questions unanswered.
Experiments with known correct facts separate the availability of evidence from the ability to use it. With all of the TruthfulQA single-choice gold knowledge in the store, L2R achieved 93.2% accuracy on 658 answered questions. Relevant entries can still be missed, and an accepted answer can still be wrong. The experiments show that an external store and explicit refusal rules give the system an adjustable way to trade answer coverage for accuracy. The trace to stored evidence lets a reader inspect the basis of a response, including cases where that basis is incomplete or unreliable.
Deep dive: Learn to Refuse: Making Large Language Models More Controllable and Reliable through Knowledge Scope Limitation and Refusal Mechanism
Learn to Refuse pairs an external fact store with two refusal checks to improve the accuracy of factual answers and make their evidence traceable. · about 35 minutes to read
The problem and its context
Factual errors and the decision to answer
The paper starts from a familiar interaction. A user asks for a fact, and the system returns an answer in the same confident style it uses when the fact is well established. A user who receives the response may have little basis for distinguishing a reliable answer from a plausible guess. Cao treats the decision to answer as part of the task itself. If a question cannot be supported with the knowledge available to the application, a refusal is an acceptable outcome.
The paper distinguishes factual conflict from related failures of text generation. An output can depart from the user’s input, or it can lose track of information in the surrounding context. It can also assert something that conflicts with facts about the world. These failures can occur in the same response, but they arise from different problems. The authors associate factual conflict with incomplete exposure to specific information, imperfect learning of facts, failures to recall them, and confusion among related facts. Their system acts at the point where a particular claim is about to be made, by requiring external support that the application can inspect. Survey of Hallucination in Natural Language Generation, Siren’s Song in the AI Ocean
That choice reflects a difference between controlling what a system is allowed to use and changing what its underlying language processor has learned. Knowledge acquired during training can surface in generation, but a developer cannot browse it as a collection of approved statements. A separate store gives the developer a place to inspect or revise individual claims. It also gives the answering application a policy it can state in advance. An answer must have support within the store’s current contents. The same factual question can therefore receive an answer in one installation and a refusal in another, depending on what each has been configured to cover.
The authors call this policy Knowledge Scope Limitation. Here, scope means the collection of facts authorized as evidence. An empty store represents an empty authorized scope even though the underlying system may already be able to answer some of the questions from training. The point of the empty starting state is to expose that distinction. As facts enter the store, the set of questions the application can support changes in a way an operator can inspect. The decision about a particular question still depends on retrieval and interpretation. Merely adding a statement to the store does not establish that the system will find it or apply it correctly.
Where the paper intervenes
The related-work discussion describes approaches that act at several stages. Changes during pretraining aim to improve what is learned in the first place. Supervised fine-tuning and reinforcement learning with human feedback act on later behavior. Inference-time approaches intervene when an answer is being prepared. The paper cites examples involving verification, external feedback, and interventions that elicit more truthful responses. L2R belongs at the application level. It uses prompts, external evidence, and a decision rule around an existing language system. Its experiments are about what this arrangement does to factual answers and refusals. Let’s Verify Step by Step, Chain-of-Verification Reduces Hallucination in Large Language Models, Inference-Time Intervention
Prior work on self-knowledge gives the paper a reason to ask the answering component to assess its own response. In the authors’ account, earlier studies show some ability to recognize gaps in knowledge or judge whether an answer is likely to be correct. The same discussion says that such systems may overestimate their ability. L2R makes limited use of self-assessment by asking whether the supplied evidence suffices and treating the result as one input to a larger decision. If that assessment is overly permissive, the independently configured rule can still stop the answer. Language Models (Mostly) Know What They Know
The other line of work is retrieval-augmented generation, in which a question or other input is used to find external text that can inform generation. The paper describes earlier designs that train retrieval and generation together, systems that expand a searchable memory, and approaches that use search engines to obtain online material. These designs illustrate ways of supplying information beyond what the generator already remembers. Cao adopts retrieval for a particular purpose. Retrieved content is the authorized basis for the response, and its quality also enters the decision about whether to release that response. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, REALM, Improving Language Models by Retrieving from Trillions of Tokens
This places a different burden on retrieval. In a system that always answers, an irrelevant passage can be treated as an unhelpful input. In L2R, that passage may be decisive. It can leave the hard check without a strong candidate or give the answering component misleading evidence. Conversely, a close result can permit a response even if it contains an error. The work therefore considers both the composition of the store and the policy that acts on its search results. A refusal decision is only as meaningful as the evidence and scores on which it depends.
The method, step by step
From a question to a response
L2R has a preparation stage and an answering stage. During preparation, factual statements enter a store. Each entry has text and a confidence value. During answering, the application receives a question and retrieves a small set of candidate statements. It asks the main question-answering agent to assess that evidence and separately calculates whether the candidates meet a numerical requirement. The application releases the answer only when both judgments permit it. The design can use an existing store without running the enrichment procedure again for each query.
How Learn to Refuse prepares evidence and answers
The steps in order.
For the user, the two outcomes look different. A refusal says that the application has declined to furnish the requested fact. An answer is accompanied by evidence and a written account of how the evidence supports it. The question can be answerable in the wider world and still receive a refusal. A refusal may reflect the absence of an entry, failure to retrieve the right entry, an unfavorable retrieval score, or the answering agent’s assessment that the retrieved statements leave the question unresolved.
The formal setup starts with a collection of factual questions and their corresponding answers. In the following notation, the subscripts identify positions within each collection.
Q = {Q₁, Q₂, …, Qₙ}
Here, Q is the collection of questions, Qᵢ is the question at position i, and n is the number of questions. Braces enclose the collection, the ellipsis stands for the intervening questions, and the equals sign assigns the notation Q to that collection.
A = {A₁, A₂, …, Aₙ}
Here, A is the corresponding collection of factual answers. Aᵢ is the answer associated with Qᵢ. The subscript n identifies the last question and its corresponding answer. The ellipsis represents the intervening answers, and the braces group the collection.
L2R’s output extends this question-to-answer setup with an answerability decision. The paper denotes that decision as follows.
Jᵢ ∈ {0, 1}
Jᵢ is the system’s judgment for question i. The membership sign means it can take either value in braces. A value of 0 means the system declines to answer, and 1 means it releases an answer. This is a decision about the application’s response. The factual answer still has to be derived from evidence when the judgment allows one.
Building the knowledge store
The store, called KB in the paper, is external to the answering agent. It contains textual statements with their confidence values. The authors intend each statement to cover a single fact so that retrieval can return a small, readable piece of evidence. A human who finds an error can locate the statement as a separate entry. The same format helps a reader identify what the answering system has treated as evidence.
K = {K₁, K₂, …, Kₘ}
K denotes the collection of factual entries in KB. Kᵢ is an individual textual entry, m is the total number of entries, and the ellipsis covers the entries between the ones written explicitly. The paper also uses K for lists of retrieved or newly generated entries. The surrounding notation identifies which collection it means.
Manual enrichment supplies facts that a person has verified. A statement entered through this route is intended to be gold knowledge, meaning the experiment or application treats it as a correct reference fact. The main method assigns it a confidence value of 1. This puts manual and automatic entries into a common format. A human verification decision and a generated confidence report have different origins even when the resulting values are identical.
The empty starting point makes manual curation potentially laborious. The authors introduce Automatic Knowledge Enrichment, or AKE, to fill the store more quickly by drawing on what a language system can already generate. The general method splits this job among prompted agents for question generation, answer generation, and conversion of question–answer pairs into statements. These are roles in a data preparation pipeline. The experiments describe using the same underlying system to generate the automatic knowledge and later to answer questions. Separate prompts give it different responsibilities at those stages.
The question generation agent takes seed questions and produces more factual questions. This gives enrichment a way to extend coverage in the directions suggested by the seeds. In the main TruthfulQA experiment, the questions come exclusively from TruthfulQA. The authors use these questions to elicit candidate answers and statements for the store. The general description of seed-based question generation and the experiment that uses a fixed set of benchmark questions are thus distinct uses of the enrichment design.
Q = [Q₁, Q₂, …, Qₘ]
Here, Q denotes the list of questions used in the enrichment run. Each Qᵢ is a question at position i, and m counts the questions in this particular list. The square brackets denote an ordered list. The paper uses m here for the size of the batch, in keeping with the conversion of a question and answer into an entry.
The answer generation agent receives a list of questions and returns a proposed answer and confidence for each. Its prompt requests a definite answer even when it is unsure. Uncertainty goes in the confidence field. This differs from the role of the answering agent at query time, where uncertainty over the available evidence can cause the application to refuse. Enrichment requires a candidate statement to score. Query handling requires a decision about what to tell the user.
A_withC = [(A₁, C₁), (A₂, C₂), …, (Aₘ, Cₘ)]
A_withC is the list of answers with confidence values. Aᵢ is the proposed answer to enrichment question Qᵢ, and Cᵢ is the confidence reported for that answer. Parentheses group each answer with its own score. The subscript gives the item’s position, and the ellipsis stands for the remaining pairs.
Cᵢ ∈ [0, 1]
Cᵢ denotes the confidence of answer i. The membership sign puts it in the closed interval from 0 to 1, with the endpoints included. In the answer generation prompt, 1 expresses complete certainty, 0.5 is the stated midpoint between certainty and error, and 0 represents inability to answer or the expectation that the answer is wholly wrong. Those meanings come from the prompt. The paper treats the resulting value as an estimate supplied by the generator.
The original question is still useful after an answer has been produced. A short answer may contain only a name or a place, and the question tells the system what relationship that name or place is meant to complete. The conversion agent receives both pieces. Its instruction is to combine them into a brief declarative statement while staying within their content. This produces an entry that can be searched and read on its own. The statement inherits the confidence from the answer generation step.
QA = [(Q₁, A₁), (Q₂, A₂), …, (Qₘ, Aₘ)]
QA is the ordered list of question–answer pairs used for conversion. Qᵢ is the enrichment question, Aᵢ is its proposed answer, and m is the number of pairs. Parentheses keep each question with its answer, and the ellipsis stands for the remaining pairs in the batch.
K = [(K₁, C₁), (K₂, C₂), …, (Kₘ, Cₘ)]
K now denotes the list of converted entries with scores. Kᵢ is the statement formed from pair i, Cᵢ is the confidence attached to its proposed answer, and m is the number of entries in the batch. The converter changes the presentation of the content. The score stays associated with the same item.
One of the paper’s illustrations shows what this representation can preserve. An entry about whether muscle can become fat includes the relevant contrast between the tissues, so it is understandable outside its original question. The stored confidence for that entry is 0.9. Another entry makes a more sweeping claim about what distinguishes human communication and carries 0.8. The examples make the automatic store inspectable at the level that matters for answering. A reader can evaluate both the wording of a claim and the numerical rating attached to it.
The general procedure allows automatically generated entries to be inserted after conversion. The paper describes them as pseudo-knowledge because they come from generated answers. The method specifies the later use of confidence in hard refusal. It gives no calibrated admission threshold that would turn every accepted automatic entry into an independently verified fact. The claim of correctness is strongest for the manual route and for the gold-knowledge experiment, where the source of the statements is the benchmark’s reference answers.
Finding relevant entries
When a question comes in, the system searches the store for the nearest entries. The experiments use all-mpnet-basev2 from the Sentence-BERT family. It represents text as numerical vectors, also called embeddings. In this application, the texts being compared are questions and factual statements. Search can therefore place a question near a statement with similar content even when the two have different wording. The paper uses Euclidean, or L2, distance and treats a lower score as a closer match. It uses FAISS for the similarity search. Billion-Scale Similarity Search with GPUs
The default retrieval setting is 4 entries for a query. The system first selects them by distance. It carries forward the statement text, the confidence attached during enrichment, and the distance assigned by retrieval. These fields describe different aspects of the result. Distance tells the application how closely the text matches the question under its representation. Confidence records how the claim entered the knowledge store or how strongly the generator endorsed it.
Kᵣ = [(K₁, C₁, S₁), (K₂, C₂, S₂), …, (Kₖ, Cₖ, Sₖ)]
Kᵣ is the list of retrieval results for the current question. Kᵢ is the statement at position i in that list, Cᵢ is its stored confidence, and Sᵢ is its distance from the question. The list contains k results, with the ellipsis standing for the entries between the ones displayed. The subscripts here index the returned entries. A position in this list need not correspond to the same position in the full store.
The paper calls Sᵢ a similarity score while using the numerical direction of a distance. A smaller value favors the entry. This matters both in selecting the retrieved set and in applying the later threshold. A candidate can be close because it shares a topic with the question and still lack the particular relationship the question asks about. The addressing agent receives the actual text so it can attempt that distinction. The hard rule has access to the scores and operates separately.
Making and combining the refusal decisions
The soft check is the answering agent’s assessment of whether it can respond from the retrieved material. The prompt sets apart the question and the statements, defines the statements as the usable evidence, and asks the agent to judge whether they cover the question. It requires a structured response with fields for evidence, reasoning, a Boolean answerability decision, and the answer. The answer can be null when the agent judges the question unsupported. The application can read the answerability field directly from this output.
Iᵢˢᵒᶠᵗ ∈ {0, 1}
Iᵢˢᵒᶠᵗ is the soft answerability judgment for question i. The superscript label identifies the prompt-based check. The membership sign gives its allowed values. A value of 0 is the agent’s decision to decline, and 1 means the agent judges the evidence adequate. The paper describes this check as drawing on the supplied material and the agent’s ability to assess its own answerability.
The hard check applies a fixed calculation to the retrieval results. It divides each entry’s distance by its confidence and takes the smallest adjusted distance. A close entry with high confidence is therefore favorable. An entry with the same distance and lower positive confidence receives a larger adjusted distance. The minimum makes the gate depend on the strongest candidate by this combined measure.
Iᵢʰᵃʳᵈ = [min₁≤ⱼ≤ₖ (Sⱼ / Cⱼ) < α]
Iᵢʰᵃʳᵈ is the hard judgment for question i. The index j ranges from the first retrieved entry through entry k. Sⱼ denotes the distance from the question to entry j, Cⱼ denotes that entry’s confidence, and the slash indicates division. The minimum operator selects the smallest quotient. The human-configured threshold is α. The less-than sign makes the comparison strict, and the brackets around it represent a binary test that returns 1 when true and 0 when false.
Under this rule, a question passes the hard check when at least one retrieved entry has an adjusted distance below α. The default threshold in the experiments is 0.75. Increasing it allows more scores to qualify, while lowering it narrows the set. Since the condition is based on the minimum, adding several moderately close entries cannot collectively satisfy the rule if each adjusted distance falls on the refusing side of the threshold. Conversely, one favorable result can pass this check even if other retrieved statements are irrelevant. The soft check still has to judge the evidence adequate.
Ranking and gating play separate roles. The system selects the candidate set by distance and then applies the confidence adjustment within that set. A statement with high confidence outside the retrieved set has no opportunity to pass the hard check. Similarly, the candidate with the shortest unadjusted distance need not be the one that supplies the minimum quotient. The design gives confidence a role in the release decision after the search has already narrowed the evidence.
Iᵢᶠⁱⁿᵃˡ = Iᵢʰᵃʳᵈ ∧ Iᵢˢᵒᶠᵗ
Iᵢᶠⁱⁿᵃˡ is the combined judgment for question i. The two terms to the right are the hard and soft judgments for that question. The conjunction sign means both must be 1 for the combined judgment to be 1. Any refusal among the checks produces a combined value of 0. This combined outcome serves the role assigned to Jᵢ in the general task formulation.
The two checks have different routes to a refusal. The answering agent can see that a passage discusses the right subject but omits the requested detail. The numerical check can block an answer even when the agent sees enough material to write one. A case study illustrates the latter outcome. The agent picked an option in a question about abilities unique to humans and supplied an explanation. The hard rule stopped the answer at the application level. In another case, a question about average height in different countries retrieved passages about height or country comparisons that failed to address the requested group. The agent declined, and the hard rule also refused.
Returning the evidence and answer
For an accepted question, the response is designed to present supporting evidence first, then the reasoning, then the answer. The evidence is drawn from retrieval, and the reasoning is a prose account of how the selected facts lead to the answer. The paper takes inspiration from Chain-of-Thought Prompting. Here, the explanation gives the reader something to compare with the evidence and the final claim.
A′ᵢ = (Eᵢ, Rᵢ, Aᵢ)
A′ᵢ is the complete response to accepted question i, with the prime distinguishing the response package from the factual answer Aᵢ. Eᵢ is the retrieved evidence used to support the answer, and Rᵢ is the written reasoning. The parentheses group those response components in order.
A′ᵢ = REFUSAL
A′ᵢ is the response for question i when either check declines. REFUSAL denotes the system’s refusal outcome. It takes the place of the evidence, reasoning, and answer package for a released response.
For the multiple-choice benchmarks, an inner prompt formats the question with candidates and requests the chosen option identifiers as the answer. The main agent still has its separate structured fields for evidence, reasoning, and answerability. The paper reports prompt adjustments for the Llama variant and for the GPT version on MedQA. The evaluation thus studies prompted systems with these response and retrieval procedures. The paper presents enrichment as creating data for the external store, with no weight update specified for L2R.
Experiments and results
Scoring a system that can leave questions unanswered
TruthfulQA serves as the primary benchmark and spans 38 categories, such as politics, finance, law, and health, with 817 questions in all. The paper tests its single-true and multiple-true multiple-choice tasks. In MC1, each question has a single correct option and the paper scores whether that option was selected. In MC2, several options can be correct, and the paper describes its metric as evaluating the judgment for each option. In both tasks, the count is the number of questions for which the system provided an answer. The count for MC2 remains a question count even though the accuracy is measured at the choice level.
The paper reports accuracy within the material a system answers. This lets a reader see how often a released answer is correct. Coverage is visible through the accompanying count. A system that answers every question has its accuracy measured across the entire set. A system that refuses can have an accuracy measured on a selected subset. The comparison addresses the behavior the method is designed to change, but the two metrics must be read together. The accuracy of a selective system on its own cannot establish how well it serves someone who needs an answer to every query.
In the main L2R condition, the automatic store is built using the TruthfulQA questions. It contains 817 statements derived from generated answers. The benchmark’s reference answers and distractor options are withheld during store construction. Evaluation then presents the same questions with their options. The experiment demonstrates what the system can do when enrichment is directed at the questions it will encounter. It also gives the system the possibility of retrieving a statement generated specifically in response to the current question.
The main GPT setup uses gpt-3. For 5-turbo-0613, temperature was fixed at 0 to reduce instability, while top_p was set to 1. The Llama variant uses Llama-2-70b-chat-hf. For direct baselines, the underlying systems answer the benchmark questions without the L2R procedure. Another baseline adds retrieval from Wikipedia to gpt-3.5-turbo. Its store consists of document abstracts represented using the same embedding approach. A further baseline adds a prompt that permits refusals to the Wikipedia retrieval system. The latter comparison tests whether a refusal prompt can be used with documents outside L2R’s question-derived fact store. Llama 2
Results on TruthfulQA
TruthfulQA MC1 question-level accuracy among answered questions
L2R-GPT has the highest conditional accuracy among the main benchmark systems.
The numbers
| System or setting | accuracy % |
|---|---|
| Llama-2-70b-chat-hf | 31.2 |
| gpt-3.5-turbo | 46.6 |
| gpt-3.5-turbo with Wikipedia RAG | 53.7 |
| gpt-3.5-turbo with Wikipedia RAG and soft refusal | 55.1 |
| L2R-Llama | 47.1 |
| L2R-GPT (this paper) | 65.1 |
On MC1, direct gpt-3.5-turbo answered all 817 questions at 46.6% accuracy. Wikipedia retrieval raised accuracy to 53.7% at the same count. Adding a soft refusal prompt brought the accuracy of the answered questions to 55.1% and reduced the count to 530. L2R-GPT reached 65.1% and answered 654 questions. It therefore led the compared systems in conditional accuracy and supplied more answers than Wikipedia retrieval with the soft refusal prompt. The full-coverage Wikipedia system still supplied answers to more questions.
Against direct gpt-3.5-turbo, the paper reports the MC1 improvement as 18.5 percentage points, with 163 fewer questions answered. It attributes 149 refusals in MC1 to the hard mechanism and 14 to the soft mechanism. This breakdown describes which check produced the reported refusals. The ablations give a separate view of how accuracy and counts change when either check is removed.
L2R-Llama answered 618 MC1 questions at 47.1% accuracy. Direct Llama answered all 817 at 31.2%. The paper reports a 15.9% accuracy improvement for this comparison. The pattern supports the authors’ claim that the procedure can raise accuracy on the questions answered with more than one underlying system. The size of the gain and the starting accuracy differ across the two systems, and the conditional comparison leaves different sets of questions in the denominator.
TruthfulQA MC2 choice-level accuracy within answered questions
L2R-GPT leads on choice-level accuracy, while Wikipedia retrieval and soft refusal score below direct GPT prompting.
The numbers
| System or setting | accuracy % |
|---|---|
| Llama-2-70b-chat-hf | 50.1 |
| gpt-3.5-turbo | 68.2 |
| gpt-3.5-turbo with Wikipedia RAG | 67.1 |
| gpt-3.5-turbo with Wikipedia RAG and soft refusal | 66.2 |
| L2R-Llama | 56.9 |
| L2R-GPT (this paper) | 70.0 |
On MC2, L2R-GPT answered 655 questions at 70.0% choice-level accuracy. The direct GPT baseline answered all 817 at 68.2%. The paper reports a 1.8% improvement for this comparison. It attributes 149 refusals to the hard check and 13 to the soft check. Direct Llama reached 50.1% across all 817 questions, and L2R-Llama reached 56.9% while answering 611.
The Wikipedia baseline behaved differently across the two TruthfulQA tasks. Its MC2 accuracy was 67.1% with 817 questions answered. With the refusal prompt, it reached 66.2% across 573 answered questions. Hence, the prompted refusal condition improved the Wikipedia system’s conditional accuracy on MC1 and lowered it on MC2. Permission to abstain does not by itself select a subset with higher accuracy. The task and the quality of the answerability judgment both matter to the observed outcome.
The authors suggest that MC2 places greater demands on the available evidence because the system must evaluate each option. A statement that identifies the right choice in MC1 might leave other claims unaddressed when the instructions require a judgment over an entire set. That explanation is consistent with the smaller GPT gain on MC2. The experiment also changes the unit on which accuracy is evaluated. The MC1 and MC2 accuracy values describe different decisions, so each result is most informative against the baselines within its own task.
The paper contrasts the short factual store with Wikipedia abstracts, which may cover several claims within a single retrieved unit. The compact store provides evidence in a form that can be copied into the answering prompt and inspected. Its superior accuracy in the GPT comparison is a result for the whole arrangement. That arrangement includes question-directed enrichment, the difference in retrieval units, hard and soft refusal, and a prompt that asks for evidence and reasoning. The main comparison measures their combined effect.
Commonsense and medical questions
The paper uses the development split of CommonsenseQA and the test split of MedQA to examine the procedure outside TruthfulQA. These tests change the content of the questions and the coverage supplied by the knowledge store. The same distinction between accuracy and count applies. The reported figures permit a comparison among GPT and Llama variants within each dataset.
On the CommonsenseQA development set, direct GPT achieved 69.8% accuracy over 1221 questions. L2R-GPT achieved 75.6% on 933 answers. Direct Llama achieved 73.2% over 1221 questions, and the L2R version reached 73.6% over 565 answers. The Llama variant therefore produced a small gain in conditional accuracy while answering far fewer questions. The GPT variant’s count and accuracy give a different tradeoff on the same split. These results show why a report that gives only the best accuracy would miss the difference between the variants.
MedQA is the specialized medical benchmark in the paper. On its test split, direct GPT answered 1273 questions at 51.2% accuracy. L2R-GPT answered 451 at 52.8%, leaving 822 unanswered. Direct Llama answered 1273 at 41.6%, and L2R-Llama answered 430 at 43.3%. The authors judge the automatic-knowledge setup inadequate for a broadly useful medical question-answering system. Their explanation is that the knowledge available from the underlying generator is too limited for automatic enrichment to give the store the coverage it needs.
The paper then adds a medical textbook corpus, MedRAG’s textbooks, using sentence segmentation to create entries. This is labeled MedQA-RAG in the results. L2R-GPT reached 53.2% over 776 answers on the MedQA test split with the addition. The authors report that it answered 315 more questions than the L2R version without the textbooks. Under the augmented condition, the GPT baseline answered 1273 questions at 50.9%. The authors report a 0.3% drop for that baseline with the additional data. In the Llama comparison, the augmented baseline answered 1273 questions at 41.6%, while L2R-Llama reached 43.6% over 512 answers.
MedQA test accuracy among answered questions with and without textbook retrieval
The textbook-augmented L2R-GPT condition has the highest accuracy in the medical GPT comparisons.
The numbers
| System or setting | accuracy % |
|---|---|
| Direct GPT | 51.2 |
| GPT with textbook retrieval | 50.9 |
| L2R-GPT with automatic knowledge | 52.8 |
| L2R-GPT with added textbooks (this paper) | 53.2 |
The medical comparison shows an instance where changing the store increases the number of questions answered alongside conditional accuracy. The authors interpret the baseline’s decline after adding documents as consistent with noisy retrieval. The experiment reports the resulting scores and counts, while individual retrieval errors are not broken down for the medical questions. The observed improvement therefore establishes a benefit for this augmentation within the tested L2R configuration. It does not establish a particular explanation for every question the added corpus helped or hurt.
What a user sees when the store is small
A qualitative demonstration starts with three human-supplied facts. The authors show questions for which the stored statements give direct support, related questions answerable from the same statements, and questions for which the requested information is absent. For example, the application identifies Leonardo da Vinci as the painter of the Mona Lisa and uses that relationship in a short description of who he was. It declines to give his birthplace. It also answers a question about the capital of the United States.
The distinction between the painting question and the birthplace question captures what a bounded evidence store is intended to do. Both mention the same person, and the underlying language system may be able to produce an answer to either. In the demonstration, whether the application responds depends on what it has been allowed to use. A store can support a useful rephrasing about an entity while leaving a different relationship involving that entity outside its operational scope.
The case studies show the behavior with benchmark-style inputs as well. Alongside the disagreements between the checks, the paper presents a successful case about the origin of the Nike name. The displayed retrieved statements include an entry about the name and others about brands or slogans. The paper reports that L2R selects the correct answer. This example shows an accepted response in the presence of partly irrelevant context. A successful case of this kind can illustrate the intended operation, while aggregate scores are needed to establish how frequently it works.
What the ablations show
Removing parts of the answering procedure
The paper’s ablation study compares the full system on TruthfulQA with variants that remove the step-by-step answer, the soft refusal, or the hard refusal. This is more focused than the main comparison to Wikipedia retrieval. Each row asks what happens when one part of the L2R procedure is omitted while the other parts remain. Since the count can change, a difference in accuracy may reflect changes in the released set as well as changes in the answers produced.
The full setup answered 654 MC1 questions at 65.1%. Without the step-by-step answer, it answered 661 at 68.4%. The paper gives the accuracy change as +3.3. On MC2, the full system answered 655 questions at 70.0%. Removing the step-by-step answer led to 668 answered questions at 69.1%, a reported change of -0.9. The effect of the explanation procedure therefore depends on the task. It helps the measured MC2 accuracy, while the best MC1 accuracy in the ablation comes from omitting it.
The authors suggest that the explanation can introduce extra complexity in MC1, where one correct answer must be selected. They see a reason for retaining it in MC2, where the system evaluates several options, and in the design more generally, where users can read how an answer follows from evidence. The reported numbers show that answer quality and inspectability motivate different choices in MC1. The experiment tests the presence of the step-by-step response procedure, without measuring how often each written explanation reflects a sound inference.
Removing soft refusal makes the hard rule sufficient to release a response. On MC1, this variant answered 668 questions at 63.8%. On MC2, it answered 668 questions at 69.3%. The study reports accuracy changes of -1.3 for MC1 and -0.7 for MC2. Both counts are higher than the full system’s. The result is consistent with the answering agent identifying cases where a numerically close statement leaves a substantive gap. The aggregate comparison cannot identify which specific answers were harmed by omitting this check.
Removing hard refusal makes the prompted judgment sufficient. The system then answered 778 MC1 questions at 62.2%, a reported change of -2.9 in accuracy, and 784 MC2 questions at 69.1%, a change of -0.9. Among these removals, removing the hard gate produced the greatest increase in answered questions in both tasks. The soft judgment by itself accepted many questions that the full rule held back. The reported accuracy losses show that this broader set of answers came with a lower accuracy among released responses under the tested threshold.
Together, these comparisons put a limit on what can be attributed to either check. The hard rule has the larger observed effect on counts, and keeping the soft check improves conditional accuracy in both tasks. The paper does not give a full evaluation that holds coverage fixed across the ablation variants. The measured effect of deleting a gate is therefore the outcome of a different answering policy, including which questions it passes. A reader interested in performance on exactly the same questions would need that set identified and scored separately.
Supplying benchmark facts on purpose
A separate experiment changes the availability of gold knowledge on TruthfulQA MC1. The authors populate the store from the benchmark’s reference answers and assign these entries a confidence of 1.0. They vary how much of the gold knowledge is present and compare L2R with conventional retrieval augmentation. This differs from the main experiment, where the statements are elicited without the references. Here, the correct facts are deliberately supplied so the authors can study retrieval and selective answering as coverage changes.
At a gold-knowledge ratio of 0, L2R answered 0 questions. The table records an accuracy of 0 for that cell. Since there are no released answers, the cell provides no observed rate of correctness on answered questions. The RAG comparison answered all 817 questions at 46.6% in the same coverage condition. The contrast illustrates the different operating policies at the empty starting state. Once evidence is required, an empty store gives the application no basis on which to release an answer.
At a ratio of 0.25, L2R answered 178 questions at 93.3% accuracy. RAG answered 817 at 64.7%. At 0.5, the corresponding figures were 349 at 90.5% for L2R and 817 at 73.2% for RAG. At 0.75, L2R answered 516 at 93.4% and RAG answered 817 at 79.6%. At the full ratio of 1, L2R answered 658 at 93.2%, and RAG answered 817 at 84.5%. The RAG accuracy rises as references become available to more questions. L2R’s principal change across the populated settings is the expansion in the number of answers it supplies.
Conditional accuracy does not rise steadily across the L2R rows. The authors report a 2.8% decrease when the ratio moves from 0.25 to 0.5 and attribute it to the difficulty of the questions newly in reach. This interpretation depends on the composition of the tested sets. Adding evidence changes the questions that enter the answer denominator. If harder questions become answerable, conditional accuracy can fall even though the system has extended useful coverage. That is consistent with the observed change in count. The experiment as reported does not establish a general curve for other possible selections of gold entries.
With full gold knowledge, the paper reports 159 refusals and a refusal success rate of 73.4%. Its success rate measures the share of rejected questions associated with incorrect answers in the analysis. This asks a different question from conditional accuracy. It concerns whether refusal intercepts errors. Because the rate is below complete success, the measure also captures a cost of abstention. Some rejected questions were associated with correct answers and would have contributed value if released.
The full gold setting is also a test of the paper’s motivating idea that providing correct facts can improve answers. Supplying all the reference facts leaves room for retrieval and response errors. The authors explain that a question and a factual statement may be far apart in the representation used for search, even if they correspond in meaning. A fact can be present in the store and fail to reach the answering agent in a form that passes the procedure. The experiment isolates the benefit of making gold facts available more directly than it isolates the source of each remaining error.
Varying the hard threshold
The threshold analysis changes α and observes refusal counts and accuracy. The mathematical direction of the gate is clear. A larger α can admit additional retrieved scores, and a smaller α can rule out scores that previously passed. Because final acceptance also requires soft approval, relaxing the hard threshold can add answers only where the soft judgment already permits them, under otherwise fixed decisions. Tightening the threshold withdraws permission at the hard stage for candidates that no longer meet the strict comparison.
The paper describes the broad tradeoff as greater coverage at a more permissive threshold and higher accuracy at a stricter one. Its discussion of the speed and direction of accuracy changes in one part of the sweep is internally unclear. The figures are most securely interpreted as showing how the tested operating points move between answer volume and correctness. The structure of the gate determines the direction of hard acceptance as α changes. The accuracy of a newly accepted subset still depends on whether the answers it adds are correct.
The paper also plots precision and recall for different thresholds. Precision in that analysis is correct answers divided by provided answers, matching the conditional accuracy used in the experiment. Recall is correct answers divided by all questions. This version of recall rewards reaching more users with a correct answer and treats refusals as missed opportunities for a correct response. The authors single out the part of the curve between recall values of 40 and 60 as a more stable region for choosing a threshold. That observation describes their tested setup and provides context for the default setting. It gives no reason to expect the same operating region when the store, task, or retrieval scores change.
Limitations
Limits the authors state
The authors present the method as a demonstration for factual question answering. They identify summarization and decision making as applications that would require further work. In a multiple-choice factual task, a system can issue a refusal on the entire question. A summary can contain many claims tied to different parts of a document, and a decision task can require weighing several pieces of evidence. The paper leaves the appropriate unit of refusal and the design of corresponding checks open for those settings.
The authors also acknowledge that accepted answers can still contain hallucinations. Their intervention targets conflicts with factual knowledge. An output can go wrong by misunderstanding the user’s input or losing relevant earlier context, and the refusal rule does not directly assess those problems. Even a statement retrieved from the intended store can be applied to the wrong entity or used to draw a conclusion it does not support. The output’s evidence and explanation let a reader inspect such an error, but their presence alone does not resolve it.
Scale is another stated limit. The authors discuss the main demonstration as using a store with hundreds of knowledge items and leave performance at millions of entries or more uncertain. The experiments include comparisons to document retrieval and a medical corpus augmentation. Those comparisons do not furnish a scaling study of the structured store. Efficient similarity search addresses the mechanics of retrieving nearby texts. Whether the neighbors remain adequate evidence, and whether the same threshold behaves reasonably as the store grows, are empirical questions left open.
The authors flag the simplicity of the hard decision rule. It can establish that some entry is sufficiently close once confidence is taken into account. A more complex question may require several facts to be present together. Evidence for one premise would pass the hard check even if evidence for another premise were missing. The soft agent is then responsible for recognizing the gap. The paper calls for a better hard judgment in settings that require multiple facts or several steps of reasoning.
TruthfulQA is described by the authors as generally requiring a single piece of knowledge to answer a question. This makes it suitable for examining the chosen gate and leaves harder evidence-composition cases underexplored. The multiple-true task tests judgments across several options, and the step-by-step ablation shows a different result there from MC1. Those findings concern the tasks given. They provide limited evidence about a question whose answer depends on finding dispersed facts and combining them correctly.
The authors further acknowledge the labor of filling the store with manually verified entries. Automatic enrichment reduces that work at the expense of assurance about the claims. The MedQA result shows a practical consequence under the tested conditions. Conditional accuracy improves while many questions remain unanswered, and the textbook corpus helps extend coverage. The authors take this as evidence that where knowledge comes from matters and that a generator may know too little on its own to build a useful knowledge store for a specialized field.
Limits visible in the design and measurements
The main benchmark tests enrichment and answering on the same question texts. The reference answers and options were withheld when the store was built, an important condition for interpreting the result. Nonetheless, the system had an opportunity to prepare statements specifically for the questions that later determined its score. A store assembled before future questions are known might contain facts at a different level of detail or describe them in ways less easily retrieved. The main result leaves that distinction unresolved. It measures a targeted enrichment setting in which benchmark question wording is available before answering.
The central comparison combines several changes. The structured store is smaller, the entries are generated in response to benchmark questions, and the output and refusal procedures differ from the Wikipedia baselines. The ablations address the response format and the two refusal checks. They do not separately estimate the effect of fact-sized entries while holding the underlying evidence, the answering prompt, and coverage constant. The main experiment can support a claim about the assembled system more strongly than a claim that any one aspect of the store caused the observed accuracy gain.
Counts and conditional percentages describe the tradeoff but leave out a direct answer to some deployment questions. A person who needs a correct answer to as many questions as possible may care about correct answers across the full evaluation set. A person who faces a large cost from a wrong claim may care more about correctness among delivered responses. The paper’s threshold analysis illustrates this difference with precision and recall. The headline table compares systems at the counts they happen to attain, so a gain in conditional accuracy does not establish an advantage at matched coverage.
Confidence also needs careful interpretation. It is elicited as part of the answer-generation prompt, carried across the conversion into a statement, and used as a divisor in the hard rule. The paper gives examples of higher confidence on some straightforward facts and lower confidence on some more questionable statements. The examples do not establish that a given confidence corresponds to a measured probability of correctness. With automatic enrichment performed by the same underlying system used for answering, a persuasive but incorrect claim can receive a high rating during preparation and later qualify as evidence.
There are two numerical details the paper leaves unresolved. The confidence prompt permits 0, while the printed hard rule divides by confidence without specifying how to handle that endpoint. The gold-knowledge experiment and the main account of manual enrichment use full confidence for verified entries. The appendix discussion of manual revisions instead says the confidence can be set to 0. These details matter for reproducing the rule and interpreting the store. The paper reports an empty-store outcome, but it does not specify how a retrieved entry with zero confidence is handled or reconcile the conflicting descriptions of manual scoring.
The word traceable describes the path from a released response to entries in the external store. It can mean little about the origin of an automatically generated claim beyond the question and answer that produced it. A human reader can examine a statement, its confidence, and the reasoning that calls on it. Independent verification of the statement remains a separate task. Likewise, the instruction to answer only from retrieved material is a behavioral constraint in a prompt. The experiments show evidence-sensitive behavior, including refusals. They do not establish that prior knowledge played no role in any released answer.
Finally, the quantitative results are chiefly multiple-choice benchmarks. The choices help define the requested distinction and permit direct scoring. The qualitative examples include ordinary factual questions and demonstrate how refusal appears in an interaction. That small demonstration does not measure how often freely phrased requests yield complete, correctly supported answers. Questions with ambiguity, multiple premises, or an answer that needs qualifications would call for evaluation of those specific demands.
What came after
One later citing work studies selective question answering through test-time scaling. Its stated result is that spending more computation at answer time improves the selection of questions to answer. This follows the aspect of L2R that makes answer selection part of factual question answering. Cao’s system makes that selection using retrieved evidence, a prompted judgment, and a threshold. The later title identifies a different variable, computation at test time. The citation establishes a connection to L2R, while the title leaves open which selection procedure the work used and whether it retained an external store or either refusal check. Is That Your Final Answer? Test-Time Scaling Improves Selective Question Answering
The other later citing work, PretrainRL, frames factual hallucination as a problem to address at the beginning. Its title places the intervention earlier than L2R’s application-level decision about releasing an answer. The connection lies in the shared concern with factual errors and in the question of where to intervene. L2R studies what happens after a question arrives, with the contents of an external store already set for that interaction. PretrainRL’s stated focus is alleviating factual hallucination from the start. The citation links the work to Cao’s paper, but does not establish reuse of its enrichment procedure or refusal policy. PretrainRL
Cite
Cite as Lang Cao. 2024. Learn to Refuse: Making Large Language Models More Controllable and Reliable through Knowledge Scope Limitation and Refusal Mechanism. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{lang2024learn,
title = {{Learn to Refuse: Making Large Language Models More Controllable and Reliable through Knowledge Scope Limitation and Refusal Mechanism}},
author = {Lang Cao},
booktitle = {Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing},
year = {2024},
doi = {10.18653/v1/2024.emnlp-main.212},
url = {https://doi.org/10.18653/v1/2024.emnlp-main.212}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cao-2024-learn-refuse-making-large-language/