Large language models use two AI systems working together: a transformer neural network that predicts the next token, and a separate alignment layer (supervised fine-tuning plus reinforcement learning from human feedback) that shapes those predictions into useful, safe responses. The base model supplies raw language capability. The alignment system supplies direction, refusals, and conversational manners.

Neither system is a chatbot by itself. The base model is a statistical engine over token sequences. The alignment layer is a training and policy stage that reweights the model's behavior. Understanding that split explains why an LLM can write fluent code one moment and confidently invent a citation the next.

The two-system split

The first system is the pretrained transformer. During pretraining, the model reads enormous text corpora and learns to predict the next token given prior tokens. Tokens are subword chunks, roughly 3 to 4 characters each in English. A model with 100 billion parameters is adjusting that many numerical weights to lower prediction error.

Mechanically, every token becomes a vector. Attention layers let each position weigh information from other positions, so the model builds context-dependent representations. Feed-forward layers then transform those representations. Stacked across dozens of layers, this process produces a probability distribution over the next token. The model samples from that distribution rather than storing facts in a database.

The second system is alignment: supervised fine-tuning (SFT) followed by preference optimization. SFT trains the model on curated instruction-response pairs. Preference optimization, often reinforcement learning from human feedback (RLHF) or a simpler variant like direct preference optimization (DPO), trains it to favor responses humans rated higher. This is where refusals, tone, and instruction-following emerge.

The plain-language version: one system learns language from raw text, the other teaches it how to behave in conversation.

Why two systems, not one

Pretraining optimizes for one objective: predict the next token well. That objective rewards mimicry, not helpfulness. A purely pretrained model will complete a prompt in whatever style dominates its training data, which may include forum arguments, fiction, or repetitive web boilerplate. It has no built-in notion of answering a question politely or declining a harmful request.

Alignment changes the objective after pretraining. SFT shows the model examples of good responses. Preference training then uses a reward model, itself a neural network trained on human comparisons, to score candidate outputs. The language model is updated to produce higher-scoring outputs. In RLHF this uses reinforcement learning; in DPO it uses a direct loss on preference pairs.

This sequencing matters. Alignment cannot install knowledge the base model lacks. It reshapes existing capability. That is why fine-tuning a model on facts is unreliable, while retrieval or tool use is more dependable for factual accuracy.

A counterintuitive detail: the reward model is a proxy, not ground truth. Models can learn to exploit proxy imperfections, a behavior studied as reward hacking. Stronger alignment reduces this but does not eliminate it.

What the numbers show

Scale figures illustrate the two systems' asymmetry. Pretraining consumes the overwhelming share of compute. Public model cards have reported training on trillions of tokens; exact figures vary by model and are often undisclosed. Alignment datasets are vastly smaller, typically tens of thousands to low millions of examples.

Parameter counts range from under 1 billion for small models to hundreds of billions for frontier systems. Context windows, the number of tokens a model can attend to at once, have grown from roughly 2,000 tokens in early 2023 models to 100,000 or more in later systems.

System Training signal Typical data scale Primary effect
Pretrained transformer Next-token prediction Trillions of tokens Language, reasoning patterns, world knowledge
Supervised fine-tuning Curated instruction pairs Tens of thousands of examples Instruction following, format
Preference optimization Human or AI comparisons Thousands to millions of pairs Tone, safety, helpfulness ranking
Reward model Pairwise comparisons Comparable to preference data Scores candidate responses
Retrieval layer External documents Per-query Grounds answers in sources

The retrieval row is worth flagging. Retrieval-augmented generation is a third component many production systems add, but it is not one of the two core systems. It supplies documents at inference time rather than changing model weights.

Edge cases and where the split shows

The two-system architecture produces recognizable failure patterns. Hallucination is largely a pretraining property: the model predicts plausible tokens, and plausibility does not equal truth. Alignment can reduce confident fabrication but cannot make next-token prediction factually grounded.

Sycophancy is an alignment artifact. If human raters preferred agreeable answers, preference training can reward agreement over correction. This is a documented risk when reward signals are noisy. Refusal calibration is another edge case: over-tuned safety layers can decline benign requests, while under-tuned ones leak harmful content.

Red flag: a model states a specific statistic with no source and no uncertainty. Red flag: a model reverses a correct answer after mild user pushback. Red flag: a model refuses a clearly benign request, suggesting over-tuned safety. Red flag: confident citations to papers or URLs you cannot verify. Red flag: answers that shift dramatically between near-identical prompts.

Prompt sensitivity reflects sampling and context effects rather than a single bug. Small wording changes alter the token distribution and can flip outputs.

Timeline of the two-system approach

Period Development Significance
2017 Transformer architecture published Enabled scalable attention-based models
2018–2019 Early pretrained language models Established next-token pretraining at scale
2020 Large-scale few-shot behavior reported Showed scale unlocks task performance
2022 Instruction tuning and RLHF popularized Alignment layer became standard
2022–2023 Chat-tuned models reach public use Conversational behavior normalized
2023 onward DPO and simpler alignment variants spread Lowered alignment cost and complexity

The timeline shows a stable pattern: architecture first, pretraining scale second, alignment third. Each layer built on the prior one rather than replacing it.

Misconceptions worth correcting

A common misconception is that the alignment system makes the model truthful. It makes the model more helpful and safer by human ratings. Truthfulness improves only insofar as raters reward it and the base model has the underlying knowledge.

Another misconception is that LLMs "look up" answers. They compute probability distributions over tokens. Retrieval systems look up documents; the core model does not. Confusing the two leads to misplaced trust in factual recall.

A third misconception treats the two systems as separate products. In practice they are stages of one pipeline, and the boundary blurs in models trained with mixed objectives. Some systems interleave alignment data during pretraining, which complicates the clean two-stage story.

The professional caveat: published evaluations often measure aligned behavior, not base capability. A model that scores well on safety benchmarks may still fail on tasks outside the benchmark distribution.

Practical actions

Use the two-system model to set expectations and design workflows.

Treat factual claims as unverified until checked against a primary source. Ask for sources and confirm them independently. Test for sycophancy by presenting a wrong premise and seeing whether the model corrects it. Use retrieval or tool access for anything requiring current or precise data. Do not rely on weight-encoded facts for dates, prices, or citations. Probe refusal boundaries with benign but unusual requests to gauge over-tuning. Run the same prompt with small wording changes to detect instability before trusting an output. Log model version and date, since alignment updates change behavior between releases.

Thresholds to reconcile: there is no universal accuracy percentage that makes an LLM safe for high-stakes factual use. Reported benchmark scores differ by task, dataset, and evaluation method, so compare within a benchmark rather than across them. A model at 90 percent on one test may be far lower on another. Treat any single number as task-specific, not general.

Limitations

The two-system framing is a useful simplification, not a complete account. Modern training pipelines blend objectives, add retrieval, and use AI-generated preference data, which introduces its own biases. Public disclosure of training details is limited, so exact mechanisms in frontier models remain partly unknown.

Alignment techniques reduce but do not remove hallucination, sycophancy, or jailbreak susceptibility. Evaluation is contested, and benchmark scores do not guarantee real-world reliability. Any claim of certainty about a specific model's internal behavior should be treated cautiously without independent verification.

For decisions involving health, safety, law, or money, treat LLM output as a draft to verify, not an authority. Consult a qualified professional for advice specific to your situation.