Back to blog

When an Instruction-Tuned Checkpoint Loses on Prose Completion

The report counts 400 unchanged outputs, yet Mistral 7B Instruct loses on prose completion. One 84-byte ending shows where to look for the difference.

6 min readInvarLock Team
One end of a cord meets the upper eyelet of a reference card. The other end falls short of the empty lower eyelet.

How can a report count 400 unchanged outputs and still reject a checkpoint switch? That is what happened when Mistral-7B-Instruct-v0.1 took the place of Mistral-7B-v0.1 on a prose-completion test.

Open the first pair of records and the output field reads null on both sides. The evaluator had supplied the ending. What it asked each checkpoint to do was score the words the author actually wrote. On 370 of the 400 passages, the instruction-tuned checkpoint gave those words less probability. A reviewer comparing the output fields alone would miss every one of those changes.

The next words were already written

In the first passage, lambada-openai-0001, the opening ends with “Shane gripped”. The reference begins with the space before “her arm” and continues for 84 bytes. Both checkpoints saw the same plain text, without a chat template. LM Evaluation Harness scored the 24 tokens of the ending in order, each in light of the words that came before it.

Look at likelihood.logprob_sum in each record. Adding the natural logarithms of the token probabilities gives −36.737 for base and −39.463 for Instruct. Subtract the base sum from the Instruct sum and exponentiate. For this particular ending, Instruct assigned about one-fifteenth as much probability as base. The records tell us nothing about which alternative words either checkpoint would have written.

Diagram
For the same 84-byte ending, base has relative probability 1.000 and Instruct 0.0655. Both generated-output fields are null.

One ending, two probabilities

Base · 1.000
The base checkpoint’s probability for the 84-byte ending sets the scale.
Instruct · 0.0655
About one-fifteenth as much probability for the same words after the same opening.

Both output fields are null. The comparison uses the log probabilities for the supplied ending.

What to notice The base bar sets the scale for this ending. A value of 1 here means the base checkpoint is being compared with itself. It does not mean the ending was certain.

How typical was that passage?

Longer endings give a model more words to anticipate. To compare passages, the evaluator changes the sign of each log-probability sum and divides by the number of UTF-8 bytes in the ending. The unit is a nat per byte. Lower loss means the checkpoint assigned more probability to the supplied text. For the 84-byte ending, loss rises from 0.4373 to 0.4698 nats per byte.

The figure places that increase of 0.0325 beside the other 399 pairs. It falls in the most common range. In all, 329 passages had an increase below 0.10 nats per byte, 41 had a larger increase, and 30 had lower loss with Instruct. The overall rise was spread across the selection.

Diagram
Histogram of Instruct minus base loss per byte across 400 passages. From left to right the five bins contain 30, 181, 148, 37 and 4 passages. The worked passage falls in the first positive bin.

Where the 400 passage scores moved

Lower loss · 30 passages
All 30 decreases were smaller than 0.05 nats per byte.
Increase below 0.10 · 329 passages
181 increases were below 0.05. Another 148 were between 0.05 and 0.10. The worked passage rose by 0.0325.
Increase of 0.10 or more · 41 passages
37 increases were below 0.15, and four were between 0.15 and 0.20.

Subtract base loss per byte from Instruct loss per byte for each passage. None of the differences was zero.

What to notice Each passage counts once. Left of zero, Instruct gave the author’s words more probability. Right of zero, it gave them less. The bin edges are for reading the distribution. The migration policy applies to the aggregate.

Which requirement failed?

Each passage contributes one loss per checkpoint to the mean. Across the 400 passages, base averaged 0.54464 nats per byte and Instruct 0.59429. Dividing the second mean by the first gives 1.09116, a 9.12% increase in average loss per byte. The one-fifteenth figure above answers a different question about the probability of one exact ending.

The migration policy was fixed before measurement. It allowed the upper end of the loss-ratio interval to reach 1.05. Resampling passages 2,048 times, keeping the two checkpoints paired, gave a 95% interval of 1.08456 to 1.09806.

Table 1: Which requirement failed?. Data table with columns: Check, Observed, Required
CheckObservedRequired
Usable pairs400 of 400All 400
Upper end of ratio interval1.09806At most 1.05
Width of ratio interval0.01350At most 0.10

Scroll horizontally to see every column.

All 400 pairs were usable and the interval was narrow enough. Even its lower end exceeded the allowance. The upper-bound check is what produced the recorded regression verdict.

Replay the rejection

With the public InvarLock core package and matching example checkout, you can verify this decision on a CPU. The released replay instructions reconstruct both paired runs and the policy from the capture. Use the protocol and run hashes and expected evidence signer from a separately trusted copy of the reference. Create a local verifier key and trust profile as shown there. From the checkout, run the two commands separately so the expected rejection still leaves you a report to read.

pack=examples/captured-results/references/mistral-7b-likelihood/evidence
invarlock verify "$pack" --trust-profile mistral-recipient/trust.json \
  --receipt mistral-recipient/verification.receipt.json

invarlock report "$pack" --html mistral-recipient/report.html

In our offline replay, verification returned exit 7, confirmed the evidence integrity and wrote a new signed receipt. Rendering returned exit 0. In the HTML report, “Recorded policy result” identifies the failed limit. To check either direction for yourself, pick a passage from the 400-row case index, find its ID in both signed records, and divide each negative log-probability sum by its reference byte count.

What to check before switching

If your writing tool finishes a paragraph under the cursor, keep a few real openings together with what their authors wrote next. Score those endings with both checkpoints. A diff of generated text can answer a useful question when a test asks for generated text. Here it compares two empty fields.

If the proposed feature asks the model to revise that same paragraph, save the editing instruction as well. You need to see the edit each checkpoint produces and check whether it does what the author asked. Reusing the paragraph is reasonable. Reusing the prose-completion verdict would answer the wrong question.

Limitations

  • The 400 passages come from a length-stratified LAMBADA subset that inherited Qwen tokenizer eligibility rules. Selection preceded the Mistral measurements. Splitting passages into a context and a multiword continuation changes the task from the official final-word benchmark.
  • The interval resamples records on this selection. It makes no allowance for dependence between passages from the same book and establishes no population-wide effect.
  • The comparison covers two pinned checkpoints on plain text and one illustrative tolerance. Chat behavior, instruction following, reader preference and the quality of freely generated endings require their own measurements.
  • Replay checks retained observations and their signed bindings. Original execution and model identities are recorded by the evaluator. The new receipt and report add no model inference.

Sources

Website documentation explains the maintained workflow. The original Mistral reference records a 0.15.0 wheel built from commit 9a2eb7f8fedf373c2c468ecdc60bb84709dcd1b2. The capture and signed result entered the public repository at 88983a3f8ae404500adbeb203f312e9f6f62db0e. The November 23 replay used the released 0.17.4 wheel and matching checkout at 5c926bd91f4a5e125d22d2ee44b4f7a8e99e50c5. Its HTML matches the linked report byte for byte.

More in Model Changes

Explore nearby related posts.