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.
Essayez avec 100 courriels
Imaginez un test entre deux versions d’un outil qui répond aux courriels de service. Changez le nombre de messages sur les rendez-vous et observez le résultat global.
90 courriels sur les livraisons et 10 sur les rendez-vous.
Réponses correctes sur 100
- Version précédente
- 81
- Version mise à jour
- 86
La version mise à jour donne 5 bonnes réponses de plus.
- Les bonnes réponses sur les livraisons passent de 72 à 81 sur 90.
- Les bonnes réponses sur les rendez-vous passent de 9 à 5 sur 10.
Changez ce que la moyenne compte
Le même test donne deux réponses différentes selon le texte que vous comptez. Une perte plus faible indique que le modèle a mieux prédit le texte.
Que signifie une perte plus faible?
Elle a promené son chien dans le ___.
Dans cet exemple, le mot suivant était « parc ».
Probabilité attribuée au mot « parc »
- Premier modèle
- 70 %
- Deuxième modèle
- 30 %
Le premier modèle a donné une probabilité plus élevée au mot qui suivait, ce qui réduit sa perte pour ce mot. Dans l’étude, nous avons calculé la moyenne de cette pénalité sur des morceaux de texte appelés jetons. Un jeton peut être un mot ou une partie de mot.
- Prose anglaise 3,4 %
- Prose française 4,2 %
- Documentation Python 92,4 %
Chaque jeton a le même poids. La documentation représente la majeure partie de l’échantillon.
- Prose seule
- 8,516
- Avec docs
- 6,539
-1,977 nats par jeton · 23,2 % de perte en moins
Voir les pertes et le nombre de jetons
| Texte évalué | Jetons | Prose seule | Avec docs |
|---|---|---|---|
| Prose anglaise | 3 169 | 6,445 | 6,779 |
| Prose française | 3 852 | 5,929 | 6,292 |
| Documentation Python | 85 566 | 8,709 | 6,541 |
| Total | 92 587 | 8,516 | 6,539 |
Sur cette 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.
Le trait pointillé marque la hausse maximale de +0,05 nats par jeton pour chaque langue.
- Prose anglaise
- +0,334
- Prose française
- +0,363
Nous avons conservé le modèle entraîné uniquement sur la prose.
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 est le fondateur et chef de la direction de SimpleDirect®, l’entreprise canadienne indépendante d’IA qui bâtit Vinci pour une vie au-delà de l’écran.

