Menu

Pretraining vs post-training: one apple problem, four learning signals
📰

Pretraining vs post-training: one apple problem, four learning signals

DEV Community: machinelearning·DRVEXO_LLM·18 days ago
#AhFtCzQ1
Long article (261 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.