The confidence lab: from model confidence to testable abstention

Reproduction goal: give the more complex method a fair comparison
The previous article preregistered a small research question: can separate temperatures for short and long movie reviews yield better probabilities than one global temperature? Here we run the comparison at the full calibration budget. Both methods use the same model, the same 1,000 calibration samples and the same 1,000 exploratory development samples. The only difference is whether we fit one temperature or two. The grouping rule was held fixed.
Grouping by length did not improve mean negative log-likelihood (NLL) on the exploration pool. At a fixed acceptance count of 800, the grouped method made one additional error. The result is specific to this comparison and gives no evidence that a separate temperature for each length group will automatically improve calibration.
A fair comparison makes the unit of comparison explicit. If the more complex method uses more labels, runs the model again or searches more candidates, the difference cannot be attributed to the method alone. The archived outputs record sample identities, compute accounting and the number of candidates, so the negative result can be audited.
Vary only the flexibility of probability scaling
Temperature scaling divides the classifier’s logits by a positive scalar and normalizes the result to probabilities. A positive temperature preserves the order of the class scores within an example and therefore preserves its predicted label. Different temperatures for different examples can change the confidence ranking across examples.
Guo examined neuro-network calibration in a paper published in 2001 and reported on the effects of uniparameter temperature constriction in many experiments. This article is based on its methodological definition and does not reproduce the complete set of models or data tables in the paper. The length groups are our pre-registered candidates for teaching and learning studies, and their results cannot be attributed to the original paper.
Set the score of two categories as , the official label is , the positive probability is:
of which It's the difference between two points. It's a no. Group temperature, is a logical function. The global approach consists of only one group; the clustering is divided into two groups according to whether or not the number of tokens actually retained exceeds 256. The length consists of a special token and is cut by up to 512 positions, so it does not equal the original number of characters, much less the semantic complexity of artificial judgement.
Fitting minimizes negative log-likelihood (NLL) on the calibration pool. The loss penalizes assigning a very low probability to the correct label:
It was the group that calibrated the sample collection. This is its size. The code uses an equal value expression with a stable number to avoid directly calculating the large index.
This is where the conductor moves with the reverse temperature and takes root in two parts of the freeze zone. The boundary does not have a root, selects its corresponding endpoint and does not force it to compress into the interior.
Reading the upstream implementation
Read the official first. temperature_scaling.py It's... temperature_scale, confirmation that the target is logits; read again set_temperature, confirm that the temperature is to be combined by a classification loss on an independent validation data instead of using the final assessment label for the best value. DistilBertForSequenceClassification.forward, check the fraction of two categories per sample and the tag number map.
Ours. metrics.py (a) The probability of achieving stability independently is divided into two lines, replacing the process whereby the original author relies on CUDA for optimization; analyze.py Increase in fixed length groups and pairings. They do not reproduce the author code word for word, nor do they claim to be optimized. The source map gives verified submissions, function-specific permanent links, licences and local matching modules; the model and tokenizer file summaries are locked separately.
Minimal experiment and dataset boundaries
The three IMDb pools were registered as stable status prior to the first projection, eliminating duplicate films and normalized texts for 1,000 entries per pool. This section uses only calibration and exploration pools for existing outputs; the final confirmation pool retains only an identity list, without reading its text content, label output or prediction. The reading list is used to aggregate the weight of the results and does not amount to using confirmed results for research.
The model remains the fixed classification DistilBERT SST-2 for review. SST-2 has been used in historical experiments and this study does not rename it as untested. Target IMDb text is publicly available, but whether the same content was seen in model pre-training has not been excluded and no zero contamination can be claimed. The public package contains only Hashi identity, official labels and model derived values, without the original video review or weight.
This time, eight true CPU smoke tests with existing reasoning portals are performed to check identity, label, length and logits; then the full range of indicators is recalculated for 1,000 preservation calibrated outputs. There were no reruns of two 1,000 model reasoning, no training models and no new experiments to compute light reprocessing into large models. Eight smoke batches are different from the official volume of history, using pre-established absolute error tolerances to avoid misperception of floating point end differences as data errors.

Evaluation protocol: matching the data and compute budgets
The global approach is to read all 1,000 calibration samples. The grouping method divides identical samples into 552 and 448 articles, each of which is intended to meet one temperature. Each group exceeds the registration threshold of 50 and therefore does not trigger the rule “one set short, two set back global temperature”. We don't change boundaries, fill samples or sift out false predictions.
Both methods perform 100 bisection iterations plus two endpoint gradient checks. The global method scans 1,000 examples per iteration. A full grouped iteration scans both groups, with 552 and 448 examples. Each method therefore uses 102,000 sample contributions to gradient calculations. The grouped method makes more scalar function calls and fits more parameters, without reading more labels or making more model forward passes. The budgets are equal by this definition, even if individual operations or elapsed times differ.
A single fit took about 21 ms for each method. Interpreter overhead, system scheduling and timing noise make this unsuitable for claiming a speedup at the microsecond scale. The model smoke-test forward pass took about 0.59 seconds, with peak resident memory of about 1.01 GB. That includes model loading and does not isolate tensor memory. The environment record includes the OS, Python and framework versions and input shape. Energy use was not measured.
The main comparison is still the difference between NLL and direction, defined as a grouping down overall; negative values indicate better candidates. The exploration phase was also based on a percentage range of registered seeds and 10,000 re-samplings, each taking the same sample identity applied to both methods. The retention of only one comment in each film reduces duplication with the film, but does not prove that all movie rooms are completely independent. The development pool has been observed, so only the exploratory comparison is described in the region and not as a final validation test.
Results: no gain from the more complex method
| Method | Temperature | NLL | Brier Class Sum | ECE Ten Large Box | Accept 800 errors |
|---|---|---|---|---|---|
| Global | 2.389599 | 0.285911 | 0.169648 | 0.028950 | 45 |
| Length Group | 2.424306 / 2.346368 | 0.286079 | 0.169720 | 0.031210 | 46 |
On both sides, eight hundred and ninety are correctly classified. Brier is the sum of probability error squares for both categories and cannot be directly compared with values that are only positive items. ECE is the weighted absolute value of the difference between post-box accuracy and average confidence, which fixes ten equal widths with no number of boxes. The three probability indicators here are slightly different, but the gap is very small and cannot be created by retaining more decimals.
Matching NLL differential to 0.000169 exploring percentage ranges , Over Zero. The risk under the fixed 80% acceptance rate has changed from 5.62% to 5:75%, an increase of 01.25 percentage points. While risk changes are in the context of pre-defined tolerance, key indicators still do not show gains and therefore there is no dual rule for success that meets the requirement of registration, let alone declaring a candidate successful.

The total ranking varied by 957 positions, but there were only eight symmetrical deviations for 800 entries, each of which was four. This reminds us that “many changes in ranking” and “great changes in decision-making” are two issues. Each predicting label will remain unchanged and the same group of internal rankings will not change, while the relative position across the group will be moved; there is a need to report both actual acceptance of the aggregation and error denominator.
Troubleshooting and independent recomputation
Independence audit.py No proposed function to call the main program. It uses gold to separate directly two types of losses from softmax, recalculates the probability loss, Brier, labels and acceptance ranking for 2,000 methods against three proposed target values. Check that the actual exit code is zero and keep a summary and results in the audit records. It's an auto-calculation, not a manual audit, and there is no new semantic gold tag.
The screening begins with a sample identification and protocol summary, then with the temperature range and boundary state, and ends with an indicator. New subgroups cannot be secretly added after the discovery of an inter-zero zone. If smoke fails, a distinction should be made between changes in model files, changes in sample sequences, mass float errors and real reasoning errors; a comparison of an average accuracy rate would leave most problems out. The initial progress scan encountered historical metadata field discrepancies, which were read in the actual recording format and did not indicate jump marks or overwhelm old manuscripts.
Research question and next steps
The author infers that the maximum temperature of both groups is close and that allowing additional freedom may mainly introduce estimated fluctuations. The existing results are compatible, but their causal contribution is not directly estimated and cannot be attributed to the semantic difficulty of a particular type of comment. The next article will only perform the minimal absorption of registered sample budgets of one hundred and twenty-eight and one thousand times two methods to test whether data levels have changed this phenomenon; no additional boundary searches.
Independent confirmation is still to be carried out once the freezing codes and configurations have been completed. Retaining a candidate now does not mean believing that it will win, but rather adheres to the agreed sequence of studies. Even if it continues to be ineffective in the end, a clear scope of application is left: this model, this target domain, this definition of length and this sample budget do not have sufficient evidence to support the additional parameters.
Source code and reproduction instructions
The source code has been published and documented anonymously: Fixed Source Directory、README、SOURCE_MAP. Twenty-nine distribution documents are consistent with local files, copies of which are publicly recalculated and true models smoked through.
The minimum reprocessing command is python analyze.py && python audit.py, run in the source directory, relying on press requirements.txt Install. Expected to generate a desired trajectory, sample-by-sampling result, pairing interval and independent audit; real model path alternative python run.py fetch Access to fixed resources for implementation python run.py smoke. README explains the cache recovery, download capacity and output overwhelming behaviour.
Summary
The first step in a fair comparison is to give the simplest explanation an opportunity to establish itself. Under the same sample and the same sample gradient budget, this length group has not won a global temperature; we therefore keep negative results, preserve protocols and continue to pre-register and digest rather than temporarily seek enabling groups. Testable research advances range from the discovery of upgrading to an accurate indication of where it has not yet occurred.
References
The following information is available at 2026-11-23. The paper report, official performance and the results of this exploration are presented separately.
- Guo, Pleiss, Sun, Weinberger. 2017. On Calibration of Modern Neural Networks. ICML, PMLR 70.
- Geoff Pleiss. official regular submission... MIT; temperature scaling and proposed entry.
- Maas, Daly, Pham, Huang, Ng, Potts. 2011. Learning Word Vectors for Sentiment Analysis... ACL; IMDb data source.
- Hugging Face. DistilBERTSST-2 Fixed Model Version...Apace-2.0; configuration and model identity.
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.