Skip to main content
Researchtraining data

Our loss dropped 23%. We kept the old model anyway.

George PuPublished 3 min read

On October 4, we changed the mix of text a small research model trained on. Its overall test loss fell by 23%. We kept the old version.

The new version predicted Python documentation better. It predicted English and French prose worse. Documentation made up more than nine tenths of the text we scored, so its gain dominated the average. We’d decided before the test how much we could afford to lose in either language.

Try it with 100 emails

Imagine testing two versions of a tool that replies to service emails. Change how many messages are about appointments and see what happens to the total.

90 delivery emails and 10 appointment emails.

Correct replies out of 100

Previous version
81
Updated version
86

The updated version gets 5 more right.

  • Delivery replies improve from 72 to 81 out of 90.
  • Appointment replies fall from 9 to 5 out of 10.
See the research results

Change what the average counts

The same test gives two different answers depending on which text you count. Lower loss means the model predicted the text better.

What does a lower loss mean?

She walked her dog to the ___.

In this example, the next word was “park.”

Chance each model gave “park”

First model
70%
Second model
30%

The first model gave the actual word a higher chance, so its loss was lower for that word. In the study we averaged this penalty across pieces of text called tokens. A token can be a word or part of a word.

Share of scored tokens
  • English prose 3.4%
  • French prose 4.2%
  • Python docs 92.4%

Each token counts equally. Documentation makes up most of the sample.

Prose only
8.516
With docs
6.539

-1.977 nats per token · 23.2% lower loss

View losses and token counts
Share of scored tokens
Held-out textTokensProse onlyWith docs
English prose3,1696.4456.779
French prose3,8525.9296.292
Python docs85,5668.7096.541
Overall92,5878.5166.539
On this page

What we tested

We want to understand how training choices affect models that work in English and French. A small research model lets us test those choices before we commit more compute.

The first version trained on English and French guidebook prose. In the second, we replaced about half the prose with CPython documentation, mostly from one document about logging. The training mixes had nearly the same number of distinct tokens. Each run had a planned budget of 90,000 training tokens.

We scored both versions on the same test text using negative log-likelihood, a measure of how well a model predicts what comes next. Writing quality and question answering would need their own tests.

What the average counted

Each scored token counted equally. The test contained 85,566 documentation tokens and 7,021 prose tokens, so the overall score mostly reflected how well the models predicted documentation.

Give English and French prose equal weight and look at them on their own. The average loss goes up. Even that average could hide a loss in one language if the other improved. That’s why we kept the two scores visible and set a limit for each one.

The rule we set before training

We would accept an increase of at most 0.05 nats per token in either language. Both languages crossed that line. We kept the prose-only version.

Imagine testing a service that explains benefits letters in English and French. If the test is mostly English, a small English improvement can outweigh a large French regression. Someone who needs a French explanation experiences the French result. For our research, each language has to meet its own target.

Both languages crossed the limit

The dashed line marks the maximum increase of +0.05 nats per token per language.

English prose
+0.334
French prose
+0.363

We kept the prose-only model.

What we would test next

This was one pair of runs with one seed. Adding documentation also removed prose, and most of the added material came from one source. We’d need more runs to tell which change mattered.

  • Freeze separate tests for English, French and technical text. Report each score alongside the overall one.
  • Vary one part of the training mix at a time. Test the effect of removing prose separately from adding documentation. Compare one concentrated source with a broader selection.
  • Repeat with more seeds. Set the minimum useful gain and the maximum acceptable loss before looking at the scores.

The October 4 run summary provides the counts and loss values shown here. The held-out text, per-token scores and exact training configuration are unavailable here. A larger model would need its own tests on the tasks we want it to handle.

Before you compare averages, pick the users or tasks you can’t afford to make worse. Measure them separately and write down what would make you keep the old version. We asked a similar question in the H1 architecture experiment.

George Pu

George Pu is the founder and CEO of SimpleDirect®, the independent Canadian AI company building Vinci for a life beyond the screen.

SimpleDirect® builds Vinci so people can spend less time managing technology and have more freedom over their lives. We publish products, models, and research with their availability and limitations.

Share