The confidence lab: from model confidence to testable abstention

Reproduction goal: separate calibration, error ranking and prediction sets
The previous experiment fitted temperature on a separately registered target-domain calibration pool and found that additional calibration data did not improve every metric. Here we ask whether lower probability loss also helps identify likely mistakes or changes prediction-set membership. We hold the examples and model scores fixed and vary only the shared temperature, then audit probability quality, the confidence ranking used for abstention and prediction-set membership separately.
Across 1,000 exploratory IMDb reviews, the target-domain temperature reduced negative log-likelihood (NLL) from 0.441 to about 0.286. The model still classified 890 reviews correctly, and the full ranking of errors was unchanged. After recalculating the prediction-set threshold on the same calibration pool, each review had the same prediction set under all three temperature conditions. A single scalar changed the probability scale without giving the model more information about difficult examples.
The exploration pool had already been used in the truncation and configuration experiments, and SST-2 had been used earlier in the project. The new audit artifacts are 3,000 decisions across conditions, three full risk curves and 6,000 candidate-label membership decisions. The final confirmation pool has yet to be scored.
Temperature scaling changes the scale of probabilities
Temperature scaling divides both unnormalized class scores, or logits, by the same positive scalar before converting them to probabilities. Let the difference between the two class scores be , the positive probability and the maximum probability are:
Here. It's a video review index. It's the temperature that all samples share. is the logical function. The logits shape of a batch is , The second-class answer remains unchanged because the positive temperature does not change the difference sign; and due to a strict increase in logical functions, the value of the maximum probability is ranked at the same temperature in absolute fraction differences.
The smaller the negative log-likelihood measure the probability that the model will be assigned to a true label, the better:
It's a video assessment. It's a raw data label. Indicates the probability of a true label. A sample of false predictions and extreme self-confidence can lead to greater losses; a reduction in such overstretched confidence could improve average loss, even if the number of errors remains completely unchanged. When reading this phenomenon for the first time, it need not be seen as a contradiction of indicators: two are asking different questions.
The paper by Guo et al. reported on the calibration effects of temperature contraction in their research settings. This section does not reproduce those baseline figures and only uses the positive temperature method for logits. Our explanation for the unchanged ranking is derived from the above-mentioned algebra of the two categories, which are then tested on a sample-by-sampling basis; it does not automatically apply to each category with one temperature, multiple classification maximum probability or open correctness.
Evaluation protocol: which conditions stay fixed?
The target temperature is fixed for the previous full calibration pool. , Source area temperature fixed to . Original contrast . There is no search today for temperature, thresholds or calibration budgets based on the results of exploration.
The model is still a fixed classification DistilBERT SST-2. Enter the right cut to 512 tokens, using CPU, single precision, eager attention and 16 entries per batch. Today, eight search samples are actually re-played to check each identity, label, length and two-dimensional logits. The maximum difference between the fractions of eight batches and those of 16 historic batches is about 3:22 times ten in negative six parties; when a complete equivalent check fails, records are kept and a clearly disclosed numerical margin is used without covering official historical scores; and a formal analysis is conducted to reuse the saved 1,000 exploration score and 1,000 calibration points. Repetition to avoid double counting also requires that old reasoning be accounted for separately from today ' s new analysis.
The evaluation also reported negative logarithmics, mixed Brier scores for two categories, calibration errors between ten broad zones and cumulative errors corresponding to the total number of acceptances. The fixed confidence threshold is 0.9; in addition, a fixed acceptance number is used to rank the effects. The former allowed for the acceptance of a change in numbers, while the latter locked the denominator and the two could not be impersonated. Risks should be recorded as undefined when samples are not accepted and cannot be filled in zero.

Minimal experiment: which metrics changed?
| Conditions | negative log-likelihood | Brier | Ten box calibration errors. | Acceptances | Accept errors |
|---|---|---|---|---|---|
| Original Probability | 0.441018 | 0.195466 | 0.089068 | 945 | 89 |
| source domain temperature | 0.286309 | 0.169316 | 0.028521 | 634 | 23 |
| Target domain temperature | 0.285911 | 0.169648 | 0.028950 | 668 | 26 |
Each branch denominator is the same 1,000 exploratory reviews, with a correct number of 890. The relative original probability of the target temperature clearly reduces the loss observed this time, but there is little improvement in the relative source domain temperature and a slight increase in Brier ' s error with the compartment. The calibration of the proposed alignment is a specific objective that cannot require simultaneous improvement for all other indicators, nor can overall advantages be derived directly from post-minus differences.
At the point 9 threshold, target temperature accepted 668 articles, of which 26 were errors with an observation risk of approximately 3.8 per cent. The original probability corresponds to 89 divided by 945, about 9.42 per cent. The direct reduction of these two risks would ignore the large number of samples withdrawn from the acceptance set; under the same accepted quantities, the sample identities, errors and risks are identical for all three conditions.

The fact that the left three curves overlap so that the colour drawn will cover up the previous color does not mean that a condition is implemented less. The program saves all 1,000 prefix error counts and the audit script is itemized. The right-hand figure shows only the observational losses of this exploration pool, with no error lines and without treating the three conditions as three separate repeat experiments.
Conformal prediction sets: why did thresholds change while sets stayed fixed?
Use the minimum LAC score, i.e. one less candidate label probability. The threshold is 901 fractions in ascending order on a thousand calibration records:
For the calibration of samples, It's a pre-set error level. It's a numbering order from the beginning. is the predictive assembly that contains zero, one or two labels. The code uses less than the equal relationship and does not call the default interpolation fraction to avoid quietly changing the discrete threshold.
The thresholds for unscaled, source-domain and target-domain probabilities were approximately 0.7343, 0.6010 and 0.6048, respectively. Each covered 901 exploratory reviews. All three conditions yielded zero empty sets, 979 singletons and 21 two-label sets. The code checked the labels in every prediction set and found zero membership changes. Matching totals alone would not establish that result.
The reason for this is that the probability of any candidate label under category II has been changed by uniform positive temperature and is subject to the same strict incremental map. The scores corresponding to the probability of a reduction are also kept in order; when calibrated points and those subject to evaluation are transposed, they move simultaneously with the comparative relationship. Therefore, the change in probability scale here does not alter the object selected for the assembly boundary. The floating-point boundary still needs to be measured and an audit could not be omitted by writing only one theoretical conclusion.
There is also an easily missed limit: the target temperature and assembly fractions use the same calibration pool. The usual decoupling argument requires that the scoring function be fixed in addition to the calibrated sample used for the fraction number and cannot be reproduced directly. This experiment only advocates the equivalent of actual aggregations under single-modified subclasses to original fixed fractions; film grouping, past exploration and changes in distribution still limit overall interpretation. Ninety-one per cent coverage was observed at one time, and it was not a sample or sub-group guarantee.
Upstream code and reproduction instructions
Read the official temperature scale first. temperature_scale, confirmation that the division occurs before softmax; read again set_temperature, confirm the optimal use of calibration labels. Then look at the classification model for Transformers forward, check the header output and label map. The accompanying SOURCE_MAP gives verified fixed submissions, specific file entry, permissions and local corresponding modules, clearly distinguishing between official models and independent teaching analysis.
The full source code of this article has been made public: Fixed Version Directory、README、SOURCE_MAP. The public copy is consistent with the local archive file-by-file summary, and independent audits have been conducted and real models tested.
The minimum recovery command is python analyze.py && python audit.py, generate aggregate results, sample-by-sampling decision-making, and independent audit records. When reruning a real model, download the fixed Hashi resources at README for implementation python run.py smoke --cache cache --archive aclImdb_v1.tar.gz. The practical scope of this exercise is the analysis of eight models with a full freeze log, which does not claim to have been re-engineered today by 2,000.
Troubleshooting and remaining limitations
If the answer changes after a positive temperature change, priority is given to checking whether the input cut-off, label order or model configuration has been changed. If the ranking changes, examine parallel processing and value saturation instead of immediately claiming that calibration has been identified. This is done in a stable identity sequence, and independent scripts are directly aligned with the absolute value of the original fraction difference to avoid that both codes repeat only one calculation error.
Twenty-six confidence errors still exist. Temperature does not increase the length of the context, nor does it repair negative, ironic or mixed emotional understanding; and no errors are attributed to these language phenomena because they are not marked in real terms. The original video evaluation labels follow open data and are not counted by token length as confirming that pre- and post-cut tags are maintained. Where such conclusions are needed in the future, other authentic samples and indications should be developed.
The independent arithmetic audit uses two sets of indices to consolidate the recalculation probability, using another path for checking loss, membership and ranking, without importing a primary analytical function. Enter identification and abstract, scripts, commands, exit codes; this is automatic double-checking, not manual review. It is also not possible to confirm that the sealing of the pool is based on a text commitment, and only explores its reasoning by analysing the registered documents listed in a prominent form.
Another risk of recurrence is the lack of a cache of identity. Only a model with the same name does not ensure that points are comparable: severer files, input pool summaries, cut-off strategies, attention realizations and codes themselves need to be recorded. Check the summary of each document before this reading weight, and the results are separately entered into the log summary; any replacement should generate new operational records rather than cover old experiments and continue to follow old findings.
The resource report is also interpreted in terms of actual scope. The time-consuming and peak memory of the eight test runs reflects only today ' s minimum redundancies and is not used to cost 2,000 complete reasoning. Official historical reasoning is maintained in the original fixed-issue version, while today ' s command records clearly distinguish between download caches, model runs, full volume analysis, independent auditing and mapping. In this way, the reader can only recalculate definitive conclusions or choose to re-enter inputs at the cost of model reasoning.
Research question and summary
This section provides a boundary suitable for continued testing: when ranking is determined by the same absolute difference, further optimization of a global temperature can only change the probability scale. The next stage would require registration of the only research lead, whether to improve loss or ranking and then set up a comparison of data with equivalent calculations; it was not possible to see confirmation results before deciding which goal was more worthy of reporting.
The conclusion that can be retained here is specific: in the frozen real model and in the exploration pool, the recalibration improves the loss of relative original probability and does not change the LAC collection of correct numbers, incorrect sequencing and synchronized recalculation thresholds. The value of negative results in the case of new persons is to exclude impossible interpretations; for those who recover from work, it is to leave a log that is sufficiently detailed so that “unchanged” can also be examined article by article.
References
Date of search: 2026-11-21. The paper report, this exercise and the above algebra extrapolation are described separately.
- Guo, Pleiss, Sun, Weinberger. 2017. On Calibration of Modern Neural Networks.
- Geoff Pleiss. temperature_scaling fixed.
- Maas etc. 2011. Learning Word Vectors for Sentiment Analysis.
- Angelopoulos and Bates. 2021, v 6 revised at 2022. A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantification.
Apps by the author
Alongside this blog, I build small tools to make everyday life more manageable. Here are two apps I developed independently:
- Daily Expense Journal: Track income and expenses, give each amount a purpose, and plan budgets and savings goals. View on the App Store.
- One Small Action: Start with a small action that fits the time and energy you have, then record how it felt and what you noticed. View on the App Store.