Hallucination Detection in LLMs: Fast and Memory-Efficient Fine-Tuned Models
Paper · 2024 · Gabriel Y. Arteaga, Thomas B. Schon and Nicolas Pielawski
Summary
When a question asks for information that a passage never gives, a fluent answer can make an unsupported inference look like a fact. A different error occurs when the question asks about the world and the system simply picks the wrong answer. The authors study both kinds of error. They ask whether the uncertainty that a system shows as it writes can help identify an unreliable answer, and whether that uncertainty can be estimated without keeping a separate copy of a large pretrained network for every prediction. The approach starts from a single pretrained system of the kind known as large language models.
The authors adapt BatchEnsemble so that several predictors share the same large weight matrices. Each predictor has a pair of small vectors for each shared matrix. Together those vectors rescale the matrix and give the predictor its own behavior. During training, the authors use Low-Rank Adaptation, or LoRA, to learn a compact update to the shared weights. They then fold that update into the shared matrices. At inference, the ensemble's members can process the same input together. A separate classifier uses measurements derived from their next-token probabilities to flag answers as hallucinated or non-hallucinated.
On the held-out classifier split for unanswerable SQuAD 2.0 questions, the paper reports 97.8% accuracy for detecting failures to abstain when the passage lacks the answer. All the methods tested on this task exceeded 92%. On the held-out classifier split for MMLU multiple-choice questions, the proposed approach reached 68% accuracy at identifying wrong choices. The LoRA Ensemble baseline did best on this factual detection task, and repeated sampling from a single predictor also scored slightly higher than the proposed approach. In the separate tests of answer quality, the main BatchEnsemble configuration led the baselines on the reported SQuAD and MMLU metrics.
The authors ran training and inference on a single A40 GPU. Their timing comparison shows an increasing inference advantage for BatchEnsemble over repeated sampling as the number of predictions grows. Their distribution-shift test offers a qualification. When the underlying predictors had been fine-tuned only on answerable reading questions and then encountered unanswerable questions, detection generally became harder. The paper demonstrates that a compact ensemble can produce a useful warning signal, with substantially different outcomes across the tasks used to test it.
Deep dive: Hallucination Detection in LLMs: Fast and Memory-Efficient Fine-Tuned Models
Learn how BatchEnsemble uses shared weights and token uncertainty to detect hallucinations, and how it performs on reading and factual questions. · about 33 minutes to read
The problem and its context
What makes an answer a hallucination?
A correct-looking response can fail in different ways depending on what the question asks the system to do. In a reading task, the passage sets the bounds of the answer. A system can draw on a related detail from that passage and still exceed those bounds. Suppose the relevant sentence identifies a place by its proximity to a riverbank, while the question asks about proximity to a street. Recognizing a common name in both pieces of text gives the system a candidate answer. The evidence required to justify that answer is the relationship to the street.
An open knowledge question gives the system a different obligation. Here the answer is judged against a fact, even if the question supplies no passage that establishes it. The paper follows an earlier survey in calling deviations from instructions or source material faithfulness hallucinations, and conflicts with verifiable facts factual hallucinations. The distinction matters because the evidence needed to identify the error changes with the task. The authors adopt the terminology from the survey of hallucinations in large language models.
In the paper's reading experiment, the instruction specifically requires a declaration of insufficient knowledge when the context cannot answer the question. That creates an observable test of faithfulness. The question can sound answerable and the passage can contain related information, yet the expected behavior is to abstain. In the factual experiment, the instruction instead requires a choice from a supplied set. The answer key gives the standard for assessing the selected option. In either setting a response can be easy to read, grammatically complete, and wrong by the applicable standard. Both settings belong to question answering.
The authors motivate detection through the consequences of accepting plausible text at face value, especially in areas such as healthcare. The research question is more specific than whether generated answers are safe to rely on. It concerns a signal that can be measured each time the system generates text. If that signal tracks the errors under study, it gives a separate decision procedure evidence about the answer. The strength of the evidence can then be evaluated using examples whose outcomes are known.
Checking an answer against evidence
One approach in earlier work was to compare a response with the material that ought to support it. The paper gives examples from summarization, where a source document provides a basis for assessing whether the generated account stays faithful. Natural language inference is used in some of that work to estimate entailment, the relation in which one statement follows from another. A low entailment score can call attention to a generated statement that seems plausible but lacks support in the relevant source. The paper cites On Faithfulness and Factuality in Abstractive Summarization.
The authors also describe comparisons against known evidence in open-domain question answering. In these approaches, an accurate source document can serve as the reference for checking a generated assertion or answer. Where such a reference is unavailable at the outset, earlier systems retrieve information to assemble evidence for verification. The cited work also includes a sequence of prompts for using language systems themselves to scrutinize factual claims. One example in the paper's discussion of tool-assisted factuality detection is FacTool.
An evidence check asks a question about the relationship between the answer and its source or reference. Uncertainty estimation asks a question about the process that produced the answer. For example, were the next-token probabilities sharply concentrated, or was there substantial competition among continuations? The authors are interested in the latter because the probabilities are available for both passage-based and factual questions. A common measurement can therefore be used across tasks even when their respective definitions of a correct response require different labels.
Estimating uncertainty with samples or ensembles
Earlier uncertainty methods described in the paper include repeated sampling from the same predictor. In stochastic decoding, the next token is selected with an element of randomness. Repeating the generation procedure gives a collection of possible outputs, and their variation can be used as an indication of uncertainty. The paper emphasizes a restriction on what is being sampled. Even though the answers can differ, all draws originate from one learned set of parameters. A systematic mistake shared by the draws may produce little observable variation.
A conventional deep ensemble gets diversity from multiple separately trained predictors. They can assign different probabilities to the same continuation because training has produced different parameters for each one. Averaging their predictions lets the uncertainty calculation reflect the ensemble's range of judgments. The authors describe earlier language research that used this approach in pretraining and in fine-tuning, while emphasizing how expensive it becomes when each member is large. Training and running several predictors, each with its own full set of weights, can make the method impractical on the hardware available to a researcher.
There was already a way to share most of the cost of representing a collection of predictors. BatchEnsemble uses a common weight matrix and learns compact modifications that distinguish its members. The paper cites research using it for more economical pretraining. Starting with an existing pretrained network still matters here because even an economical ensemble architecture leaves the work of pretraining to be done. The authors use pretrained weights as the starting point for fine-tuning.
The paper also discusses earlier LoRA Ensembles. LoRA is a way to learn a small, trainable update to a large weight matrix. In a LoRA Ensemble, each member has its own update factors, and the differences among those factors define the ensemble. The present paper assigns LoRA a shared role in adapting the starting weights. A distinct multiplicative adjustment identifies each member. This division of work is central to the method because it determines what can be merged at the end of training and what must be retained separately to produce diverse predictions.
The method, step by step
From a question to a warning signal
The method has two learned parts. The ensemble answers the question and provides information about the probabilities behind the answer. A classifier uses summaries of those probabilities to decide whether the answer is likely to count as a hallucination. The ensemble learns from examples of how to answer the task. The classifier learns from examples of how the resulting answers were labeled. A system can therefore learn to extract an answer from a passage and, in a separate training procedure, learn whether its uncertainty tends to indicate an unsupported response.
Imagine a question that can be answered using its passage. Each ensemble member sees the same input. They can give different probabilities to candidate tokens, the units in which the response is generated. If most of the probability in the combined prediction falls on a narrow set of options, the combined distribution has relatively low entropy. A more dispersed distribution has higher entropy. The authors use measurements at the beginning of the answer and measurements averaged over the generated response so that the classifier can learn from both the initial decision and the subsequent continuation.
A passage question without supporting evidence can generate a different pattern. Probability can be spread over an abstention and plausible-looking answers at the point where generation starts. Once a particular answer has begun, its later pieces may be easy to predict because they are conditioned on what has already been written. The classification procedure can use the initial uncertainty even when subsequent uncertainty is low. Later sections of the paper examine an instance of that pattern. The units of prediction are those produced by tokenization.
From pretrained weights to hallucination classification
The steps in order.
Sharing the weights while keeping distinct predictors
A large weight matrix contains coefficients used in a layer's computation. In a conventional ensemble, the corresponding matrix can be different throughout for every member. BatchEnsemble shares a matrix across the group and gives every member two trainable vectors. One vector has an entry for each row, and the other has an entry for each column. Taking their outer product produces a matrix of rescaling factors. Each entry in that matrix comes from multiplying its row factor by its column factor.
Vᵢ = rᵢ sᵢᵀ
Here i indexes an ensemble member. The vector rᵢ is a column vector with m entries, where m is the number of rows of the shared matrix. The vector sᵢ is a column vector with n entries, where n is the number of columns. The superscript ᵀ transposes sᵢ into a row. The juxtaposition of the column and row denotes their outer product, and Vᵢ is the resulting fast-weight matrix. The matrix is described as rank-one because it is constructed from a single outer product. The stored vectors determine all of its entries.
Wᵢ = U ⊙ Vᵢ
Wᵢ is the effective weight matrix for member i, U is the weight matrix shared by the ensemble, and Vᵢ is that member's fast-weight matrix. The symbol ⊙ denotes the Hadamard product, or multiplication of corresponding entries. An entry of Wᵢ is the entry at the same position in U scaled by the corresponding entry of Vᵢ. The shared matrix supplies the large set of learned coefficients, while the vectors can give different members different scalings of those coefficients.
The fast matrix is low rank, but that description applies to the factors used to rescale the shared weights. The effective matrix still incorporates the shared coefficients. The role of the vectors is easiest to see by considering a change to one of their entries. Changing a row factor affects the scaling of all coefficients in that row. Changing a column factor affects the scaling along the column. Members can learn different patterns of modulation using far fewer stored values than it takes to give each member an independently specified large matrix.
O(Mmn)
O denotes the order of growth of the storage requirement per layer. In this expression for a conventional ensemble, M is the number of members, and m and n are the row and column dimensions of the layer's weight matrix. The product mn is the size of one such matrix. Multiplying by M accounts for the separate matrices.
O(mn + M(m + n))
In the BatchEnsemble expression, O again denotes the order of growth of per-layer weight storage. The dimensions are m and n, and M is the ensemble size. The mn term accounts for the shared matrix. The sum m + n counts the entries in one member's two vectors, and multiplication by M accounts for the collections of vectors belonging to all members. This accounting concerns the representation of the layer's weights. Processing inputs through each member also involves computation and intermediate values.
Starting from pretrained weights
The authors initialize the shared part using the weights already learned during pretraining. They use an instruction-tuned Mistral checkpoint throughout the experiments, identified as Mistral-7B-Instruct-v0.2. The paper connects that starting point to Mistral 7B.
U = ωpretrained
U denotes a shared weight matrix at initialization, and ωpretrained denotes the corresponding pretrained weights. The equality specifies the starting value before the shared update is learned.
The initialization of the fast weights has a special consequence here because it acts by multiplication. A fast-weight entry close to zero greatly attenuates the corresponding pretrained coefficient. If much of the fast matrix starts near zero, loading the pretrained matrix into the shared part does little to preserve its effect. A mean centered around the multiplicative identity gives the pretrained coefficients a much better chance of remaining influential while leaving room for individual members to differ.
The authors investigate He and Xavier initialization. They retain the variance associated with the chosen scheme and shift the mean to 1 for the modified versions. The random variation gives each member a distinct starting point. The authors choose He initialization with mean 1 after examining the variety and coherence of the answers produced in their initialization comparison. The evidence behind that choice is discussed in the ablations section.
Adapting the shared part
Giving all members the same pretrained matrix preserves a common starting point. The task still requires learning changes to that matrix. For a passage question, for instance, the training target can teach the system to abstain when the passage lacks the answer. LoRA provides a compact way to learn these changes. It represents the update through the product of two smaller factors. During fine-tuning the original matrix is retained and the update is learned through its factors.
U = U₀ + BA
U is the adapted shared matrix, and U₀ is the original pretrained matrix. B has m rows and r columns, while A has r rows and n columns. The row and column dimensions m and n match U₀. The symbol r is the adapter rank setting, distinct from the vector rᵢ used for member i. In BA the two factors are multiplied as matrices and their product has the same shape as U₀. The plus sign indicates that the product contributes an additive update to the shared weights.
r ≪ min(m, n)
The rank setting r is chosen to be much smaller than the lesser of the matrix dimensions m and n. The symbol ≪ means “much smaller than,” and min selects the smaller of its arguments. A small inner dimension is what allows the update to be learned through a compact set of parameters. Though the resulting product has entries across the full shape of the shared matrix, the trainable factors constrain how those entries can vary together.
In the paper’s experimental setups, every module receives LoRA with rank r = 8 and scaling factor α = 32. The symbol α names the adapter scaling setting. The authors consider broad module coverage a way to encourage diversity in the ensemble. In the main architecture, the learned additive update is shared, and each member's fast weights multiply the adapted matrix entry by entry. The ensemble therefore has a common task adaptation and multiple ways of applying the resulting weights.
After training, the authors merge the learned LoRA update into the shared weights for BatchEnsemble. The factors were useful while learning the update, and their product is already represented in the merged matrix at inference. The fast vectors remain separate because they determine which effective weights are used for each member. BatchEnsemble can then evaluate members together in a forward pass, with each using its particular scaling of the common weights.
The authors also evaluate a variant that introduces noise through anchored ensembling. The motivation is to increase meaningful differences among members during training. They describe instability when applying the approach at larger scale and include a normalization term to help stabilize it. The paper identifies this variant as BatchEnsemble with noise injection, or BatchEnsemble+NI. The reported architecture equations describe how the shared and member-specific weights fit together. The noise variant is a change to how the ensemble is trained.
Measuring uncertainty from next-token probabilities
The uncertainty calculation starts at a particular position in the response. At that point the input and preceding tokens supply the context for predicting the next token. The predictor gives probabilities to candidate continuations. Entropy summarizes how concentrated those probabilities are. A prediction concentrated on a single candidate contributes little entropy, while probability distributed over competing candidates makes the prediction more uncertain. This measurement uses the distribution over alternatives at a position, including candidates that never appear in the answer.
H[P(𝐱ₜ | 𝐱<ₜ; 𝒟)] = −∑ₓₜ P(xₜ | 𝐱<ₜ; 𝒟) log P(xₜ | 𝐱<ₜ; 𝒟)
H denotes entropy, and P is a probability distribution. The symbol t indexes the current token position, 𝐱ₜ denotes the token being predicted, and 𝐱<ₜ denotes the sequence preceding that position. A lower-case xₜ in the sum denotes a candidate value for the token. The symbol 𝒟 denotes the training-data distribution. The vertical bar indicates conditioning on the preceding tokens, and the semicolon introduces the training-data dependence. The sum ∑ runs over possible next tokens. Each probability is multiplied by its logarithm, written log, and the minus sign gives the entropy its usual non-negative sign. The paper expresses predictive entropy in bits in its per-token example.
The predictive distribution in that expression represents uncertainty after accounting for the training data. The authors approximate it by predicting with each ensemble member and averaging the probabilities. This puts the averaging before the computation of predictive entropy. The order matters because members can each have sharply concentrated predictions while placing their probability on different candidates. Their mean distribution can therefore be dispersed even when the individual distributions are concentrated.
P(𝐱ₜ | 𝐱<ₜ; 𝒟) ≈ (1/M) ∑ₘ₌₁ᴹ P(𝐱ₜ | 𝐱<ₜ; θₘ)
On the left, P is the predictive distribution for the token 𝐱ₜ at position t given the preceding sequence 𝐱<ₜ and the training-data distribution 𝒟. The approximation sign ≈ indicates that the ensemble mean is used in place of that distribution. M is the number of members, m is the member index in this equation, and θₘ is the set of effective parameters of member m. The sum runs from the first member through M, and the factor 1/M gives each member equal weight. This use of m as a member index is local to the probability equation. In the weight-storage expressions, m denoted a matrix dimension.
M → ∞
M is the size of the collection of predictors and ∞ denotes infinity. The arrow describes the limit invoked for the averaging approximation as the number of draws grows without bound. The paper cites this as a property of the underlying uncertainty estimate. In the experiment, the authors generally use an ensemble size of 4, with members that share weights. Their result is an empirical estimate from that ensemble.
Distinguishing uncertainty within and across members
The authors discuss uncertainty from two sources. Aleatoric uncertainty describes variability in the data itself. Even given a particular set of learned parameters, the input can leave multiple continuations plausible. Epistemic uncertainty describes uncertainty about the parameters and, in the authors' interpretation, a lack of knowledge that more data could reduce. The distinction motivates looking at how dispersed individual predictions are and how much averaging across predictors increases dispersion.
I[𝐱ₜ, θ | 𝐱<ₜ, 𝒟] = H[P(𝐱ₜ | 𝐱<ₜ; 𝒟)] − Eₚ₍θ | 𝒟₎[H[P(𝐱ₜ | 𝐱<ₜ; θ)]]
I denotes mutual information between the next token 𝐱ₜ and the parameters θ, given the preceding sequence 𝐱<ₜ and the training-data distribution 𝒟. Here t is still the token position. The first H term is the entropy of the predictive distribution P that averages over parameter uncertainty. E denotes expectation, and p(θ | 𝒟) is the distribution over parameters given the training data. Inside the expectation, H is calculated for the predictive probability P at fixed parameters θ. The paper writes the same training-data dependence in both entropy terms in its displayed decomposition. The explicit θ inside the expectation makes clear that this term averages entropies that can differ across parameter choices. The subtraction yields the epistemic component, and the expected entropy is the aleatoric component.
A practical way to understand the calculation is to imagine members that are individually sure but prefer different next tokens. The combined distribution has high entropy because each member contributes probability in a different place. The average of the individual entropies can still be low. In that case the difference is large, reflecting disagreement among members. If the members instead share a broad distribution, the expected individual entropy is already high. Pooling those predictions adds little uncertainty attributable to disagreement.
The classifications use predictive and aleatoric uncertainty even though the method can calculate their difference. This choice matters for interpreting the experiments. Predictive entropy can carry a signal from disagreement while the classifier uses no separate epistemic feature. Moreover, when all measurements are taken at the same positions and averaged in the same way, the difference is already determined by the two inputs used to construct it. The paper tests what happens when it includes epistemic uncertainty explicitly and reports its feature choice in the detailed results.
Training a separate decision about the answer
The detector receives the predictive entropy and aleatoric uncertainty at the first generated token. It also receives the two corresponding averages over the response. Thus the inputs capture the first decision and the typical uncertainty across subsequent decisions. For a short answer such as a choice letter, the positions available to average are limited. A passage answer can contain a sequence of tokens whose uncertainty varies as the answer takes shape.
The training labels depend on the task. An unanswerable reading question calls for the prescribed expression of insufficient knowledge. For a knowledge question, correctness is judged against the answer key. The authors use those rules to assign a binary label to each generated prediction. The resulting classification task is to distinguish the answers assigned the hallucination label from the answers assigned the other label using the uncertainty features. The label comes from inspection against the task rule during dataset construction. At use time, the classifier makes its decision from the features.
The authors try several standard classifiers. Logistic regression learns a rule for combining the input features into a classification score. A decision tree can split examples according to feature thresholds. A random forest can combine the decisions of multiple trees. A support vector classifier learns a boundary between the labels, and k-nearest neighbors uses labels from examples with similar feature values. The implementations use scikit-learn defaults throughout. These experiments compare several ways to turn a small feature vector into a decision without searching over classifier hyper-parameters. The paper also makes the code for the ensemble available.
Experiments and results
What was held constant
The experiments use Mistral-7B-Instruct-v0.2 as the pretrained basis for the proposed method and the baselines. The fine-tuned configurations use LoRA across all modules with rank 8 and scaling factor 32. Unless an experiment varies ensemble size, the comparison uses 4 predictors or samples. For BatchEnsemble this means 4 sets of member-specific fast weights, for the LoRA Ensemble it means 4 sets of adapters, and for the sampling baseline it means 4 stochastic samples. Matching these counts compares ways of obtaining a collection of predictions under a common nominal ensemble size.
The sampling baseline generates repeated predictions using temperature 0.5, top-p 0.99, and top-k 5. Temperature controls the concentration of the sampling probabilities. Top-p restricts attention using cumulative probability, while top-k caps the candidate set using probability rank. All three settings concern how alternative outputs are drawn. The LoRA Ensemble baseline instead learns distinct adapters and uses regularization on the B factors. It therefore produces variation through parameter differences, as BatchEnsemble does, but stores and learns those differences in a different form.
BatchEnsemble with noise injection is a variant of the proposed configuration. A single fine-tuned predictor is also used to judge whether ensembling and improved uncertainty features come with a cost in ordinary predictive performance. In the detection experiments, the comparable quantity is the accuracy of the separate classifier trained using a method's uncertainty estimates. In the predictive experiments, the comparable quantity is the quality of the answers themselves. A system can move up in one comparison and down in the other, because a useful warning signal and a correct answer are different outcomes.
Reading questions and the decision to abstain
For faithfulness detection, the authors train using a mixture drawn from the SQuAD v2 training set. They divide it into answerable and unanswerable questions and supply an abstention target for the unanswerable cases. They shuffle the subsets with seed 50, choose 28,000 answerable questions and 14,000 unanswerable questions, and combine and reshuffle them. The resulting data supply 40,000 training examples and 2,000 validation examples for fine-tuning. In the main description the unanswerable portion is characterized as 1/3 of the training mixture.
The instruction for this task asks for a concise answer based on the passage and allows the prescribed abstention when the answer is missing or the system is unsure. Exposing the system to both kinds of question gives it examples of responding with an answer when the context supports one and declining when the context falls short. The evaluation for faithfulness detection focuses on the latter type. The researchers filter the SQuAD v2 validation set to its unanswerable cases, shuffle them with seed 42, and take 5,000 of them for generating predictions.
Every question in this evaluation pool lacks an answer in its passage. The distinction between the classifier's labels is what the system did next. A prescribed abstention receives the non-hallucination label, and another response receives the hallucination label. This makes it possible to test the uncertainty signal on a set of all-unanswerable questions. A detector that merely determined whether the question had an answer would assign the same outcome across that set. The trained detector's target is the behavior of the answer generator on each particular input.
The paper reports 97.8% top-1 classifier accuracy for its approach on this faithfulness detection task. The measurement concerns the held-out classifier examples drawn from those generated predictions. Top-1 accuracy counts how often the classifier's chosen label matches the assigned label. The results also say that all the methods, including the baselines, exceeded 92% on the task. That statement supplies a bound for their performance. It does not specify a separate exact score for each baseline.
Knowledge questions and the decision to choose
For factual detection, the paper uses MMLU, a collection of multiple-choice questions across different knowledge areas. The authors describe it as a benchmark used for the pretrained Mistral system without being used as training data for that system. In these experiments they do fine-tune on MMLU using the dataset's auxiliary training material. The relevant distinction is between the use of the benchmark by the starting checkpoint and the downstream fine-tuning performed as part of the study.
The authors select the all category and the auxiliary_train split, shuffle with seed 42, and take the first 42,000 examples. They use 40,000 for fine-tuning and 2,000 for validation. For generating answers to evaluate, they shuffle the MMLU test split with seed 42 and choose the first 5,000 examples. The prompt presents the question with options labeled A, B, C, and D and asks the system to return the letter associated with its answer. The key determines the label for each response. A wrong choice counts as a factual hallucination under this definition.
The proposed approach achieves 68% top-1 classifier accuracy on the held-out factual detection split. The LoRA Ensemble yields the highest classifier accuracy on this task, and the sampling baseline also edges ahead of the main BatchEnsemble configuration. The result establishes the ordering described by the authors without giving a numeric gap for either comparison. The classifier identifies mistakes more often in the faithfulness setup than in the factual setup. The two protocols differ in what the predictor sees, what it must produce, and which event counts as a hallucination.
BatchEnsemble top-1 detector accuracy on SQuAD 2.0 and MMLU
The classifier identifies failures to abstain more accurately than it identifies wrong multiple-choice answers.
The numbers
| System or setting | accuracy % |
|---|---|
| SQuAD 2.0 faithfulness detection (this paper) | 97.8 |
| MMLU factual detection | 68 |
What the classifier split measures
For each detection task, the authors run 5000 data points through the predictors to obtain answers and uncertainty features. They then apply the labeling rule and randomly divide the resulting classifier dataset using seed 42. The classifier trains on 80% of those records and is tested on the remaining 20%. The detection scores describe performance on this last partition. For example, in the factual case the candidate questions come from the MMLU test split, and records made from those questions are subsequently used for both stages of classifier evaluation.
This creates two meanings of training and testing. The underlying predictors are fitted to perform a question-answering task. The classifiers are fitted later to detect mistakes using the uncertainty associated with the predictors' answers. A published benchmark split serves to hold out questions from fine-tuning the answer generator, while the additional split serves to hold out labeled predictions from fitting the detector. Keeping the distinction in view prevents a misreading of the results as measuring a detector trained only on the official training questions of each benchmark.
The headline detection comparison reports the accuracy obtained from the best-performing classifier on each source of uncertainty estimates. The appendix describes the broader comparison across classifier types and the use of default settings. As a result, the ranking concerns the effectiveness of the uncertainty features when paired with an effective classifier in the experiment. It does not identify one classifier architecture as universally best. Nor is detector accuracy a count of the number of times the underlying system answered correctly.
Distribution shift and ordinary answer quality
The distribution-shift experiment asks what happens when the answer generator learns from answerable questions and then encounters unanswerable ones. The appendix specifies training on the original SQuAD training data, shuffled with seed 50, with 40,000 examples for training and 2,000 for validation. The evaluation shuffles the unanswerable questions in the SQuAD v2 validation split using seed 42 and selects 5,000 of them to generate answers for evaluation. The detector uses the same rule for labeling abstentions as in the faithfulness experiment. The principal change is the experience of the answer generator before testing.
The paper describes performance as generally worse under this shift. Answerability is the dimension of interest. A passage and question still arrive together, but the answer generator must handle the absence of an answer after fine-tuning only on cases where an answer exists. The classifier still receives labeled examples from the resulting distribution under the described 80% and 20% protocol. The experiment thus applies the shift to the generator's task while allowing a detector to learn from examples of the generator's behavior after the shift.
The predictive performance experiments evaluate a different question. For MMLU, the authors use the systems fine-tuned for the factual hallucination experiment and score answer accuracy on 5,000 questions selected from the test split using seed 42. For SQuAD, they use the systems trained for the distribution-shift experiment and evaluate ordinary reading accuracy on 5,000 examples from the SQuAD validation set, selected using seed 42. The SQuAD metrics are exact match and F1. Exact match checks agreement with a reference answer, and F1 reflects the overlap between the predicted and reference answers.
The main BatchEnsemble configuration leads the baselines across the reported predictive metrics. Although the LoRA Ensemble’s uncertainty features yield the strongest factual detector, its predictive performance falls below that of the single fine-tuned predictor. This reversal gives concrete evidence that the two performance measures can favor different systems. A feature can discriminate between the correct and incorrect answers a system happens to produce even when that system produces fewer correct answers overall.
Time and parameter storage
The hardware result is a practical part of the comparison. The experiments run on a single A40 GPU, and the authors report that the same class of hardware accommodates training as well as inference. The inference figure compares the average time to produce a token as the number of members or samples increases. BatchEnsemble processes its member predictions together in one forward pass, and the figure caption describes a growing speed advantage over repeated sampling as ensemble size increases.
The parameter figure compares BatchEnsemble with a conventional ensemble. In the conventional case, each extra member brings another set of large weight matrices. In BatchEnsemble, each extra member requires vectors associated with the shared matrices. The paper describes the additional parameter growth of BatchEnsemble as negligible in that comparison, while the conventional ensemble grows linearly with ensemble size. The graphics support these trends. The exact detector accuracies in the chart above come from the paper's reported results, and the time and parameter comparisons are described in the units and terms the authors give.
What the ablations show
Why the starting values of the fast weights matter
The initialization comparison tests a direct consequence of the architecture. When a parameter enters a calculation as a multiplier, a value near zero suppresses the quantity it scales. The authors compare ordinary He and Xavier initializations with versions whose mean is shifted to 1. They show the resulting responses for an example from SQuAD. With the ordinary initializations, the fast weights can suppress the pretrained weights strongly enough that the response is nonsensical. The modified initializations preserve more of the behavior needed to produce coherent text.
Among the shifted options, the authors favor He initialization. They associate its higher variance with more varied answers in the illustrated example and regard that variation as desirable for an ensemble. This comparison provides a reason to choose a starting point that preserves pretrained knowledge while allowing divergence among members. Its evidence is qualitative. The example shows a difference in generated answers, and the authors use that observation to motivate their configuration. It does not quantify the change in held-out detection accuracy attributable to the initialization alone.
When differences among members help
The noise-injection variant examines a related question after initialization. If ensemble disagreement supplies information about uncertainty, encouraging more diversity during training might improve detection. The paper tests a normalized anchored-ensembling variant alongside ordinary BatchEnsemble. The authors report practical difficulties with applying regularization effectively and emphasize the predictive results of the main configuration. The comparison therefore gives a reason to assess a diversity mechanism by the answers it produces and by the usefulness of its uncertainty signal.
The LoRA Ensemble provides a second perspective on that tradeoff. It leads factual detection while falling behind the single fine-tuned predictor on answer quality. The authors suggest that strong weight decay on its B factors may encourage members to differ enough to provide a more expressive factual uncertainty signal. They also suggest that applying this regularization across all modules may help explain the weaker predictive performance, given that the earlier regularization strategy was used when adapting query and key modules. These are explanations for the observed ranking. The comparison changes both the form of member-specific parameters and how they are regularized, so it cannot assign the ranking to one of those choices in isolation.
On the same factual task, the sampling baseline scores slightly better than the proposed method. The authors point to the short output as one possible reason. In a multiple-choice setting, much of the decision is carried by the token expressing the chosen option. Sampling a single predictor can be informative about that decision when several option letters are plausible. The authors also allow for variation introduced by training. The experiment reports which systems performed better on these questions, while the proposed reasons remain open.
Which uncertainty measurements enter the detector
The paper compares feature sets by trying epistemic uncertainty in addition to the selected inputs. Including it reduces classifier performance. The authors suggest correlation among features as an explanation and keep first-token and average measurements of predictive and aleatoric uncertainty. The decomposition gives a reason such correlation can arise. At corresponding token positions, epistemic uncertainty is obtained by subtracting one of the retained quantities from the other. Providing the difference explicitly changes the representation available to the classifier, including the directions a tree can easily split on or the way distance can behave for a neighbor-based classifier.
That result concerns the incremental value of the explicit feature under the paper's settings. Predictive entropy in the retained feature vector still includes effects of differences among the members' distributions. The result also leaves open whether a different ensemble would produce a more informative estimate of epistemic uncertainty. The authors connect this issue to their broader hypothesis about which sources of uncertainty might matter for each type of hallucination.
Why the beginning of the answer is informative
The token-level analysis compares an answer supported by its passage with an unsupported answer. In the unsupported case, the passage places Park Skaryszewski near the right bank of the Vistula, while the question asks about a park near Vistula street. The generated answer supplies the name of the park, effectively treating the two geographical references as interchangeable. The passage supports a relationship to the riverbank. The answer would require evidence for a relationship to the street.
The paper reports greater predictive entropy for the unsupported response and a sharp decrease after its first token. Once a continuation has started, the words already emitted become part of the context for predicting subsequent tokens. The start of a name can make the rest of that name much easier to generate. The authors relate this behavior to earlier work on how hallucinations can snowball. The example shows a possible route by which a hesitant beginning can lead to a confident continuation. Its scope is the illustrated output, rather than a measurement of how frequently that behavior occurs.
The training comparison on answerability gives a complementary observation. When the authors initially fine-tuned only on answerable examples, they report hallucination across the test points. They then exposed the generators to unanswerable examples with an abstention target. This change gives the system an opportunity to learn the response that the detector labels as faithful on an unanswerable question. The poor distribution-shift outcome makes the dependence on generator training especially relevant. A detector's job changes when the system producing its inputs seldom exhibits the correct behavior for the cases it faces.
Limitations
Limits the authors identify
The authors present the detector as an uncertainty-based method and compare it primarily with other sources of uncertainty estimates. They explicitly note the lack of a standardized benchmark for comparing this approach with other families of hallucination detection. Their experiments do not establish whether entropy features outperform comparisons with a source passage, retrieved evidence, or a dedicated verification pipeline. Those procedures can work with different inputs and return judgments at different levels of detail, and the paper's benchmark was built for classifying whole answers.
The experiments use a single pretrained starting point. The paper hypothesizes that the architecture will transfer to other sizes and architectures, and it identifies that question as future work. The hardware result is anchored to the reported setup. It establishes that the authors could train and run their ensemble on one A40 GPU. Whether the same approach fits a different hardware budget depends on the backbone and conditions of use, which the study does not vary.
The uncertainty metrics are another stated restriction. The authors use predictive entropy and its decomposition, and mention alternatives such as EigenScore and semantic entropy. Semantic entropy is relevant to their discussion because text can express the same answer in different ways. A next-token distribution captures competition among surface continuations, including continuations that might eventually convey the same meaning. The authors propose examining other measurements, leaving their accuracy and inference costs in the BatchEnsemble architecture for future evaluation.
The paper also proposes a possible relationship between aleatoric uncertainty and failures of faithfulness, and between epistemic uncertainty and factual errors. The authors say that their methods do not produce sufficiently diverse epistemic estimates to confirm that relationship. The experimental rankings involve entire feature sets and complete detection pipelines. For instance, better factual detection by the LoRA Ensemble does not reveal from its accuracy alone whether knowledge-related disagreement was the decisive component of its uncertainty features. The authors propose exploring more effective ways to introduce diversity while preserving answer quality.
Limits that follow from the experimental setup
The faithfulness evaluation uses unanswerable questions and rewards the stipulated abstention. This produces a clear label, while narrowing the meaning of a faithful answer in the experiment. A system can misread an answerable passage, extract a related but incorrect phrase, or add an unsupported detail to a partially correct response. The reported faithfulness classifier accuracy does not tell readers how successfully the detector would identify those errors. The experiment's question is whether the uncertainty features identify failures to abstain under the task instruction.
The factual experiment treats a wrong option as a factual hallucination. This provides dependable scoring against an answer key but groups together the different reasons a system might choose that option. The detection result gives no direct account of whether an incorrect choice arose from missing knowledge, confusion between alternatives, or failure to follow the question. Conversely, selecting the right letter gives a correct prediction for the task regardless of how the system arrived at it. The reported score applies to judging those choices. Generalizing it to generated explanations containing multiple claims would require another evaluation.
Accuracy adds another constraint on interpretation. It counts agreement with the assigned labels, and the relative frequency of those labels affects its meaning. In the SQuAD 2.0 evaluation every question is unanswerable, but how many answers receive the hallucination label depends on how frequently the particular generator fails to abstain. On MMLU the frequency of errors likewise depends on the generator's predictive performance. The headline accuracy alone does not reveal the rate at which the detector misses hallucinations or unnecessarily flags correct responses. These distinctions matter if the intended use is to intervene on flagged outputs.
The paper's distribution-shift comparison should be read in light of both training stages. The generator faces unanswerable queries after fitting to answerable ones. The detector, under the stated protocol, gets a training partition of labeled outputs from unanswerable queries. The evaluation therefore leaves open how well a detector trained on one distribution would transfer unchanged to a new one. It also studies a specific shift in answerability, with the same general reading format. The protocol supplies no direct evidence about a new subject area, a different prompt style, or a change from passage reading to long factual generation.
The descriptions of generator training for that comparison differ within the paper. The experiment design refers to training on answerable SQuAD 2.0 questions, whereas the appendix specifies the original SQuAD training set. Both descriptions have the generator trained on answerable examples and evaluated on unanswerable ones. The exact training corpus matters for reproducing the comparison and for deciding whether the change is limited to answerability or also includes a change in dataset provenance. The split details discussed above follow the appendix.
The aggregate rankings also need to be distinguished from the examples that motivate them. The Vistula case illustrates a sensible connection between unsupported answering and early-token uncertainty. It cannot establish that a low-confidence beginning is necessary for a hallucination, or that the same pattern characterizes factual mistakes on MMLU. Likewise, the initialization comparison shows examples of coherent and incoherent generations, but those examples cannot quantify how much a shift in the fast-weight mean contributes to the final classifier accuracy.
Finally, classification accuracy measures how well the learned decision agrees with the binary labels in this setup. It does not directly establish that a particular entropy value corresponds to a particular probability of error. The method uses token distributions as features, and those features can be useful even if the resulting scores are imperfect estimates of risk. The paper's interpretation of the results as evidence that uncertainty encodes information about generated errors fits that narrower observation. A claim about calibrated confidence or dependable use in a safety-critical setting would need evidence about behavior beyond the reported benchmark splits.
What came after
The paper's proposed follow-up concerns two questions that its experiments leave open. One is whether more diverse ensembles can improve the measurement of epistemic uncertainty while maintaining answer quality. The other is whether entropy-based detection, semantic uncertainty, and evidence-based verification can be compared on tasks with common definitions of the errors they are meant to catch. There are no documented follow-up studies to report here. Both questions remain proposals from the authors.
Cite
Cite as Gabriel Y. Arteaga, Thomas B. Schon and Nicolas Pielawski. 2024. Hallucination Detection in LLMs: Fast and Memory-Efficient Fine-Tuned Models. arXiv:2409.02976.
@misc{arteaga2024hallucination,
title = {{Hallucination Detection in LLMs: Fast and Memory-Efficient Fine-Tuned Models}},
author = {Gabriel Y. Arteaga, Thomas B. Schon and Nicolas Pielawski},
year = {2024},
doi = {10.48550/arxiv.2409.02976},
eprint = {2409.02976},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2409.02976}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/arteaga-2024-hallucination-detection-llms-fast-memory/
References
- Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung\bibnamedelima Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew\bibnamedelima M. Dai, Thanumalayan\bibnamedelima Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel. 2023. PaLM: Scaling Language Modeling with Pathways. Journal of Machine Learning Research. http://jmlr.org/papers/v24/22-1144.html our card
- Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, Ting Liu. 2023. A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questions. doi:10.48550/arXiv.2311.05232. our card
- Wojciech Kryscinski, Bryan McCann, Caiming Xiong, Richard Socher. 2020. Evaluating the Factual Consistency of Abstractive Text Summarization. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP). doi:10.18653/v1/2020.emnlp-main.750. our card
- Or Honovich, Leshem Choshen, Roee Aharoni, Ella Neeman, Idan Szpektor, Omri Abend. 2021. Q$^\textrm2$: Evaluating Factual Consistency in Knowledge-Grounded Dialogues via Question Generation and Question Answering. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. doi:10.18653/v1/2021.emnlp-main.619. OpenAlex ↗ · Scholar ↗
- Philippe Laban, Tobias Schnabel, Paul\bibnamedelima N. Bennett, Marti\bibnamedelima A. Hearst. 2022. SummaC: Re-Visiting NLI-based Models for Inconsistency Detection in Summarization. Transactions of the Association for Computational Linguistics. doi:10.1162/tacl_a_00453. OpenAlex ↗ · Scholar ↗
- Gabriel\bibnamedelima Yanci Arteaga. 2024. Hallucination Detection in LLMs: Using Bayesian Neural Network Ensembling. OpenAlex ↗ · Scholar ↗
- Andrey Malinin, Mark Gales. 2020. Uncertainty Estimation in Autoregressive Structured Prediction. doi:10.48550/ARXIV.2002.07650. OpenAlex ↗ · Scholar ↗
- Yijun Xiao, William\bibnamedelima Yang Wang. 2021. On Hallucination and Predictive Uncertainty in Conditional Language Generation. doi:10.48550/ARXIV.2103.15025. our card
- Adam Gleave, Geoffrey Irving. 2022. Uncertainty Estimation for Language Reward Models. doi:10.48550/ARXIV.2203.07472. OpenAlex ↗ · Scholar ↗
- Meiqi Sun, Wilson Yan, Pieter Abbeel, Igor Mordatch. 2022. Quantifying Uncertainty in Foundation Models via Ensembles. NeurIPS 2022 Workshop on Robustness in Sequence Modeling. https://openreview.net/forum?id=LpBlkATV24M OpenAlex ↗ · Scholar ↗
- Bairu Hou, Yujian Liu, Kaizhi Qian, Jacob Andreas, Shiyu Chang, Yang Zhang. 2023. Decomposing Uncertainty for Large Language Models through Input Clarification Ensembling. doi:10.48550/arXiv.2311.08718. OpenAlex ↗ · Scholar ↗
- Yuheng Huang, Jiayang Song, Zhijie Wang, Shengming Zhao, Huaming Chen, Felix Juefei-Xu, Lei Ma. 2023. Look Before You Leap: An Exploratory Study of Uncertainty Measurement for Large Language Models. doi:10.48550/ARXIV.2307.10236. OpenAlex ↗ · Scholar ↗
- Lorenz Kuhn, Yarin Gal, Sebastian Farquhar. 2023. Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generation. doi:10.48550/ARXIV.2302.09664. our card
- Zhen Lin, Shubhendu Trivedi, Jimeng Sun. 2023. Generating with Confidence: Uncertainty Quantification for Black-box Large Language Models. doi:10.48550/arXiv.2305.19187. OpenAlex ↗ · Scholar ↗
- Chao Chen, Kai Liu, Ze Chen, Yi Gu, Yue Wu, Mingyuan Tao, Zhihang Fu, Jieping Ye. 2024. INSIDE: LLMs' Internal States Retain the Power of Hallucination Detection. doi:10.48550/ARXIV.2402.03744. our card
- Edward\bibnamedelima J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685. our card
- Joshua Maynez, Shashi Narayan, Bernd Bohnet, Ryan McDonald. 2020. On Faithfulness and Factuality in Abstractive Summarization. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. doi:10.18653/v1/2020.acl-main.173. our card
- Meng Cao, Yue Dong, Jackie Cheung. 2022. Hallucinated but Factual! Inspecting the Factuality of Hallucinations in Abstractive Summarization. Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). doi:10.18653/v1/2022.acl-long.236. our card
- Siqing Huo, Negar Arabzadeh, Charles\bibnamedelimb L.\bibnamedelimi A. Clarke. 2023. Retrieving Supporting Evidence for LLMs Generated Answers. doi:10.48550/arXiv.2306.13781. OpenAlex ↗ · Scholar ↗
- Barrett Lattimer, Patrick CHen, Xinyuan Zhang, Yi Yang. 2023. Fast and Accurate Factual Inconsistency Detection Over Long Documents. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. doi:10.18653/v1/2023.emnlp-main.105. OpenAlex ↗ · Scholar ↗
- Sewon Min, Kalpesh Krishna, Xinxi Lyu, Mike Lewis, Wen-tau Yih, Pang Koh, Mohit Iyyer, Luke Zettlemoyer, Hannaneh Hajishirzi. 2023. FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generation. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. doi:10.18653/v1/2023.emnlp-main.741. our card
- Jifan Chen, Grace Kim, Aniruddh Sriram, Greg Durrett, Eunsol Choi. 2023. Complex Claim Verification with Evidence Retrieved in the Wild. doi:10.48550/arXiv.2305.11859. our card
- I.-Chun Chern, Steffi Chern, Shiqi Chen, Weizhe Yuan, Kehua Feng, Chunting Zhou, Junxian He, Graham Neubig, Pengfei Liu. 2023. FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarios. doi:10.48550/arXiv.2307.13528. our card
- Roi Cohen, May Hamri, Mor Geva, Amir Globerson. 2023. LM vs LM: Detecting Factual Errors via Cross Examination. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. doi:10.18653/v1/2023.emnlp-main.778. our card
- Balaji Lakshminarayanan, Alexander Pritzel, Charles Blundell. 2017. Simple and Scalable Predictive Uncertainty Estimation using Deep Ensembles. Advances in Neural Information Processing Systems. https://proceedings.neurips.cc/paper_files/paper/2017/hash/9ef2ed4b7fd2c810847ffa5fa85bce38-Abstract.html our card
- Albert\bibnamedelima Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra\bibnamedelima Singh Chaplot, Diego\bibnamedelimb de\bibnamedelima las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio\bibnamedelima Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven\bibnamedelima Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, William\bibnamedelima El Sayed. 2023. Mistral 7B. doi:10.48550/arXiv.2310.06825. OpenAlex ↗ · Scholar ↗
- Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, Anirudh Goyal, Anthony Hartshorn, Aobo Yang, Archi Mitra, Archie Sravankumar, Artem Korenev, Arthur Hinsvark, Arun Rao, Aston Zhang, Aurelien Rodriguez, Austen Gregerson, Ava Spataru, Baptiste Roziere, Bethany Biron, Binh Tang, Bobbie Chern, Charlotte Caucheteux, Chaya Nayak, Chloe Bi, Chris Marra, Chris McConnell, Christian Keller, Christophe Touret, Chunyang Wu, Corinne Wong, Cristian\bibnamedelima Canton Ferrer, Cyrus Nikolaidis, Damien Allonsius, Daniel Song, Danielle Pintz, Danny Livshits, David Esiobu, Dhruv Choudhary, Dhruv Mahajan, Diego Garcia-Olano, Diego Perino, Dieuwke Hupkes, Egor Lakomkin, Ehab AlBadawy, Elina Lobanova, Emily Dinan, Eric\bibnamedelima Michael Smith, Filip Radenovic, Frank Zhang, Gabriel Synnaeve, Gabrielle Lee, Georgia\bibnamedelima Lewis Anderson, Graeme Nail, Gregoire Mialon, Guan Pang, Guillem Cucurell, Hailey Nguyen, Hannah Korevaar, Hu Xu, Hugo Touvron, Iliyan Zarov, Imanol\bibnamedelima Arrieta Ibarra, Isabel Kloumann, Ishan Misra, Ivan Evtimov, Jade Copet, Jaewon Lee, Jan Geffert, Jana Vranes, Jason Park, Jay Mahadeokar, Jeet Shah, Jelmer Linde, Jennifer Billock, Jenny Hong, Jenya Lee, Jeremy Fu, Jianfeng Chi, Jianyu Huang, Jiawen Liu, Jie Wang, Jiecao Yu, Joanna Bitton, Joe Spisak, Jongsoo Park, Joseph Rocca, Joshua Johnstun, Joshua Saxe, Junteng Jia, Kalyan\bibnamedelima Vasuden Alwala, Kartikeya Upasani, Kate Plawiak, Ke Li, Kenneth Heafield, Kevin Stone, Khalid El-Arini, Krithika Iyer, Kshitiz Malik, Kuenley Chiu, Kunal Bhalla, Lauren Rantala-Yeary, Laurens Maaten, Lawrence Chen, Liang Tan, Liz Jenkins, Louis Martin, Lovish Madaan, Lubo Malo, Lukas Blecher, Lukas Landzaat, Luke Oliveira, Madeline Muzzi, Mahesh Pasupuleti, Mannat Singh, Manohar Paluri, Marcin Kardas, Mathew Oldham, Mathieu Rita, Maya Pavlova, Melanie Kambadur, Mike Lewis, Min Si, Mitesh\bibnamedelima Kumar Singh, Mona Hassan, Naman Goyal, Narjes Torabi, Nikolay Bashlykov, Nikolay Bogoychev, Niladri Chatterji, Olivier Duchenne, Onur Çelebi, Patrick Alrassy, Pengchuan Zhang, Pengwei Li, Petar Vasic, Peter Weng, Prajjwal Bhargava, Pratik Dubal, Praveen Krishnan, Punit\bibnamedelima Singh Koura, Puxin Xu, Qing He, Qingxiao Dong, Ragavan Srinivasan, Raj Ganapathy, Ramon Calderer, Ricardo\bibnamedelima Silveira Cabral, Robert Stojnic, Roberta Raileanu, Rohit Girdhar, Rohit Patel, Romain Sauvestre, Ronnie Polidoro, Roshan Sumbaly, Ross Taylor, Ruan Silva, Rui Hou, Rui Wang, Saghar Hosseini, Sahana Chennabasappa, Sanjay Singh, Sean Bell, Seohyun\bibnamedelima Sonia Kim, Sergey Edunov, Shaoliang Nie, Sharan Narang, Sharath Raparthy, Sheng Shen, Shengye Wan, Shruti Bhosale, Shun Zhang, Simon Vandenhende, Soumya Batra, Spencer Whitman, Sten Sootla, Stephane Collot, Suchin Gururangan, Sydney Borodinsky, Tamar Herman, Tara Fowler, Tarek Sheasha, Thomas Georgiou, Thomas Scialom, Tobias Speckbacher, Todor Mihaylov, Tong Xiao, Ujjwal Karn, Vedanuj Goswami, Vibhor Gupta, Vignesh Ramanathan, Viktor Kerkez, Vincent Gonguet, Virginie Do, Vish Vogeti, Vladan Petrovic, Weiwei Chu, Wenhan Xiong, Wenyin Fu, Whitney Meers, Xavier Martinet, Xiaodong Wang, Xiaoqing\bibnamedelima Ellen Tan, Xinfeng Xie, Xuchao Jia, Xuewei Wang, Yaelle Goldschlag, Yashesh Gaur, Yasmine Babaei, Yi Wen, Yiwen Song, Yuchen Zhang, Yue Li, Yuning Mao, Zacharie\bibnamedelima Delpierre Coudert, Zheng Yan, Zhengxing Chen, Zoe Papakipos, Aaditya Singh, Aaron Grattafiori, Abha Jain, Adam Kelsey, Adam Shajnfeld, Adithya Gangidi, Adolfo Victoria, Ahuva Goldstand, Ajay Menon, Ajay Sharma, Alex Boesenberg, Alex Vaughan, Alexei Baevski, Allie Feinstein, Amanda Kallet, Amit Sangani, Anam Yunus, Andrei Lupu, Andres Alvarado, Andrew Caples, Andrew Gu, Andrew Ho, Andrew Poulton, Andrew Ryan, Ankit Ramchandani, Annie Franco, Aparajita Saraf, Arkabandhu Chowdhury, Ashley Gabriel, Ashwin Bharambe, Assaf Eisenman, Azadeh Yazdan, Beau James, Ben Maurer, Benjamin Leonhardi, Bernie Huang, Beth Loyd, Beto\bibnamedelima De Paola, Bhargavi Paranjape, Bing Liu, Bo Wu, Boyu Ni, Braden Hancock, Bram Wasti, Brandon Spence, Brani Stojkovic, Brian Gamido, Britt Montalvo, Carl Parker, Carly Burton, Catalina Mejia, Changhan Wang, Changkyu Kim, Chao Zhou, Chester Hu, Ching-Hsiang Chu, Chris Cai, Chris Tindal, Christoph Feichtenhofer, Damon Civin, Dana Beaty, Daniel Kreymer, Daniel Li, Danny Wyatt, David Adkins, David Xu, Davide Testuggine, Delia David, Devi Parikh, Diana Liskovich, Didem Foss, Dingkang Wang, Duc Le, Dustin Holland, Edward Dowling, Eissa Jamil, Elaine Montgomery, Eleonora Presani, Emily Hahn, Emily Wood, Erik Brinkman, Esteban Arcaute, Evan Dunbar, Evan Smothers, Fei Sun, Felix Kreuk, Feng Tian, Firat Ozgenel, Francesco Caggioni, Francisco Guzmán, Frank Kanayet, Frank Seide, Gabriela\bibnamedelima Medina Florez, Gabriella Schwarz, Gada Badeer, Georgia Swee, Gil Halpern, Govind Thattai, Grant Herman, Grigory Sizov, Guangyi, Zhang, Guna Lakshminarayanan, Hamid Shojanazeri, Han Zou, Hannah Wang, Hanwen Zha, Haroun Habeeb, Harrison Rudolph, Helen Suk, Henry Aspegren, Hunter Goldman, Ibrahim Damlaj, Igor Molybog, Igor Tufanov, Irina-Elena Veliche, Itai Gat, Jake Weissman, James Geboski, James Kohli, Japhet Asher, Jean-Baptiste Gaya, Jeff Marcus, Jeff Tang, Jennifer Chan, Jenny Zhen, Jeremy Reizenstein, Jeremy Teboul, Jessica Zhong, Jian Jin, Jingyi Yang, Joe Cummings, Jon Carvill, Jon Shepard, Jonathan McPhie, Jonathan Torres, Josh Ginsburg, Junjie Wang, Kai Wu, Kam\bibnamedelima Hou U, Karan Saxena, Karthik Prasad, Kartikay Khandelwal, Katayoun Zand, Kathy Matosich, Kaushik Veeraraghavan, Kelly Michelena, Keqian Li, Kun Huang, Kunal Chawla, Kushal Lakhotia, Kyle Huang, Lailin Chen, Lakshya Garg, Lavender A, Leandro Silva, Lee Bell, Lei Zhang, Liangpeng Guo, Licheng Yu, Liron Moshkovich, Luca Wehrstedt, Madian Khabsa, Manav Avalani, Manish Bhatt, Maria Tsimpoukelli, Martynas Mankus, Matan Hasson, Matthew Lennie, Matthias Reso, Maxim Groshev, Maxim Naumov, Maya Lathi, Meghan Keneally, Michael\bibnamedelima L. Seltzer, Michal Valko, Michelle Restrepo, Mihir Patel, Mik Vyatskov, Mikayel Samvelyan, Mike Clark, Mike Macey, Mike Wang, Miquel\bibnamedelima Jubert Hermoso, Mo Metanat, Mohammad Rastegari, Munish Bansal, Nandhini Santhanam, Natascha Parks, Natasha White, Navyata Bawa, Nayan Singhal, Nick Egebo, Nicolas Usunier, Nikolay\bibnamedelima Pavlovich Laptev, Ning Dong, Ning Zhang, Norman Cheng, Oleg Chernoguz, Olivia Hart, Omkar Salpekar, Ozlem Kalinli, Parkin Kent, Parth Parekh, Paul Saab, Pavan Balaji, Pedro Rittner, Philip Bontrager, Pierre Roux, Piotr Dollar, Polina Zvyagina, Prashant Ratanchandani, Pritish Yuvraj, Qian Liang, Rachad Alao, Rachel Rodriguez, Rafi Ayub, Raghotham Murthy, Raghu Nayani, Rahul Mitra, Raymond Li, Rebekkah Hogan, Robin Battey, Rocky Wang, Rohan Maheswari, Russ Howes, Ruty Rinott, Sai\bibnamedelima Jayesh Bondu, Samyak Datta, Sara Chugh, Sara Hunt, Sargun Dhillon, Sasha Sidorov, Satadru Pan, Saurabh Verma, Seiji Yamamoto, Sharadh Ramaswamy, Shaun Lindsay, Shaun Lindsay, Sheng Feng, Shenghao Lin, Shengxin\bibnamedelima Cindy Zha, Shiva Shankar, Shuqiang Zhang, Shuqiang Zhang, Sinong Wang, Sneha Agarwal, Soji Sajuyigbe, Soumith Chintala, Stephanie Max, Stephen Chen, Steve Kehoe, Steve Satterfield, Sudarshan Govindaprasad, Sumit Gupta, Sungmin Cho, Sunny Virk, Suraj Subramanian, Sy Choudhury, Sydney Goldman, Tal Remez, Tamar Glaser, Tamara Best, Thilo Kohler, Thomas Robinson, Tianhe Li, Tianjun Zhang, Tim Matthews, Timothy Chou, Tzook Shaked, Varun Vontimitta, Victoria Ajayi, Victoria Montanez, Vijai Mohan, Vinay\bibnamedelima Satish Kumar, Vishal Mangla, Vítor Albiero, Vlad Ionescu, Vlad Poenaru, Vlad\bibnamedelima Tiberiu Mihailescu, Vladimir Ivanov, Wei Li, Wenchen Wang, Wenwen Jiang, Wes Bouaziz, Will Constable, Xiaocheng Tang, Xiaofang Wang, Xiaojian Wu, Xiaolan Wang, Xide Xia, Xilun Wu, Xinbo Gao, Yanjun Chen, Ye Hu, Ye Jia, Ye Qi, Yenda Li, Yilin Zhang, Ying Zhang, Yossi Adi, Youngjin Nam, Yu, Wang, Yuchen Hao, Yundi Qian, Yuzi He, Zach Rait, Zachary DeVito, Zef Rosnbrick, Zhaoduo Wen, Zhenyu Yang, Zhiwei Zhao. 2024. The Llama 3 Herd of Models. https://arxiv.org/abs/2407.21783 our card
- Yeming Wen, Dustin Tran, Jimmy Ba. 2019. BatchEnsemble: an Alternative Approach to Efficient Ensemble and Lifelong Learning. International Conference on Learning Representations. https://openreview.net/forum?id=Sklf1yrYDr OpenAlex ↗ · Scholar ↗
- Dustin Tran, Jeremiah\bibnamedelima Zhe Liu, Michael\bibnamedelima W. Dusenberry, Du Phan, Mark Collier, Jie Ren, Kehang Han, Zi Wang, Zelda\bibnamedelima E. Mariet, Huiyi Hu, Neil Band, Tim\bibnamedelimb G.\bibnamedelimi J. Rudner, Karan Singhal, Zachary Nado, Joost\bibnamedelima van Amersfoort, Andreas Kirsch, Rodolphe Jenatton, Nithum Thain, Honglin Yuan, E.\bibnamedelimi Kelly Buchanan, Kevin\bibnamedelima Patrick Murphy, D. Sculley, Yarin Gal, Zoubin Ghahramani, Jasper Snoek, Balaji Lakshminarayanan. 2022. Plex: Towards Reliability using Pretrained Large Model Extensions. First Workshop on Pre-training: Perspectives, Pitfalls, and Paths Forward at ICML 2022. https://openreview.net/forum?id=6x0gB9gOHFg OpenAlex ↗ · Scholar ↗
- Xi Wang, Laurence Aitchison, Maja Rudolph. 2023. LoRA ensembles for large language model fine-tuning. doi:10.48550/arXiv.2310.00035. OpenAlex ↗ · Scholar ↗
- Yuanzhao Zhai, Han Zhang, Yu Lei, Yue Yu, Kele Xu, Dawei Feng, Bo Ding, Huaimin Wang. 2023. Uncertainty-penalized reinforcement learning from human feedback with diverse reward lora ensembles. arXiv preprint arXiv:2401.00243. OpenAlex ↗ · Scholar ↗
- Edward\bibnamedelima J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, Weizhu Chen. 2021. LoRA: Low-Rank Adaptation of Large Language Models. International Conference on Learning Representations. https://openreview.net/forum?id=nZeVKeeFYf9 our card
- Oleksandr Balabanov, Hampus Linander. 2024. Uncertainty quantification in fine-tuned LLMs using LoRA ensembles. doi:10.48550/ARXIV.2402.12264. OpenAlex ↗ · Scholar ↗
- Eyke Hüllermeier, Willem Waegeman. 2021. Aleatoric and epistemic uncertainty in machine learning: an introduction to concepts and methods. Machine Learning. doi:10.1007/s10994-021-05946-3. OpenAlex ↗ · Scholar ↗
- Yarin Gal. 2016. Uncertainty in Deep Learning. OpenAlex ↗ · Scholar ↗
- Tim Pearce, Felix Leibfried, Alexandra Brintrup. 2020. Uncertainty in Neural Networks: Approximately Bayesian Ensembling. Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics. https://proceedings.mlr.press/v108/pearce20a.html OpenAlex ↗ · Scholar ↗
- Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, Percy Liang. 2016. SQuAD: 100,000+ Questions for Machine Comprehension of Text. Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing. doi:10.18653/v1/D16-1264. our card
- Pranav Rajpurkar, Robin Jia, Percy Liang. 2018. Know What You Don't Know: Unanswerable Questions for SQuAD. Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers). doi:10.18653/v1/P18-2124. our card
- Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, Jacob Steinhardt. 2021. Measuring Massive Multitask Language Understanding. International Conference on Learning Representations. https://openreview.net/forum?id=d7KBjmI3GmQ our card
- Muru Zhang, Ofir Press, William Merrill, Alisa Liu, Noah\bibnamedelima A. Smith. 2023. How Language Model Hallucinations Can Snowball. doi:10.48550/ARXIV.2305.13534. our card
- Amos Azaria, Tom Mitchell. 2023. The Internal State of an LLM Knows When It's Lying. Findings of the Association for Computational Linguistics: EMNLP 2023. doi:10.18653/v1/2023.findings-emnlp.68. our card
- F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, E. Duchesnay. 2011. Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research. OpenAlex ↗ · Scholar ↗
- Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun. 2015. Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification. Proceedings of the IEEE International Conference on Computer Vision. https://openaccess.thecvf.com/content_iccv_2015/html/He_Delving_Deep_into_ICCV_2015_paper.html OpenAlex ↗ · Scholar ↗
- Xavier Glorot, Yoshua Bengio. 2010. Understanding the difficulty of training deep feedforward neural networks. Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics. https://proceedings.mlr.press/v9/glorot10a.html OpenAlex ↗ · Scholar ↗