# How models learn: supervised, unsupervised, reinforcement learning, RLHF and DPO explained

Every way a model learns: supervised, unsupervised, semi-supervised, self-supervised and contrastive learning, reinforcement learning, RLHF, DPO, RLAIF, RL with verifiable rewards, fine-tuning, active, continual and imitation learning, with simulations you can run.

## Supervised learning

Learning from labelled examples: regression and classification, loss functions, generalisation and evaluation.

- [Supervised learning explained: losses, generalisation and honest evaluation, step by step](https://www.ozercemkelahmet.com/articles/supervised-learning-losses-generalisation-evaluation) (2026-11-24)

## Unsupervised learning

Finding structure without labels: clustering, dimensionality reduction, density estimation and anomalies.

- [Unsupervised learning explained: clustering, PCA, density estimation and anomaly detection](https://www.ozercemkelahmet.com/articles/unsupervised-learning-clustering-pca-anomalies) (2026-11-24)

## Semi-supervised learning

A few labels and many unlabelled examples: pseudo-labelling, consistency training and label propagation.

- [Semi-supervised learning explained: pseudo-labels, consistency training and label propagation](https://www.ozercemkelahmet.com/articles/semi-supervised-pseudo-labels-consistency-propagation) (2026-11-24)

## Self-supervised learning

Labels from the data itself: masked prediction, next-token prediction and how foundation models are pretrained.

- [Self-supervised learning explained: masked and next-token prediction behind foundation models](https://www.ozercemkelahmet.com/articles/self-supervised-learning-masked-next-token-pretraining) (2026-11-24)

## Contrastive learning

Learning by comparing pairs: SimCLR, CLIP, InfoNCE loss and contrastive embeddings.

- [Contrastive learning explained: InfoNCE, SimCLR and CLIP with worked numbers and PyTorch code](https://www.ozercemkelahmet.com/articles/contrastive-learning-infonce-simclr-clip) (2026-11-24)

## Reinforcement learning

Learning from rewards: Markov decision processes, Q-learning, policy gradients, actor-critic and PPO.


## RLHF

Reinforcement learning from human feedback: preference data, reward models, PPO and what it changes in an LLM.


## DPO and preference optimisation

Direct preference optimisation and its relatives (IPO, KTO, ORPO, SimPO): alignment without a reward model.

- [How DPO works: deriving the loss, reading the implicit reward and choosing a variant](https://www.ozercemkelahmet.com/articles/dpo-loss-derivation-implicit-reward) (2026-11-23)

## RLAIF and Constitutional AI

Feedback from AI instead of humans: RLAIF, Constitutional AI and AI judges for preference data.


## RL with verifiable rewards

Reasoning models trained with checkable rewards: GRPO, RLVR, process and outcome rewards.

- [GRPO loss variants explained: advantages, length bias, DAPO, Dr. GRPO and soft clipping](https://www.ozercemkelahmet.com/articles/grpo-loss-normalisation-dapo-dr-grpo) (2026-11-23)

## Transfer learning and fine-tuning

Reusing pretrained models: full fine-tuning, LoRA and QLoRA, instruction tuning and distillation.

- [LoRA in depth: rank, alpha, rsLoRA scaling, DoRA and smarter initialisation](https://www.ozercemkelahmet.com/articles/lora-rank-alpha-scaling-initialisation) (2026-11-23)
- [What RL on expert-built tasks teaches Nemotron 3.5 Super, one LoRA adapter at a time](https://www.ozercemkelahmet.com/articles/rl-expert-tasks-nemotron-lora-adapters) (2026-11-19)

## Active learning

Choosing which examples to label: uncertainty sampling, query by committee and labelling budgets.


## Continual learning

Learning new tasks without forgetting old ones: replay, regularisation and online learning.


## Imitation learning

Learning from demonstrations: behaviour cloning, inverse RL and learning from expert trajectories.


## Learning trends

What changed this week in how models learn: new training methods, results and releases.


