GUIDE IA du langage

ChatGPT et les grands modèles de langage (LLM)

A large language model (LLM) is a neural network trained on enormous amounts of text to predict the next small piece of text, called a token, and then tuned to follow instructions.

Écoutez ce guideNarré par l'IA · ~8 min

Sur cette page9 minutes de lecture
  1. Aperçu
  2. Points clés à retenir
  3. Plongée profonde
  4. Calculez les probabilités du prochain jeton et voyez la température au travail
  5. Mise en œuvre dans le monde réel
  6. The Future of ChatGPT and Large Language Models (LLMs)
  7. Le mettre en pratique
  8. Sources et lectures complémentaires
  9. Continuez à explorer
  10. Questions fréquemment posées

Aperçu

ChatGPT is a product built around such models. Knowing how the prediction works explains both why these systems write fluently and why they can state false things with confidence.

Points clés à retenir

  1. Un grand modèle de langage prédit le prochain jeton de texte, un jeton à la fois, en utilisant les probabilités apprises à partir d’énormes quantités de matériel écrit.
  2. ChatGPT est un produit construit sur des modèles de langage ; OpenAI l'a lancé le 30 novembre 2022, peaufiné à partir d'un modèle de la série GPT-3.5.
  3. Les assistants de chat sont construits en deux étapes : une pré-formation sur du texte brut, puis un alignement sur des exemples écrits par des humains et des classements humains, connus sous le nom de RLHF.
  4. Dans l'étude InstructGPT de OpenAI, les personnes ont préféré les réponses d'un modèle optimisé par les instructions de 1,3 milliard de paramètres à celles du GPT-3 de 175 milliards de paramètres.
  5. Chinchilla de DeepMind a montré qu'un modèle de 70 milliards de paramètres formé sur 1,4 billion de jetons pourrait surpasser des modèles beaucoup plus grands formés sur moins de texte.
  6. Les LLM peuvent produire des déclarations fluides mais fausses, de sorte que les faits, les chiffres, les citations et les citations doivent être vérifiés par rapport aux sources originales.

Plongée profonde

A large language model is a computer program that has learned the statistical patterns of language by reading a very large amount of text. Its job, at the lowest level, is simple: given some text, predict what comes next. It does this one token at a time. A token is a chunk of text such as a whole common word, part of a rarer word, a number or a punctuation mark. The model assigns a probability to every token in its vocabulary, picks one, adds it to the text, and repeats. Large refers to the number of adjustable internal numbers, called parameters: GPT-3, described in a 2020 OpenAI paper, had 175 billion. ChatGPT, by contrast, is a product. It wraps one or more language models in an app with a chat interface, safety filters, memory features and, in later versions, tools such as web search. The model and the product are not the same thing.

Inside, almost every current LLM is a Transformer, the design introduced by Google researchers in 2017. First, each token is turned into a list of numbers called an embedding. Then the text passes through a stack of identical layers. Each layer has an attention step, in which every token looks back at the earlier tokens and pulls in information from the ones that matter for it, and a feed-forward step, which transforms each token's numbers on its own. GPT-3 stacked 96 such layers, each 12,288 numbers wide with 96 attention heads, and could look at 2,048 tokens of text at once, a limit called the context window. After the last layer, the model converts the final token's numbers into a probability for every possible next token.

Building a chat assistant takes two broad stages. The first is pretraining. The model reads a huge collection of text and, at each position, is penalized according to how much probability it gave the token that actually came next. GPT-3 was trained on 300 billion tokens, mostly filtered web pages plus books and Wikipedia, using about 3.14 times 10 to the 23rd power arithmetic operations. The result is a model that can continue any text but does not reliably follow requests. The second stage is alignment. In OpenAI's 2022 InstructGPT work, people wrote example answers to prompts and the model was fine-tuned on them; then people ranked several model answers from best to worst, a separate reward model learned to predict those rankings, and reinforcement learning nudged the language model toward answers the reward model scored highly. This is called reinforcement learning from human feedback, or RLHF. In human evaluations, answers from a 1.3-billion-parameter InstructGPT model were preferred to those of the original 175-billion-parameter GPT-3.

The key milestones are well documented. June 2017: the Transformer paper. May 2020: GPT-3 shows that a sufficiently large model can do new tasks from a few examples written into the prompt, which its authors called few-shot learning. March 2022: InstructGPT introduces the instruction-following recipe, and DeepMind's Chinchilla paper shows that many large models had been trained on too little text. Chinchilla, with 70 billion parameters trained on 1.4 trillion tokens, outperformed the 280-billion-parameter Gopher and the 175-billion-parameter GPT-3, and the authors concluded that training text should double whenever model size doubles. November 30, 2022: ChatGPT launches as a free research preview, trained with the same RLHF methods using dialogue data. March 2023: GPT-4 accepts images as well as text and scores around the top 10% on a simulated bar exam, though its report discloses no details of model size or architecture.

LLMs are often compared with search engines and with older chatbots. A search engine finds existing documents and shows where they came from. An LLM generates new text from patterns it learned, so its answer may be fluent but has no built-in link to a source unless the product adds retrieval or search. Older chatbots, such as phone menus and customer service scripts, matched keywords to replies written in advance; an LLM composes each reply fresh, which makes it far more flexible and far less predictable. Among LLMs, closed models are offered only through a company's app or API, while open-weight models publish their parameters so anyone can run them; the Stanford AI Index 2025 found the performance gap between the best open and closed models shrank from 8% to 1.7% on some benchmarks in a year.

The main weakness is that predicting likely text is not the same as knowing facts. OpenAI's own ChatGPT launch post listed the problems plainly: the model sometimes writes plausible-sounding but incorrect answers, gives different answers to slightly reworded questions, is often too wordy, guesses at ambiguous questions instead of asking, and can still follow harmful instructions or show bias. A 2025 paper by Adam Tauman Kalai and colleagues argues that these confident errors, usually called hallucinations, persist partly because training and benchmark scoring reward guessing over admitting uncertainty. Other limits follow from the design. A model knows nothing after the date its training text was collected unless it is connected to search. It cannot see its own sources. And the GPT-4 report itself notes the model is less capable than people in many real-world situations.

Costs fall into training and use. Training is the expensive part: GPT-3's 3.14 times 10 to the 23rd operations was already a very large budget in 2020, and the largest models since then have used far more. Chinchilla's results showed that a smaller model trained on more text could match or beat a larger one while being cheaper to run afterward. Using a model is priced per token, both for the text sent in and the text generated, so long documents and long answers cost more. The Stanford AI Index 2025 measured a more than 280-fold drop in the price of GPT-3.5-level performance between late 2022 and late 2024. For ordinary users the practical cost is mostly time: checking claims, supplying context and verifying anything that will be relied on.

04Exemple travaillé

Calculez les probabilités du prochain jeton et voyez la température au travail

  1. Imaginez l'invite La capitale de la France est et trois prochains jetons candidats avec des scores bruts du modèle : Paris 5, Lyon 3, France 2.

  2. Exponentiez chaque score : e au 5 est d'environ 148,4, e au 3 est d'environ 20,1, e au 2 est d'environ 7,4. Leur somme est d'environ 175,9.

  3. Divisez chacun par la somme pour obtenir les probabilités à température 1 : Paris environ 0,84, Lyon environ 0,11, France environ 0,04.

  4. Divisez maintenant chaque score par une température de 2 avant d'exposer : e au 2,5 est d'environ 12,2, e au 1,5 est d'environ 4,5, e au 1 est d'environ 2,7, la somme est d'environ 19,4.

  5. Calculez les nouvelles probabilités : Paris environ 0,63, Lyon environ 0,23, France environ 0,14.

  6. A noter que le modèle choisirait Lyon environ une fois sur neuf à température 1 et près d'une fois sur quatre à température 2, même si Paris a raison.

Ce que ça montre

Les probabilités dans chaque cas totalisent environ 1, ce qui correspond au contrôle. L'exercice montre qu'un LLM choisit les mots en échantillonnant à partir d'une distribution de probabilité, de sorte qu'une température plus élevée produit un texte plus varié et également plus de chances d'obtenir un mauvais jeton.

Mise en œuvre dans le monde réel

Assistants conversationnels : OpenAI a lancé ChatGPT le 30 novembre 2022 en tant qu'aperçu de recherche gratuit, affiné à partir d'un modèle de la série GPT-3.5 avec apprentissage par renforcement à partir des commentaires humains afin de pouvoir gérer les questions de suivi.

Apprendre de quelques exemples : l'article GPT-3 de 2020 montrait un modèle de 175 milliards de paramètres effectuant la traduction, la réponse aux questions et l'arithmétique à partir d'une poignée d'exemples placés dans l'invite, sans recyclage.

Examens professionnels : le rapport technique GPT-4 de OpenAI de mars 2023 indique que GPT-4 a réussi un examen du barreau simulé avec un score se situant autour des 10 % des meilleurs candidats et accepte les images ainsi que le texte.

Utilisation quotidienne moins chère : le Stanford AI Index 2025 indique que le coût des performances de niveau GPT-3.5 a été divisé par plus de 280 entre novembre 2022 et octobre 2024, c'est pourquoi l'aide à la synthèse, à la rédaction et au codage est devenue largement abordable.

The Future of ChatGPT and Large Language Models (LLMs)

Several open problems are shaping language models after 2025. Reliability is the most visible. The 2025 paper Why Language Models Hallucinate proposes changing how leaderboards score answers so that admitting uncertainty is not punished, rather than adding more specialized hallucination tests; whether benchmark makers adopt that approach is still an open question. A second direction is grounding. Products increasingly connect models to search engines, document stores and software tools so answers can be checked against current sources, which reduces but does not remove fabricated details. A third is efficiency. Following the 2022 Chinchilla findings, developers have favored training smaller models on more text, and the Stanford AI Index 2025 recorded both falling inference prices and a narrowing gap between open-weight and closed models. Transparency is a fourth issue. The GPT-4 Technical Report of March 2023 withheld model size, hardware and training data details, citing competition and safety, which makes independent evaluation of such models harder. Researchers continue to debate whether next-token prediction plus more scale will keep yielding broader reasoning abilities, or whether different training methods will be needed.

Le mettre en pratique

Pourquoi c'est important

  • Vitesse et échelle. Les flux de travail linguistiques peuvent évoluer plus rapidement sans sacrifier la cohérence.
  • Accès et portée. Il étend l’accès à toutes les langues et styles de communication.
  • Décisions plus claires. Les équipes peuvent consacrer plus de temps au jugement tandis que l’automatisation gère les répétitions.

Attention à

  • Les faits hallucinés peuvent discrètement entrer dans des rapports, des flux de support ou des résultats de recherche.
  • La sensibilité des invites peut créer des résultats incohérents pour des demandes similaires.
  • Les données textuelles sensibles peuvent être exposées si les contrôles d’accès sont faibles.

Prochaines étapes

  1. Définissez le format de sortie, le ton et les normes de qualité avant le déploiement.
  2. Établissez des réponses auprès de sources fiables chaque fois que la précision est importante.
  3. Gardez un point de contrôle d’examen humain pour les résultats à enjeux élevés.
  4. Suivez les modèles de défaillance et recyclez régulièrement les invites ou les flux de travail.

Sources et lectures complémentaires

  1. arXiv (Google, 2017)L'attention est tout ce dont vous avez besoin
  2. arXiv (OpenAI, 2020)Language Models are Few-Shot Learners
  3. arXiv (OpenAI, 2022)Training language models to follow instructions with human feedback
  4. arXiv (DeepMind, 2022)Training Compute-Optimal Large Language Models
  5. OpenAIPrésentation de ChatGPT
  6. arXiv (OpenAI, 2023)GPT-4 Technical Report
  7. arXiv (Kalai, Nachum, Vempala and Zhang, 2025)Why Language Models Hallucinate
  8. Stanford Institute for Human-Centered AILe rapport sur l’indice IA 2025

Continuez à explorer

Newsletter gratuite

Recevez le briefing quotidien sur l'IA

Trois histoires d'IA vérifiées chaque matin de la semaine, écrites dans un anglais simple. Gratuit pour toujours, sans publicité.

Un e-mail chaque jour de la semaine. Désabonnez-vous en un clic. Nous ne vendons ni ne partageons jamais votre adresse.

Testez-vous

Take the ChatGPT and Large Language Models (LLMs) quiz

Commentaires instantanés sur chaque réponse et un certificat partageable avec une pièce d'identité vérifiable une fois que vous avez réussi un cours.

Démarrer le quiz

Soutenez l’enseignement gratuit de l’IA. AI Understanding est une organisation à but non lucratif 501(c)(3) : pas de publicité, pas de paywall, jamais. Faire un don

Questions fréquemment posées

What is ChatGPT and Large Language Models (LLMs)?

Un grand modèle de langage (LLM) est un réseau neuronal formé sur d'énormes quantités de texte pour prédire le prochain petit morceau de texte, appelé jeton, puis réglé pour suivre les instructions. ChatGPT est un produit construit autour de tels modèles. Connaître le fonctionnement de la prédiction explique à la fois pourquoi ces systèmes écrivent couramment et pourquoi ils peuvent énoncer des choses fausses en toute confiance.

Quel est un objectif d'entraînement courant pour un modèle linguistique autorégressif ?

The guide explains that an autoregressive language model uses context to score possible next tokens.

A language model can split one word into several processing units. What are those units?

Text is converted into tokens, which can represent words, word parts, or other units.

How does a chatbot relate to an LLM?

The guide distinguishes the model from the application that can wrap it with other systems.

Which statement distinguishes training from prompting and retrieval?

The guide treats training, prompting, retrieval, and tools as different mechanisms.

Does supplying sources eliminate hallucinations?

Relevant sources can help, but the answer still needs to be checked against them.