Mental model
Choose a learning paradigm from the signal that actually defines success: target labels, structure in unlabeled inputs, or outcomes produced by sequential actions. Supervised learning fits labeled targets; self-supervision constructs targets from inputs; unsupervised methods describe structure without an external answer; reinforcement learning optimizes behavior through reward and interaction. Data volume alone cannot determine which approach answers the product question.
Theory
A training paradigm specifies what information the learner receives and what objective it optimizes. In supervised learning, examples pair inputs with task targets , and the model minimizes loss on those labels. Unsupervised learning receives inputs without target labels and may estimate clusters, densities, or lower-dimensional structure. It can reveal patterns, but cluster membership is not automatically a product objective. Self-supervised learning derives a training target from each input, such as the next token or a masked region; it can exploit unlabeled data, but pretraining success does not guarantee performance on a downstream decision.
Semi-supervised learning combines a smaller labeled set with unlabeled inputs under assumptions about how their structure relates to the target. Reinforcement learning instead models a sequence of states, actions, transitions, and rewards. Its policy changes future observations, so exploration, delayed outcomes, and safety constraints become part of data collection. Active learning is a strategy for choosing which examples to label; it is compatible with a supervised objective rather than a separate prediction target.
For a supervised task, empirical risk minimization gives a concrete baseline:
Here is the number of labeled training examples, maps an input to a prediction, and is the per-example loss. With binary log loss, the first term is measured in average nats per labeled example; is a model-complexity penalty, and scales it into the same objective units. This expression does not choose the target or make labels representative; those are data and design decisions that precede optimization.
Worked data-inventory example
A support team has 20,000 historical tickets, of which 3,000 have reviewed resolution categories and 17,000 have only text and timestamps. The labeled share is 3,000 / 20,000 = 0.15, or 15%. If the goal is to route new tickets to one of the reviewed categories, supervised classification on the 3,000 labels is an interpretable starting point. The unlabeled tickets may support self-supervised language pretraining or vocabulary adaptation, but only if they come from an allowed time period and resemble deployment inputs. They do not count as additional category labels.
Before fitting anything, reserve a time-based test set and keep all tickets from one customer together if repeat cases could leak across splits. Fit tokenizers, vocabularies, and feature normalization only on training data. Compare macro-F1 and per-category recall on the held-out labeled test, especially for rare escalation categories. If the product question changes to choosing a sequence of interventions whose rewards arrive weeks later, the 3,000 outcome labels alone do not create an RL dataset: action histories, state transitions, reward timing, and safe policy evaluation must also be present.
Implementation: screen candidate objectives
This small decision function separates static prediction data from sequential reward data before a team chooses a training path. It returns a candidate for evaluation, not an automatic production approval; a time split, label audit, and operational review remain necessary.
pythondef choose_learning_plan(labeled_rows: int,unlabeled_rows: int,has_sequential_actions: bool,observes_reward: bool,safe_exploration: bool,) -> str:if labeled_rows < 0 or unlabeled_rows < 0:raise ValueError("row counts cannot be negative")if has_sequential_actions and observes_reward:if safe_exploration:return "reinforcement-learning pilot with guarded exploration"return "offline policy evaluation before any online RL"if labeled_rows:if unlabeled_rows:return "supervised baseline; evaluate optional self-supervised pretraining"return "supervised baseline"if unlabeled_rows:return "self-supervised representation task; collect target labels for evaluation"raise ValueError("collect a representative signal before choosing a learner")plan = choose_learning_plan(3000, 17000, False, False, False)assert plan.startswith("supervised baseline")print(plan)
Trade-offs
| Paradigm | Required signal | Useful evaluation | Main operational risk |
|---|---|---|---|
| Supervised | Representative input-target pairs | Time- or group-held-out task metrics | Label leakage, class imbalance, and target drift |
| Self-supervised | Inputs plus a constructed pretext target | Downstream labeled test plus transfer checks | The pretext objective can be unrelated to the product target |
| Unsupervised | Inputs without target labels | Stability, cluster utility, or density fit tied to a decision | Treating discovered groups as ground-truth categories |
| Reinforcement learning | Actions, state transitions, and reward over time | Off-policy support checks, then constrained online trials | Unsupported actions, unsafe exploration, or reward hacking |
A supervised baseline is usually cheaper to interpret when target labels are available. Self-supervised pretraining can make use of extra inputs, but adds compute and another data-provenance boundary. Unsupervised analysis can help audit a dataset or propose segments, while a human-defined downstream test must show that the structure matters. RL can optimize long-term behavior when actions change later states, but it requires policy support and safety review that static classification does not.
Failure modes and misconceptions
- Choosing by dataset size: Millions of unlabeled rows do not replace a validated target or a randomized action signal. Start from the decision and work backward to the needed observation.
- Leaking labels through time: A ticket feature created after resolution can encode the answer. Build features from the timestamp at which the prediction would be made.
- Pretraining on future data: Self-supervised objectives can still leak future vocabulary or policy artifacts into a time-based test. Split by time before fitting any learned preprocessing.
- Calling clustering a label: An algorithmic cluster is a summary of distances under a representation, not a reviewed class or treatment recommendation.
- Treating logs as an RL environment: Historical actions may have no support for a new policy, and logged rewards can be confounded by previous policy choices. Use off-policy methods only with their support assumptions and uncertainty visible.
- Optimizing the wrong proxy: A model can improve category accuracy while increasing time-to-resolution for rare urgent cases. Evaluate the operational outcome and its protected slices, not only the training objective.
Decision scenario
A support platform wants to choose the next message shown to a customer. It has 20,000 tickets, 3,000 reviewed categories, and historical clicks, but the old interface selected messages using undocumented rules and did not log delayed resolution outcomes. Build a time-split supervised baseline for routing and audit the click labels first. Do not call the static click table reinforcement learning: before a policy trial, define states and rewards, verify that candidate actions have support, and obtain a safe way to evaluate exploration. Use self-supervised pretraining only as a measured option, not as a substitute for target evaluation.
Learning outcomes
- Match supervised, self-supervised, unsupervised, semi-supervised, and reinforcement learning to their required signals.
- Define a target objective and leakage-safe evaluation split before choosing model training.
- Identify when static logs are insufficient for a sequential policy and what extra evidence is needed.