The confidence lab: from model confidence to testable abstention

The same input follows two calculation paths

Reproduction goal: treat the attention implementation as an experimental variable

The previous experiment changed the input truncation length. This time we fix the input and vary only the attention implementation. With the same movie review, model weights and prediction-set threshold, what changes when we switch from eager attention to scaled dot-product attention (SDPA)? We compare the numerical outputs, the predicted labels and then the prediction sets to see where any differences arise.

The two implementations produced slightly different numerical outputs but identical predicted labels and prediction sets across all 1,000 exploratory movie reviews. Each condition classified 890 reviews correctly, and its prediction sets contained the true label for 901 reviews. In this dataset and environment, the implementation switch left the discrete decisions unchanged. The observed coverage does not establish a theoretical guarantee or generalize to every configuration change.

The audit artifacts include 2,000 paired output rows, input digests, the execution environment, timing by condition, an independent high-precision recomputation and a frozen protocol. We fitted no temperature, used the same threshold and left the target-domain calibration pool and final confirmation pool untouched. The experiment establishes a numerical audit that can detect a change if one occurs.

Similar numerical outputs can yield identical prediction sets

Logits are the unnormalized scores from the classification head. Softmax converts them to probabilities for the two candidate labels. We select scaled dot-product attention (SDPA) through the attention-implementation option in Transformers. Both paths run on the CPU in single-precision floating point. The comparison varies the attention implementation without quantization or post-processing temperature.

PyTorch official document indicates that different attention to realization may result in numerical differences due to the floating point mode of operation. The document also reminds the caller to set the dropout correctly; this model enters assessment mode and closes the gradient by reasoning context. There is no declaration of the use of a GPU integrated core, nor is there any measurement of the internal nuclear stage transfer trajectory. The experimental condition name only indicates the framework implementation path that is actually selected. PyTorch 2.6 Document

A recent preprint by Doula and Mühlhäuser uses changes in reasoning configuration as a protometric axis. Only its abstracts, authors, title and versions are checked for research motivations, without recapitulating specific unexplored experiments or using the admission instructions completed by the author as a validation of independent conference information. Preprint

Freezing of input-threshold matching audit

From probabilities to decision boundaries

Sets the first label to be negative and the second to be positive. For single entry, the model output shape is two vectors; the batch output shape is two times the volume size.

pc(y∣x)=exp⁡(zc,y)∑j=01exp⁡(zc,j)p_c(y\mid x)=\frac{\exp(z_{c,y})}{\sum_{j=0}^{1}\exp(z_{c,j})}

of which xx It's fixed input. cc is the calculation configuration, zc,yz_{c,y} is the fraction of the label. yy and jj Zero or one. To achieve the use of a stable level II margin format, independent auditing uses an additional 50-digit decimal index to normalize and avoid two checks calling only the same function.

LAC The non-conformity of the real candidate label, i.e. the probability of subtracting the label:

sc(x,y)=1−pc(y∣x),Cc(x)={y:sc(x,y)≤q}s_c(x,y)=1-p_c(y\mid x),\qquad C_c(x)=\{y:s_c(x,y)\le q\}

Here. Cc(x)C_c(x) It's a forecast collection. qq is the freezing threshold. This article uses the unscaled-probability threshold of about 0.718652 established earlier from 256 SST-2 calibration examples and a target error rate of one tenth. The probability of a temperature scaling is not mixed in, and the fractions are not re-elected on IMDb. Thresholds must be matched with probabilistic scales, otherwise the change has become more than one variable.

The minimum distance from the boundary for all of the baseline fractions mm, the maximum probability change for two configurations is dd:

m=min⁡i,y∣1−pa(y∣xi)−q∣,d=max⁡i,y∣pa(y∣xi)−pb(y∣xi)∣m=\min_{i,y}|1-p_a(y\mid x_i)-q|,\qquad d=\max_{i,y}|p_a(y\mid x_i)-p_b(y\mid x_i)|

Subscript ii This post is part of our special coverage Syria Protests 2011. aa and bb If: eager and SDPA. d<md<m, No candidate for this limited sample is able to cross the boundary, and therefore the collection must be maintained. This is a certainty check of observed arrays, not a probability guarantee for future input, nor is it bound by uncalculated samples.

Reading the upstream implementation

Reads from MultiheadSelfAttention in a fixed Transformers submission. Checks how queries, keys, value projectors and masks go into attention; read DistilBertSdpaAttention to confirm that it calls the scaling point interface of the frame. Finally, enter Transformer Block along the realization map to check if the configuration field really determines the type of instance. Only a string is written in the script, which does not suffice to justify the switch.

This time, a complete file of the fixed submitted model was downloaded to reconcile it with the installation of an environmental source code by word. Source map records the actual submission, function and line numbers, Apache licences and local call locations. Cataloguing and syllables are carried out directly using official realization, with statistical pairs and group checks as independent teaching codes; the entire upstream warehouse is not packed into a compression package.

The framework version is fixed to Transformers4.49.0 and PyTorch2.6.0. Models and tokenizers are also used for registered review, document digests are verified on a case-by-case basis; local caches only avoid double downloads and do not replace identity checks. If the reader upgrades the framework, the new results should be considered as a new configuration and not cover this baseline quietly.

Minimal experiment and evaluation protocol

The data continues to use the IMDb three pools, 1,000 per pool, which were locked before the first prediction. Registered by film identity grouping and excluding duplicate normative texts, this time only explores the search pool text and reason. The identity files of the other two pools can be used to check that there is no overlap, but the target output is not read; final confirmation remains for the end of the series. Open text may have been subject to model pre-training and could not claim zero contamination.

SST-2 has been used in historical studies and its calibration threshold is a methodological experiment to reuse data. Bringing this threshold to a long-film review, there's already been a change in the domain. Even if both configurations reach 90% coverage, this does not mean that calibration scores and target points are restored to interchangeability. The marginal conclusion of the preservation curriculum discussion depends on the corresponding conditions; it is not the reliability of each sample or a guarantee for every length sub-group. Academy version records

Freezing conditions include right cut-off, maximum length of 500112, lot 16, same batch order, four CPU threads, fixed random seeds and the same set of weights. Each condition starts with eight test runs, confirming that the output is limited, correctly shaped and affordable, and runs a full thousand. The input summary is calculated as a valid token sequence, additionally checking the original text identity; the same batch and length also aligns filling conditions.

Key indicators are pre-designated as projections of changes in membership. Secondary indicators include the reversal of answers, maximum logits, maximum probability differentials, number of coverage and aggregate size. The full results are recorded and no different configurations will be tested for differences because the main indicator is zero. No quantification, no increase in candidate models and no more favourable threshold selection from the exploration results.

Results: small numerical differences, identical prediction sets

Indicators eager SDPA
Exploration of samples 1000 1000
The classification is correct. 890 890
The collection contains real labels 901 901
Empty collection/single label/double tag 0/979/21 0/979/21

The combination of answers has been turned to zero and the forecast changes have been zero; this is more accurate than comparing only two columns overall, since an equal number may still cover up sample-by-simulation exchanges. The largest logits are definitely about 1 049 per 10,000, and the maximum probability is around 4.91 per million. The baseline has a minimum boundary distance of about zero and two hundred and twenty-three, which is significantly greater than the maximum probability change actually observed, so that there are clear numerical explanations for the no-change in the pool.

Both conditions ran on a macOS ARM CPU. Together they took about 147 seconds, and peak resident memory was approximately 1.28 billion bytes. Time-consuming consists of this machine load, which is in a fixed order and does not repeat random staggered times, so it is only a resource record that cannot be written as a stable acceleration ratio. Re-use verified caches at the download stage, preprocessing and reasoning are implemented in practice; no training phase is available.

Independent scripts are based on high-decimal softmax, with 4,000 members recalculating 2,000 results to determine, cover, correct numbers and aggregate sizes, all the same. Command, exit code, entry of Hash and restart conclusion are saved. This is an automated arithmetic check, not a manual semantic review; this article neither creates new semantic labels nor claims that post-cut text tags are confirmed by real people.

Troubleshooting the controlled comparison

Check if it's achieved or not. The mask requesting the output of attention weights or support may allow the frame to go back to another code path; therefore, limits in the fixed source code should be read and the actual configuration saved with a warning. This time there is no requirement to output attention weights, and the log remains complete without selective extracts from warnings.

Checks whether the input is really consistent. It is not enough to say “same video review”: the syllable version, filling, cut-off and batch order may change execution. The log displays an ultra-long token warning coming from uninterrupted words used to measure the original length; the actual input of a model is always limited to 500112, with prefixes and shape assertions. This pre-processing warning cannot be miswritten as a model for the actual cross-border operation.

Final examination of probability and threshold scales. The threshold of the original probability cannot be used directly for a temperature calibration probabilities. If a given operation changes, first locates the candidate who crosses the boundary and then checks numerical error, mask and cache identity; failure to see a drop in coverage is immediately attributed to float accuracy. Zero changes are also to be kept in the original array so as to facilitate the next configuration revision for a regression check.

Independent recalculations still have boundaries: it can prove that the preservation of arrays is consistent with statistics and cannot independently demonstrate that data represent future distribution. The recurrence package therefore retains the input identity, resource version and running logs that allow readers to track down down downloads, phrases, forward calculations and statistical layers. Cache keys incorporate realization protocols, model resource lists, data pools and local codes to avoid two configurations sharing an outcome document without distinction. Any identity mismatch should cease to be reused and cannot continue with a similar file name.

Research question and summary

The author infers that this is a stabilization comparison for achieving suitability as a follow-up experiment, since they do not introduce visible changes in decision-making on the current limited sample. This judgement is still subject to data size and hardware conditions; new inputs close to the border, different precisions or different back-ends may change results and cannot be replaced by today ' s zero rotation for tomorrow ' s test.

What really needs to be answered next is how much independent target domain calibration data can be used to improve probabilistic quality and aggregate behaviour after a change in domain. That would require the planned launch of a target domain calibration pool and budgetary control; it could not be read in advance today to make coverage better. Continued storage of unused data is a prerequisite for the entry into final confirmation of this continuous research line.

The conclusions left in this section are narrow and can be easily reviewed: when fixed input and threshold values, two specified attentions have produced small numerical disturbances without changing the current set of answers and projections for a thousand exploratory samples. An experience that covers compliance with standards and theoretical conditions is two propositions requiring separate evidence.

Source code and reproduction instructions

The backup source code is open and fixed to submission 9eb430059d164cd565eceed65217a6462124e01b: Source Directory、README、SOURCE_MAP. The version has been downloaded anonymously to check that all 25 distribution documents are bytes consistent with local archives and run through analysis, independent audit and real models in public copies. The package code provides fixed resource downloads, two configurations of true reasoning, matching analysis and independent audits. The minimum running command after preparing to rely on and cache is python run.py smoke --cache cache --archive aclImdb_v1.tar.gz, output sample-by-sample scores and environmental records; full run change from smoke to formal, rerun analysis and audit script. This is an actual range of eight test runs per configuration plus 1,000 official forecasts.

References

Retrieval date: 2026-11-19. The following is a first-hand source, with only the most recent preprint checking summary.

  1. PyTorch 2.6:scaled_dot_product_attention.
  2. Transformers Fixed Submission Model.
  3. DistilBERTSST-2 Fixed Model Version.
  4. Maas et al. (2011), Learning Word Vectors for Sentiment Analysis.
  5. Angelopoulos, Bates, 2021, revised version 2022 A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantification.
  6. Doula、Mühlhäuser,2026, Auditing Conformal Prediction for Language Models Under Inference-Time Model Shift.

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.

More technical articles and independent projects