research24 min studyLesson 631 in Engineering

Define which comparisons can teach the intended behavior

Build preference pairs with explicit prompt, candidate, rubric, and sampling identities while examining missing coverage and dependent observations.

On this page

What you’ll understand

  • Define a preference observation and its collection context.
  • Separate prompt coverage, candidate diversity, and comparison count.
  • Design held-out splits that preserve the evaluation question.

A preference dataset contains a million comparisons, yet almost all compare two styles of a correct answer to easy prompts. It provides little evidence about factual mistakes, difficult instructions, or a new user population. Preference learning starts with the comparisons actually observed, not an abstract quantity called human approval. Define the target prompt distribution, candidate-generating process, and annotation rubric, then identify which alternatives and failure modes the pair construction makes visible to the learner.

A pair is a contextual observation

Store the prompt and relevant conversation context, both candidate responses, their generating model and decoding configuration, and a stable record of the annotation procedure. A preference label means that a particular annotator or aggregation process favored one candidate under a rubric. It is not an absolute utility measurement or proof that the favored candidate is correct. Both answers may be wrong, or a stylistic advantage may dominate a narrow comparison. Preserve ties, inability-to-judge outcomes, and annotations needed to distinguish these cases rather than forcing every observation into an unexplained winner field.

Candidate generation determines the alternatives the learner can compare. Pairs from nearly identical outputs may reveal subtle distinctions but omit broad failure modes; pairs from unrelated quality levels may be easy yet provide little resolution near a release decision. Mixing generators can broaden coverage while introducing model-specific style clues. Track prompt family, task, language, answer length, and correctness evidence where relevant. Original RLHF work and InstructGPT demonstrate particular collection procedures, but their empirical results do not establish that any new collection inherits their coverage or generalizes to every user group.

D={(xi,yiA,yiB,ai,vi)}i=1N\mathcal{D}=\{(x_i,y_i^{A},y_i^{B},a_i,v_i)\}_{i=1}^{N}
Each record contains prompt/context x, two identified candidates, annotation outcome a, and collection-version metadata v. N counts observations, not independent prompts or units of universal utility. Ties and abstentions need explicitly defined encoding and downstream treatment.↔ Scroll wide equations horizontally.

Count independent prompts and comparison opportunities separately

A prompt with k distinct candidates has k(k−1)/2 unordered pair opportunities. Expanding a ranked list into all those pairs does not create that many independent prompt observations: the pairs share candidates, context, and often one annotation session. Decide whether to weight prompts, pairs, or annotator votes, because each choice changes the empirical objective. Preserve the original grouping so uncertainty analysis and train/test splits can respect it. A high pair count can be dominated by a few prompts with many candidates, masking sparse evidence for important prompt categories.

Audit coverage against a declared target, using more than an aggregate dataset size. Count represented prompt families, alternative generators, error types, and annotation populations. Deliberate oversampling can gather useful rare cases, but report it as a changed collection distribution and decide whether training or evaluation weights need adjustment. Active selection based on model uncertainty can focus annotation effort while leaving confident blind spots unqueried. Include an independent coverage-oriented sample instead of assuming uncertain pairs alone represent the deployment population. Missing comparisons cannot be manufactured by assigning larger weights to an absent category.

Pk=(k2)=k(k−1)2,k∈Z,k≥2P_k=\binom{k}{2}=\frac{k(k-1)}{2},\qquad k\in\mathbb{Z},\quad k\geq2
P_k counts unordered distinct-candidate pairs for one prompt. Pair opportunities are counts, not independent measurements; duplicate candidates or omitted comparisons change the usable set.↔ Scroll wide equations horizontally.

Keep held-out evidence outside the construction loop

Split by the unit of intended generalization, such as prompt family, source conversation, or annotator population, and check near duplicates. Putting two candidate pairs from one prompt into train and test can overstate generalization to new prompts. Version rubric changes and candidate regeneration so the same identifier never silently means a different comparison. Retain a final evaluation set beyond repeated selection and tuning; a development set used to choose every collection revision is no longer untouched release evidence. Document which deployment slices remain unmeasured.

The modular lab illustrates only deterministic coverage of category labels. For each separate run, Reset, set both modulus m and additive step a=2, predict the orbit, then Play or Step. With m=6 the orbit visits three residues; with m=7 it visits all seven. This exact arithmetic is not preference sampling or an annotation scheduler. It demonstrates how a repeatable selection rule can leave categories unseen. Actual coverage needs the identified prompt and candidate records and a target definition, not a visually varied stream or a large number of repeated comparisons.

Do not count expanded pairs as new prompts

A fictional collection has forty prompts with four distinct candidates each. Every unordered pair is labeled once. A second collection has one hundred twenty prompts with two candidates each. Assume no shared prompts or duplicate candidates.

  1. The first collection has C(4, 2)=6 pairs per prompt, giving 40×6=240 comparisons from forty prompts.

  2. The second has one pair per prompt, giving 120 comparisons from one hundred twenty prompts. It has fewer pairs but three times as many prompt contexts.

  3. Neither count alone establishes better target coverage or independent label quality. Preserve prompt grouping and inspect task and candidate diversity before choosing weights or uncertainty calculations.

The result

Two hundred forty pairs do not constitute two hundred forty independent prompts. The comparison unit and intended generalization determine how the evidence should be interpreted.

Explore the model

Interactive lab

Interactive lab · modular

Repeatable selection can leave categories unvisited

For each run: Reset, set both modulus m and step a=2, predict, then Play or Step. Compare m=6 and m=7: the additive periods are 3 and 7. This is a residue orbit, not an annotation sampler or a measure of real preference coverage.

Repeatable selection can leave categories unvisitedAddition modulo m starts at zero: rₙ = na mod m. Playback advances two additions per second. The orbit has period m/gcd(m,a), including period one for a = 0. This is not a cryptographic security test or a primality algorithm. Current readings: Residue r0: 0; Orbit period · m/gcd(m,a): 12; Distinct residues visited: 1 of 12. All parameters are adjustable with the labeled controls below.Repeated addition modulo 12: the current residue is 0, and the orbit period is 12.01234567891011+ 5mod 12An additive orbitn = 0rₙ = 0Period = 12Cycle starts at 0:0 → 5 → 10 → 3 →8 → 1 → 6 → 11 →4 → 9 → 2 → 7 → 0Exact residues · two additions per second
Additive orbitCurrent residue / next edge
Residue r0
0
Orbit period · m/gcd(m,a)
12
Distinct residues visited
1 of 12
t = 0 s

Addition modulo m starts at zero: rₙ = na mod m. Playback advances two additions per second. The orbit has period m/gcd(m,a), including period one for a = 0. This is not a cryptographic security test or a primality algorithm. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forA deterministic selection process can omit whole categories. Audit actual prompt, candidate, and annotator coverage against the target population.

Check your understanding

Six labeled pairs come from the same four candidates for one prompt. Why should a held-out split preserve that grouping?

Try it yourself

Thirty prompts each have five distinct candidates and every unordered pair is labeled. How many comparisons result, and why is that not the number of independent prompt contexts?

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Count ten pairs per prompt and retain the grouping.

Compare with the solution

Each prompt contributes C(5, 2)=10 pairs, so there are 300 comparisons from thirty prompt contexts. Pairs within a prompt share candidates and context; collection quality and uncertainty must not treat them as 300 independent new prompts.

Take it with you

  • A preference label is contextual evidence under an identified collection process.
  • Prompt coverage and pair count are different quantities.
  • Preserve grouping, version identity, and untouched evaluation evidence.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.