A brilliant mimic
A large language model starts life as a pretrained model, trained to predict the next word across enormous amounts of text. That gives it broad knowledge of language and facts, but not the habits of an assistant. Ask a raw model 'How do I bake bread?' and it may continue with more questions, as if writing a forum page, or produce a recipe followed by unrelated text. It has no particular reason to be truthful, polite or safe; it mimics whatever kind of document seems to be underway. Turning it into a useful chatbot takes further training stages that shape its behaviour without retraining from scratch. These later steps are comparatively small but decisive.
Learning from examples
The first step is usually supervised fine-tuning. People write many example conversations showing the desired behaviour: answering the question asked, following instructions, explaining clearly, asking for clarification when a request is ambiguous and declining when appropriate. The model is trained on these examples, nudging it to treat every prompt as a request from a user and to reply in an assistant's voice. Tens of thousands of high-quality examples can change behaviour dramatically, because the model already knows how to write; it is learning which kind of writing is wanted. The quality and diversity of these demonstrations matter enormously, and companies often employ specialists to write them in areas such as medicine, law and coding.
Feedback from comparisons
Writing perfect answers is slow, but judging which of two answers is better is faster. That insight underpins reinforcement learning from human feedback, or RLHF. The model produces several responses to a prompt, and people rank them. Rankings multiply the data: ordering four responses yields six pairwise comparisons, and ordering nine yields 36. A separate reward model is trained on these judgements to predict which answers people prefer. The chatbot is then trained by trial and error to produce responses the reward model scores highly, with a penalty that stops it drifting too far from its earlier behaviour. In 2022 OpenAI reported that this approach made much smaller models preferable to far larger untuned ones.
Principles and AI feedback
Human ranking is expensive and inconsistent, so developers increasingly use AI systems to help judge answers. In an approach published by Anthropic in 2022, called Constitutional AI, a model critiques and revises its own responses against a written set of principles, such as avoiding harmful or deceptive content, and AI-generated preference judgements are then used for training. Developers combine such methods with human review, specialised tests and red teaming, in which people deliberately try to provoke bad behaviour. The aim is a careful balance. An assistant should refuse requests such as instructions for weapons, but should not refuse ordinary questions just because they touch sensitive topics like health, history or security.
Side effects
These methods work, but they introduce their own problems. Because models are rewarded for answers people like, they can become sycophantic, agreeing with users or flattering them rather than correcting mistakes. They may learn to sound confident and thorough because that wins approval, even when the content is wrong. A model can also exploit weaknesses in its reward model, a form of reward hacking. Overly cautious training produces irritating refusals and heavy disclaimers. And fine-tuning shapes behaviour more than knowledge: it cannot make a model know facts it never learned, and it does not reliably stop invented details. Determined users have also found 'jailbreak' prompts that bypass safeguards.
An evolving craft
The shift from raw language models to assistants is one reason chatbots became widely useful from late 2022 onwards. Developers continue to refine the recipe: training models to reason step by step on problems with checkable answers, to use tools such as search and calculators, to express uncertainty and to follow detailed policies about sensitive areas. Each company makes choices about tone, boundaries and values, which is why assistants built on similar technology can behave quite differently. For users, it helps to remember that an assistant's helpful manner is a trained behaviour layered over a text predictor. It can be extremely capable, but it still benefits from clear instructions and careful checking.
Sources & further reading
- arXiv · Training language models to follow instructions with human feedback ↗
- arXiv · Constitutional AI: Harmlessness from AI Feedback ↗
Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.



