Elamur Research

Calibrated Language Model Fine-Tuning for In- and Out-of-Distribution Data

Paper · 2020 · Lingkai Kong, Haoming Jiang, Yuchen Zhuang et al.

Summary

A text classifier can choose the right category more often while giving a less reliable account of how sure it is. In the paper’s opening experiment, a BERT classifier reached 87.4% accuracy on the 20NG15 test set, compared with 83.9% for a convolutional classifier. Yet its expected calibration error rose to 9.5%, compared with 4.0% for the convolutional system. This error measures the gap between stated confidence and the observed frequency of correct answers. BERT also gave confident answers to documents from 20NG5, the categories withheld from training. The authors connect both problems to the capacity of a pretrained encoder relative to the amount of labeled data available during fine-tuning.

The paper changes how the classifier is trained. It generates examples in the numerical space used to represent text, with different targets depending on where those examples are placed. For an on-manifold example, it makes a small move from one training input in a direction guided by the features of another. It then mixes their labels, so an example guided toward a different class can receive a target that gives some weight to both classes. For an off-manifold example, it makes a larger move in a direction that increases the loss on the original label. The classifier is trained to spread its probability across the known classes at that point. The first operation encourages confidence to change gradually near familiar examples. The second teaches the classifier to express uncertainty at synthetic inputs meant to stand in for unfamiliar data.

The authors test the combined procedure on six text classification settings drawn from 20 Newsgroups, Web of Science, and Yahoo! Answers. They measure calibration on held-out examples from known classes, the ability to flag wrong predictions on those examples, and the ability to flag out-of-distribution inputs. The method has the lowest expected calibration error except on Yahoo, where the entropy-regularized baseline does slightly better, and its classification accuracy stays competitive. It leads the reported detection comparisons in all six settings at the main confidence bound. For example, when trained on 20NG and tested for detection of SST-2 alongside its usual test data, it scores 63.92 against 47.00 for the strongest baseline on the paper’s bounded detection measure.

The component tests help explain the results. Removing the off-manifold term brings that 20NG out-of-distribution score down to 43.87. The effect of the same removal is smaller when the unfamiliar inputs are withheld categories from the same collection. Removing the on-manifold term worsens calibration on familiar data. The results show that confidence can be improved through the fine-tuning objective while retaining competitive accuracy, and that the source of unfamiliar inputs matters to how easily they can be detected. The authors released their implementation as Calibrated-BERT-Fine-Tuning.

Deep dive: Calibrated Language Model Fine-Tuning for In- and Out-of-Distribution Data

Calibrated fine-tuning uses nearby and off-manifold training examples to improve confidence estimates for familiar and unfamiliar text. · about 38 minutes to read

The problem and its context

Accuracy and confidence answer different questions

A classifier assigns scores to possible categories. Once those scores are converted into probabilities, the category with the highest probability supplies the prediction, and the probability attached to it supplies the confidence used in this paper. Accuracy asks how often the predicted category matches the recorded label. Calibration asks how the numerical confidence relates to the outcomes. A classifier can improve the relative scores enough to choose more correct categories and at the same time make its highest probabilities too emphatic.

The authors illustrate the intended interpretation through a group of predictions. If 100 examples each receive confidence 0.6, calibration at that confidence would mean that 60 are correctly classified. The calculation concerns the frequency among cases that receive the same stated confidence. There is still an individual outcome for each case, and the probability is useful because it describes what to expect across comparable predictions. In an experiment, scores usually have to be grouped into intervals before that expectation can be estimated.

That question matters whenever a prediction is used together with its probability. An uncertainty-based labeling procedure may choose which examples to send for annotation using the classifier’s confidence. A system that concentrates almost all its probability on a single answer for difficult inputs gives such a procedure less information about which decisions warrant attention. The paper also identifies robustness and fairness as motivations for reliable probabilities. Its experiments use classification and detection outcomes to study calibration directly.

Familiar errors and unfamiliar inputs

The paper separates inputs drawn from the task’s usual data from inputs that fall outside the distribution represented by the training data. In the first case, a correct label is available within the classifier’s list of categories. A low-confidence prediction may reflect ambiguity among those categories, and a high-confidence prediction is appropriate when the evidence warrants it. The observed rate of correct answers provides a way to judge what those probabilities mean.

For an out-of-distribution input, abbreviated OOD, the task can lack an applicable label altogether. A system trained on selected newsgroup categories still returns scores over those categories when it receives a document from a withheld group. The largest score identifies the closest competitor under the classifier’s decision rule. For the paper’s purposes, confidence should remain low when the whole set of answers is inappropriate. Its ideal in this case is a uniform distribution over the known labels, which makes the largest class probability as small as it can be for that label inventory.

These cases pose different demands on the training signal. For familiar categories, some answers deserve concentrated probability and others deserve a more divided prediction. For OOD inputs, the authors seek a broadly uncertain response across the available labels. In both cases, the measure at test time can start from the same number, the largest class probability. The desired behavior behind that number depends on whether a correct answer belongs to the task.

Why fine-tuning brings the issue into focus

The paper situates its question in the transfer-learning approach to natural language processing. An encoder first learns from a large collection of text, then its parameters are adapted using labeled examples from a downstream task. The introduction cites the progress of pretrained systems such as RoBERTa, ALBERT, and T5 and the role of benchmarks such as GLUE and SuperGLUE. The success of this approach makes the behavior of the resulting probabilities a practical question.

Large capacity serves a purpose in pretraining. The paper uses T5 as an example, citing 745 GB of pretraining text and about 11 billion parameters. The scale of that example illustrates the difference between the resources used to learn general representations and the supervision available during adaptation to a particular task. A comparatively small labeled set can leave considerable freedom in how a large encoder and its classification layer behave between training examples and away from them.

The authors’ explanation is that ordinary fine-tuning can fit the likelihood of the training labels too closely. The supervised objective encourages high probability for each observed label. Once the classifier frequently places that label first, pushing its probability still higher can improve the training objective without changing the predicted class. The authors connect that behavior to over-parameterization and cite earlier calibration findings for deep convolutional networks. Their own comparison uses a fine-tuned BERT classifier and a convolutional text classifier to ask whether the issue carries over to a downstream language task.

What earlier approaches offered

Temperature scaling is the paper’s main example of correction after training. It fits a single temperature on development data and uses it to rescale the classifier’s logits, the numerical scores before conversion to probabilities. A positive temperature preserves the ordering of the class scores for an input. This allows the probabilities to become less concentrated while leaving the chosen label in place. The authors regard that common adjustment as limited because it has to serve every input and has no separate training signal for unfamiliar cases.

A training-time penalty on highly concentrated predictions offers another route. The entropy regularizer discussed by the authors discourages confidence directly. Entropy describes how spread out a probability distribution is. High entropy corresponds to more evenly distributed mass. The concern is where such pressure is applied. A penalty that routinely encourages broad distributions can weaken confidence on examples whose predictions deserve to be emphatic. The paper retains an entropy term and directs it at a particular set of synthetic inputs.

Label smoothing changes the training targets by reserving some probability mass for classes other than the annotated answer. The paper’s proposed targets are also soft distributions, but the allocation depends on which examples are paired. Mixup supplies a different precedent. It trains on interpolated inputs and labels. Manifold Mixup performs its interpolation in a hidden representation. The authors’ motivation for another interpolation rule is geometric. A straight path between examples in a chosen representation may pass through regions unlike the ones occupied by real data.

The paper discusses other ways to estimate uncertainty as well. Bayesian neural networks put distributions over parameters, as illustrated by work on variational Bayesian neural networks. The authors emphasize the difficulty of choosing priors and performing exact inference. Deep ensembles average predictions from separately initialized systems, which makes repeated fine-tuning a computational concern. The paper also mentions maximum mean calibration error, a differentiable alternative based on kernel embeddings, and raises the cost of that calculation for large pretrained encoders.

The proposed method starts from a different use of the available training examples. A labeled document can anchor a neighborhood in which nearby representations receive compatible predictions. The same document can also anchor a search for a point that is difficult for the classifier and farther from where the training evidence applies. The method gives these searches different constraints and assigns the resulting points different training targets.

The method, step by step

What gets augmented

The procedure works on the continuous embeddings that enter the feature extractor. A training document has an input representation and a label, and the feature extractor maps that representation to task-relevant features. A task-specific prediction layer uses those features to return probabilities over the categories. The authors perturb the embedding used as input to the feature extractor. To decide where a perturbation should go, they consult either the extracted features or the prediction loss. The resulting vectors can be used during training without having to turn them into sentences.

The paper calls the region associated with plausible data the data manifold. The intuition is that ordinary texts occupy a structured part of the available representation space. The learned feature extractor provides a way to compare points with respect to that structure. It is an estimate learned from finite data, which is why the on-manifold search is restricted to a small neighborhood of a real input. “On-manifold” and “off-manifold” describe the roles assigned to the generated points by the procedure.

The first generated point starts close to an anchor and is guided towards the features of a second training example. Its target mixes the labels of the two examples. The second generated point starts from an anchor and is sought at a prescribed distance in a direction that raises the current classification loss. Training pushes its predicted class probabilities towards evenness. The original inputs and their labels continue to supply the supervised learning signal.

How a fine-tuning update uses synthetic examples

The steps in order.

How a fine-tuning update uses synthetic examplesStep 1: Take a batch of labeled training embeddings1. Take a batch of labeled training embeddingsStep 2: Pair anchors with other training examples2. Pair anchors with other training examplesStep 3: Search nearby using the paired examples’ features3. Search nearby using the paired examples’ featuresStep 4: Mix the paired labels for nearby points4. Mix the paired labels for nearby pointsStep 5: Search farther away for high-loss points5. Search farther away for high-loss pointsStep 6: Encourage even predictions at the farther points6. Encourage even predictions at the farther pointsStep 7: Update using supervised loss and both regularizers7. Update using supervised loss and both regularizers

The joint training objective

Let the training set consist of N input embeddings xᵢ with labels yᵢ, indexed by i. Each original label is a one-hot vector, meaning that it assigns all its target mass to the annotated category. Write f for the feature extractor, g for the prediction layer, and θ for the trainable parameters of the two. The parameters are adjusted by minimizing a supervised term and two regularizers in the same objective.

min over θ of ℱ(θ) = 𝔼₍ₓ,ᵧ₎∼S[ℓ((g ∘ f)(x), y)] + λₒₙ ℛₒₙ(g ∘ f) + λₒ𝒻𝒻 ℛₒ𝒻𝒻(g ∘ f)

Here ℱ is the objective, θ is the parameter collection over which the minimization takes place, and S is the labeled training set. The expectation 𝔼 averages over pairs of an input embedding x and its label y drawn from S, as indicated by ∼. The composition symbol ∘ puts f before g, so that g receives the features of x. The function ℓ is cross-entropy, which for a one-hot target penalizes low predicted probability for the annotated class. The terms ℛₒₙ and ℛₒ𝒻𝒻 are the on-manifold and off-manifold regularizers. The coefficients λₒₙ and λₒ𝒻𝒻 set their weights relative to the supervised term.

Each part of this objective has a distinct source of supervision. The recorded label determines the ordinary cross-entropy. The pair of examples determines the target for the nearby point. The farther point receives a preference for evenly spread predictions regardless of which label the anchor carried. That original label does appear when searching for the farther point, where its role is to help locate a direction of increasing loss.

Finding a nearby point in a feature-guided direction

The on-manifold procedure takes two labeled examples. Call their embeddings x and x̃ and their targets y and ỹ. Use x as the anchor. The feature representation of x̃ indicates where the search should head. Candidates must stay inside a neighborhood of x, even if moving beyond that neighborhood would produce features more like those of x̃.

x′* = argmin over x′ ∈ 𝔹(x, δₒₙ) of Dₓ(f(x′), f(x̃))

The candidate x′ and the solution x′* are input embeddings. The tilde on x̃ identifies the second training embedding. The operator argmin selects an embedding that minimizes the quantity following it, while ∈ restricts the search to the set 𝔹. The set 𝔹 is centered at x and has radius δₒₙ. The function f maps each embedding to its features, and Dₓ is the comparison quantity on those features. The subscript in Dₓ distinguishes the feature comparison from the label-side training target.

𝔹(x, δₒₙ) = {x′ ∣ ‖x′ − x‖∞ ≤ δₒₙ}

Here the braces describe the set of candidate embeddings x′ satisfying the condition after the vertical bar. The vector x′ − x is the displacement from the anchor. The infinity norm ‖·‖∞ takes the largest absolute coordinate change. The bound ≤ makes δₒₙ the largest permitted displacement on any coordinate. The ball therefore allows smaller moves as well as moves that reach its boundary.

The paper gives the following expression when discussing a cosine-based feature comparison.

Dₓ(a, b) = ⟨a / ‖a‖₂, b / ‖b‖₂⟩

In this expression, a and b stand for the two feature vectors. The norm ‖·‖₂ gives ordinary Euclidean length, division normalizes each vector by its length, and ⟨·,·⟩ is the inner product. For non-zero vectors the right side is cosine similarity. The paper calls the quantity a distance and uses a minimization in the search, while this displayed expression gives a larger value to more aligned vectors. The intended search is described in terms of approaching the partner’s features. This sign discrepancy matters when reading the formula as an implementation specification.

The local constraint and the choice of feature comparison solve different parts of the construction. The constraint limits how far the input can move according to its coordinates. The comparison determines whether a candidate moves in a desirable direction according to f. Since f can change during fine-tuning, the same pair can give a different feature-guided direction as training progresses. A fixed linear interpolation would specify a point using the endpoints alone once the space and interpolation weight were chosen.

The authors motivate the small neighborhood through the statistical limitations of the learned geometry. Features computed from finite data can suggest a direction, while the original example is a known training point. Staying close to that anchor restricts how much the search relies on the geometry away from observed examples. The label assigned to the point reflects the same preference for the anchor, though it uses its own interpolation parameter.

Giving the nearby point a target

The label changes by a controlled amount toward the partner’s label. It is computed from the two original targets rather than from the classification decision on the generated point.

y′ = (1 − δᵧ)y + δᵧỹ

The vector y′ is the target for the nearby synthetic embedding. The vector y is the anchor’s one-hot label, ỹ is the partner’s one-hot label, and δᵧ is the share assigned to the partner. The coefficient 1 − δᵧ is the complementary share assigned to the anchor. Addition combines the vectors coordinate by coordinate. The paper uses a small δᵧ so that the target remains weighted towards the anchor.

When the two labels agree, both portions of the mixture go to the same class. When they differ, the target allocates positive mass to the two paired classes. This is the distinction the authors draw with conventional label smoothing. The alternatives on a synthetic example arise from the pairing, while standard label smoothing uses a prescribed allocation to the other classes. Also, the feature displacement and label displacement are controlled independently. The method does not infer the exact probability of each class from the length of the feature move.

The on-manifold term measures how well the classifier matches these targets.

ℛₒₙ(g ∘ f) = 𝔼₍ₓ′,ᵧ′₎∼Sₒₙ[Dₖₗ(y′, (g ∘ f)(x′))]

The set Sₒₙ contains the generated input and target pairs. The symbols x′ and y′ denote a generated embedding and its soft target. The operator 𝔼 averages the enclosed quantity over those pairs. The function Dₖₗ is the Kullback–Leibler divergence, which measures discrepancy from the target distribution in the first argument to the classifier’s probabilities in the second. The composition g ∘ f makes those probabilities from the embedding x′. Minimizing ℛₒₙ encourages the classifier to put probability on the classes supported by the paired examples in the proportions set by the target.

A helpful way to understand the smoothing effect is to follow a cross-class pair. On the real anchor, ordinary training favors the annotated class. At the nearby point, the target gives some weight to the class of the partner. A classifier that stays just as emphatic about the anchor’s class at the nearby point incurs a penalty. The preferred amount of change is supplied by the soft target. In the same-class case, the regularizer instead asks the prediction to remain compatible with the shared label around the anchor.

Constructing a point for the uncertainty penalty

The off-manifold search also begins at a real training example. It looks for a displacement that makes the classifier perform badly on the original label according to cross-entropy. This is the sense in which the paper calls the direction adversarial. The search uses a prescribed radius and selects from the surface of a neighborhood. The aim is to find a point that can stand in for an input outside the region supported by training data. The authors motivate the direction using prior work on adversarial robustness and generalization.

x″* = argmax over x″ ∈ 𝕊(x, δₒ𝒻𝒻) of ℓ((g ∘ f)(x″), y)

The double prime distinguishes an off-manifold candidate x″ from an on-manifold candidate x′. The starred embedding x″* is the selected point. The sphere 𝕊 is centered at x and has radius δₒ𝒻𝒻. The symbol ∈ restricts candidates to that sphere, and argmax selects the candidate with greatest loss ℓ for the original label y. The paper prints a maximum in the equation while naming an embedding as its output. The selection form above expresses the operation described in the prose. As before, f computes features and g returns class probabilities.

𝕊(x, δₒ𝒻𝒻) = {x″ ∣ ‖x″ − x‖∞ = δₒ𝒻𝒻}

The braces specify the candidate set, and the vertical bar introduces the membership condition. The difference x″ − x is the perturbation of the original embedding. The infinity norm ‖·‖∞ compares the largest absolute coordinate change with δₒ𝒻𝒻. The equality places the candidate on the boundary. For the on-manifold ball, the analogous condition allowed candidates throughout the interior.

The maximization tells the algorithm where to put the example. At that location, the fine-tuning objective uses entropy. This distinction between the selection criterion and the training criterion is important. A point can have a high cross-entropy loss because the classifier confidently favors a class other than the anchor’s label. The search identifies the point using that loss, then the regularizer addresses the shape of the entire output.

ℛₒ𝒻𝒻(g ∘ f) = 𝔼ₓ″∼Sₒ𝒻𝒻[−ℋ((g ∘ f)(x″))]

The set Sₒ𝒻𝒻 contains generated off-manifold embeddings, denoted by x″. The expectation 𝔼 averages over those embeddings. The function ℋ is entropy on the probability distribution made by g after feature extraction by f. Its negative sign makes ℛₒ𝒻𝒻 smaller when entropy rises. Minimizing the full objective with a positive λₒ𝒻𝒻 therefore rewards probability distributions that are more evenly spread at the selected points.

The ideal output the authors specify for an unfamiliar example is the uniform distribution.

P(Y = j) = 1/K for every j ∈ {1, …, K}

Here P assigns probability to a class label Y. The index j identifies an individual class, and the braces enumerate all class indices. The number K counts the classes available during training. Each receives the same probability, 1/K. This ideal describes how an existing classifier can lower its confidence on unfamiliar data while keeping the same set of possible outputs. The loss encourages the ideal at generated points, and detection on real unfamiliar documents tests whether that behavior transfers.

Approximating the searches during training

The full objective contains inner searches for the points and an outer update of the parameters. In each training iteration, the current encoder and prediction layer are used to generate proposals. After that, the ordinary and synthetic examples supply the terms for the stochastic parameter update. This makes the augmented examples dependent on the current classifier instead of a fixed collection produced before fine-tuning.

The paper says the inner problems can be approached with repeated projected sign-gradient updates. A gradient supplies a direction for changing the candidate input, taking the sign gives the coordinate-wise directions, and projection brings the proposal back into the permitted search region. In practice, the authors report using one update with random initialization for each search. The resulting samples approximate the optimization targets. The paper presents this as a way to keep the additional training work manageable.

The outer updates use Adam with β₁ set to 0.9 and β₂ to 0.999. These are the optimizer’s coefficients for the running gradient statistics used to adjust its updates. For the proposed method the authors use λₒₙ and λₒ𝒻𝒻 of 1, an on-manifold radius of 10⁻⁴, an off-manifold radius of 10⁻³, and a label interpolation share of 0.1 across the experiments. The same radii and target interpolation rule are applied regardless of which source later supplies unfamiliar documents for testing.

Experiments and results

What counts as familiar or unfamiliar

Each experimental setting has training examples from the designated known classes, a held-out in-distribution test set, and examples designated as OOD. The detection test pools the in-distribution test examples with the OOD examples. This gives the detector both familiar cases that may be accepted and unfamiliar cases that should be flagged. The paper uses both external sources and withheld classes from the original source, so unfamiliarity can mean a change of collection or a change in the available labels within a collection.

The full 20 Newsgroups task, 20NG, has 20 categories. For this task, the out-of-distribution examples come from the Stanford Sentiment Treebank’s SST-2 dataset. The 20NG15 setting instead uses the first 15 newsgroup categories as its known classes. The remaining 5, called 20NG5, supply unfamiliar inputs. In the full task, documents from SST-2 come from a separate corpus. In the restricted task, the deployed classifier sees documents drawn from the same collection as its training material, but about categories it has had no opportunity to learn as prediction targets.

Web of Science, abbreviated WOS, supplies scientific articles from 134 categories. Its external OOD collection is AGnews. WOS100 takes the first 100 WOS classes for the familiar side of the experiment and uses the remaining 34 classes, WOS34, as unfamiliar data. The full and restricted settings thus pose different recognition problems even within one source family. The full task compares familiar scientific text with a separate news collection, while the restricted task asks the classifier to recognize its uncertainty about other classes of scientific documents. HDLTex

Yahoo uses questions drawn from 10 categories of Yahoo! Answers, with Yelp as the external OOD collection. In the restricted Yahoo8 task, the first 8 categories are familiar and the other 2, called Yahoo2, are OOD. The original Yahoo training pool contains 140,000 examples per category. The dataset appendix reports drawing 2,000 per category for training and 500 per category for development. The choice keeps the labeled fine-tuning set smaller than the original pool, and provides a development set for selecting settings independently of the test evaluation.

The three restricted tasks were included to challenge the detector with unfamiliar inputs whose source resembles the familiar examples. The test label tells the evaluator whether the document comes from a withheld class. It gives the classifier no extra category at prediction time. Its route to a good detection score is to assign appropriately low confidence using the same output distribution that it produces on known classes.

What the proposed method is compared with

Plain fine-tuned BERT is the reference system in the main experiments. It uses base BERT with a linear classification layer. The opening experiment has a different purpose and compares a BERT-MLP classifier with TextCNN. The comparisons with temperature scaling, dropout and the other calibration procedures use the main BERT-based setup.

Temperature scaling fits its adjustment on the development set after fine-tuning. Monte Carlo dropout keeps dropout active at test time, collects predictions across stochastic forward passes and averages them. The experiments use 10 passes for this method. Those approaches give two different ways of modifying the probabilities that reach the evaluator. One resizes logits through a learned scalar. The other integrates over different dropout realizations at inference.

Label smoothing and entropy-regularized loss alter the training objective. Label smoothing redistributes target mass away from the annotated class. Entropy regularization makes concentrated predictions costlier. These baselines let the paper ask how much calibration improves simply by lowering pressure towards extreme confidence, before asking whether confidence should depend on the location and construction of an augmented example.

Virtual adversarial training promotes smoothness around examples using a perturbation chosen for its effect on the predictions. The paper includes it as a baseline for local regularization. Mixup and Manifold Mixup are direct comparisons for the interpolation idea. In the reported setup, Mixup interpolates on embeddings from the first layer and Manifold Mixup interpolates on features from the last layer. Together they test whether ordinary interpolation in either space provides the same benefits as using a feature-guided local search. Mixup training for calibration

The authors select baseline hyper-parameters using development-set ECE, averaging over 5 runs for tuning. For label smoothing the candidate settings are 0.05 and 0.1. The entropy penalty is searched from 0.05, 0.1, 0.25, 0.5, 1, 2.5, and 5. Virtual adversarial training uses a search over perturbation sizes 10⁻³, 10⁻⁴, and 10⁻⁵. The Mixup search uses 0.1, 0.2, 0.3, and 0.4 for the interpolation parameter. The Manifold Mixup search uses 0.2, 0.4, 1, 2, and 4. The criterion matters to the interpretation of the comparison. Development selection favors agreement between confidence and accuracy on the development data. The detection scores assess the consequences of those choices at test time.

Training settings also differ by dataset family. For both Yahoo and Yahoo8, the learning rate is 1 × 10⁻⁵, each batch contains 16 examples, and training runs for at most 5 epochs. The other settings use a learning rate of 5 × 10⁻⁵, a batch size of 32, and a maximum of 10 epochs. The dropout rate is 0.1. The authors apply WordPiece tokenization and cap the document spans at 150 tokens for 20NG and 20NG15 and at 256 for the other datasets. These choices define the text representation and training conditions under which the results were obtained.

Measuring agreement between confidence and accuracy

The paper begins with a population definition of calibration error at a given confidence. It then estimates calibration from predictions on test examples. The definition tracks the probability connected to the predicted label, which supplies a common quantity across examples whose predicted categories may differ.

ℰₚ = |ℙ(Ŷ(X) = Y(X) ∣ P̂(X) = p) − p|

Here X is an input sampled from the distribution of interest. The expression Y(X) denotes its ground-truth label, and Ŷ(X) is the predicted label. The value P̂(X) is the probability assigned to that prediction. The variable p is a particular confidence strictly between zero and one. The symbol ℙ denotes population probability, and the vertical bar inside its parentheses means that the event of a correct prediction is evaluated conditional on confidence p. The outer bars take the absolute difference between that correctness probability and p. This measures the size of the discrepancy at p.

In a finite test set, exact confidence values can occur too rarely to estimate the corresponding correctness rates separately. The paper groups predictions by confidence into M bins, writing ℬₘ for the bin indexed by m. For that bin it uses the lower and upper boundaries ℓₘ and uₘ. These boundaries define the range of confidence to which the bin’s empirical calibration error applies. The estimate averages the signed correctness-minus-confidence differences within each group, then takes the magnitude.

ℰ̂ₘ = |Σᵢ∈ℬₘ [𝟙(ŷᵢ = yᵢ) − p̂ᵢ]| / |ℬₘ|

The estimate ℰ̂ₘ is the error for bin ℬₘ. The sum Σ runs over example indices i in that bin, and |ℬₘ| counts its examples. The indicator 𝟙 gives one when the predicted label ŷᵢ equals the reference label yᵢ and zero otherwise. The value p̂ᵢ is the classifier’s confidence for instance i. The absolute bars around the sum make excess confidence and insufficient confidence count as errors in either direction. Taking the absolute value after summing makes the result the gap between the bin’s observed accuracy and its average confidence.

ECE = Σₘ₌₁ᴹ (|ℬₘ| / n) ℰ̂ₘ

ECE stands for expected calibration error. The sum Σ runs over the M bins indexed by m, starting with the first. The bin count |ℬₘ| divided by the test sample size n gives the fraction of examples represented by the bin. The term ℰ̂ₘ is the bin’s estimated error. This makes the contribution of a bin proportional to its share of the test set.

Accuracy appears alongside ECE because an uninformative predictor can be calibrated in an aggregate sense. The paper gives random guessing as an example of how low calibration error can coexist with poor predictive usefulness. A meaningful improvement in this study is consequently one in which the reported confidence aligns better with observed outcomes while the predicted labels remain competitive on their own metric.

Measuring whether low confidence flags the right inputs

The detection evaluation applies one decision rule to each task. A prediction whose top class probability falls below a threshold τ is flagged. For misclassification detection, the positive cases are mistakes on the in-distribution test examples. For OOD detection, the positive cases are the unfamiliar inputs in the combined test set. Ground-truth correctness defines the first evaluation, while dataset or class membership defines the second.

For each threshold, the authors calculate a detection F₁ score. F₁ combines precision, the share of flagged cases that are true positives, and recall, the share of true positives that are flagged. Raising the threshold passes more cases to the detector and can change both quantities. The resulting curve shows the operating thresholds at which confidence becomes a useful signal for the event being detected.

The authors summarize the curve up to a bound. They prefer a score that credits a method when the relevant cases are found at relatively low confidence thresholds. This makes the absolute values of the probabilities part of the evaluation in addition to their ability to order cases.

NBAUCC₍τᵤₚₚₑᵣ₎ = (1 / M) Σᵢ₌₁ᴹ F₁((τᵤₚₚₑᵣ / M)i)

NBAUCC means normalized bounded area under the calibration curve. The upper bound τᵤₚₚₑᵣ sets the confidence range of interest. In this formula, M counts integration subintervals, a separate use from M in the ECE formula. The index i enumerates the threshold steps up to M, and multiplying i by τᵤₚₚₑᵣ divided by M locates each threshold. The function F₁ gives the detection score at that threshold. The factor 1 / M takes the average across the sampled thresholds. The authors use M of 50 for this calculation and make 0.5 the main upper bound. The appendix also describes evaluations with upper bounds of 0.7 and 1.

The distinction from AUROC and AUPR, the areas under receiver operating characteristic and precision–recall curves, is easiest to see when two classifiers order inputs alike but place their scores in different ranges. A detector can benefit from a good ordering while still requiring a high threshold to catch its mistakes or unfamiliar inputs. In the appendix example, one classifier can detect the unfamiliar cases for thresholds between 0.15 and 0.9. The other needs thresholds between 0.85 and 0.9. Both receive an AUPR of 0.417 and an AUROC of 1 in that example. Restricting the threshold range gives the first classifier credit for detection at lower confidence values.

The opening example and the main comparisons

In the opening 20NG15 experiment, TextCNN records 83.9% accuracy and 4.0% ECE on the in-distribution test set. BERT-MLP records 87.4% accuracy and 9.5% ECE on the same task. Those values show why the paper tracks the two quantities separately. The reliability diagrams compare observed correctness and reported confidence on the familiar test set. The confidence histograms on 20NG5 then show that the BERT classifier also gives overconfident predictions for some examples in categories unavailable as answers. The unfamiliar categories in this opening comparison come from the same collection as the familiar ones.

In the main experiments, the combined regularizer gives the lowest reported in-distribution ECE against the baselines across the evaluated settings except Yahoo. Entropy-regularized loss has the better ECE on Yahoo. The paper reports competitive predictive accuracy alongside the calibration improvement. This comparison is a useful complement to the opening experiment because the main plain BERT baseline gives a reference for measuring what changes when the fine-tuning procedure itself is modified.

Misclassification detection is evaluated on the held-out examples from known classes. At the main upper bound of 0.5, the proposed method has the best reported average detection score in all six settings. This means the low-confidence region more usefully captures errors in the experiments, when scored across the sampled thresholds. The improvement concerns the handling of wrong predictions within the test set, which is a different outcome from lowering the average confidence–accuracy gap across bins.

The combined method also leads the reported comparisons for OOD detection at the same threshold bound in all six settings. The clearest numerical example discussed in the main text is 20NG with SST-2 as the unfamiliar source. The test combines SST-2 cases with familiar 20NG cases. The strongest competing method in the paper’s comparison reaches 47.00 on the reported NBAUCC scale, and the combined method reaches 63.92. Both values refer to OOD detection in that combined test, with the confidence threshold bounded by 0.5.

Out-of-distribution detection on 20NG with SST-2

The combined regularizers score higher across the bounded range of confidence thresholds.

Out-of-distribution detection on 20NG with SST-2Strongest baseline: 47.00Strongest baseline47.00On-manifold and off-manifold regularization (this paper): 63.92On-manifold and off-manifoldregularization (this paper)63.92
The numbers
System or settingNBAUCC₀.₅
Strongest baseline47.00
On-manifold and off-manifold regularization (this paper)63.92

The WOS detection curves show how the threshold bound changes the reading of the results. The authors describe the combined method as reaching high detection F₁ at smaller thresholds for both errors on familiar data and OOD inputs. The baselines in that comparison peak at higher thresholds. These curves connect the aggregate score to the paper’s aim. It wants erroneous and unfamiliar predictions to carry genuinely low confidence, so a detector can find them without having to set a very high cutoff.

The comparisons across sources also show that withheld categories can be harder to recognize than examples drawn from a different dataset. OOD status in 20NG15, WOS100 and Yahoo8 is defined by label exclusion within the source family. The classifier is tested on whether its confidence falls when a source looks familiar but the output inventory is incomplete. The main result covers both kinds of test. The absolute difficulty and the effect of each component deserve to be read in light of which one is used.

The result tables report averages from 5 random initializations. The authors also report a Wilcoxon signed-rank comparison using 5 seeds per dataset and state a significance level of α = 0.5. In their account, the exceptions to the claimed significance are the entropy-regularized loss comparison for ECE on Yahoo and the comparison with that baseline for misclassification detection on 20NG. The latter is an exception to the stated significance result even though the proposed method leads in the reported average score. The significance level as stated is material to the strength of that claim.

What the ablations show

What changes when each term is removed

The authors remove each regularizer in turn on 20NG and 20NG15. These settings give the ablation two different OOD sources while retaining a common dataset family on the familiar side. In the full 20NG task, unfamiliar inputs come from SST-2. In 20NG15 they come from the withheld 20NG5 categories. This lets the paper assess how much the off-manifold component contributes to detection in each setting and how the on-manifold component contributes to calibration of familiar predictions.

On 20NG, the reported OOD detection score at the 0.5 bound falls from 63.92 with both terms to 43.87 when the off-manifold term is removed. The classifier still receives the feature-guided mixed examples in the reduced setting. The drop indicates that the additional training pressure to spread probability at farther points contributes substantially when the unfamiliar inputs are drawn from SST-2. It is an empirical result about the effect of the removed term on real detection cases, whose representations are distinct from the synthetic points used to train it.

On 20NG15, the corresponding OOD detection scores are 9.69 with both terms and 7.94 with the off-manifold term removed. The authors attribute the smaller effect to the on-manifold term’s ability to help with unfamiliar classes from a related data source. That explanation is plausible under the method’s design. Local smoothing changes predictions in the vicinity of known classes, which may matter for documents from withheld categories in the same collection. The result directly measures the effect on detection. It gives indirect evidence about the relative placement of those inputs in representation space.

Removing the on-manifold term worsens in-distribution calibration in the reported ablation. The authors also report that the single-component variants improve over plain BERT in their comparisons. The pattern supports a division of labor in which learning from nearby soft targets helps calibrate familiar predictions, and learning to raise entropy at selected farther points contributes strongly to detecting unfamiliar data. The effects can overlap, as the remaining detection performance with on-manifold regularization illustrates.

The authors observe that the best on-manifold radius changes when the on-manifold term is used alone. The effective configuration depends on whether the other regularizer is active. In particular, the ablation compares objectives whose useful settings may differ. A reader can take the score pattern as evidence that both components earn their place in the combined procedure, while treating the reported removal scores as conditional on how each configuration was set up.

Sensitivity to where the points are placed

The parameter study varies the on-manifold radius, the off-manifold radius and the amount of label interpolation. It examines 20NG15, 20NG, WOS100 and WOS, covering both external-source detection and held-out classes within a collection. This analysis asks whether performance depends narrowly on the defaults and whether the directions of the changes match the rationale for the two regularizers.

Across the settings in the study, the metrics are reported as stable when the on-manifold radius δₒₙ varies from 10⁻⁵ to 10⁻². Predictive accuracy begins to decline when that radius exceeds 10⁻¹. The authors’ explanation is tied to locality. A larger allowed move can take the generated vector farther from the part of the space represented by the anchor, yet the target continues to use the anchor and the partner as its only evidence. A decline in label accuracy is consistent with the synthetic examples becoming less helpful for the original classification task.

The off-manifold radius δₒ𝒻𝒻 has a more sensitive effect. When it is too small, the authors report a sharp rise in ECE and attribute it to underconfidence on familiar data. In that regime, the method demands high entropy too close to examples whose labels still supply strong evidence. When the radius becomes too large, the authors report weaker OOD detection. Their interpretation is that the penalty applied at those more distant locations has less effect on the confidence relevant to the detection task. The radius therefore changes where the uncertainty signal reaches, with measurable consequences in both regimes.

The paper uses separate loss weights for the two terms, and the authors emphasize that weights and radii work together. Moving the generated examples changes the places at which the loss is evaluated. Changing a weight changes how strongly those places affect parameter updates. The authors allow configurations in which the on-manifold radius need not be smaller than the off-manifold radius, because the effect of each term also depends on its weight. The default ordering describes their experimental configuration and the geometric intuition behind it.

Sensitivity to how much label mass moves

The label interpolation share δᵧ changes supervision while leaving the constraint on the feature-guided displacement in place. This gives the authors a way to examine the effect of the target itself. A larger share makes the class of the partner more prominent on a cross-class pair. If the partners agree, changing that share leaves their shared hard target intact.

Most metrics were relatively stable as this parameter changed, according to the authors. ECE was more sensitive and began to rise when δᵧ exceeded 0.2. The default is 0.1. Since ECE tests the assigned probabilities, it can react when the degree of softening changes even while the most likely class frequently stays the same. The pattern fits the nearby-point rationale. A target near the anchor can acknowledge evidence toward another class while retaining a strong link to the anchor’s known label.

Taken together, the ablation and parameter study relate the results to concrete choices in the method. Removing a term changes which synthetic inputs contribute to fine-tuning. Changing a radius changes where the corresponding term acts. Changing the interpolation share adjusts the target for a nearby input. The analyses support the use of both training signals on the datasets tested and show where the paper’s settings become sensitive, especially when the uncertainty penalty is brought too close to familiar examples.

Limitations

Limits the authors identify

The learned feature geometry is an approximation. The authors explicitly ground this limitation in the finite training set used to learn f. Their small on-manifold search region is a response to it. The local constraint curbs the risk of taking a feature-guided move into a region poorly described by the examples. The method still relies on the quality of the features for its directions. The term manifold therefore expresses a geometric account of the augmentation, with the successful classification and detection results providing evidence about its practical use.

The authors also treat radius selection as consequential. Their parameter study finds that the off-manifold penalty can produce underconfidence when applied too close to ordinary inputs and lose detection effectiveness when applied farther away. They note the interaction between each regularizer’s radius and weight, and the ablation indicates that useful settings can shift when a component is removed. These observations limit the interpretation of the experimental defaults as settings that could be carried over unchanged to any representation or task.

For optimization, the two candidate searches are solved approximately. The authors found the single randomly initialized step sufficient for the reported experiments and discuss methods that could improve the search. They mention a technique based on Pontryagin’s Maximal Principle and an approach that learns an optimizer for the inner problem. These are possible extensions raised in the discussion. The reported experiments establish how the chosen approximation performs as part of the full recipe.

The paper also acknowledges the difficulty of OOD detection when unfamiliar categories share a source with familiar ones. The restricted-class settings make that difficulty visible in a controlled dataset construction. The method still helps in those comparisons. The absolute scores in the reported 20NG15 ablation show that the response to unfamiliar classes from the same collection can remain much weaker on the bounded detection metric than the response to the separate source used with full 20NG.

Limits of the evidence

The empirical scope is BERT-based classification over pre-defined categories. The authors suggest a broader application to other neural prediction problems, and they connect local smoothing to possible robustness against noise and benefits for generalization on low-resource tasks. The experiments establish calibration and detection behavior in the classification setups they evaluate. The discussion of other applications gives reasons to investigate those effects, while their size and reliability in those applications remain open questions.

The proposed explanation for miscalibration emphasizes the imbalance between parameter capacity and labeled examples. The opening TextCNN–BERT comparison establishes that calibration and accuracy can move in different directions in the same task. It changes the system as well as the capacity available during training. The comparison therefore supports the motivating observation directly, with the causal role of over-parameterization supplied by the authors’ interpretation and the earlier work they cite. The reported experiments do not isolate parameter count or labeled-set size as the cause.

The off-manifold signal is generated from embeddings, and the real OOD tests evaluate a transfer from those embeddings to natural text from designated categories or datasets. Better detection shows that this transfer can be useful. Its mechanism remains less directly established. The results do not locate a true data manifold or verify that every synthetic point falls on the side named by the regularizer. The cosine expression’s sign discrepancy and the notation for the off-manifold maximum are additional reasons to distinguish the procedure described in prose from a literal reading of every expression.

The full-source and withheld-class comparisons also change several features of the evaluation together. Restricting the known classes changes the classifier’s output inventory and may change the labeled examples available for training, while switching the OOD source changes the detection test set. F₁ depends on which cases are present and how often they occur in that test. The comparisons establish that the constructed same-source tasks are harder in the reported setup. The scores alone do not quantify an isolated effect of source similarity.

The paper’s ECE concerns top-label confidence averaged over bins. This supports a claim about the relationship between confidence in the chosen class and correctness at that level of aggregation. It can hide variation across individual classes or across examples that fall in the same bin. A reduction in ECE together with competitive accuracy is evidence of better aggregate behavior on the evaluated data. It leaves open how the calibrated probabilities behave for particular categories and for alternatives below the most probable class.

The bounded detection score has an equally specific interpretation. For a given OOD test set, it measures how well low top-label confidence identifies examples marked unfamiliar across the selected range of thresholds. The same formula for misclassification detection measures how well low confidence identifies recorded mistakes. Neither test directly measures the distance of the full predictive distribution from uniform on each unfamiliar input. The uniform distribution supplies the training objective’s ideal, and the thresholded top probability supplies the operational test.

The significance claim also needs to be read at the level the authors give. They state α = 0.5 for their Wilcoxon analysis and use 5 seeds for each dataset. The stated level permits a relatively high false-positive rate under the usual interpretation of a test’s significance threshold. The reported mean comparisons and ablations still describe the observed runs. The accompanying claim of significance is conditional on that reported choice.

What came after

Later papers cite this study from several areas that share an interest in the meaning of confidence scores. Their topics establish different connections to the fine-tuning work. For papers whose titles identify a survey, the connection is to how calibration and uncertainty are understood or evaluated. For papers whose titles name a method or experimental problem, the connection can be described at that level. The citations alone leave open which of the original paper’s specific regularizers, metrics or arguments each work draws on.

Confidence beyond the original classification tests

“How Can We Know When Language Models Know?” studies calibration for question answering. Its subject carries over a central question from the classification paper. A system produces an answer with a confidence estimate, and evaluation asks how that estimate relates to the answer’s correctness. The setting changes the form of the prediction. The 2020 classifier assigns probabilities within an established category inventory, whereas the later paper’s stated question concerns answers to questions. The citation connects those settings through the need for confidence that can be interpreted in terms of outcomes. How Can We Know When Language Models Know?

“Uncertainty Quantification with Pre-trained Language Models” frames the topic as a large-scale empirical analysis. Its connection is to the broader measurement problem of uncertainty in pretrained systems. The earlier study supplies a concrete instance of that problem by comparing confidence-based detection and calibration in a fine-tuning setup and by showing how they can respond to two distinct training signals. The later work’s stated scope puts empirical uncertainty assessment itself at the center. Uncertainty Quantification with Pre-trained Language Models

“A Survey of Confidence Estimation and Calibration in Large Language Models” addresses the two quantities that the original study pairs. Estimating confidence gives a score for a prediction. Calibrating it asks whether that score has the intended relationship to outcomes. The survey’s topic places the original work within a broader inquiry into confidence in large language models. The classification paper provides a particularly clear example of the distinction because it evaluates both agreement with correctness on known classes and whether low scores can flag unfamiliar inputs. A Survey of Confidence Estimation and Calibration

Labels, training and selection

“The ‘Problem’ of Human Label Variation” considers variation in labels through ground truth, modeling and evaluation. That subject meets the calibration paper at the recorded label used to judge a prediction. In the earlier experiments, correctness for a familiar example is defined against its dataset label, and the on-manifold procedure mixes two such labels to construct a new target. Human label variation raises a different reason for a target to involve uncertainty, namely the reference judgments themselves. The connection concerns what the targets and evaluation outcomes represent. The “Problem” of Human Label Variation

“Knowledgeable Prompt-tuning” incorporates knowledge into the verbalizer used for text classification. A verbalizer is the part of a prompt-based classification setup that connects answer words with task labels. Its stated intervention is at the point where a system’s language outputs are made to serve the classification task. The earlier paper changes the fine-tuning objective around a classifier with explicit category outputs. Both topics involve turning a pretrained system into a task-specific classifier, with the later paper’s title placing the emphasis on how the class predictions are expressed. Knowledgeable Prompt-tuning

“Multi-task Active Learning for Pre-trained Transformer-based Models” investigates active learning in a multitask setting. Active learning makes the selection of examples for labeling part of the learning procedure. The earlier paper cites uncertainty-driven selection as a reason to care about confidence. That creates a practical connection. If uncertain predictions influence which example receives a label, the interpretation of uncertainty can matter to the composition of the resulting training set. The later paper’s stated scope puts that selection question in a setting with multiple tasks and pretrained encoders. Multi-task Active Learning

Calibration in wider assessments

“Harnessing the Power of LLMs in Practice” is a survey on ChatGPT and related systems. Its practical subject gives the earlier paper’s distinction between accuracy and confidence a wider setting. An application can use a prediction’s probability to decide when to act on it or when to solicit review. The calibration paper gives one measured example of why overall accuracy alone offers incomplete guidance for that decision. The later survey’s title gives the context of practical use, while the cited study supplies evidence from a specific classification setup. Harnessing the Power of LLMs in Practice

“Trustworthy LLMs” surveys and gives guidance for evaluating alignment. The point of contact is the evaluation of a system’s behavior when a user needs to know how much to rely on its outputs. The earlier paper treats reliable confidence as a measurable property, with a defined score for familiar examples and threshold-based tests for errors and unfamiliar inputs. The later survey addresses a broader evaluation subject, of which confidence and the ability to express uncertainty form a related concern. Trustworthy LLMs

“Bias Dynamics in BabyLMs” describes a compute-efficient setting for studying debiasing during pretraining. It cites a paper whose main intervention occurs downstream, when a pretrained encoder is adapted to a classification task. The original paper mentions fairness as a motivation for reliable output probabilities, with its own experiments centered on calibration and detection. The later work’s title puts bias and pretraining at the center of its investigation. This citation connects inquiries at different stages of training. Its specific use of the calibration paper’s results remains unspecified. Bias Dynamics in BabyLMs

Cite

Cite as 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. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2020.emnlp-main.102 · arXiv 2010.11506

@inproceedings{kong2020calibrated,
  title = {{Calibrated Language Model Fine-Tuning for In- and Out-of-Distribution Data}},
  author = {Lingkai Kong, Haoming Jiang, Yuchen Zhuang, Jie Lyu, Tuo Zhao and Chao Zhang},
  booktitle = {Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.102},
  eprint = {2010.11506},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/2020.emnlp-main.102}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/kong-2020-calibrated-language-model-fine-tuning/

References

39 references, from the paper's own bibliography.

  1. Blundell, C., Cornebise, J., Kavukcuoglu, K. and Wierstra, D. (2015). Weight uncertainty in neural network. In International Conference on Machine Learning. OpenAlex ↗ · Scholar ↗
  2. Chang, M.-W., Ratinov, L., Roth, D. and Srikumar, V. (2008). Importance of semantic representation: Dataless classification. In Proceedings of the Twenty-Third AAAI Conference on Artificial Intelligence. OpenAlex ↗ · Scholar ↗
  3. Chouldechova, A. (2017). Fair prediction with disparate impact: A study of bias in recidivism prediction instruments. Big data, 5 153–163. OpenAlex ↗ · Scholar ↗
  4. Devlin, J., Chang, M.-W., Lee, K. and Toutanova, K. (2019). Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). our card
  5. Gal, Y. and Ghahramani, Z. (2016). Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In International Conference on Machine Learning. OpenAlex ↗ · Scholar ↗
  6. Gal, Y., Islam, R. and Ghahramani, Z. (2017). Deep bayesian active learning with image data. In International Conference on Machine Learning. OpenAlex ↗ · Scholar ↗
  7. Gilmer, J., Metz, L., Faghri, F., Schoenholz, S. S., Raghu, M., Wattenberg, M., Goodfellow, I. and Brain, G. (2018). The relationship between high-dimensional geometry and adversarial examples. arXiv preprint arXiv:1801.02774. OpenAlex ↗ · Scholar ↗
  8. Guo, C., Pleiss, G., Sun, Y. and Weinberger, K. Q. (2017). On calibration of modern neural networks. In International Conference on Machine Learning. OpenAlex ↗ · Scholar ↗
  9. Hendrycks, D. and Gimpel, K. (2016). A baseline for detecting misclassified and out-of-distribution examples in neural networks. In International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
  10. Jiang, H., Chen, Z., Shi, Y., Dai, B. and Zhao, T. (2018). Learning to defense by learning to attack. arXiv preprint arXiv:1811.01213. OpenAlex ↗ · Scholar ↗
  11. Jiang, H., He, P., Chen, W., Liu, X., Gao, J. and Zhao, T. (2020). SMART: Robust and efficient fine-tuning for pre-trained natural language models through principled regularized optimization. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. our card
  12. Kim, Y. (2014). Convolutional neural networks for sentence classification. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). our card
  13. Kingma, D. P. and Ba, J. (2014). Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980. our card
  14. Kowsari, K., Brown, D. E., Heidarysafa, M., Jafari Meimandi, K., , Gerber, M. S. and Barnes, L. E. (2017). Hdltex: Hierarchical deep learning for text classification. In IEEE International Conference on Machine Learning and Applications (ICMLA). our card
  15. Kumar, A., Sarawagi, S. and Jain, U. (2018). Trainable calibration measures for neural networks from kernel mean embeddings. In International Conference on Machine Learning. OpenAlex ↗ · Scholar ↗
  16. Lakshminarayanan, B., Pritzel, A. and Blundell, C. (2017). Simple and scalable predictive uncertainty estimation using deep ensembles. In Advances in Neural Information Processing Systems. our card
  17. Lan, Z., Chen, M., Goodman, S., Gimpel, K., Sharma, P. and Soricut, R. (2020). Albert: A lite bert for self-supervised learning of language representations. In International Conference on Learning Representations. https://openreview.net/forum?id=H1eA7AEtvS our card
  18. Lee, K., Lee, K., Lee, H. and Shin, J. (2018). A simple unified framework for detecting out-of-distribution samples and adversarial attacks. In Advances in Neural Information Processing Systems. OpenAlex ↗ · Scholar ↗
  19. Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L. and Stoyanov, V. (2019). RoBERTa: A robustly optimized BERT pretraining approach. arXiv preprint arXiv:1907.11692. our card
  20. Louizos, C. and Welling, M. (2017). Multiplicative normalizing flows for variational Bayesian neural networks. In International Conference on Machine Learning. our card
  21. Miyato, T., Maeda, S.-i., Koyama, M. and Ishii, S. (2018). Virtual adversarial training: a regularization method for supervised and semi-supervised learning. IEEE transactions on pattern analysis and machine intelligence, 41 1979–1993. OpenAlex ↗ · Scholar ↗
  22. Müller, R., Kornblith, S. and Hinton, G. E. (2019). When does label smoothing help? In Advances in Neural Information Processing Systems. OpenAlex ↗ · Scholar ↗
  23. Naeini, M. P., Cooper, G. F. and Hauskrecht, M. (2015). Obtaining well calibrated probabilities using bayesian binning. In Proceedings of the Twenty-Ninth AAAI Conference on Artificial Intelligence. OpenAlex ↗ · Scholar ↗
  24. Niculescu-Mizil, A. and Caruana, R. (2005). Predicting good probabilities with supervised learning. In International Conference on Machine Learning. OpenAlex ↗ · Scholar ↗
  25. Pereyra, G., Tucker, G., Chorowski, J., Kaiser, Ł. and Hinton, G. (2017). Regularizing neural networks by penalizing confident output distributions. arXiv preprint arXiv:1701.06548. our card
  26. Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W. and Liu, P. J. (2019). Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683. our card
  27. Shen, Y., Yun, H., Lipton, Z. C., Kronrod, Y. and Anandkumar, A. (2018). Deep active learning for named entity recognition. In International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
  28. Siddhant, A. and Lipton, Z. C. (2018). Deep bayesian active learning for natural language processing: Results of a large-scale empirical study. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing. our card
  29. Socher, R., Bengio, Y. and Manning, C. D. (2012). Deep learning for nlp (without magic). In Tutorial Abstracts of ACL 2012. OpenAlex ↗ · Scholar ↗
  30. Stutz, D., Hein, M. and Schiele, B. (2019). Disentangling adversarial robustness and generalization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. our card
  31. Thulasidasan, S., Chennupati, G., Bilmes, J. A., Bhattacharya, T. and Michalak, S. (2019). On mixup training: Improved calibration and predictive uncertainty for deep neural networks. In Advances in Neural Information Processing Systems. our card
  32. Verma, V., Lamb, A., Beckham, C., Najafi, A., Mitliagkas, I., Lopez-Paz, D. and Bengio, Y. (2019). Manifold mixup: Better representations by interpolating hidden states. In International Conference on Machine Learning. our card
  33. Wang, A., Pruksachatkun, Y., Nangia, N., Singh, A., Michael, J., Hill, F., Levy, O. and Bowman, S. (2019). Superglue: A stickier benchmark for general-purpose language understanding systems. In Advances in Neural Information Processing Systems. our card
  34. Wang, A., Singh, A., Michael, J., Hill, F., Levy, O. and Bowman, S. R. (2018). Glue: A multi-task benchmark and analysis platform for natural language understanding. In International Conference on Learning Representations. our card
  35. Wilcoxon, F. (1992). Individual comparisons by ranking methods. In Breakthroughs in statistics. Springer, 196–202. OpenAlex ↗ · Scholar ↗
  36. Wong, E., Rice, L. and Kolter, J. Z. (2019). Fast is better than free: Revisiting adversarial training. In International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
  37. Zhang, D., Zhang, T., Lu, Y., Zhu, Z. and Dong, B. (2019). You only propagate once: Accelerating adversarial training via maximal principle. In Advances in Neural Information Processing Systems. OpenAlex ↗ · Scholar ↗
  38. Zhang, H., Cisse, M., Dauphin, Y. N. and Lopez-Paz, D. (2018). mixup: Beyond empirical risk minimization. In International Conference on Learning Representations. our card
  39. Zhang, X., Zhao, J. and LeCun, Y. (2015). Character-level convolutional networks for text classification. In Advances in neural information processing systems. our card