Where does an LLM’s knowledge come from—and what changes after pretraining? Follow one example: a child has two apples and buys three more. Then add a request: “Show the equation before giving the answer.”
Pretraining builds foundations
Training on large collections of text and code can teach word meanings, factual associations, language patterns and some problem-solving abilities. For autoregressive models, predicting subsequent text is a common training exercise. Knowledge and capabilities are results of that learning, expressed through parameters rather than a literal document store.
Post-training continues task learning
Getting five is only part of this request; the answer should also show 2 + 3 = 5. Further training can shape instruction-following and improve task abilities.
SFT: train on demonstrations of good responses.
DPO: train from preference pairs. Both apple answers may be numerically correct, while one better follows the requested format.…