L18 Positive Q6 · Do our tests test anything

E28, E36, E37: every internal activation compared against an independent implementation

QuestionCould errors inside the model cancel out, so the final answer looks right while the inside is wrong?

Run by us; no unaffiliated reproduction

The test in one picture

Question, method, result and meaning, in plain words. The sourced detail is further down the page.

E28, E36, E37: every internal activation compared against an independent implementation: the test explained in one pictureQuestion: Could errors inside the model cancel out, so the final answer looks right while the inside is wrong? How we tested: 1. Feed the same token ids to our verifier and to a Hugging Face transformers fp32 pass. 2. Compare every intermediate tensor. 3. Start with one prompt, then widen to six prompt cells on each of two models. What we found (Positive): 144,825 tensors compared. The widened runs compared 144,825 tensors across two models. The single-prompt worst disagreement was 9.9e-5 (Qwen). Widening corrected our own published SmolLM2 worst case to 3.406e-05, which is 1.53 times the number we first published. What it means: Agreement is to about 1e-5 relative (up to 1e-4 on Qwen), not bit-exact, because the comparison uses a different implementation on purpose. A maximum from one input is only that input's maximum.L18POSITIVEE28, E36, E37: every internal activation compared against an independentimplementation1 · THE QUESTIONCould errorsinside the modelcancel out, sothe final answerlooks right whilethe inside iswrong?WHY IT MATTERSErrors inside a modelcould cancel, so the finalanswer looks right whilethe middle is wrong.2 · HOW WE TESTED IT1Feed the same token ids toour verifier and to a HuggingFace transformers fp32 pass.2Compare every intermediatetensor.3Start with one prompt, thenwiden to six prompt cells oneach of two models.3 · WHAT WE FOUNDPOSITIVE144,825tensorscomparedThe widened runs compared144,825 tensors across twomodels. The single-promptworst disagreement was 9.9e-5(Qwen). Widening correctedour own published SmolLM2worst case to 3.406e-05,which is 1.53 times thenumber we first published.4 · WHAT IT MEANSAgreement is to about1e-5 relative (up to1e-4 on Qwen), notbit-exact, becausethe comparison uses adifferentimplementation onpurpose. A maximumfrom one input isonly that input'smaximum.Like checking every line of a sum against a second person's working, not only the final total.aefinityai.com/labs/layer-oracle-e28-e36-e37/Run by us; no unaffiliated reproductionE28, E36, E37: every internal activation compared against an independent implementation: the test explained in one pictureQuestion: Could errors inside the model cancel out, so the final answer looks right while the inside is wrong? How we tested: 1. Feed the same token ids to our verifier and to a Hugging Face transformers fp32 pass. 2. Compare every intermediate tensor. 3. Start with one prompt, then widen to six prompt cells on each of two models. What we found (Positive): 144,825 tensors compared. The widened runs compared 144,825 tensors across two models. The single-prompt worst disagreement was 9.9e-5 (Qwen). Widening corrected our own published SmolLM2 worst case to 3.406e-05, which is 1.53 times the number we first published. What it means: Agreement is to about 1e-5 relative (up to 1e-4 on Qwen), not bit-exact, because the comparison uses a different implementation on purpose. A maximum from one input is only that input's maximum.L18POSITIVEE28, E36, E37: every internalactivation compared against anindependent implementation1 · THE QUESTIONCould errors inside the modelcancel out, so the final answerlooks right while the inside iswrong?WHY IT MATTERSErrors inside a model could cancel, so thefinal answer looks right while the middle iswrong.2 · HOW WE TESTED IT1Feed the same token ids to ourverifier and to a Hugging Facetransformers fp32 pass.2Compare every intermediate tensor.3Start with one prompt, then widen tosix prompt cells on each of twomodels.3 · WHAT WE FOUNDPOSITIVE144,825 tensorscomparedThe widened runs compared 144,825 tensorsacross two models. The single-prompt worstdisagreement was 9.9e-5 (Qwen). Wideningcorrected our own published SmolLM2 worstcase to 3.406e-05, which is 1.53 times thenumber we first published.4 · WHAT IT MEANSAgreement is to about 1e-5 relative (up to1e-4 on Qwen), not bit-exact, because thecomparison uses a different implementationon purpose. A maximum from one input isonly that input's maximum.Like checking every line of a sum against asecond person's working, not only the finaltotal.aefinityai.com/labs/layer-oracle-e28-e36-e37/

The same picture, in words

Question
Could errors inside the model cancel out, so the final answer looks right while the inside is wrong?
Why it matters
Errors inside a model could cancel, so the final answer looks right while the middle is wrong.
How the test works
  1. Feed the same token ids to our verifier and to a Hugging Face transformers fp32 pass.
  2. Compare every intermediate tensor.
  3. Start with one prompt, then widen to six prompt cells on each of two models.
What we found
144,825 tensors compared. The widened runs compared 144,825 tensors across two models. The single-prompt worst disagreement was 9.9e-5 (Qwen). Widening corrected our own published SmolLM2 worst case to 3.406e-05, which is 1.53 times the number we first published.
What it means
Agreement is to about 1e-5 relative (up to 1e-4 on Qwen), not bit-exact, because the comparison uses a different implementation on purpose. A maximum from one input is only that input's maximum.
Everyday comparison
Like checking every line of a sum against a second person's working, not only the final total.
Where the facts come from

Share this picture: SVG · PNG (1200 x 630)

01Why it matters

Errors inside a model could cancel, so the final answer looks right while the middle is wrong.

02Method, step by step

  1. Feed the same token ids to our verifier and to a Hugging Face transformers fp32 forward pass.
  2. Compare every intermediate tensor.
  3. Start with one prompt, then widen to six cells on each model.

Method as recorded

Teacher-forced comparison of every intermediate tensor of the verifier against a Hugging Face transformers fp32 forward pass: one prompt on SmolLM2-135M and Qwen2.5-0.5B (E28), then six prompt/length cells on SmolLM2-135M (E36) and six on Qwen2.5-0.5B (E37). Run by us.

03Results, exact and sourced

  1. R1E28: 13,452 intermediate tensors (one prompt, 19 positions, two models: SmolLM2-135M and Qwen2.5-0.5B) compared; worst relative L2 disagreement 9.9e-5, on one tensor of one model (Qwen). This is a single-prompt maximum, not a bound for the model.

    Worst disagreement: 9.9e-5 relative

    Verbatim source cis2-spec / E28_LAYER_ORACLE.md
  2. R2E36 corrected our own published worst case: over six SmolLM2-135M prompt cells (80,565 tensors) the worst was 3.406e-05, 1.53 times the 2.228e-05 E28 published from its single SmolLM2 prompt.

    worst case is 3.406e-05, 1.53x the

    Verbatim source cis2-spec / E36_ORACLE_PROMPT_SWEEP.md
  3. R3E37: six Qwen2.5-0.5B cells add 64,260 tensors; with E36 that is 144,825 tensors across two architectures. On Qwen, E28's 9.923e-05 turned out to be the six-cell maximum (rel_rms rose to 2.883e-03); the earlier layer-ratio bounds were per-prompt and were corrected (erratum E-9).

    Taken with E36 this is 144,825 tensors across two

    Verbatim source cis2-spec / E37_QWEN_ORACLE_SWEEP.md

04What it does NOT show

Bit-exactness (the oracle is a different implementation), tokenization, or all prompts.

05Scope and caveats

  • Agreement is to about 1e-5 relative (up to ~1e-4 on Qwen), not bit-exact, because the oracle is a different implementation and must not be bit-exact; this is an accuracy check, not a determinism check.
  • Two small models; six prompts per model is still not all prompts (E37 states this).
  • The Qwen runs use supplied token ids from the oracle tokenizer and are not conformance runs; they attest to spec sections 4-11 only, not tokenization (section 3).
  • The oracle (transformers) is an independent implementation, not ground truth.
  • Not run in CI; reproducible on demand with the model artifacts and torch.
  • Run by us; no unaffiliated reproduction.

06Outcome

Positive

The check worked as expected, within the stated scope.

07What we learned

A maximum measured on one input is only that input's maximum. Widening the sweep corrected our own published number on SmolLM2 (1.53x higher), and on Qwen showed the single-prompt figure happened to be the worst case, so it was unknown, not reliably low.

08Check it yourself

Read the three pages (links above). The comparison is reproducible on demand with the model artifacts and torch; it is not run in CI.