Macalinao StudioLearnAll enriched lessons ↗
High school path · 7 sectionsSwitch to college ↗

High school / LONGER LESSON 16

Preference learning: what a comparison can teach

Work a DPO margin, distinguish KTO and ORPO, and audit preference data.

Preparation: Ratios and preferences; logarithms for college.

Plan 20–35 minutes with the activities; this is a study estimate, not a timed requirement. Both paths have complete narration. Your notes and progress are kept separately for each level.

Section 01 / 07

Preference is a labeled judgment

High-school path. Work a DPO margin, distinguish KTO and ORPO, and audit preference data.

Preparation: Ratios and preferences; logarithms for college. Work through one section at a time. Predict the experiment result before changing its controls, then explain what the example leaves out.

A reviewer compares two answers to the same question and prefers one. That judgment might reflect correctness, clarity, tone or a particular policy. Record the reason. A preference label is not automatically a truth label, and reviewers can disagree for sensible reasons. Before training, decide what behavior the comparison should teach. Otherwise the model may learn length, confidence or style when you wanted reliable evidence.

Worked step 1. Keep the prompt identical for the two candidates.

Worked step 2. Record the chosen response and the reason.

Worked step 3. Mark unresolved disagreement instead of inventing certainty.

Try it yourself. If reviewers prefer a confident wrong answer, does the label establish truth?

Pause the recording and write your reasoning before continuing. The worked solution follows.

Reveal worked solution

Worked solution. No. It records their preference under that process. Correctness requires another check.

Section 02 / 07

Compare changes relative to a reference

DPO compares the chosen and rejected answers relative to a saved reference model. Imagine the new model makes the chosen answer twice as likely as the reference did, while the rejected answer stays equally likely. That is a positive change in the chosen answer's favor. Comparing only the two new probabilities would miss the baseline. The reference says how the model's preference has moved.

Worked step 1. Chosen policy/reference ratio is two.

Worked step 2. Rejected policy/reference ratio is one.

Worked step 3. The log-ratio margin is log two, approximately 0.6931.

Δ=log(πθ(w)/πref(w))−log(πθ(l)/πref(l))

Subtract the rejected answer’s policy-to-reference log ratio from the chosen answer’s log ratio.

Try it yourself. What is the margin if both answers become twice as likely relative to the reference?

Pause the recording and write your reasoning before continuing. The worked solution follows.

Reveal worked solution

Worked solution. Zero. Equal relative changes cancel; the pair has no relative margin improvement.

Section 03 / 07

Turn the margin into a loss

A positive margin says the comparison moved toward the chosen answer. The loss becomes smaller as that margin grows. With sensitivity one and margin zero, the pair loss is about 0.693. With margin log two, it is about 0.405. These numbers measure the objective's fit to a label, not the chance that an answer is true. Workbench lets you change the margin and sensitivity separately.

Worked step 1. At β=1 and Δ=0, loss=log two≈0.6931.

Worked step 2. At Δ=log two, sigmoid(Δ)=2/3.

Worked step 3. Loss=−log(2/3)≈0.4055.

L=log(1+exp(−βΔ))

The loss is the logarithm of one plus the exponential of negative beta times the margin.

Try it yourself. Does a lower pair loss guarantee a more factual model?

Pause the recording and write your reasoning before continuing. The worked solution follows.

Reveal worked solution

Worked solution. No. It indicates better fit to the recorded preference comparisons. Independent factual evaluation is still needed.

Section 04 / 07

KTO uses desirable and undesirable examples

Not every reviewer can supply two answers to compare. Sometimes a response is simply marked desirable or undesirable. KTO is designed around that kind of feedback rather than requiring every example to be a chosen/rejected pair. The distinction is about the training signal. It does not mean a thumbs-up label is automatically clear or unbiased. The instructions that produced the label still determine what the model can learn.

Worked step 1. A pair label says answer A is preferred to answer B.

Worked step 2. A desirable label judges one answer under a rubric.

Worked step 3. These require different data structures and objectives.

Try it yourself. Can every single thumbs-up example be directly treated as a complete preference pair?

Pause the recording and write your reasoning before continuing. The worked solution follows.

Reveal worked solution

Worked solution. No. A paired objective needs a comparison partner and a defined relationship. Inventing that partner changes the data.

Section 05 / 07

ORPO and the meaning of odds

Probability and odds are related but different. Probability one half has odds one: one chance in favor for one against. Probability three quarters has odds three. ORPO uses an odds-ratio preference term together with supervised learning, without a separate reference model in its original formulation. That does not make it identical to DPO with the reference deleted. The mathematical object being compared is different.

Worked step 1. Probability 0.5 has odds 0.5/0.5=1.

Worked step 2. Probability 0.75 has odds 0.75/0.25=3.

Worked step 3. The odds ratio of those two examples is three.

odds(p)=p/(1−p)

Odds equal probability divided by one minus probability.

Try it yourself. Are probability ratio 0.75/0.5 and odds ratio 3/1 equal?

Pause the recording and write your reasoning before continuing. The worked solution follows.

Reveal worked solution

Worked solution. No. They are 1.5 and three. Odds include the complementary probability in their denominator.

Section 06 / 07

Audit the comparison pipeline

Create a small review set containing correct but plain answers, polished wrong answers, unnecessarily long answers and honest uncertainty. Ask whether the rubric rewards the behavior you actually want. Keep a few examples for later testing rather than training. A method name cannot repair a misleading labeling process. Finish by choosing which feedback format you can collect reliably and explaining what it does not measure.

Worked step 1. Separate a training set from a held-out review set.

Worked step 2. Include style-versus-correctness conflict cases.

Worked step 3. Report both preference agreement and independent task quality.

Try it yourself. What would preference agreement rising while correctness falls tell you?

Pause the recording and write your reasoning before continuing. The worked solution follows.

Reveal worked solution

Worked solution. The objective may be learning a preference shortcut or the labels may not represent correctness. Inspect examples and the rubric before changing only the optimizer.

Section 07 / 07

Mastery and transfer

Bring the pieces together. First answer the checkpoint without the worked solutions. Then explain the mechanism in your own words, using one numerical example from this lesson.

A preference label proves… Option 1: The answer is true. Option 2: A judgment under a labeling process. Option 3: The model understands the world.

Pause here and choose an answer before continuing. The checkpoint explanation follows.

Reveal worked solution

The correct choice is option 2: A judgment under a labeling process. Preference and truth are different measurements.

Transfer task. Change one assumption in the worked example. State your prediction, calculate or test it in Workbench, then explain whether the result supports your prediction.

Reveal worked solution

Self-check rubric. Name the changed assumption, keep the other inputs fixed, show at least one intermediate calculation, and distinguish what the toy example guarantees from what would require a trained model or a real measurement.

Sources and scope

Original worked examples and teaching text, grounded in these primary references. Numerical fixtures explain mechanisms; model quality and hardware performance require separate measurements. Both levels share key examples, with different explanations and checkpoints.

EXTENDED FIELD NOTES

Read a model release like a scientific record

Separate the original model, a modified checkpoint, a file format, and the software that runs it.

Additional reading · original lesson audio remains unchanged.

Read the full explanation · 586 words
Follow the provenance

A change to behavior, precision or execution should be attributed to the team that made it.

  1. Original research
  2. Trained checkpoint
  3. Modified artifact
  4. Compatible runtime

Original research

The name is the beginning of the investigation

A model name is a label, not a complete technical specification. It may identify a research family, a training revision, an approximate parameter count, a numerical format, and a publisher’s description of behavior. Each part answers a different question. Before downloading anything, identify the original model and the organization publishing the particular files. A derivative can be useful without being an official release from the original research team.

A reproducible release needs more than a memorable name. The weights store learned numerical values; configuration describes the architecture and settings; the tokenizer connects text with token identifiers; and a chat template may define how messages are formatted. A model card explains intended use, evaluation, provenance, and limitations. A revision identifier distinguishes one repository state from a later update. These parts must agree. Having files on disk is not proof that a runtime can interpret them correctly.

Ornith and DeepSeek illustrate different levels of ownership

The official Ornith team describes Ornith-1.5 as a continuation of its model-development and self-improvement work. The dealignai Ornith release is a separately published derivative. The older dealignai ABLITERATED-GGUF page points readers to its UNCENSORED-GGUF repository, but that destination’s current files and full card were unavailable during this review. We therefore do not state which quantizations are downloadable or claim an exact size for that artifact. A nearby NVFP4 release is not evidence for the GGUF release’s contents.

The dealignai DeepSeek-V4.1-Flash-UNCENSORED-FP8 card describes changes to model weights intended to reduce refusals. This is the derivative publisher’s account, not a statement that DeepSeek produced or endorsed those modifications. The card reports an MMLU accuracy change from 86.96% to 82.74%. Subtracting gives a decrease of 4.22 percentage points. That result qualifies broad claims about preserved capability; it is also a publisher-reported evaluation rather than an independent replication.

Behavior, packaging, and precision are separate

“Uncensored” is a behavior-oriented label. It does not establish better reasoning, greater factual accuracy, or the removal of every refusal. A change that makes a model more willing to respond may also alter other behavior. Evaluations should examine the intended tasks, coherent conversation, factual quality, and failure cases. One headline or a few successful prompts cannot answer all those questions.

GGUF is a container for model tensors and metadata. It can hold different numerical representations. FP8 describes an eight-bit floating-point representation, not a container or a complete architecture. The DeepSeek derivative’s card reports mixed precision, including FP4 routed experts, so the FP8 label does not mean every stored value uses exactly eight bits. Similarly, a GGUF filename needs a specific quantization designation before it tells you much about storage requirements. A format conversion and a behavioral modification are different operations even when one repository contains both.

Give credit along the whole chain

Releasing weights makes it possible for others to run a learned model, adapt it, and investigate its behavior without repeating the original training. It does not automatically reveal all training data, training code, or the exact sequence of decisions required to reproduce the model. Access to weights and complete reproducibility are related but different achievements.

Credit should name the original researchers, the derivative publisher, any conversion or quantization contributors, and the inference software. This makes a lesson more accurate and helps a reader trace a claim back to its source. In your own release notes, write down the upstream model, the artifact revision, what was changed, the evaluation conditions, and what remains unverified. Then ask whether a claimed improvement comes from training, modified weights, reduced precision, a faster runtime, or a different benchmark setup. Those explanations should not be merged into one vague claim that a model is newer or better.

Sources and further investigation

Source review: October 28, 2026. Model-release claims are attributed to their publishers.

Open the focused reading page →

Reset this high school path?

This removes only this path’s notes, progress and experiments from this browser.