TRA2600 · Bloc 4 · Grands modèles de langue (séances 11 à 13)TRA2600 · Bloc 4 · Grands modèles de langue (séances 11 à 13)
Lectures recommandées, facultatives · avant la séance 12 · mercredi 2 December 2026Lectures recommandées, facultatives · avant la séance 12 · mercredi 2 décembre 2026
PrintedImprimé le·aylart.github.io/learn·
CC BY-NC 4.0
TokenizationJetonisation
Written in English. The French version was automatically generated
and I have not revised it.
Rédigé en anglais. La version française a été
générée automatiquement et je ne l'ai pas révisée.
Click the drawing, or a line below, to build it up stage by stage.Cliquez sur le dessin, ou sur une ligne ci-dessous, pour le construire étape par étape.
Figure 2. From your sentence to the vectors the model works on. The split shown is real o200k_base output (tiktokenizer.vercel.app, checked 29 August 2026).
Spaces belong to the word that follows
The spaces are inside the tokens. In this tokenizer a space belongs to the word
that follows it, which is why two of the boxes carry one and the first does
not. The same word is therefore a different token at the start of a line and in
the middle of a sentence, and a text already cut on its spaces is counted
differently.
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Click the drawing, or a line below, to build it up stage by stage.Cliquez sur le dessin, ou sur une ligne ci-dessous, pour le construire étape par étape.
Figure 2. De votre phrase aux vecteurs sur lesquels le modèle travaille. Le découpage montré est la sortie réelle d'o200k_base (tiktokenizer.vercel.app, vérifiée le 29 août 2026).
Les espaces appartiennent au mot qui suit
Les espaces sont à l’intérieur des jetons. Dans ce segmenteur, une espace
appartient au mot qui la suit, ce qui explique que deux des cases en portent
une et que la première n’en porte pas. Un même mot est donc un jeton différent
au début d’une ligne et au milieu d’une phrase, et un texte déjà découpé sur
ses espaces se compte autrement.
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
LLMs as next-word predictorsLes GML, prédicteurs du mot suivant
Written in English. The French version was automatically generated
and I have not revised it.
Rédigé en anglais. La version française a été
générée automatiquement et je ne l'ai pas révisée.
What makes a model largeCe qui rend un modèle grand
Billions of parameters. Every association the model has picked up, between
words, between a country and its capital, between a question and the shape of
an answer, is stored across those numbers and nowhere else.
GPT is short for Generative Pre-trained Transformer, and each of the three
letters names a property of the model. Radford et al. (2018) introduced the
model the name comes from, describing the method as generative pre-training of a
transformer-based language model; the acronym itself came
into use later.
Figure 3. Each letter of GPT names a property of the model.
Sources
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Voita, E., Sennrich, R., & Titov, I. (2019). When a good translation is wrong in context: Context-aware machine translation improves on deixis, ellipsis, and lexical cohesion. Proceedings of the 57th Annual Meeting of the ACL, 1198–1212. https://aclanthology.org/P19-1116/
Des milliards de paramètres. Chaque association que le modèle a captée,
entre des mots, entre un pays et sa capitale, entre une question et la forme
d’une réponse, est stockée à travers ces nombres et nulle part ailleurs.
GPT est l’abréviation de Generative Pre-trained Transformer, et chacune des
trois lettres nomme une propriété du modèle. Radford et al. (2018) ont
présenté le modèle dont vient le nom, en décrivant la méthode comme un
préentraînement génératif d’un modèle de langue fondé sur un transformeur ; l’acronyme lui-même s’est répandu plus tard.
Figure 3. Chaque lettre de GPT nomme une propriété du modèle.
Sources
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Voita, E., Sennrich, R., & Titov, I. (2019). When a good translation is wrong in context: Context-aware machine translation improves on deixis, ellipsis, and lexical cohesion. Proceedings of the 57th Annual Meeting of the ACL, 1198–1212. https://aclanthology.org/P19-1116/
Fine-tuningAffinage
Written in English. The French version was automatically generated
and I have not revised it.
Rédigé en anglais. La version française a été
générée automatiquement et je ne l'ai pas révisée.
Fine-tuning: from generator to assistantL'affinage : du générateur à l'assistant
For InstructGPT, Ouyang et al. (2022) fine-tuned GPT-3 in two stages, first on
examples and then with a reward learned from rankings. People comparing outputs preferred those of a
1.3-billion-parameter model fine-tuned this way to those of the original GPT-3
at 175 billion, more than a hundred times larger. On the kind of requests
users sent to the model, a small amount of behaviour data counted for more than
a hundredfold difference in size.
Gekhman, Z., Yona, G., Aharoni, R., Eyal, M., Feder, A., Reichart, R., & Herzig, J. (2024). Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, 7765–7784. https://aclanthology.org/2024.emnlp-main.444/
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Zhou, C., Liu, P., Xu, P., Iyer, S., Sun, J., Mao, Y., et al. (2023). LIMA: Less Is More for Alignment. Advances in Neural Information Processing Systems 36 (NeurIPS 2023). https://openreview.net/forum?id=KBMOKmX2he
Pour InstructGPT, Ouyang et al. (2022) ont affiné GPT-3 en deux étapes,
d’abord sur des exemples, puis avec une récompense apprise à partir de
classements. Des personnes comparant les
sorties ont préféré celles d’un modèle de 1,3 milliard de paramètres affiné de
cette façon à celles du GPT-3 d’origine, à 175 milliards, plus de cent fois plus
gros. Sur le genre de requêtes que les utilisateurs
envoyaient au modèle, une petite quantité de données de comportement a pesé plus
lourd qu’un écart de taille d’un facteur cent.
Gekhman, Z., Yona, G., Aharoni, R., Eyal, M., Feder, A., Reichart, R., & Herzig, J. (2024). Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, 7765–7784. https://aclanthology.org/2024.emnlp-main.444/
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Zhou, C., Liu, P., Xu, P., Iyer, S., Sun, J., Mao, Y., et al. (2023). LIMA: Less Is More for Alignment. Advances in Neural Information Processing Systems 36 (NeurIPS 2023). https://openreview.net/forum?id=KBMOKmX2he
The four stages from pretraining to assistantLes quatre étapes du préentraînement à l'assistant
From pretraining to deployment
Figure 1. From pretraining to the assistant you type into.
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Response: Photosynthesis is how plants make their own food using sunlight.
Think of leaves as tiny factories that take in sunlight, water and air…
Training on enough of these teaches a pattern that pretraining rarely presented
so consistently:
an instruction is followed by a response to it. Thus, the text completion system becomes a question answering system.
The term instruction tuning was introduced by Wei et al. (2022), who fine-tuned a pretrained model on
more than 60 datasets phrased as instructions and found that it could then follow
instructions for tasks it had not seen.
Small data, chosen carefully
Figure 3. Where the two kinds of training data come from, and what each is judged on.
Pretraining text was written by people too, but not for this purpose, and it is
filtered in bulk. Instruction-tuning examples are chosen or written for the
behaviour wanted. For InstructGPT, that meant about 13 000 prompts
with answers written by hired labellers (Ouyang et al., 2022). Later sets also
reuse questions and answers from community sites (Zhou et al., 2023) and
instructions and answers generated by a model, then filtered (Wang et al., 2023).
Quality counts for more than quantity here: a thousand carefully chosen examples
can be enough: doubling their number did not improve the answers, and filtering
them for quality did (Zhou et al., 2023). The authors take this as a sign that
the model learns a manner rather than a subject.
Where the examples are written for the purpose, the work is often paid: Ouyang et al.
(2022) recruited and screened about 40 labellers for it.
Not quite the helpful assistant chatbot yet
After this stage the model answers questions and can keep up a
conversation. Its finer judgement goes only as far as its examples showed it: how long an
answer should be, when to say it is unsure, when a request should be declined. Those
qualities are easy to recognize in a response and hard to specify in advance.
Sources
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Wang, Y., Kordi, Y., Mishra, S., Liu, A., Smith, N. A., Khashabi, D., & Hajishirzi, H. (2023). Self-Instruct: Aligning Language Models with Self-Generated Instructions. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 13484–13508. https://aclanthology.org/2023.acl-long.754/
Wei, J., Bosma, M., Zhao, V. Y., Guu, K., Yu, A. W., Lester, B., Du, N., Dai, A. M., & Le, Q. V. (2022). Finetuned Language Models Are Zero-Shot Learners. International Conference on Learning Representations (ICLR 2022). https://openreview.net/forum?id=gEZrGCozdqR
Zhou, C., Liu, P., Xu, P., Iyer, S., Sun, J., Mao, Y., et al. (2023). LIMA: Less Is More for Alignment. Advances in Neural Information Processing Systems 36 (NeurIPS 2023). https://openreview.net/forum?id=KBMOKmX2he
Montrer au modèle à quoi ressemble une bonne réponse
Requête : Explique la photosynthèse à un enfant de 10 ans.
Réponse : La photosynthèse, c’est la façon dont les plantes fabriquent
leur propre nourriture avec la lumière du soleil. Imagine les feuilles comme
de petites usines qui captent la lumière, l’eau et l’air…
S’entraîner sur assez de ces paires enseigne une régularité que le
préentraînement présentait rarement de façon aussi constante : une instruction est suivie d’une réponse.
Le système qui complète du texte devient ainsi un système qui répond aux questions.
Le terme anglais instruction tuning a été introduit par Wei et al. (2022), qui ont affiné un modèle préentraîné sur
plus de 60 jeux de données formulés comme des instructions et constaté qu’il pouvait
ensuite suivre des instructions pour des tâches qu’il n’avait pas vues.
Peu de données, choisies avec soin
Figure 3. D'où viennent les deux sortes de données d'entraînement, et sur quoi chacune est jugée.
Le texte du préentraînement a lui aussi été écrit par des personnes, mais pas
dans ce but, et il est filtré en bloc. Les exemples de l’affinage par
instructions sont choisis ou rédigés selon le comportement recherché. Pour
InstructGPT, il s’agissait d’environ 13 000 requêtes accompagnées de
réponses rédigées par des étiqueteurs recrutés à cette fin (Ouyang et al.,
2022). Les ensembles plus récents reprennent aussi des questions et des réponses
de sites communautaires (Zhou et al., 2023) et des instructions et des réponses
générées par un modèle, puis filtrées (Wang et al., 2023).
Ici, la qualité compte plus que la quantité : un millier d’exemples
soigneusement choisis peut suffire. En doubler le nombre n’a pas amélioré les
réponses, alors que les filtrer selon leur qualité les a améliorées (Zhou et al., 2023). Les
auteurs y voient le signe que le modèle apprend une manière plutôt qu’un sujet.
Là où les exemples sont rédigés exprès, le travail est souvent rémunéré : Ouyang et
coll. (2022) ont recruté et sélectionné une quarantaine d’étiqueteurs pour cette
tâche.
Pas encore tout à fait l’agent conversationnel serviable
Après cette étape, le modèle répond aux questions et peut soutenir une
conversation. Son jugement plus fin ne va pas plus loin que ce que ses exemples lui ont
montré : quelle longueur donner à une réponse, quand dire qu’il n’est pas sûr, quand une demande devrait être
refusée. Ces qualités sont faciles à reconnaître dans une réponse et difficiles
à préciser d’avance.
Sources
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Wang, Y., Kordi, Y., Mishra, S., Liu, A., Smith, N. A., Khashabi, D., & Hajishirzi, H. (2023). Self-Instruct: Aligning Language Models with Self-Generated Instructions. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 13484–13508. https://aclanthology.org/2023.acl-long.754/
Wei, J., Bosma, M., Zhao, V. Y., Guu, K., Yu, A. W., Lester, B., Du, N., Dai, A. M., & Le, Q. V. (2022). Finetuned Language Models Are Zero-Shot Learners. International Conference on Learning Representations (ICLR 2022). https://openreview.net/forum?id=gEZrGCozdqR
Zhou, C., Liu, P., Xu, P., Iyer, S., Sun, J., Mao, Y., et al. (2023). LIMA: Less Is More for Alignment. Advances in Neural Information Processing Systems 36 (NeurIPS 2023). https://openreview.net/forum?id=KBMOKmX2he
Preference tuning: learning from rankingsLe réglage des préférences : apprendre à partir de classements
Ranking instead of writing
Some things about a good answer are easy to judge and hard to state. Asked
whether this response or that one is better, an annotator can answer quickly;
asked to write down the rule they applied, they would find it far harder.
Preference tuning uses that asymmetry. Rather than asking people to produce
the ideal answer, it asks them to put several of the model’s own answers in
order. The rankings are not perfectly consistent: the labellers of Ouyang et al.
(2022) agreed with each other on about 73% of comparisons. Each ranking is then
split into pairs: four answers in order give six pairs, each made of a better and
a worse answer.
Figure 4. It is often much easier to put concrete options in order, from best to worst, than to write the best possible answer yourself.
The two best-known methods are reinforcement learning from human feedback (RLHF)
and direct preference optimization (DPO) (Jurafsky & Martin, 2026).
Figure 5. ChatGPT asking whether a response was better or worse (screenshot, 10 September 2026). Figure 6. Gemini showing two answers to one request and asking which is more helpful (screenshot, 1 October 2026).
RLHF: a reward model stands in for the people
Figure 7. Post-training an LLM: instruction tuning, then RLHF.
The comparisons do not have to come from people: in a method its authors call
Constitutional AI, a model compares answers for harmfulness against a written list of principles,
and those comparisons, with human ones for helpfulness, train the reward model
(Bai et al., 2022a).
Figure 8. The same ranked pairs, used in two ways.
Sources
Bai, Y., Kadavath, S., Kundu, S., Askell, A., Kernion, J., Jones, A., et al. (2022a). Constitutional AI: Harmlessness from AI Feedback. arXiv:2212.08073 (preprint). https://arxiv.org/abs/2212.08073
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Certaines choses, dans une bonne réponse, sont faciles à juger et difficiles à
énoncer. Si on lui demande si cette réponse-ci ou celle-là est meilleure, un
annotateur peut répondre vite ; si on lui demande d’écrire la règle qu’il a
appliquée, la tâche est bien plus difficile.
Le réglage des préférences exploite cette asymétrie. Plutôt que de demander aux
gens de produire la réponse idéale, il leur demande de mettre en ordre plusieurs
des réponses du modèle lui-même. Les classements ne sont pas parfaitement
cohérents : les étiqueteurs d’Ouyang et al. (2022) concordaient sur environ
73 % des comparaisons. Chaque classement est ensuite découpé en paires : quatre
réponses classées donnent six paires, chacune formée d’une meilleure et d’une
moins bonne réponse.
Figure 4. Il est souvent bien plus facile de classer des options concrètes, de la meilleure à la pire, que de rédiger soi-même la meilleure réponse possible.
Les deux méthodes les plus connues sont l’apprentissage par renforcement avec
rétroaction humaine (ARRH) et l’optimisation directe des préférences (DPO)
(Jurafsky et Martin, 2026).
Figure 5. ChatGPT demande si une réponse était meilleure ou moins bonne (capture d'écran, 10 septembre 2026). Figure 6. Gemini affiche deux réponses à une même requête et demande laquelle est la plus utile (capture d'écran, 1er octobre 2026).
L’ARRH : un modèle de récompense remplace les personnes
Figure 7. Le postentraînement d'un GML : l'affinage par instructions, puis l'ARRH.
Les comparaisons ne viennent pas forcément de personnes : dans une méthode que
ses auteurs appellent l’IA constitutionnelle, un modèle compare des réponses
sur leur caractère nuisible d’après une liste écrite de principes, et ces
comparaisons, avec des comparaisons humaines pour l’utilité, entraînent le
modèle de récompense (Bai et al., 2022a).
Figure 8. Les mêmes paires classées, utilisées de deux façons.
Sources
Bai, Y., Kadavath, S., Kundu, S., Askell, A., Kernion, J., Jones, A., et al. (2022a). Constitutional AI: Harmlessness from AI Feedback. arXiv:2212.08073 (preprint). https://arxiv.org/abs/2212.08073
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Reinforcement learning: AlphaGo and move 37L'apprentissage par renforcement : AlphaGo et le coup 37
Go as a challenge for AI
Games have long been test cases for AI, chess being the best
known (see also the What counts as AI? page, in the Foundations of AI & NLP module) (voir aussi la page Ce qu'on appelle « IA », dans le module Fondements de l'IA et du TAL), and Go had long
been seen as the most challenging of the classic games (Silver et al., 2016). It
offers far more possible moves at each turn than chess, about 250 against about
35, and its games run longer (Silver et al., 2016). No program can work through
every possible continuation of a game of Go and pick the best one: it cannot
brute-force its way to a good move.
Between 2015 and 2017, Google DeepMind nonetheless built systems that played Go
well, and tested them in well-publicized matches against human champions.
Figure 9. Headlines from January to March 2016, from the announcement of the Fan Hui result to the end of the Lee Sedol match (Knight, 2016; Akpan, 2016; Reuters, 2016; Russell, 2016).
Learning from humans, then from itself
AlphaGo, the Go program, was trained in two stages much like a language model’s.
It began by learning from about 30 million positions from games between strong
amateur players on an online Go server, predicting the move such a player would
make (Silver et al., 2016). Imitation tends to cap a program near the level of the players it copies
(Silver et al., 2017).
In March 2016 AlphaGo played Lee Sedol, one of the strongest players in the
world, and won four games of five (Metz, 2016).
Figure 10. The position after move 37 of the second game, 10 March 2016. AlphaGo, playing black, has just played at P10. It is the first move that is four steps away from the border.
Of the match’s two commentators, one called it a very strange move and the other
thought it was a mistake. It proved central to winning the game, and AlphaGo won
the match about a decade before experts had expected such a win (Metz, 2016).
Learning from the rules alone
A later system, AlphaZero, was given no human games at all. It started from
the rules of the game and its own play, and it ended up stronger still
(Silver et al., 2018).
Silver, D., Huang, A., Maddison, C. J., Guez, A., Sifre, L., van den Driessche, G., et al. (2016). Mastering the game of Go with deep neural networks and tree search. Nature, 529(7587), 484–489. https://doi.org/10.1038/nature16961
Silver, D., Hubert, T., Schrittwieser, J., Antonoglou, I., Lai, M., Guez, A., et al. (2018). A general reinforcement learning algorithm that masters chess, shogi, and Go through self-play. Science, 362(6419), 1140-1144. https://doi.org/10.1126/science.aar6404
Silver, D., Schrittwieser, J., Simonyan, K., Antonoglou, I., Huang, A., Guez, A., et al. (2017). Mastering the game of Go without human knowledge. Nature, 550(7676), 354–359. https://doi.org/10.1038/nature24270
Le go, un défi pour l’IA
Les jeux, dont les échecs sont l’exemple le plus connu, servent depuis longtemps
de terrain d’essai à l’IA (see also the What counts as AI? page, in the Foundations of AI & NLP module) (voir aussi la page Ce qu'on appelle « IA », dans le module Fondements de l'IA et du TAL),
et le go était vu depuis longtemps comme le plus difficile des jeux classiques
(Silver et al., 2016). Il offre bien plus de coups possibles à chaque tour que
les échecs, environ 250 contre environ 35, et ses parties sont plus longues
(Silver et al., 2016). Aucun programme ne peut examiner toutes les suites
possibles d’une partie de go pour choisir la meilleure : il ne peut pas trouver
un bon coup par la force brute.
Entre 2015 et 2017, Google DeepMind a néanmoins construit des systèmes qui
jouaient bien au go, et les a mis à l’épreuve lors de matchs très médiatisés
contre des champions humains.
Figure 9. Des titres de presse de janvier à mars 2016, de l'annonce du résultat contre Fan Hui à la fin du match contre Lee Sedol, reproduits en anglais (Knight, 2016 ; Akpan, 2016 ; Reuters, 2016 ; Russell, 2016).
Apprendre des humains, puis de soi-même
AlphaGo, le programme de go, a été entraîné en deux étapes, tout comme un modèle de langue.
Il a commencé par apprendre à partir d’environ 30 millions de positions tirées
de parties entre de forts joueurs amateurs sur un serveur de go en ligne, en
prédisant le coup qu’un tel joueur jouerait (Silver et al., 2016). L’imitation tend à plafonner un programme près du niveau des joueurs qu’il copie
(Silver et al., 2017).
En mars 2016, AlphaGo a affronté Lee Sedol, l’un des plus forts joueurs du
monde, et a gagné quatre parties sur cinq (Metz, 2016).
Figure 10. La position après le coup 37 de la deuxième partie, 10 mars 2016. AlphaGo, qui joue les noirs, vient de jouer en P10. C'est le premier coup joué à quatre intersections du bord.
Des deux commentateurs du match, l’un a trouvé le coup très étrange et l’autre
l’a pris pour une erreur. Le coup s’est révélé décisif pour gagner la partie, et
AlphaGo a remporté le match une dizaine d’années avant ce qu’attendaient les
experts (Metz, 2016).
Apprendre à partir des seules règles
Un système ultérieur, AlphaZero, n’a reçu aucune partie humaine. Il est parti
des règles du jeu et de son propre jeu, et il a fini plus fort encore (Silver et
coll., 2018).
Silver, D., Huang, A., Maddison, C. J., Guez, A., Sifre, L., van den Driessche, G., et al. (2016). Mastering the game of Go with deep neural networks and tree search. Nature, 529(7587), 484–489. https://doi.org/10.1038/nature16961
Silver, D., Hubert, T., Schrittwieser, J., Antonoglou, I., Lai, M., Guez, A., et al. (2018). A general reinforcement learning algorithm that masters chess, shogi, and Go through self-play. Science, 362(6419), 1140-1144. https://doi.org/10.1126/science.aar6404
Silver, D., Schrittwieser, J., Simonyan, K., Antonoglou, I., Huang, A., Guez, A., et al. (2017). Mastering the game of Go without human knowledge. Nature, 550(7676), 354–359. https://doi.org/10.1038/nature24270
RLVR: learning from answers that can be checkedL'ARV : apprendre à partir de réponses vérifiables
Figure 11. The two pipelines line up stage for stage and part company at what is being optimized.
At the end of every game of Go, the rules say who won. That result is exact, it
costs nothing to check, and a program can play millions of games against itself
to collect more of it.
This is a crucial difference. Having a result you can check automatically
means you can keep optimizing without people, and each check costs almost
nothing. Whereas
being reliant on subjective references that require human involvement to create
is a considerable limitation in terms of how much you can optimize and what you
should consider good performance (see also the Evaluating language technology module) (voir aussi le module L'évaluation des technologies langagières).
Figure 12. The kinds of fine-tuning this chapter names, and which of them make up post-training.
Sources
Guo, D., Yang, D., Zhang, H., Song, J., Zhang, R., Xu, R., et al. (2025). DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645(8081), 633–638. https://doi.org/10.1038/s41586-025-09422-z
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Lambert, N., Morrison, J., Pyatkin, V., Huang, S., Ivison, H., Brahman, F., et al. (2025). Tulu 3: Pushing Frontiers in Open Language Model Post-Training. Conference on Language Modeling (COLM 2025). https://openreview.net/forum?id=i1uGbfHHpH
Figure 11. Les deux chaînes se correspondent étape pour étape et se séparent sur ce qu'elles optimisent.
À la fin de chaque partie de go, les règles disent qui a gagné. Ce résultat est
exact, il ne coûte rien à vérifier, et un programme peut jouer des millions de
parties contre lui-même pour en recueillir davantage.
C’est une différence cruciale. Disposer d’un résultat vérifiable automatiquement
permet de continuer à optimiser sans intervention humaine, et chaque
vérification ne coûte presque rien. Dépendre de références subjectives, dont la création exige une intervention
humaine, limite au contraire considérablement ce qu’on peut optimiser et ce
qu’on doit considérer comme une bonne performance (see also the Evaluating language technology module) (voir aussi le module L'évaluation des technologies langagières).
Figure 12. Les sortes d'affinage que nomme ce chapitre, et celles qui forment le postentraînement.
Sources
Guo, D., Yang, D., Zhang, H., Song, J., Zhang, R., Xu, R., et al. (2025). DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645(8081), 633–638. https://doi.org/10.1038/s41586-025-09422-z
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Lambert, N., Morrison, J., Pyatkin, V., Huang, S., Ivison, H., Brahman, F., et al. (2025). Tulu 3: Pushing Frontiers in Open Language Model Post-Training. Conference on Language Modeling (COLM 2025). https://openreview.net/forum?id=i1uGbfHHpH
What machine translation isQu'est-ce que la traduction automatique
Written in English. The French version was automatically generated
and I have not revised it.
Rédigé en anglais. La version française a été
générée automatiquement et je ne l'ai pas révisée.
What a translation system has to doCe qu'un système de traduction doit faire
A memory and a translation system
When you open a segment in a CAT tool and see a pre-filled suggestion for a
translation, that translation has either been retrieved from a translation
memory or been generated by a machine translation system
(Figure 1figure 1).
Figure 1. The same sentence sent to a translation memory and to a machine translation system.
If translation were replacing each word with its equivalent, a bilingual
dictionary would be a translation system. Figure 2figure 2 shows two of the ways that fails.
Figure 2. Word for word, an English sentence into French, and the same sentence in English and in Japanese. The Japanese example is from Jurafsky and Martin (2026).
Eight kinds of difference between languages and cultures defeat the
dictionary.
Difference
Example
Consequence for a system
Word order
English He wrote a letter to a friend; Japanese tomodachi ni tegami-o kaita, word for word friend to letter wrote
the words have to be moved, and sometimes the whole sentence rebuilt
One word, several words
English bass is Spanish lubina (the fish) or bajo (the instrument); German has Wand (inside) and Mauer (outside) for wall
a sense has to be chosen from the context
What is left unsaid
Spanish Mostró su hallazgo a un descifrador ambulante has no subject; English needs He showed his find to a wandering decoder
a word the target grammar requires has to be supplied, and one it does without dropped
A different construction
English I am hungry, with an adjective; French j’ai faim, with a noun. English I like coffee; Spanish me gusta el café, where the coffee is the subject and pleases me
the same idea has to be rebuilt with the part of speech and the construction the target language uses
A word with no equivalent
Dutch gezellig, for a warm, convivial atmosphere; Mandarin xiào, for which English makes do with filial piety (Jurafsky & Martin, 2026)
a phrase, a near-equivalent or a loan has to stand in for the missing word
Figurative language and idioms
English it’s raining cats and dogs; French il pleut des cordes
the literal wording has to give way to the image the target language uses
Cultural knowledge
a Quebec text mentions le cégep; an English one mentions Grade 11 or Thanksgiving, which falls in October in Canada and in November in the United States
an explanation or an equivalent has to be added for readers who do not share the reference
Text-type conventions
an English manual says Press the button (imperative), a French one Appuyer sur le bouton (infinitive); a Japanese novel repeats a word where an English one would vary it
the text has to be reshaped to the conventions of its genre in the target culture, beyond the sentence
Eight differences between languages and cultures that defeat word-for-word replacement. The first three rows follow Jurafsky and Martin (2026); the others are mine, with one example borrowed from them.
The one word, several words difference is drawn in Figure 3figure 3.
Figure 3. English leg, foot and paw against their French translations. Example from Jurafsky and Martin (2026).
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Une mémoire et un système de traduction
Quand vous ouvrez un segment dans un outil de TAO et que vous y trouvez une
proposition de traduction déjà remplie, cette traduction a été soit retrouvée
dans une mémoire de traduction, soit générée par un système de traduction
automatique
(Figure 1figure 1).
Figure 1. La même phrase envoyée à une mémoire de traduction et à un système de traduction automatique.
Si traduire consistait à remplacer chaque mot par son équivalent, un
dictionnaire bilingue serait un système de traduction. La Figure 2figure 2 montre deux des façons dont cela échoue.
Figure 2. Mot à mot, une phrase anglaise vers le français, et la même phrase en anglais et en japonais. L'exemple japonais vient de Jurafsky et Martin (2026).
Huit types de différences entre langues et entre cultures mettent le
dictionnaire en échec.
Différence
Exemple
Conséquence pour un système
L’ordre des mots
anglais He wrote a letter to a friend ; japonais tomodachi ni tegami-o kaita, mot à mot ami à lettre a écrit
il faut déplacer les mots, et parfois reconstruire toute la phrase
Un mot, plusieurs mots
l’anglais bass se dit en espagnol lubina (le poisson) ou bajo (l’instrument) ; l’allemand a Wand (à l’intérieur) et Mauer (à l’extérieur) pour mur
il faut choisir un sens d’après le contexte
Ce qui reste implicite
l’espagnol Mostró su hallazgo a un descifrador ambulante n’a pas de sujet ; l’anglais exige He showed his find to a wandering decoder
il faut ajouter un mot que la grammaire cible exige, et retirer celui dont elle se passe
Une autre construction
l’anglais I am hungry, avec un adjectif ; le français j’ai faim, avec un nom. L’anglais I like coffee ; l’espagnol me gusta el café, où le café est le sujet et me plaît
la même idée doit être reconstruite avec la partie du discours et la construction qu’emploie la langue cible
Un mot sans équivalent
le néerlandais gezellig, pour une atmosphère chaleureuse et conviviale ; le mandarin xiào, que l’anglais rend tant bien que mal par filial piety (Jurafsky & Martin, 2026)
une périphrase, un quasi-équivalent ou un emprunt doit remplacer le mot manquant
Le langage figuré et les expressions idiomatiques
l’anglais it’s raining cats and dogs ; le français il pleut des cordes
la formulation littérale doit céder la place à l’image qu’emploie la langue cible
Les connaissances culturelles
un texte québécois mentionne le cégep ; un texte anglais mentionne Grade 11 ou Thanksgiving, qui tombe en octobre au Canada et en novembre aux États-Unis
il faut ajouter une explication ou un équivalent pour les lecteurs qui ne partagent pas la référence
Les conventions du type de texte
un manuel anglais dit Press the button (impératif), un manuel français Appuyer sur le bouton (infinitif) ; un roman japonais répète un mot là où un roman anglais le varierait
le texte doit être remodelé selon les conventions de son genre dans la culture cible, au-delà de la phrase
Huit différences entre langues et entre cultures qui mettent en échec le remplacement mot à mot. Les trois premières lignes suivent Jurafsky et Martin (2026) ; les autres sont de moi, avec un exemple qui leur est emprunté.
La différence « un mot, plusieurs mots » est dessinée à la Figure 3figure 3.
Figure 3. Les mots anglais leg, foot et paw et leurs traductions françaises. Exemple tiré de Jurafsky et Martin (2026).
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Before neural networks: rules and statisticsAvant les réseaux de neurones : règles et statistiques
Written in English. The French version was automatically generated
and I have not revised it.
Rédigé en anglais. La version française a été
générée automatiquement et je ne l'ai pas révisée.
Rule-based translationLa traduction à base de règles
Dictionaries and rules
The first generation of systems translated the way a beginner with a
dictionary and a grammar might. For the green witch arrived, an
English-to-French system of this kind works through a list:
look each word up in its bilingual dictionary: the → la, green →
vert, witch → sorcière, arrived → est arrivée;
apply the rule that a French adjective follows its noun: sorcière vert;
apply the rule that it agrees in gender and number: sorcière verte;
assemble the sentence: la sorcière verte est arrivée.
Jurafsky and Martin (2026) describe three designs, which differ in how much
of the source sentence is analyzed before anything is produced (Figure 1figure 1).
Figure 1. The Vauquois triangle, as given by Jurafsky and Martin (2026), who attribute it to Vauquois.
Design
Analysis before anything is written
Written for each language pair
Direct
nothing: the sentence is worked through word by word
a large bilingual dictionary whose every entry is a small program, translating one word and handling its reordering
Transfer
the grammatical structure of the source sentence
rules that turn a source structure into a target structure, then a generator, the part that writes the target sentence from that structure
Interlingua
the meaning, into a representation independent of both languages
in principle nothing specific to the pair: one analyzer per source language, one generator per target language
The three designs of rule-based translation.
Going up the triangle means more analysis on both sides and less knowledge
specific to the pair in the middle.
Strengths and limits
Strengths
Limits
Control. A wrong translation is traced to a rule or a dictionary entry, and corrected there.
Transparency. The path from the source to the output can be read, rule by rule.
Slow and expensive to build. In a direct or transfer system, each language pair and each direction needs its own dictionary and rules, written by linguists.
Hard to maintain. Rules interact, and a rule added for one case can break another.
The approach lost ground once enough translated text existed to learn from,
and it survives mainly for language pairs where that text does not exist.
Sources
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Des dictionnaires et des règles
La première génération de systèmes traduisait comme le ferait un débutant
muni d’un dictionnaire et d’une grammaire. Pour the green witch arrived, un
système de ce type qui traduit de l’anglais vers le français suit une liste
d’étapes :
chercher chaque mot dans son dictionnaire bilingue : the → la,
green → vert, witch → sorcière, arrived → est arrivée ;
appliquer la règle selon laquelle l’adjectif français suit le nom :
sorcière vert ;
appliquer la règle d’accord en genre et en nombre : sorcière verte ;
assembler la phrase : la sorcière verte est arrivée.
Jurafsky et Martin (2026) décrivent trois architectures, qui diffèrent par la
part de la phrase source analysée avant que quoi que ce soit soit produit
(Figure 1figure 1).
Figure 1. Le triangle de Vauquois, tel que le présentent Jurafsky et Martin (2026), qui l'attribuent à Vauquois.
Architecture
Analyse avant toute écriture
Ce qu’il faut écrire pour chaque paire de langues
Directe
aucune : la phrase est traitée mot par mot
un grand dictionnaire bilingue dont chaque entrée est un petit programme, qui traduit un mot et gère son déplacement dans la phrase
Transfert
la structure grammaticale de la phrase source
des règles qui transforment une structure source en structure cible, puis un générateur, la partie qui écrit la phrase cible à partir de cette structure
Interlangue
le sens, dans une représentation indépendante des deux langues
en principe rien de propre à la paire : un analyseur par langue source, un générateur par langue cible
Les trois architectures de la traduction à base de règles.
Plus on monte dans le triangle, plus l’analyse est poussée des deux côtés, et
moins il faut de connaissances propres à la paire de langues au milieu.
Forces et limites
Forces
Limites
Contrôle. Une traduction erronée se ramène à une règle ou à une entrée du dictionnaire, et se corrige à cet endroit.
Transparence. Le chemin de la phrase source au résultat se lit règle par règle.
Long et coûteux à construire. Dans un système direct ou à transfert, chaque paire de langues et chaque direction exigent leurs propres dictionnaire et règles, écrits par des linguistes.
Difficile à maintenir. Les règles interagissent, et une règle ajoutée pour un cas peut en défaire un autre.
Forces et limites de la traduction à base de règles.
L’approche a perdu du terrain dès que les textes traduits ont été assez
nombreux pour qu’on puisse en apprendre, et elle survit surtout pour les
paires de langues où ces textes n’existent pas.
Sources
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
The parts of a statistical system are shown in Figure 2figure 2 (Jurafsky & Martin, 2026).
Figure 2. The three components of a statistical translation system. The phrase table and its probabilities are illustrative.
The translation model contains the bilingual knowledge: for each source
word or phrase, the target words or phrases paired with it in the corpus,
each with a probability. In the phrase-based systems that became
standard in the 2000s, this is a table of phrase pairs, the phrase table.
The decoder combines the two: it takes every phrase pair that matches
the source sentence and searches for the combination and order whose
probability is highest under both models together.
The reference textbook of this generation is Koehn (2010).
You can try the reasoning yourself on a menu in a language you do not read,
for example the four dishes in the table below. If you read Chinese, the
steps work the same way for a menu in any language you do not know.
On the menu
In English
虾仁炒饭
Shrimp fried rice
牛肉炒饭
Beef fried rice
牛肉面
Beef noodles
炒面
Fried noodles
Four dishes from a Chinese menu, with their English translations.
Two dishes are fried rice, and the only signs they have in common are
炒饭, so 炒饭 probably means fried rice.
Two dishes contain beef, and they have 牛肉 in common, so 牛肉 means
beef: two signs for one English word.
In 牛肉面, once 牛肉 is beef, the one sign left, 面, must be noodles.
In 炒面, once 面 is noodles, 炒 must be fried, which leaves 饭 in
炒饭 for rice.
In the first dish, 虾仁 is then the only candidate left for shrimp.
You have matched every sign to an English word without reading the menu,
only by comparing which signs and which English words occur together. Real
translations are less tidy: the same menu could translate 炒面 as chow
mein, and that dish would then tell you nothing about fried or noodles.
What the system does
A statistical system applies the same idea to millions of sentence pairs,
with counts in place of reasoning.
At the start, the system has no information about either language. Every word
of a source sentence is equally likely to translate every word of its
target sentence (Brown et al., 1993).
The system counts and recalculates, many times over. Words that keep
occurring in the same sentence pairs gain probability; once a word’s
translation is clear, the other words of the pair are left to share the
rest. The effect is close to the elimination you did on the menu. The
result is a word alignment: in each sentence pair, each word is paired
with its probable translation (Brown et al., 1993).
The system then collects phrase pairs, sequences of words that are
aligned only with each other, such as 炒面 and fried noodles (Koehn et
al., 2003).
The probability in the phrase table is a share. Of all the times a
source phrase was paired with something, it is the share of times it was
paired with this translation (Koehn et al., 2003). If 炒面 occurred
1 000 times, 700 times with fried noodles, 250 times with chow mein and
50 times with noodles, the three probabilities would be 0.70, 0.25 and
0.05 (illustrative numbers).
Whether the model produces text. In a statistical system the language
model does not produce any text of its own: the phrase table proposes the
candidates and the language model only scores them. An LLM produces the
text itself, one token at a time, by choosing among the tokens it gives a high
probability (see also the LLMs as next-word predictors chapter, in the LLM lifecycle module) (voir aussi le chapitre Les GML, prédicteurs du mot suivant, dans le module Cycle de vie des GML).
Dependence on the training data
The quality of a statistical system depends mainly on its training data:
the more translated words a system was trained on, the more reliable its
counts;
the closer the training data is to the text to translate, in domain and in
style, the better the output: a system trained on parliamentary proceedings
translates proceedings well and a product manual less well;
Brown, P. F., Della Pietra, S. A., Della Pietra, V. J., & Mercer, R. L. (1993). The Mathematics of Statistical Machine Translation: Parameter Estimation. Computational Linguistics, 19(2), 263–311. https://aclanthology.org/J93-2003/
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Koehn, P., Och, F. J., & Marcu, D. (2003). Statistical Phrase-Based Translation. Proceedings of the 2003 Human Language Technology Conference of the North American Chapter of the Association for Computational Linguistics, 127–133. https://aclanthology.org/N03-1017/
Tiedemann, J. (2012). Parallel Data, Tools and Interfaces in OPUS. Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12), Istanbul, 2214–2218. https://aclanthology.org/L12-1246/
Ziemski, M., Junczys-Dowmunt, M., & Pouliquen, B. (2016). The United Nations Parallel Corpus v1.0. Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC'16), Portorož, 3530–3534. https://aclanthology.org/L16-1561/
Modèle de traduction, modèle de langue et décodeur
La Figure 2figure 2 présente les composantes d’un système statistique (Jurafsky & Martin, 2026).
Figure 2. Les trois composantes d'un système de traduction statistique. La table de traduction et ses probabilités sont fictives.
Le modèle de traduction contient les connaissances bilingues : pour
chaque mot ou segment source, les mots ou segments cibles qui lui sont
appariés dans le corpus, chacun avec une probabilité. Dans les systèmes
fondés sur les segments, devenus la norme dans les années 2000, il s’agit
d’une table de paires de segments, la table de traduction (angl. phrase
table).
Le décodeur combine les deux : il prend toutes les paires de segments qui
correspondent à la phrase source et cherche la combinaison et l’ordre dont la
probabilité est la plus élevée selon les deux modèles réunis.
L’ouvrage de référence de cette génération est celui de Koehn (2010).
Vous pouvez essayer ce raisonnement vous-même sur un menu dans une langue que
vous ne lisez pas, par exemple les quatre plats du tableau ci-dessous. Si vous
lisez le chinois, les étapes fonctionnent de la même façon avec un menu dans
n’importe quelle langue que vous ne connaissez pas.
Sur le menu
En français
虾仁炒饭
Riz sauté aux crevettes
牛肉炒饭
Riz sauté au bœuf
牛肉面
Nouilles au bœuf
炒面
Nouilles sautées
Quatre plats d'un menu chinois, avec leur traduction française.
Deux plats sont du riz sauté, et les seuls signes qu’ils ont en commun
sont 炒饭 : 炒饭 veut donc probablement dire riz sauté.
Deux plats contiennent du bœuf, et ils ont 牛肉 en commun : 牛肉 veut donc
dire bœuf, deux signes pour un seul mot français.
Dans 牛肉面, une fois 牛肉 identifié comme bœuf, le seul signe qui reste,
面, doit vouloir dire nouilles.
Dans 炒面, une fois 面 identifié comme nouilles, 炒 doit vouloir dire
sautées, ce qui laisse 饭, dans 炒饭, pour riz.
Dans le premier plat, 虾仁 est alors le seul candidat qui reste pour
crevettes.
Vous avez associé chaque signe à un mot français sans lire le menu,
uniquement en comparant quels signes et quels mots français apparaissent
ensemble. Les traductions réelles sont moins nettes : le même menu pourrait
traduire 炒面 par chow mein, et ce plat ne vous apprendrait alors rien sur
sautées ni sur nouilles.
Ce que fait le système
Un système statistique applique la même idée à des millions de paires de
phrases, avec des comptages à la place du raisonnement.
Au départ, le système ne dispose d’aucune information sur l’une ou l’autre langue. Chaque mot d’une
phrase source a autant de chances de traduire n’importe quel mot de sa
phrase cible (Brown et al., 1993).
Le système compte et recalcule, un grand nombre de fois. Les mots qui
reviennent sans cesse dans les mêmes paires de phrases gagnent en
probabilité ; une fois la traduction d’un mot établie, les autres mots de la
paire se partagent le reste. L’effet est proche de l’élimination que vous
avez faite sur le menu. Le résultat est un alignement des mots : dans
chaque paire de phrases, chaque mot est apparié à sa traduction probable
(Brown et al., 1993).
Le système recueille ensuite des paires de segments, des suites de mots
qui ne sont alignées qu’entre elles, comme 炒面 et nouilles sautées (Koehn
et al., 2003).
La probabilité dans la table de traduction est une proportion. Sur
toutes les fois où un segment source a été apparié à quelque chose, c’est la
proportion des fois où il a été apparié à cette traduction (Koehn et al.,
2003). Si 炒面 apparaissait 1 000 fois, dont 700 fois avec nouilles
sautées, 250 fois avec chow mein et 50 fois avec nouilles, les trois
probabilités seraient 0,70, 0,25 et 0,05 (chiffres fictifs).
Le modèle de langue et les grands modèles de langue
Si le modèle produit du texte. Dans un système statistique, le modèle de
langue ne produit aucun texte de lui-même : la table de traduction propose
les candidats, et le modèle de langue se contente de les noter. Un GML
produit lui-même le texte, un jeton à la fois, en choisissant parmi les
jetons auxquels il attribue une forte probabilité (see also the LLMs as next-word predictors chapter, in the LLM lifecycle module) (voir aussi le chapitre Les GML, prédicteurs du mot suivant, dans le module Cycle de vie des GML).
La dépendance aux données d’entraînement
La qualité d’un système statistique dépend surtout de ses données
d’entraînement :
plus le système a été entraîné sur un grand nombre de mots traduits, plus
ses comptages sont fiables ;
plus les données d’entraînement sont proches du texte à traduire, par le
domaine et par le style, meilleur est le résultat : un système entraîné sur
des débats parlementaires traduit bien des débats et moins bien un manuel de
produit ;
Brown, P. F., Della Pietra, S. A., Della Pietra, V. J., & Mercer, R. L. (1993). The Mathematics of Statistical Machine Translation: Parameter Estimation. Computational Linguistics, 19(2), 263–311. https://aclanthology.org/J93-2003/
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Koehn, P., Och, F. J., & Marcu, D. (2003). Statistical Phrase-Based Translation. Proceedings of the 2003 Human Language Technology Conference of the North American Chapter of the Association for Computational Linguistics, 127–133. https://aclanthology.org/N03-1017/
Tiedemann, J. (2012). Parallel Data, Tools and Interfaces in OPUS. Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12), Istanbul, 2214–2218. https://aclanthology.org/L12-1246/
Ziemski, M., Junczys-Dowmunt, M., & Pouliquen, B. (2016). The United Nations Parallel Corpus v1.0. Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC'16), Portorož, 3530–3534. https://aclanthology.org/L16-1561/
HallucinationsLes fabulations de l'IA
Written in English. The French version was automatically generated
and I have not revised it.
Rédigé en anglais. La version française a été
générée automatiquement et je ne l'ai pas révisée.
Two kinds of hallucinationsDeux types de fabulations
Maynez et al. (2020) separated two kinds of hallucination in summarization,
and the difference decides how you catch one in any output checked against a
source you supplied.
The two call for different checks
(Figure 2figure 2). For an intrinsic one, everything
needed is in front of you: the summary says the lease permits something the
lease forbids, and reading both catches it. For an extrinsic one, the output
is internally consistent and the error is a fact about the world, so catching it
means knowing the subject or looking it up.
Figure 2. An intrinsic and an extrinsic hallucination in a summary of the same lease.
Sources
Maynez, J., Narayan, S., Bohnet, B., & McDonald, R. (2020). On Faithfulness and Factuality in Abstractive Summarization. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. https://doi.org/10.18653/v1/2020.acl-main.173
Maynez et al. (2020) ont distingué deux types de fabulations en résumé
automatique, et la différence détermine comment vous pouvez en repérer une
dans toute sortie vérifiable contre une source que vous avez fournie.
Les deux appellent des vérifications différentes
(Figure 2figure 2). Pour une
fabulation intrinsèque, tout ce qu’il faut est devant vous : le résumé dit
que le bail permet ce que le bail interdit, et lire les deux suffit à la
repérer. Pour une fabulation extrinsèque, la sortie est cohérente avec
elle-même et l’erreur porte sur un fait du monde : la repérer suppose de
connaître le sujet ou d’aller le vérifier.
Figure 2. Une fabulation intrinsèque et une fabulation extrinsèque dans le résumé d'un même bail.
Sources
Maynez, J., Narayan, S., Bohnet, B., & McDonald, R. (2020). On Faithfulness and Factuality in Abstractive Summarization. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. https://doi.org/10.18653/v1/2020.acl-main.173
Mitigating hallucinationsAtténuer les fabulations
What the developers do
Three approaches are in use, but none of them removes the problem.
The answer can come from a retrieved page rather than from the parameters
The page itself can be wrong, and a link shows where a claim came from rather than that it is true
Both studies used models of 2023. Zhang et al. (2024b) tested refusal training
on OpenLLaMA-3B and LLaMA 7B and 13B. Chen et al. (2024) tested retrieval on
ChatGPT and several open 6B and 7B models, which did worst at declining when
the retrieved documents did not contain the answer, at combining information
from several documents, and at detecting false information in
them.
The numbers date faster than the failures do. Each of these is a mitigation
rather than a guarantee, and the September 2026 runs below show one of the
same failures on current models: an answer based on a source that is wrong.
The biography of Gurky earlier in this chapter came from a model of 2025
answering from its parameters alone. Put to two chatbots in September 2026,
the same question sent both of them to the web without being asked, and
searching changed what went wrong rather than removing it.
The first searched and then used a celebrity birthday site, which gave it
a full name and a birth date; the name is wrong
(Figure 5figure 5).
Figure 5. A wrong name with a source attached. Gemini 3.6 Flash with web search, 17 September 2026.
The second found the Québec press instead and gave his first name correctly
(Figure 6figure 6),
although a second run of the same question took the wrong name from the same
birthday site.
Figure 6. The first name the Québec press gives, with that source linked. GPT-5.6 Sol at light effort, 17 September 2026.
Asked in that conversation for his date of birth, it returned both sources,
stated that the two conflict, and called the date unverified
(Figure 7figure 7).
Figure 7. The same conversation, asked for his date of birth: the answer calls the date unverified and the birthday site unreliable. GPT-5.6 Sol at light effort, 17 September 2026.
The three differ in which sources they found and in whether they said how far
to trust them. A cited source can also be the wrong source altogether: asked
to identify the news article a quoted excerpt came from, eight search tools
gave an incorrect answer more than 60% of the time, often naming a plausible
article that was not the one quoted (Jaźwińska & Chandrasekar,
2025).A report from a journalism school’s research centre rather than a peer-reviewed study: 1,600 tests over eight AI search tools.
So a link tells you what to check next rather than that the claim is
true.
Hallucination rates are also tracked publicly. On the best known
leaderboardVectara, Hallucination Leaderboard, last updated 11 May 2026 and read 17 September 2026: rates from 1.8% upward, with GPT-5.4 at 7.0% against 3.1% for its smallest version.
no model reaches zero, and the largest models are not always the
lowest (see also the Reading a leaderboard page, in the Using LLMs module) (voir aussi la page Lire un classement, dans le module Utiliser les GML).
What you can do
Supplying the source
When the work you give a model is work on a text you already have, for
instance translating it, summarizing it, rewriting it for a different reader
or checking it against a list of terms, put that text in the context.
Asking a model to be more careful changes little: no part of it is responsible
for care, and truth is not a variable in the process. Rereading an output for
consistency does not help either, because the process produces consistency.
The checks that work compare a claim with something outside the
output (see also the Checking the answer page, in the Using LLMs module) (voir aussi la page Vérifier la réponse, dans le module Utiliser les GML).
Which details deserve suspicion
The risk is not spread evenly. Fabrication concentrates in specific, checkable
details that were rare in the training text, for instance dates, numbers,
names, page references, citations, quotations, legal provisions, and anything
recent.
General explanation of a well-covered topic is far safer. On a subject written
about many times over, an explanation is usually sound, and that is a large
part of what these tools are useful for. Usually is not always, and such an
explanation can be wrong about something central rather than about a detail,
but it is a different order of risk from a fabricated citation.
So the checking follows the risk rather than covering everything. If you are
going to verify three things in an output, verify the three most specific
ones.
Fabricated references have been measured directly. Walters and Wilder (2023)
checked every reference in short literature reviews written by two models of
2023: more than half of what GPT-3.5 produced did not exist, and just under a
fifth of GPT-4’s. Of the references that did exist, between a quarter and
almost half had at least one substantive error, most often in the volume,
issue or page numbers or in the date.
Sources
Chen, J., Lin, H., Han, X., & Sun, L. (2024). Benchmarking Large Language Models in Retrieval-Augmented Generation. Proceedings of the AAAI Conference on Artificial Intelligence, 38(16), 17754–17762. https://doi.org/10.1609/aaai.v38i16.29728
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Walters, W. H., & Wilder, E. I. (2023). Fabrication and errors in the bibliographic citations generated by ChatGPT. Scientific Reports, 13, 14045. https://doi.org/10.1038/s41598-023-41032-5
Xu, Z., Jain, S., & Kankanhalli, M. (2024). Hallucination is Inevitable: An Innate Limitation of Large Language Models. arXiv:2401.11817 (preprint). https://arxiv.org/abs/2401.11817
Zhang, H., Diao, S., Lin, Y., Fung, Y. R., Lian, Q., Wang, X., Chen, Y., Ji, H., & Zhang, T. (2024b). R-Tuning: Instructing Large Language Models to Say `I Don't Know'. Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), 7113–7139. https://doi.org/10.18653/v1/2024.naacl-long.394
Ce que font les concepteurs
Trois approches sont en usage, mais aucune ne supprime le problème.
La réponse peut venir d’une page récupérée plutôt que des paramètres
La page elle-même peut être fausse, et un lien montre d’où vient une affirmation plutôt que sa véracité
Les deux études portaient sur des modèles de 2023. Zhang et al. (2024b) ont
testé l’entraînement au refus sur OpenLLaMA-3B et LLaMA 7B et 13B. Chen et
coll. (2024) ont testé la récupération sur ChatGPT et sur plusieurs modèles
ouverts de 6 et 7 milliards de paramètres, qui ont le plus échoué à refuser
quand les documents récupérés ne contenaient pas la réponse, à combiner
l’information de plusieurs documents et à détecter l’information fausse qui
s’y trouvait.
Les chiffres vieillissent plus vite que les échecs. Chacune de ces approches
est une atténuation plutôt qu’une garantie, et les essais de septembre 2026
ci-dessous montrent l’un des mêmes échecs sur des modèles actuels : une
réponse appuyée sur une source fausse.
La biographie de Gurky présentée plus tôt dans ce chapitre venait d’un modèle
de 2025 qui répondait à partir de ses seuls paramètres. Posée à deux agents
conversationnels en septembre 2026, la même question les a tous deux envoyés
sur le Web sans qu’on le leur demande, et la recherche a changé la nature de
l’erreur plutôt que de la supprimer.
Le premier a cherché, puis s’en est remis à un site de célébrités et
d’anniversaires, qui lui a fourni un nom complet et une date de naissance ;
le nom est faux
(Figure 5figure 5).
Figure 5. Un nom faux, avec une source attachée. Gemini 3.6 Flash avec recherche Web, 17 septembre 2026.
Le second a trouvé la presse québécoise et a donné son prénom correctement
(Figure 6figure 6),
même si un second essai de la même question a repris le nom faux au même site
d’anniversaires.
Figure 6. Le prénom que donne la presse québécoise, avec cette source en lien. GPT-5.6 Sol à effort léger, 17 septembre 2026.
Interrogé dans cette conversation sur sa date de naissance, il a rendu les
deux sources, signalé qu’elles se contredisent et qualifié la date de non
vérifiée
(Figure 7figure 7).
Figure 7. La même conversation, interrogée sur la date de naissance : la réponse qualifie la date de non vérifiée et le site d'anniversaires de peu fiable. GPT-5.6 Sol à effort léger, 17 septembre 2026.
Les trois diffèrent par les sources qu’ils ont trouvées et par ce qu’ils ont
dit du crédit à leur accorder. Une source citée peut aussi être la mauvaise
source : à qui leur demandait d’identifier l’article de presse d’où venait
un extrait cité, huit outils de recherche ont donné une réponse erronée plus
de 60 % du temps, en nommant souvent un article plausible qui n’était pas
celui d’où venait la citation (Jaźwińska et Chandrasekar,
2025).Un rapport du centre de recherche d’une école de journalisme, et non une étude évaluée par les pairs : 1 600 essais sur huit outils de recherche par IA.
Un lien vous dit donc quoi vérifier ensuite plutôt que la vérité de
l’affirmation.
Les taux de fabulation font aussi l’objet d’un suivi public. Sur le classement
le plus connuVectara, Hallucination Leaderboard, dernière mise à jour le 11 mai 2026, consulté le 17 septembre 2026 : des taux à partir de 1,8 %, avec GPT-5.4 à 7,0 % contre 3,1 % pour sa plus petite version.
aucun modèle n’atteint zéro, et les plus grands modèles ne sont pas toujours
les plus bas (see also the Reading a leaderboard page, in the Using LLMs module) (voir aussi la page Lire un classement, dans le module Utiliser les GML).
Ce que vous pouvez faire
Fournir la source
Quand le travail que vous confiez à un modèle porte sur un texte que vous avez
déjà, par exemple le traduire, le résumer, le réécrire pour un autre lectorat
ou le confronter à une liste de termes, mettez ce texte dans le contexte.
Demander à un modèle d’être plus prudent ne change pas grand-chose : aucune
partie de lui n’est chargée de la prudence, et la vérité n’est pas une
variable du processus. Relire une sortie pour en vérifier la cohérence ne sert
pas davantage, puisque le processus produit de la cohérence. Les
vérifications qui fonctionnent comparent une affirmation à quelque chose
d’extérieur à la
sortie (see also the Checking the answer page, in the Using LLMs module) (voir aussi la page Vérifier la réponse, dans le module Utiliser les GML).
Quels détails méritent la méfiance
Le risque n’est pas réparti également. La fabrication se concentre sur les
détails précis et vérifiables qui étaient rares dans le texte d’entraînement,
par exemple les dates, les nombres, les noms, les renvois de pages, les
références, les citations, les dispositions légales et tout ce qui est récent.
L’explication générale d’un sujet bien couvert est nettement plus sûre. Sur un
sujet sur lequel on a écrit bien des fois, une explication est en général
solide, et c’est pour une bonne part ce à quoi ces outils servent. En général
ne veut pas dire toujours, et une telle explication peut se tromper sur
quelque chose de central plutôt que sur un détail, mais ce n’est pas le même
ordre de risque qu’une référence fabriquée.
La vérification suit donc le risque plutôt que de tout couvrir. Si vous devez
vérifier trois choses dans une sortie, vérifiez les trois plus précises.
Les références fabriquées ont été mesurées directement. Walters et Wilder
(2023) ont vérifié chaque référence dans de courtes revues de littérature
écrites par deux modèles de 2023 : plus de la moitié de ce que GPT-3.5 a
produit n’existait pas, contre un peu moins d’un cinquième pour GPT-4. Parmi
les références qui existaient bel et bien, entre un quart et près de la moitié
comportaient au moins une erreur de fond, le plus souvent dans le volume, le
numéro, les pages ou la date.
Sources
Chen, J., Lin, H., Han, X., & Sun, L. (2024). Benchmarking Large Language Models in Retrieval-Augmented Generation. Proceedings of the AAAI Conference on Artificial Intelligence, 38(16), 17754–17762. https://doi.org/10.1609/aaai.v38i16.29728
Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. Online draft, 3rd edition. https://web.stanford.edu/~jurafsky/slp3/
Walters, W. H., & Wilder, E. I. (2023). Fabrication and errors in the bibliographic citations generated by ChatGPT. Scientific Reports, 13, 14045. https://doi.org/10.1038/s41598-023-41032-5
Xu, Z., Jain, S., & Kankanhalli, M. (2024). Hallucination is Inevitable: An Innate Limitation of Large Language Models. arXiv:2401.11817 (preprint). https://arxiv.org/abs/2401.11817
Zhang, H., Diao, S., Lin, Y., Fung, Y. R., Lian, Q., Wang, X., Chen, Y., Ji, H., & Zhang, T. (2024b). R-Tuning: Instructing Large Language Models to Say `I Don't Know'. Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), 7113–7139. https://doi.org/10.18653/v1/2024.naacl-long.394