NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Preview · 30 min
Master pre-training vs fine-tuning for AI security. Learn how targeted data poisoning and catastrophic forgetting exploit the model training pipeline.
An LLM is not built in one step. It is a two-stage process, a bit like human education. Pre-training is the "general education". Fine-tuning is the "specialised degree".
Pre-training is the huge, costly phase. A base model reads trillions of tokens of raw, unstructured text from the open internet. With self-supervised learning (predicting the next token) it learns grammar, syntax, reasoning and broad world knowledge. The result is a powerful but raw base model. It can complete text, but it does not know how to follow instructions or behave safely.
Fine-tuning (here, Supervised Fine-Tuning or SFT) trains the base model on a much smaller, curated set of examples: question and answer pairs, code snippets, medical records and so on. This teaches the model how to do a task, use a tone, or follow rules of a domain.
This split defines the attack surface. Pre-training is a large, opaque supply chain risk, where hidden backdoors can be seeded. Fine-tuning is a high-leverage surface: because the dataset is small, a compromised dataset can overwrite the base model's broad knowledge with targeted, wrong "ground truth". Two terms matter here: targeted poisoning (a few crafted examples change the model's core behaviour or add a backdoor) and catastrophic forgetting (learning a narrow task makes the model forget broader knowledge or its safety training).
All scenarios, files and records in this lesson are fictional and made for learning in an isolated lab.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign inSOC Tools: Hands-On Practicals
Theory is useless without muscle memory. You can read a hundred books on how a SIEM works, but until you’ve stared down
ViewWAN, VPN and Cloud Networking
This comprehensive learning path transitions from local area networks to the complex world of wide-area connectivity, se
View