Uncertainty Quantification with Pre-trained Language Models: A Large-Scale Empirical Analysis
Paper · 2022 · Yuxin Xiao, Paul Pu Liang, Umang Bhatt et al.
Summary
A text classifier can give the right answer often and still give poor advice about when to trust it. A high confidence score has a practical meaning only if predictions with that score turn out to be correct about as often as the score suggests. The authors call this agreement calibration. They study how to obtain it when a classifier is built by adapting a pretrained language model, and how well it holds up when the classifier encounters a different source of text. They use expected calibration error, or ECE, to measure the gap between expressed confidence and observed accuracy. They also ask whether lower confidence helps identify mistakes and whether it helps flag examples from outside the training domain.
The study compares choices at different stages of building a classifier. The encoder comparison covers BERT, XLNet, RoBERTa and DeBERTa, as well as ELECTRA. The size comparison pairs the base and large checkpoints within each family. The authors compare temperature scaling, Monte Carlo dropout, ensembling and last-layer stochastic variational inference as ways of estimating or adjusting uncertainty. A separate comparison changes the objective used for fine-tuning BERT base, with cross-entropy as the reference and Brier loss, focal loss, label smoothing and maximum mean calibration error as alternatives. Each comparison uses tasks with an in-domain test and a test from a different dataset. In sentiment analysis the shift is from IMDb movie reviews to Yelp restaurant reviews. In inference it is from MNLI to SNLI. In commonsense sentence completion it is from SWAG to HellaSWAG.
ELECTRA offered the strongest overall combination of calibration, accuracy and confidence ranking in the base-encoder comparison. The calibration ranking was broadly stable across tasks and domains, although XLNet’s ECE increased the most under domain shift. Larger checkpoints generally had lower prediction error on both kinds of test data and lower ECE on shifted data. Their in-domain ECE tended to be slightly worse, with commonsense reasoning as the exception. Temperature scaling gave the largest overall decrease in ECE among the uncertainty methods, with little added computation and the same predicted labels. The calibration gains from uncertainty methods were generally more pronounced on the shifted tests. Ensembling offered a smaller calibration benefit than the authors expected from earlier work on traditional networks and required training several classifiers.
Focal loss kept BERT base competitive on ECE in both domains and gave the lowest false alarm rate when the authors used confidence to detect shifted examples at the specified recall. The authors recommend ELECTRA, a larger checkpoint when resources permit, temperature scaling and focal loss. Those recommendations come from comparisons with different controls, including a loss comparison restricted to BERT base. The authors released their code and a benchmark covering 120 pipelines. The results give a practical basis for choosing among existing checkpoints and techniques, while showing how much the evaluation can change with the task, test domain and intended use of the confidence score.
Deep dive: Uncertainty Quantification with Pre-trained Language Models: A Large-Scale Empirical Analysis
This study compares how encoder choice, size, training loss and recalibration affect confidence in text classifiers when their test data changes. · about 34 minutes to read
The problem and its context
What a confidence score promises
In text classification, a system chooses a label from a fixed set. It can also return a probability for each candidate. The winning label answers the classification question. Its probability makes a further claim about the chance that the answer is right. A clinician reading an answer from a question-answering system, for example, may place different weight on the same answer depending on the certainty attached to it. The paper motivates the study with a hypothetical medical system that expresses 90% confidence in a prediction that a patient is healthy. Across comparable predictions at that confidence, the corresponding outcome should occur 90% of the time. Question answering
That interpretation concerns groups of predictions. The outcome for a particular patient is observed once. Repeated predictions supply the record needed to judge whether the reported confidence has the promised frequency meaning. A classifier can answer correctly on many inputs while attaching too much confidence to the answers it gives. It can also place too little confidence in correct answers. In both cases, evaluating only the chosen labels leaves part of the system’s behavior unmeasured.
The paper distinguishes confidence as a probability from confidence as a way to order examples. If users can decline an answer, it matters whether the uncertain cases contain enough mistakes to make abstaining worthwhile. A different use is to recognize material from outside the training domain. There the system’s confidence serves as a clue about where an input came from. The target in the first use is an erroneous answer. The target in the second is a changed source of data. A classifier might have enough evidence to answer a question correctly even when the text comes from a different source, so confidence can serve those purposes with different degrees of success.
The domain distinction is central to the experimental setup. Training teaches the system to assign the task’s labels on data drawn from one source. A held-out sample from that source tests how well it generalizes within the domain. A second source poses the same classification problem but supplies different inputs. A sentiment classifier, for example, can keep the same output vocabulary when it moves from movie reviews to restaurant reviews. The sources need not contain the same wording or describe the same things, and confidence measured on movie reviews supplies only indirect evidence about confidence on restaurant reviews.
This arrangement makes it possible to investigate a problem that an ordinary held-out evaluation can miss. A pipeline may get the frequencies about right on source data and become overconfident once the texts change. A different pipeline may lose accuracy under the same shift and still assign scores that reflect its reduced success. The relevant questions are how many predictions remain correct and how honestly the pipeline describes its chance of being correct in its new setting. The authors keep track of both.
Why revisit calibration for pre-trained encoders?
The paper situates its question in a longer history of uncertainty quantification. It points to probabilistic forecasts in weather, confidence assessments in medicine and uncertainty in machine translation. It also describes Bayesian and frequentist lines of work, methods for both classification and regression, and research connecting uncertainty to such properties as interpretability, selective prediction and generalization across domains. In this study, uncertainty is approached through the behavior of the predictive scores on labeled examples. The authors compare several ways to produce those scores and use a common set of tests to evaluate them.
Pretrained encoders make this an important empirical question because fine-tuning begins with an already learned way of representing text. The paper describes self-supervised pretraining and the Transformer and attention architecture as typical foundations. It points to the success of pretrained systems on benchmarks and to their use in applications including question answering, classification and information extraction. When the same general approach is used across applications, it becomes useful to know which calibration findings carry across tasks and which depend on how the encoder and classifier were built.
Earlier evidence gave the authors reasons to check assumptions from other settings. Work on traditional neural networks had found a tendency toward worse calibration at larger sizes. Research on pretrained Transformers had found that these systems could give well-calibrated predictions in spite of their scale. Prior work also reported robustness on shifted data and investigated whether the size of a pretrained Transformer affected calibration on familiar and shifted inputs. The paper describes much of the direct evidence about text encoders as narrow in scope, often involving only one or two families. The uncertainty adjustments and training objectives covered in those studies also tended to be limited, with temperature scaling and cross-entropy serving as common choices.
The authors therefore treat building the classifier as a series of decisions. An engineer first chooses a pretrained encoder and a checkpoint size. Training then needs an objective that determines how strongly each prediction error affects the fitted system. After training, a further method can change how probabilities are produced or recalibrate the scores already available. These decisions give confidence several opportunities to change. Comparing only architectures, for instance, leaves open whether an inexpensive post-training adjustment would make a larger difference in the same evaluation.
The resulting study is comparative. It asks what happens when available components are substituted into a shared classification procedure. Making several comparisons on the same tasks helps distinguish an effect observed across tasks from one peculiar to a dataset pair. This scope also matters for how one reads the eventual recommendations. Evidence about a ready-made checkpoint answers a question a practitioner can act on directly. Explaining which aspect of its pretraining produced that result requires a different experiment.
The method, step by step
From text to a label and a confidence score
The authors begin each task with labeled examples from the source domain. Some are used to adapt an encoder and its classification head. Separate validation data from that domain guide choices such as the learning rate and provide the data for fitting temperature scaling. The authors then measure predictions on held-out in-domain data and on a held-out sample from a different domain. The task’s output labels are shared across the two test sets. The shifted sample therefore tests the existing classification problem on new inputs, without adding a class for unfamiliar text.
An input passes first through the pretrained encoder. The setup takes the vector for the classification token, written [CLS], and passes it to a two-layer classifier with a tanh activation. The classifier produces logits, which are scores for the candidate labels before they are turned into probabilities. The softmax operation converts the scores into a distribution over the labels. The predicted label is whichever receives the greatest probability. The probability of that label is the confidence used in calibration, selective prediction and out-of-domain detection.
During fine-tuning, the authors update the encoder as well as the classifier. The baseline objective is cross-entropy. Alternative training losses change which errors and probability assignments lead to stronger updates. Once training is complete, the baseline classifier can return its ordinary probabilities. The uncertainty-method comparison also considers procedures that adjust its scores or obtain a predictive distribution by averaging. Some involve preparation during training, even though their effect is evaluated in the probabilities supplied at inference.
Building and evaluating a confidence-aware text classifier
The steps in order.
The training and evaluation sets
The authors represent the source training data as a collection of input and label pairs.
𝔻_train = {(xᵢ, yᵢ)}ᵢ₌₁,…,N_train
Here 𝔻_train is the training set and N_train is its number of examples. The index i identifies an example, beginning at 1 and running through N_train. The text for that example is xᵢ and its reference label is yᵢ. Braces group the pairs into a set, and parentheses keep a text and its label together. The paper uses 𝒳_in for the source input domain and 𝒴 for the set of allowable labels. A training xᵢ comes from 𝒳_in, and its yᵢ belongs to 𝒴.
The validation set, 𝔻_val, and the in-domain test set, 𝔻_in, share the training domain. The out-of-domain test set, 𝔻_out, draws its inputs from another domain, 𝒳_out, and uses the same 𝒴. The source dataset supplies the training split. The authors randomly split the original validation set in half for their held-out, non-blind testing protocol. They obtain the in-domain test portion from the source dataset and the shifted test portion from the corresponding second dataset. This separates the examples used for the test comparison from the validation data that guide source-domain fitting decisions.
In the paper’s notation, M is the encoder that maps the input text to a representation, and F is the classification head that uses it. The loss ℓ is the objective minimized over 𝔻_train. The optional operation Q denotes an uncertainty quantifier. After the pipeline has produced its predictive distribution for an example, the decision rule is as follows.
ŷᵢ = arg maxⱼ∈{1,…,|𝒴|} uᵢⱼ
The symbol ŷᵢ is the chosen label for example i. The operation arg max returns the index j of a largest value. Here j ranges from 1 through the number of labels, written |𝒴|. The term uᵢⱼ is the entry for label j in the probability vector for example i. The set inside the subscript lists the admissible label indices. The rule converts a vector of scores with probability meaning into the single choice that can be compared with the reference label.
ĉᵢ = uᵢ,ŷᵢ
The symbol ĉᵢ is the reported confidence for example i. On the right, uᵢ,ŷᵢ is the probability vector entry at the position identified by the predicted label ŷᵢ. The comma separates the example index from the label index. The definition uses the probability assigned to the selected label. For an incorrect prediction, that confidence can still be high, because the reference label yᵢ plays no role in taking the maximum.
The authors express ideal calibration as a conditional probability.
P(yᵢ = ŷᵢ ∣ ĉᵢ) = ĉᵢ
The symbol P is probability, and the vertical bar means “conditional on.” The event on its left is that the reference label yᵢ agrees with the predicted label ŷᵢ. The value on its right is the confidence ĉᵢ. The equality says that among cases assigned a given confidence, the probability of a correct label equals that confidence. In a finite test set, nearby scores are grouped so that each group can supply an empirical correctness frequency.
The common training procedure
The initial encoder comparison uses base checkpoints of roughly comparable size, obtained through Hugging Face Transformers. The authors tune the learning rate for each encoder and dataset pairing on the validation set. The available rates are 5e-6, 1e-5, 2e-5 and 5e-5. This allows different encoders to use a rate suited to the task within a shared search range. The prediction head and the rest of the reference training procedure follow the same specification across the comparison.
Training uses AdamW and a linearly decaying learning-rate schedule, with a warm-up ratio of 10%. The authors schedule five epochs of training, apply early stopping, use batches of 16, and cap the gradient norm at 1. Early stopping allows a run to finish before the end of the schedule. Clipping caps the gradient norm before the parameter update. The reported experiments use a Tesla A6000 GPU. The authors repeat the runs with different seeds over six trials and report a mean and one standard error. This gives the comparison a measure of variation across repeated fits under its training procedure. Decoupled Weight Decay Regularization
The checkpoint-size comparison retains that procedure and substitutes a large checkpoint for the corresponding base checkpoint. The uncertainty-method comparison refers back to the ordinary classifier probabilities as its baseline. For the loss comparison, the authors hold the encoder choice at BERT base and change the training objective. These controls define the comparison made in each part of the study. For example, the evidence about increasing capacity comes from matching versions within a family, while the evidence about focal loss comes from training the same kind of base encoder with different objectives. BERT
How the uncertainty methods form a prediction
Temperature scaling fits a scalar, T_temp, on 𝔻_val. It uses that scalar to rescale the logits before softmax. A positive temperature can alter the gap in probability between the leading label and its competitors while preserving their order. When it softens a distribution, the largest probability becomes less dominant. The same calibrated transformation is applied on the in-domain and shifted tests. Because it preserves which score is largest for each example, it preserves the ordinary label choices. It can thus change whether the assigned probabilities match observed accuracy while keeping the classification errors themselves fixed.
Monte Carlo dropout, or MC dropout, leaves dropout active during prediction. Dropout produces a different active computation on repeated passes of an input. Each pass yields a predictive distribution. The method averages these distributions to approximate a posterior predictive expectation. In this setup, T_mc is the number of passes and is set to 10. The dropout rate is the default for the particular pretrained encoder. The predictive distribution is formed from the combined probabilities before the label and confidence are selected, so the winner can differ from the one in an ordinary pass.
The ensemble also averages distributions. Its members come from independent training runs initialized with the same pretrained checkpoint. The source of variation is the fitted classifier and encoder produced by each run. The ensemble size T_en is set to 5. At evaluation, the input is passed through the members, and their probability vectors are averaged. Agreement among members can preserve a strong choice. Different outputs can spread the average probability across labels or change which label leads.
Last-layer stochastic variational inference, or LL SVI, introduces variability in the classification layers. The authors use variational layers from Bayesian-Torch, with a reparameterized Monte Carlo estimator. The method samples computations in the Bayesian classifier and averages the resulting predictive distributions. T_svi is the number of forward passes through those layers and is set to 50. Its posterior approximation is concentrated in the classification head. This localizes the uncertainty treatment to a different part of the pipeline from MC dropout. The authors chose the MC dropout and LL SVI sample counts under inference-time computational constraints.
How the training objectives differ
Cross-entropy is based on the negative log probability assigned to the reference class. Giving the correct class very little probability incurs a large loss, while assigning it more probability reduces the penalty. This objective supplies the common training reference for the study. Brier loss compares the entire probability vector with a target vector that places all its mass on the reference label. The penalty is based on squared differences between those vectors. Both losses favor probability on the correct answer, and their different penalties can produce different fitted confidence distributions.
Focal loss modifies the cross-entropy contribution according to the probability the classifier already gives the reference label. It reduces the emphasis on easy inputs, allowing harder cases to receive more relative attention. The probability referred to here is the probability of the correct class, which can be different from the confidence on the winning class. The authors use the following rule for the focal hyper-parameter.
γ = 5 if p ∈ [0,0.2); γ = 3 if p ∈ [0.2,1]
The symbol p denotes the predicted probability of the reference class. The symbol γ denotes the focal hyper-parameter that controls the strength of the modulation. The symbol ∈ means that p is in the interval that follows. In the first interval, the square bracket includes 0 and the parenthesis excludes 0.2. In the second interval, the square brackets include both 0.2 and 1. Thus the setting is 5 below the specified boundary and 3 from the boundary upward. The rule gives the boundary an unambiguous assignment during training.
Label smoothing changes the target used in the training loss. It assigns some target probability mass to classes other than the reference class, with a smoothing factor of 0.1. The target distribution then gives the reference class the greatest support while still giving other classes some weight. This changes the pressure on the classifier to drive the reference class probability towards the most extreme possible value. Maximum mean calibration error, abbreviated MMCE, instead supplies a differentiable calibration penalty commonly used with cross-entropy. A differentiable penalty can influence parameter updates during optimization. The study evaluates the resulting predictions with the same test measures used for the other losses.
Measuring what the confidence scores do
Prediction error measures the frequency of incorrect label choices. ECE measures how close the confidence values are to the observed proportions of correct choices. The authors divide the confidence scale into K equal-width bins and assign each prediction to the bin corresponding to its confidence. They set K to 10 for the test calculations. Within an occupied bin they compare the mean confidence with the fraction of answers that are correct, then give the discrepancy a weight based on the number of predictions in that bin.
ECE = ∑ₖ₌₁ᴷ (|Bₖ|/N) |acc(Bₖ) − conf(Bₖ)|
ECE is expected calibration error. The summation sign ∑ collects terms over the bins, with k ranging from 1 through K. Bₖ is the group of predictions in bin k, and |Bₖ| is how many it contains. N is the total number of predictions, so |Bₖ|/N gives the bin’s share of the test sample. The function acc(Bₖ) gives the fraction of correct labels in the bin and conf(Bₖ) gives its average reported confidence. The outer vertical bars take the absolute value of the difference. As a consequence, a populated bin with excessive confidence and one with insufficient confidence both contribute positively to ECE.
Selective prediction asks whether the system can give priority to cases it is more likely to get right. The paper uses reversed pair proportion, or RPP, to measure how often the ordering goes the wrong way. An inversion occurs when a correct prediction receives lower confidence than an incorrect prediction.
RPP = (1/N²) ∑ᵢ₌₁ᴺ ∑ⱼ₌₁ᴺ 𝟙[ĉᵢ < ĉⱼ, yᵢ = ŷᵢ, yⱼ ≠ ŷⱼ]
RPP is the reversed pair proportion. The two sums range over example indices i and j, each from 1 through N, the number of predictions in the evaluated dataset. The factor 1/N² normalizes by the number of ordered pairs of indices. The indicator 𝟙 contributes when all the conditions inside the brackets hold and contributes nothing otherwise. The first condition says the confidence ĉᵢ is below ĉⱼ. The second says that yᵢ, the reference label of the first example, equals its predicted label ŷᵢ. The third says that yⱼ, the second reference label, differs from its predicted label ŷⱼ. Here the index j identifies a second example, whereas in the earlier decision rule it identified a candidate label. The strict less-than sign leaves confidence ties outside the inversion count. Lower RPP is preferable in this test.
The detection measure, FAR95, uses a different threshold and different ground truth. The authors set the threshold at the 95th percentile of the confidence scores in 𝔻_out. Examples below the threshold are treated as potential shifted inputs. This sets the operating point at 95% recall for detecting the shifted examples. FAR95 is the share of source-domain examples in 𝔻_in with confidence below that threshold. Those cases would be false alarms. A lower value means that the chosen threshold can flag shifted inputs at the intended recall while also allowing more familiar inputs through.
Experiments and results
A different kind of shift for each task
For sentiment analysis, the classifier assigns a binary sentiment label. The authors use IMDb movie reviews as the source dataset and Yelp restaurant reviews as the shifted dataset. Both provide review text for a sentiment decision. The difference lies in the types of objects being discussed and in the resulting input domain. The experiment asks whether the label predictor and its confidence remain reliable when the subject of the reviews changes. Learning Word Vectors for Sentiment Analysis · Character-level Convolutional Networks for Text Classification
In natural language inference, the classifier predicts the relation between a premise and a hypothesis. MNLI, the source dataset, covers genres of both spoken and written text. The shifted dataset, SNLI, is derived from image captions. Here the shift changes the kind and range of language used to express the premise and hypothesis. The pipeline continues to predict the same type of relation, with no change to the label space used for testing. MNLI · SNLI
For commonsense reasoning, the decision is which among four candidate continuations makes the most sense. SWAG is the source dataset, and HellaSWAG is the adversarial variant used for the shifted evaluation. The format keeps the prediction measurable as classification. The assigned probability for the winning continuation can be checked against whether it was the reference continuation. The test shift in this pair also changes the challenge posed by the alternatives, so the move between datasets has a different character from the move between review subjects. SWAG
Taken together, the dataset pairs let the authors ask whether findings about confidence survive changes to the kind of decision as well as to the source of inputs. The review task asks about an attitude, inference asks about a relationship between texts, and the continuation task asks for a plausible next event or sentence continuation. In each case the predictions are scored against known labels. A comparison of ECE across domains can therefore refer to an observed change in confidence and correctness under the study’s task-specific shift.
Pre-trained encoders under the same classifier setup
The base comparison uses encoders built with different pretraining methods. BERT learns through masked language modeling and next sentence prediction. RoBERTa builds on BERT with dynamic masking and changes to pretraining settings. DeBERTa introduces disentangled attention and an enhanced mask decoder. XLNet combines a permuted language-modeling objective with two-stream self-attention. ELECTRA uses a discriminator trained to identify tokens that a generator has replaced. The comparison concerns the checkpoints resulting from those choices, trained on the downstream datasets with the shared classification setup. RoBERTa · DeBERTa · XLNet
All five base encoders showed worse calibration on the shifted tests than on their in-domain counterparts in the encoder comparison. On the in-domain tests for all three tasks, the other encoders had lower ECE than BERT. The relative ordering by calibration was generally similar across tasks and domains. The clearest departure was XLNet, whose ECE increased the most when the test domain changed. That pattern matters for choosing an encoder on source data. An encoder’s relative standing there carried information about its standing elsewhere in these experiments, with XLNet showing that a favorable source comparison could still conceal substantial sensitivity to shift.
ELECTRA had the lowest or comparably low ECE across the task and domain conditions, alongside the lowest prediction error and RPP in the encoder comparison. Those measures capture distinct behaviors. Lower error means the chosen labels were more often correct. Low ECE means the reported winning probabilities were closer to the empirical frequencies of correctness. Low RPP means fewer ordered pairs exhibited a correct answer ranked below an incorrect one by confidence. ELECTRA’s standing across these measures is the reason the authors recommend it as the starting encoder, instead of selecting a checkpoint based on calibration alone.
The effect of choosing a large checkpoint
Changing from base to large shifted both accuracy and calibration. The large versions generally reduced prediction error on the source tests and on the shifted tests. They also generally reduced shifted-test ECE. On the in-domain tests their ECE tended to rise slightly, except in the commonsense continuation task, where the larger versions were better calibrated. The large checkpoint recommendation therefore weighs performance on shifted inputs and accuracy in both settings, with the in-domain calibration result depending on the task.
The size comparison also found a positive association between prediction error and ECE under domain shift. The configurations with larger calibration discrepancies tended to have more wrong answers in that setting. The measures speak to separate properties of the same predictions, and the result describes how they moved together in this comparison. A direct intervention can move one without moving the other, as the temperature-scaling experiment shows. Larger checkpoints in the size experiment can also change the labels and the confidence values together, so the observed association is about the fitted configurations as a group.
Adjusting confidence after the baseline fit
In the uncertainty-method comparison, the authors measure changes relative to the ordinary predictive distribution. Temperature scaling gave the largest overall reduction in ECE, followed by MC dropout and then the ensemble. LL SVI came last in that comparison and increased ECE. The reductions available from uncertainty quantification were generally more pronounced out of domain. This is an important part of the temperature-scaling result because the scalar is fitted on source validation data. The evaluation shows that the correction also helped on the particular shifted test distributions used in the paper.
The approaches differed in how they affected prediction error. Temperature scaling kept the label choices, so its gains in ECE reflect changes in the reported probabilities of those choices. Ensembling lowered prediction error and gave a more modest calibration gain. For shifted commonsense reasoning, MC dropout and LL SVI lowered prediction error while yielding sharper probability distributions. In the settings where such sharper probabilities brought excessive confidence, ECE rose. The continuation results show why a change that improves the selected answer can still be unfavorable for the numerical meaning of the confidence attached to it.
The repeated prediction methods also use different computation at evaluation. The chart compares the sample counts for the two methods that repeatedly evaluate a stochastic pipeline. The counts apply across the task setup. MC dropout repeats a forward pass with dropout active, while LL SVI repeats a pass through the Bayesian classification layers. The unit therefore describes the sampling effort in each method’s own stochastic component. It gives a count of passes and leaves the work done in each pass unspecified.
Stochastic inference pass counts on IMDb and Yelp, MNLI and SNLI, and SWAG and HellaSWAG
MC dropout uses fewer stochastic passes, while LL SVI samples only the classification layers.
The numbers
| System or setting | stochastic forward passes |
|---|---|
| MC dropout (this paper) | 10 |
| LL SVI | 50 |
The ensemble uses 5 independently trained members. Its additional burden begins during fine-tuning, since each member has to be fitted. MC dropout puts its repeated computation at inference, since the predictive distribution averages several runs on the same input. Temperature scaling adds one fitted scalar and a rescaling operation. Its combination of the strongest ECE improvement in the comparison, unchanged prediction error and small added burden explains the authors’ preference. The pass counts characterize the experimental settings. The recommendation draws on the calibration results as well as on where that work occurs.
Changing the objective used to fine-tune BERT base
With BERT base fixed, focal loss, label smoothing and MMCE led to better-calibrated classifiers than the cross-entropy and Brier-loss group in the authors’ comparison. The within-loss movement between domains showed a different pattern. Cross-entropy, focal loss and MMCE were better calibrated on source data, while Brier loss and label smoothing recorded decreases in ECE on the shifted data. The authors connect the label-smoothing result to its tendency to reduce excessive confidence during fine-tuning. A decrease under shift describes how a given objective behaved across the two tests. The recommendation also considers how its ECE ranked against the other objectives within each test condition.
Focal loss remained competitive on ECE in all three tasks in both domain settings. It also produced the lowest FAR95 in the comparison. At the score threshold corresponding to 95% recall on shifted samples, classifiers trained with focal loss flagged a smaller fraction of source examples than the alternatives. The paper notes that false alarm rates were relatively high for sentiment analysis and natural language inference. The authors suggest that successful predictions on shifted examples may contribute to the overlap in confidence between source and shifted sets in these tasks. In that situation, high confidence on unfamiliar data can accompany a correct prediction even though it makes domain detection harder.
The released benchmark contains 120 combinations of pipeline choices. The authors organize evaluation around prediction error, calibration error, selective prediction and out-of-domain detection, and include the three tasks under both domain conditions. The benchmark preserves the distinction between the pipeline that predicts the most labels correctly, the one whose scores best match the observed frequencies, and the one whose confidence is most effective as an operational signal. The paper’s recommendations draw on agreement across those measures where the comparisons provide it.
What the ablations show
What changing the encoder can establish
The encoder comparison holds the classification design and broad fine-tuning procedure steady while switching the base checkpoint. This is a controlled comparison of choices facing someone using available pretrained encoders. BERT’s higher in-domain ECE and ELECTRA’s standing across calibration, accuracy and selective prediction show that the starting checkpoint matters even when the downstream training recipe is shared. The learning rate can be tuned within the same search range for each pairing, which makes the comparison one of encoders given an opportunity to fit the source task.
The paper offers possible explanations for the relative calibration of the encoders. The authors suggest that larger pretraining corpora may help account for the in-domain advantage of the other families over BERT. They connect ELECTRA’s performance to replaced-token detection, which avoids introducing the artificial [MASK] token used in masked language modeling and provides a learning signal for all input positions. They suggest that XLNet’s especially large increase in ECE may be related to its permuted language-modeling objective. These interpretations refer to actual differences among the checkpoints. A test of any one mechanism would require varying it while keeping other aspects of pretraining fixed.
XLNet and ELECTRA also illustrate different uses of the same comparison. XLNet draws attention to the change in ECE as the domain changes. ELECTRA draws attention to how favorable the ECE is within each condition and whether the classifier is accurate enough for the confidence to be useful. A small shift in ECE could occur for a poorly calibrated encoder in both domains, while a favorable ECE on source data could still grow substantially when the inputs change. The authors report relative standing and sensitivity to shift because either number by itself gives only part of the comparison.
What changing the size adds
The large-versus-base study pairs checkpoints within families, narrowing the comparison compared with switching architectures. Its clearest pattern is that the case for a larger checkpoint strengthens when the test input comes from another domain. In-domain calibration varies with the task, even as prediction error generally moves in a favorable direction. The commonsense reasoning exception is consistent with the authors’ suggestion that the larger versions better reflect their uncertainty while choosing continuations. The controlled result concerns ECE on that classification task. It shows a better match between confidence and correctness in the continuation predictions the larger checkpoints made.
The comparison also gives context to earlier observations about size. A single verdict about whether increasing size improves calibration would obscure the opposite directions in some of the source and shifted comparisons. It would also obscure the in-domain exception on commonsense reasoning. Keeping the task and test domain explicit explains how larger checkpoints can be a sound overall preference in the study while offering mixed outcomes on one particular measure. The authors’ recommendation makes sense in light of the combination of accuracy, shifted calibration and available computational resources.
What changes when the probabilities change
Temperature scaling supplies the cleanest separation between calibration and classification in the experiments. The transformation preserves the class ordering for a given input. The same examples are correct or incorrect before and after it, so a reduction in ECE can be attributed to a better fit between the confidence values and the frequencies of correctness. The experiment shows that some of the baseline calibration error can be reduced through a shared adjustment to score magnitudes. It also shows that a score adjustment learned on source validation data can improve the fit on the particular shifted samples.
The ensemble comparison sheds light on the kind of variation available when several fits share a checkpoint. The authors expected more benefit from ensembling based on research on conventional networks. They suggest that the common initialization produces correlated learners and reduces the diversity an average can exploit. If members give similar probabilities, the averaged vector is likely to remain close to the individual vectors. The reported comparison shows a limited calibration improvement in this setup. The proposed explanation would require a direct comparison in which checkpoint diversity was varied and the resulting member agreement was measured.
MC dropout and LL SVI probe different sources of variation. MC dropout varies which parts of a fitted network are active. LL SVI draws repeated computations from the Bayesian classification layers. Averaging both types of outputs can change the leading class. The shifted commonsense finding is informative because lower prediction error coincided with sharper predictions, with unfavorable consequences for calibration when confidence exceeded the observed rate of success. The LL SVI outcome applies to the implementation that confines the variational layers to the classifier. The inference about why it struggled is tied to that placement.
What changing the loss reveals about the shifted tests
Holding BERT base fixed lets the authors compare how the objective affects confidence even before a separate calibration step. Label smoothing gives nonreference classes some target mass. Focal loss instead redistributes the importance of training examples according to the probability assigned to the correct answer. MMCE directly adds pressure related to calibration. Their favorable ECE in the comparison shows that distinct changes to the training signal can improve test calibration in this setup. The different patterns across the two domains show that these objectives can arrive at different operating behavior even when their source calibration looks favorable.
Brier loss and label smoothing illustrate how to interpret those patterns. Both show an improvement in ECE from source to shifted data in the loss experiment, while their standings against the other losses differ. That result can coexist with deterioration under shift in the base-encoder study, which uses the cross-entropy baseline. The relevant comparison is between the distributions of confidence and correctness actually generated under each loss. Changing the loss can change both, so a single direction of domain effect need not apply to all training objectives.
Focal loss’s additional advantage in FAR95 provides stronger support for the authors’ preference within the BERT-base comparison. Competitive ECE alone would show a good probability fit across bins. Low FAR95 shows that the fitted scores also separate these source and shifted distributions favorably at the specified detection threshold. The two findings assess complementary uses for confidence. The loss experiment gives grounds for the focal-loss recommendation on these tasks, with its scope set by the encoder used for that comparison.
Limitations
Limits stated by the authors
The encoders are existing checkpoints, and the authors cite computational constraints as the reason they could not repeat pretraining with new combinations of corpora and objectives. This matters most for interpreting differences between families. The checkpoints package together an architecture, a training objective, a corpus and pretraining choices. It is possible to say which complete checkpoint performed better under the tested classifier setup. Attributing that advantage to an individual property of pretraining needs a comparison that decouples the properties. The authors direct their recommendations to practitioners choosing among available systems and limit their generalization accordingly.
The authors also leave the severity of domain shift unresolved. Each task has a selected source dataset and a selected shifted counterpart. The differences between the dataset pairs have different forms, from a change in review subject to an adversarial continuation test. The paper uses these pairs to demonstrate behavior under shift. It leaves open how the same pipeline’s calibration would vary over a graded series of shifts or how severe a change would be needed before the relative results reversed.
The task and language scope are limited to English classification pipelines. The authors leave cross-lingual classification and generation for future work. Comparing a probability attached to a known set of labels gives this experiment a clear event whose correctness can be evaluated. Calibration for generation would require defining the event to which a confidence score refers. The authors also acknowledge that methods designed specifically for the needs of pretrained pipelines could reduce calibration error further. Their choice among the tested methods establishes a preference within that comparison.
Limits implied by the experimental design
The recommended decisions come from comparisons that use different controls. ELECTRA’s advantage comes from switching base encoders. The size result comes from pairing base and large checkpoints. The strongest evidence for focal loss comes from holding BERT base fixed. Consequently, the paper establishes the focal-loss finding for that encoder and leaves its interaction with the other recommendations open. A large ELECTRA checkpoint fine-tuned with focal loss may respond differently to temperature scaling because the loss can already change the confidence distribution fitted on the source data. The individual comparisons do not determine the size of that interaction.
ECE is a summary of the predictions at the bin resolution chosen by the authors. Each bin represents its contents through mean confidence and mean accuracy. Within a bin, groups with different patterns of error can contribute to the same average. A gap on a rare group also receives limited influence when the aggregate is weighted by bin occupancy. Low test ECE supports a claim about overall top-label calibration at the chosen resolution. Group-specific reliability and calibration of the probabilities assigned to the other classes are separate questions. The paper’s clinical illustration motivates why confidence matters, while its benchmarks evaluate sentiment, inference and continuation decisions.
RPP and FAR95 likewise answer specific questions about how to use a score. RPP counts strict inversions over all ordered pairs, so its magnitude depends both on the ordering of incorrect and correct answers and on the available mix of those answers. It does not describe the resulting error rate at a particular allowed level of abstention. FAR95 evaluates one operating point and uses the shifted sample to locate the threshold. Applying a comparable detector in a setting where the shifted inputs have yet to be identified would raise the separate question of how to set that threshold. Good discrimination at the reported operating point is evidence about the tested datasets.
The computational comparison is also tied to the implementations the paper evaluated. The sample counts for dropout and variational inference were chosen under computational constraints. Counting a pass through a classifier head and counting a pass through an encoder with dropout gives two different kinds of work. The authors’ conclusions about where costs arise follow from the procedures, with training repeated for an ensemble and prediction repeated for MC dropout. The sampling settings alone do not quantify wall-clock time or establish how other sampling budgets would affect the calibration ordering.
The repeated trials describe variation with seeds under the selected protocol. Changing the source dataset, shifted counterpart or underlying task could introduce variation of a different kind. The comparisons are strongest when read with the text domain, checkpoint family, objective and confidence measure in view. For instance, the gains under shift support applying a validation-fitted temperature to these source and target pairs. They give a concrete demonstration of transfer, with the degree of transfer to a new domain left to measurement.
What came after
Subsequent citing papers take the problem of making confidence useful into different settings. Geng and colleagues’ survey brings confidence estimation and calibration together as topics for large language systems. The distinction matters in the classifier study because estimating confidence supplies the value and calibration checks the probability meaning it has earned. A survey organized around both topics places classifier-based comparisons within a wider literature about how uncertainty is obtained and interpreted. The later work is a survey of that broader area. Its connection here is the methodological question of how to evaluate a confidence estimate. A Survey of Confidence Estimation and Calibration in Large Language Models
Collins and colleagues study evaluation for mathematics through interactions. The classification study uses a text input, a fixed set of alternatives and an observed correct label. Interaction makes the unit of evaluation a more open question. It can matter which point in an exchange a judgment concerns and what counts as successful performance at that point. The later mathematics work brings evaluation into that interactive setting. Its topic extends the practical question motivating the classifier study, which is what an observed answer and the way it is elicited can establish about whether to rely on the system. Evaluating Language Models for Mathematics through Interactions
Amayuelas and colleagues examine known-unknowns uncertainty. Their subject is whether a system can recognize questions that bear on the limits of its own knowledge. That focus is related to selective prediction because both put value on identifying a case where an answer may be unsafe to rely on. The classifier study judges that signal through the ordering of correct and incorrect labels. The later study’s stated focus is uncertainty about what is known. This changes the object of inquiry from the probability of a winning class to recognition of a gap in knowledge. Knowledge of Knowledge: Exploring Known-Unknowns Uncertainty with Large Language Models
Ji and colleagues connect hallucination risk to internal states when a system faces a query. This directs attention to what the system’s internal representations reveal about the risk of producing an unreliable response. The classifier paper looks at the scores attached to a prediction, including how averaging or rescaling affects them. The hallucination-risk study shifts attention to an earlier source of evidence, the internal state associated with the query. Both questions concern a signal that could be informative about future error, with different observables and a different event of interest. LLM Internal States Reveal Hallucination Risk Faced With a Query
LUQ takes uncertainty quantification into long-text output. The move changes what an uncertainty measure has to describe. The classifier in the earlier study can assign a score to a selected candidate and group predictions according to that score. With long text, the unit whose reliability is being assessed can itself be part of the method. AGSC addresses long-text generation with adaptive granularity and semantic clustering. Those are choices about the level at which the output is analyzed and how meaning is used to group it. Both works pursue the uncertainty question in a setting the classifier study identifies as open. LUQ: Long-text Uncertainty Quantification for LLMs · AGSC: Adaptive Granularity and Semantic Clustering for Uncertainty Quantification in Long-text Generation
Falck and colleagues ask whether in-context learning admits a Bayesian interpretation and examine it from a martingale perspective. The classifier comparison treats Bayesian approximation as one family of tools for constructing predictive probabilities, including dropout sampling and stochastic classification layers. The later paper puts the Bayesian question at the level of learning from context. The link is a question about what probabilistic account can be given to predictive behavior, with the later work addressing adaptation through context and the earlier study evaluating uncertainty methods after supervised fine-tuning. Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspective
MetaFaith focuses on faithful uncertainty expressed in natural language. The classifier experiment gives faithfulness a numerical interpretation by comparing top-label probabilities with observed correctness. Expressing uncertainty in words introduces the additional question of what the wording communicates about reliability. The later work brings that communication problem into the research subject itself. Zaghouani’s theoretical and operational framework takes information disorder as its subject, a broader setting in which judgments about information and its reliability must be defined before they can be evaluated. These are distinct extensions of the question posed at the start of the classifier study. One addresses how uncertainty is conveyed, and the other addresses how a wider information problem is framed and made operational. MetaFaith: Faithful Natural Language Uncertainty Expression in LLMs · Grounding Information Disorder in NLP: A Theoretical and Operational Framework
Cite
Cite as Yuxin Xiao, Paul Pu Liang, Umang Bhatt, Willie Neiswanger, Ruslan Salakhutdinov and Louis-Philippe Morency. 2022. Uncertainty Quantification with Pre-trained Language Models: A Large-Scale Empirical Analysis. Findings of the Association for Computational Linguistics: EMNLP 2022.
@inproceedings{xiao2022uncertainty,
title = {{Uncertainty Quantification with Pre-trained Language Models: A Large-Scale Empirical Analysis}},
author = {Yuxin Xiao, Paul Pu Liang, Umang Bhatt, Willie Neiswanger, Ruslan Salakhutdinov and Louis-Philippe Morency},
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2022},
year = {2022},
doi = {10.18653/v1/2022.findings-emnlp.538},
eprint = {2210.04714},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/2022.findings-emnlp.538}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/xiao-2022-uncertainty-quantification-pre-trained-language/
References
- Moloud Abdar, Farhad Pourpanah, Sadiq Hussain, Dana Rezazadegan, Li Liu, Mohammad Ghavamzadeh, Paul Fieguth, Xiaochun Cao, Abbas Khosravi, U Rajendra Acharya, et al. 2021. A review of uncertainty quantification in deep learning: Techniques, applications and challenges. Information Fusion. OpenAlex ↗ · Scholar ↗
- Ahmed Alaa and Mihaela Van Der Schaar. 2020a. Discriminative jackknife: Quantifying uncertainty in deep learning via higher-order influence functions. In ICML. OpenAlex ↗ · Scholar ↗
- Ahmed Alaa and Mihaela Van Der Schaar. 2020b. Frequentist uncertainty in recurrent neural networks via blockwise influence functions. In ICML. OpenAlex ↗ · Scholar ↗
- Javier Antoran, Umang Bhatt, Tameem Adel, Adrian Weller, and José Miguel Hernández-Lobato. 2021. Getting a CLUE: A method for explaining uncertainty estimates. In ICLR. OpenAlex ↗ · Scholar ↗
- Yusuf Arslan, Kevin Allix, Lisa Veiber, Cedric Lothritz, Tegawendé F Bissyandé, Jacques Klein, and Anne Goujon. 2021. A comparison of pre-trained language models for multi-class text classification in the financial domain. In WWW Companion. OpenAlex ↗ · Scholar ↗
- Umang Bhatt, Javier Antorán, Yunfeng Zhang, Q Vera Liao, Prasanna Sattigeri, Riccardo Fogliato, Gabrielle Melançon, Ranganath Krishnan, Jason Stanley, Omesh Tickoo, et al. 2021. Uncertainty as a form of transparency: Measuring, communicating, and using uncertainty. In AIES. our card
- Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. 2015. Weight uncertainty in neural network. In ICML. OpenAlex ↗ · Scholar ↗
- Samuel Bowman, Gabor Angeli, Christopher Potts, and Christopher D Manning. 2015. A large annotated corpus for learning natural language inference. In EMNLP. our card
- Glenn W Brier et al. 1950. Verification of forecasts expressed in terms of probability. Monthly weather review. OpenAlex ↗ · Scholar ↗
- Youngseog Chung, Willie Neiswanger, Ian Char, and Jeff Schneider. 2021. Beyond pinball loss: Quantile methods for calibrated uncertainty quantification. In NeurIPS. OpenAlex ↗ · Scholar ↗
- Kevin Clark, Minh-Thang Luong, Quoc V. Le, and Christopher D. Manning. 2020. ELECTRA: Pre-training text encoders as discriminators rather than generators. In ICLR. OpenAlex ↗ · Scholar ↗
- Peng Cui, Wenbo Hu, and Jun Zhu. 2020. Calibrated reliable regression using maximum mean discrepancy. In NeurIPS. OpenAlex ↗ · Scholar ↗
- Soham Dan and Dan Roth. 2021. On the effects of transformer size on in-and out-of-domain calibration. In EMNLP (Findings). OpenAlex ↗ · Scholar ↗
- Stefan Depeweg, Jose-Miguel Hernandez-Lobato, Finale Doshi-Velez, and Steffen Udluft. 2018. Decomposition of uncertainty in bayesian deep learning for efficient and risk-sensitive learning. In ICML. OpenAlex ↗ · Scholar ↗
- Shrey Desai and Greg Durrett. 2020. Calibration of pre-trained transformers. In EMNLP. OpenAlex ↗ · Scholar ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In NAACL. our card
- Yarin Gal and Zoubin Ghahramani. 2016. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In ICML. OpenAlex ↗ · Scholar ↗
- Siddhant Garg, Thuy Vu, and Alessandro Moschitti. 2020. Tanda: Transfer and adapt pre-trained transformer models for answer sentence selection. In AAAI. OpenAlex ↗ · Scholar ↗
- I.J. Good. 1952. Rational decisions. Journal of the Royal Statistical Society. Series B (Methodological). OpenAlex ↗ · Scholar ↗
- Priya Goyal, Piotr Dollár, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. 2017. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677. our card
- Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. 2017. On calibration of modern neural networks. In ICML. OpenAlex ↗ · Scholar ↗
- Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. 2020. Deberta: Decoding-enhanced bert with disentangled attention. In ICLR. our card
- Dan Hendrycks, Xiaoyuan Liu, Eric Wallace, Adam Dziedzic, Rishabh Krishnan, and Dawn Song. 2020. Pretrained transformers improve out-of-distribution robustness. In ACL. our card
- Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, and Fillia Makedon. 2021. A survey on contrastive self-supervised learning. Technologies. OpenAlex ↗ · Scholar ↗
- Xiaoqian Jiang, Melanie Osl, Jihoon Kim, and Lucila Ohno-Machado. 2012. Calibrating predictive model estimates to support personalized medicine. Journal of the American Medical Informatics Association. OpenAlex ↗ · Scholar ↗
- Alex Kendall and Yarin Gal. 2017. What uncertainties do we need in bayesian deep learning for computer vision? In NeurIPS. our card
- Lingkai Kong, Haoming Jiang, Yuchen Zhuang, Jie Lyu, Tuo Zhao, and Chao Zhang. 2020. Calibrated language model fine-tuning for in-and out-of-distribution data. In EMNLP. our card
- Ranganath Krishnan, Pi Esposito, and Mahesh Subedar. 2022. Bayesian-torch: Bayesian neural network layers for uncertainty estimation (https://doi.org/10.5281/zenodo.5908307). https://github.com/IntelLabs/bayesian-torch. OpenAlex ↗ · Scholar ↗
- Ranganath Krishnan and Omesh Tickoo. 2020. Improving model calibration with accuracy versus uncertainty optimization. In NeurIPS. OpenAlex ↗ · Scholar ↗
- Volodymyr Kuleshov, Nathan Fenner, and Stefano Ermon. 2018. Accurate uncertainties for deep learning using calibrated regression. In ICML. OpenAlex ↗ · Scholar ↗
- Aviral Kumar, Sunita Sarawagi, and Ujjwal Jain. 2018. Trainable calibration measures for neural networks from kernel mean embeddings. In International Conference on Machine Learning. OpenAlex ↗ · Scholar ↗
- Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. 2017. Simple and scalable predictive uncertainty estimation using deep ensembles. In NeurIPS. our card
- Dan Ley, Umang Bhatt, and Adrian Weller. 2022. Diverse, global and amortised counterfactual explanations for uncertainty estimates. In AAAI. OpenAlex ↗ · Scholar ↗
- Nut Limsopatham. 2021. Effectively leveraging bert for legal document classification. In EMNLP Workshop. OpenAlex ↗ · Scholar ↗
- Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692. our card
- Yong Liu and Xin Yao. 1999. Ensemble learning via negative correlation. Neural networks. OpenAlex ↗ · Scholar ↗
- Ilya Loshchilov and Frank Hutter. 2018. Decoupled weight decay regularization. In ICLR. our card
- Andrew Maas, Raymond E Daly, Peter T Pham, Dan Huang, Andrew Y Ng, and Christopher Potts. 2011. Learning word vectors for sentiment analysis. In ACL. our card
- Bonan Min, Hayley Ross, Elior Sulem, Amir Pouran Ben Veyseh, Thien Huu Nguyen, Oscar Sainz, Eneko Agirre, Ilana Heinz, and Dan Roth. 2021. Recent advances in natural language processing via large pre-trained language models: A survey. arXiv preprint arXiv:2111.01243. our card
- Matthias Minderer, Josip Djolonga, Rob Romijnders, Frances Hubis, Xiaohua Zhai, Neil Houlsby, Dustin Tran, and Mario Lucic. 2021. Revisiting the calibration of modern neural networks. In NeurIPS. OpenAlex ↗ · Scholar ↗
- Jishnu Mukhoti, Viveka Kulharia, Amartya Sanyal, Stuart Golodetz, Philip Torr, and Puneet Dokania. 2020. Calibrating deep neural networks using focal loss. In NeurIPS. OpenAlex ↗ · Scholar ↗
- Rafael Müller, Simon Kornblith, and Geoffrey E Hinton. 2019. When does label smoothing help? In NeurIPS. OpenAlex ↗ · Scholar ↗
- Myle Ott, Michael Auli, David Grangier, and Marc’Aurelio Ranzato. 2018. Analyzing uncertainty in neural machine translation. In ICML. our card
- Yaniv Ovadia, Emily Fertig, Jie Ren, Zachary Nado, David Sculley, Sebastian Nowozin, Joshua Dillon, Balaji Lakshminarayanan, and Jasper Snoek. 2019. Can you trust your model's uncertainty? evaluating predictive uncertainty under dataset shift. In NeurIPS. OpenAlex ↗ · Scholar ↗
- Yao Qin, Xuezhi Wang, Alex Beutel, and Ed Chi. 2021. Improving calibration through the relationship with adversarial robustness. In NeurIPS. OpenAlex ↗ · Scholar ↗
- Xipeng Qiu, Tianxiang Sun, Yige Xu, Yunfan Shao, Ning Dai, and Xuanjing Huang. 2020. Pre-trained models for natural language processing: A survey. Science China Technological Sciences. our card
- Adrian E Raftery, Tilmann Gneiting, Fadoua Balabdaoui, and Michael Polakowski. 2005. Using bayesian model averaging to calibrate forecast ensembles. Monthly weather review. OpenAlex ↗ · Scholar ↗
- Pranav Rajpurkar, Robin Jia, and Percy Liang. 2018. Know what you don’t know: Unanswerable questions for squad. In ACL. our card
- Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. Squad: 100,000+ questions for machine comprehension of text. In EMNLP. our card
- Neeraj Varshney, Swaroop Mishra, and Chitta Baral. 2022a. Investigating selective prediction approaches across several tasks in iid, ood, and adversarial settings. In ACL (Findings). OpenAlex ↗ · Scholar ↗
- Neeraj Varshney, Swaroop Mishra, and Chitta Baral. 2022b. Towards improving selective prediction ability of nlp systems. In ACL Workshop. OpenAlex ↗ · Scholar ↗
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In NeurIPS. our card
- Yoav Wald, Amir Feder, Daniel Greenfeld, and Uri Shalit. 2021. On calibration and out-of-domain generalization. In NeurIPS. OpenAlex ↗ · Scholar ↗
- Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. 2019a. Superglue: A stickier benchmark for general-purpose language understanding systems. In NeurIPS. our card
- Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R Bowman. 2019b. Glue: A multi-task benchmark and analysis platform for natural language understanding. In ICLR. our card
- Xiangpeng Wei, Heng Yu, Yue Hu, Rongxiang Weng, Luxi Xing, and Weihua Luo. 2020. Uncertainty-aware semantic augmentation for neural machine translation. In EMNLP. OpenAlex ↗ · Scholar ↗
- Adina Williams, Nikita Nangia, and Samuel Bowman. 2018. A broad-coverage challenge corpus for sentence understanding through inference. In NAACL. our card
- Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, et al. 2020. Transformers: State-of-the-art natural language processing. In EMNLP. our card
- Yuxin Xiao, Zecheng Zhang, Yuning Mao, Carl Yang, and Jiawei Han. 2022. Sais: Supervising and augmenting intermediate steps for document-level relation extraction. In NAACL. OpenAlex ↗ · Scholar ↗
- Ji Xin, Raphael Tang, Yaoliang Yu, and Jimmy Lin. 2021. The art of abstention: Selective prediction and error regularization for natural language processing. In ACL. OpenAlex ↗ · Scholar ↗
- Huiqin Yang and Carl Thompson. 2010. Nurses’ risk assessment judgements: A confidence calibration study. Journal of Advanced Nursing. OpenAlex ↗ · Scholar ↗
- Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Russ R Salakhutdinov, and Quoc V Le. 2019. Xlnet: Generalized autoregressive pretraining for language understanding. In NeurIPS. our card
- Wonjin Yoon, Jinhyuk Lee, Donghyeon Kim, Minbyul Jeong, and Jaewoo Kang. 2019. Pre-trained language model for biomedical question answering. In ECML-PKDD. OpenAlex ↗ · Scholar ↗
- Rowan Zellers, Yonatan Bisk, Roy Schwartz, and Yejin Choi. 2018. Swag: A large-scale adversarial dataset for grounded commonsense inference. In EMNLP. our card
- Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. Hellaswag: Can a machine really finish your sentence? In ACL. OpenAlex ↗ · Scholar ↗
- Taolin Zhang, Zerui Cai, Chengyu Wang, Minghui Qiu, Bite Yang, and Xiaofeng He. 2021. Smedbert: A knowledge-enhanced pre-trained language model with structured semantics for medical text mining. In ACL. OpenAlex ↗ · Scholar ↗
- Xiang Zhang, Junbo Zhao, and Yann LeCun. 2015. Character-level convolutional networks for text classification. In NeurIPS. our card
- Wenxuan Zhou, Kevin Huang, Tengyu Ma, and Jing Huang. 2021. Document-level relation extraction with adaptive thresholding and localized context pooling. In AAAI. OpenAlex ↗ · Scholar ↗
- Yikai Zhou, Baosong Yang, Derek F Wong, Yu Wan, and Lidia S Chao. 2020. Uncertainty-aware curriculum learning for neural machine translation. In ACL. OpenAlex ↗ · Scholar ↗