A chatbot is more than a model
A large assistant like ChatGPT doesn't consist only of model weights. On top come carefully selected data, several training rounds after pretraining, extensive testing, a highly optimized inference engine, tools like web search or a calculator, and a lot of product logic around it. Our project builds the core: the language model. It doesn't build a search engine or a finished product.
Knowing this helps put things in perspective. If a chatbot knows today's news, it usually didn't “learn” it but just looked it up. If it calculates correctly, it may have used a calculator tool.
Mixture of experts: specialists instead of all-rounders
In a normal model, the complete MLP runs for every token. In a mixture of experts (MoE) there are instead many smaller MLPs, the “experts”, and a router that decides for every token which few experts are responsible. Like a hospital: not every patient is examined by all doctors; admissions sends them to the right specialists.
The advantage: the model can have a huge number of parameters, but only a small part computes for each token. Mixtral, for example, has 8 experts, 2 of which work per token: about 47 billion parameters in total but only about 13 billion active. DeepSeek-V3 has 671 billion parameters, 37 billion of them active per token. Mixtral of Experts.
The catch: all experts still have to be stored. And the router can get into the habit of always choosing the same favorite experts while others learn nothing. Training gets much more complicated. For your first own model, a normal “dense” model is the better choice. Anyone who builds a mini MoE later first checks: does every expert get enough work?
Long contexts
Modern models can read hundreds of thousands of tokens at once: whole books. But writing a bigger number into the configuration isn't enough. The model has to learn to really find relevant information across such distances, and normal attention gets very expensive with long texts (every position with every other). Sparse attention therefore leaves out certain connections, for example by having each position look only at its neighborhood and a few important spots.
By the way, a large context window doesn't mean the model reliably finds a piece of information on page 200. That has to be tested specifically, for example with a hidden “needle in a haystack”.
Images, sound and video
A multimodal model understands more than text. For that it needs a way to translate images or sound into lists of numbers the transformer can work with, often a separate network in front that, for example, cuts an image into many small tiles and treats each like a token. Plus matching training data: images with descriptions, audio with transcripts. A text model doesn't become sighted just because you give it a token called “image”.
Learning from ratings
After SFT, large assistants usually go through one more round: learning from ratings. Instead of “this is the right answer”, it is then “answer A is better than answer B”. People (or checking programs) compare answers, and the model is adjusted so it makes the preferred answers more likely. Meanwhile a kind of rubber band keeps it close to its SFT state so it doesn't drift off.
A few abbreviations: RL stands for reinforcement learning: the model tries something and gets a rating, the reward. RLHF means “reinforcement learning from human feedback”: people rate answers, a separate rating model learns these judgments, and the language model is optimized on it with the method PPO. DPO skips the separate rating model and learns directly from the comparison pairs (Direct Preference Optimization).
What still matters: the best method is useless if the ratings themselves are bad. A model rewarded for “sounds convincing” learns to sound convincing, not necessarily to be right.
Rewards you can check, and “thinking”
For some tasks a program can automatically check whether the answer is right: is the result of the calculation correct? Do the program tests pass? Then the model can produce lots of solution attempts and learn from the successful ones. In this context, the model being improved is called the policy.
Since 2024/25 this is how so-called reasoning models are made: before the actual answer, they write a long intermediate calculation, a kind of scratch pad (chain of thought). More “thinking time” when answering, called test-time compute, can significantly raise the hit rate on math and programming tasks. A common training method for this is GRPO, which compares several answers to the same question with each other. A well-known open example is DeepSeek-R1.
Two warnings: the scratch pad is generated text, not a guaranteed look inside the model. And a faulty checker teaches the model to trick the checker instead of solving the task. Build good tests first, then experiment with RL.
Tools and looking things up
With retrieval, a system pulls matching pieces of text from a database or the web into the context before it answers. With tool calls it can calculate, run code or query databases. The model has to learn when it needs which tool and how to correctly work the results in. The overall system becomes much more capable without the model itself having to know everything.
What “modern” really means
There is no checklist “build in everything modern”. Good systems choose the components to fit their data, budget and purpose, and prove that they help. Your next step should therefore be a precise question: “Does a mini MoE improve my validation loss at the same computing cost?” can be investigated. “I'll just build in everything modern” is not an experiment.
Key points
- Big chatbots are systems: model plus data, post-training, tests, tools and product logic.
- MoE lets only a few experts compute per token. Long contexts, images and sound need their own components and data.
- After SFT, models learn from ratings (RLHF, DPO) and checkable rewards. Reasoning models “think” on a scratch pad before answering.