AI Hero Club

LLM Post-training · Lesson 3

Marked Complete by You0 / 8

Saved in this browser only. Marking a lesson complete does not mean the project has passed verification.

Lesson Outline 8 subsections
Course Contents 8 lessons
Full course plan.
LLM Post-training / Learning Plan ↗

LESSON 03 / 8Suggested study 120 minutes

Preference Data: What Are We Comparing?

What reward relationships remain identifiable when preference data contains ties, duplicates or cycles?

3 Questions for This Lesson
  • Write comparison with winner/loser, draw and duplicate as checkable data contracts
  • Estimated success rate by repeated comparison frequency numbers and incentive of boundary assumed with loop preferences against the location markers
  • Distinguishing candidate overlays, labelling rules and stand-alone utility, constructing tests that reveal location or length deviations
Course Project ZIP ↓

Task and Starting Point

This chapter establishes a second monitoring signal in addition to the SFT demonstration: at the same tip, which answer is more appropriate. Readers need limited frequency, two probability and the conditionality strategy of the first two chapters; the reasoning of the loglistic model will be rolled out in chapter IV. Now it is clear that the data object and the recognizable content cannot be repaired by a more precise optimist. The project uses open synthetic rules to produce 18 training comparisons that are not packaged into human feedback and do not refer to the certainty of manual rules as a true universal preference.

A comparison is: (x,aw,al)(x,a_w,a_l): x is a common hint, w means Winner, l means Loser. Legitimate conditions include that two action numbers exist and are not equal, sharing the same x-x from the training pool. Compares only “Under these conditions,wBetter than that.l”, which does not give a few points to travel, or whether they are correct or bad. Even if both answers are wrong, the marker may prefer one of them; therefore the pair wins are not mission correct.

Candidate Provenance Is Part of the Data

In real language models, candidates are usually sampled by a fixed strategy, producing temperature, hint format, length caps and cessation conditions to determine which answers are comparable. The preferences set is not evenly sampled from “All Possible Texts”. If the old strategy does not produce a category of responses, the region lacks direct supervision; the new strategy is optimized there and the conclusion of offline data is not automatically overwritten. There are only four candidates, the project highlights are properly short compared to the other three, and the candidate boundary can be fully listed to allow observation of coverage and blind spots.

For each positive x, Winner is numbered three, zero and two; for each negative x, Winner is zero and for each negative, Loser is divided into two, one and three. For six trainings, there are three articles in each context, 18 articles. There is no direct comparison of the order of the three losers, such as the same error but who is shorter and longer, and the data is not labelled separately. The BT shared characteristics infer their sequence, which is an extrapolation of parameters; if the model is rewritten as “The labeler proved it.”, observations and assumptions are confused.

Example 1: The Same Order Does Not Determine Unique Intensities

If you compare A with B three times, A wins twice and B wins once. If you repeat independently, you can see that it's the same odds. p2(1−p)p^2(1-p), ignores the constant. The logarithm appears to be double logp plus log1 minus p; leads to a two-by-one reduction of one p, resulting in zero p=2/3. Second-order guidance is negative and therefore extremely internal. Observation supports an estimate of a noise success rate, not an A 's absolute reward equals two, B equals one, and does not prove that A is necessarily correct.

ℓ(p)=2log⁡p+log⁡(1−p),ℓ′(p)=2p−11−p,ℓ′′(p)=−2p2−1(1−p)2<0.\ell(p)=2\log p+\log(1-p),\quad \ell\prime(p)=\frac2p-\frac1{1-p},\quad \ell\prime\prime(p)=-\frac2{p^2}-\frac1{(1-p)^2}<0.
Here, the ell is a logarithm of comparative data, taking 0<p < 1; it is not a negative logarithmic loss in the previous chapter.

If it's in BT form p=σ(rA−rB)p=\sigma(r_A-r_B), with a reduction of one to two. The difference is log2. One hundred for both awards, with the same odds; five fourths for doubling the score, no longer the same. The independent check is to restore log2 to the sigmoid. 2/3; independent inspection II is directly calculated, in p=1/2 and p=3/4 In the vicinity, the peak should be 2/3 Nearer. The frequency, fraction and probability are three volumes and cannot be replaced by the same number.

p^=arg⁡max⁡0<p<1pnw(1−p)nl=nwnw+nl,logit⁡(p^)=log⁡nwnl.\hat p=\arg\max_{0<p<1}p^{n_w}(1-p)^{n_l}=\frac{n_w}{n_w+n_l},\qquad \operatorname{logit}(\hat p)=\log\frac{n_w}{n_l}.
The differential formula requires positive counting in both directions; the winning boundary scenario is addressed in the next chapter.

Noise, Ties, and Duplicates

The reverse labeling of the same pair does not necessarily require data damage, but may be marked as a disagreement or a different question criterion. If only most directions are retained, information on the strength of the success rate will be lost and the original noise data will appear to be completely identifiable. The rules of the project are silent, so all Winner is fixed; chapter IV will explain specifically that the scale of the absence of the right ones will grow. It does not achieve the multi-facet labeler model, nor does it have an independent estimate of the labelling error rate, and the perfect pair ranking here cannot be used as a calibration result of the true evaluation system.

The draw needs a clear strategy: it can be modeled separately, with one half of the soft labels or cut out by pre-rule. Three options answer different questions. Randomly turning a draw to a winner adds human noise; always using the left as Winner is also introduced to position deviations. There is no draw and no code has a flatspace, so when you encounter real flatten data, you have to change the contract and the loss, and not lose it.

Example 2: Cyclic Preferences Cannot Be Explained by One Ordering

At the same x, A-B-C-C-A-C-S-S-A-S-T-T-T-T-T-T-T-T-T-T-T-T-T-T-T-T-T-T-T-T-B-B-B-R-B, R-B-R-C, R-C-R-A. At the same time, three logs-odds are log3 and triple log3 for each. But the incentive difference has to be zero along the ring telescope. The data cannot therefore be accurately combined by the model.

This does not suggest that the data are wrong. There may be real cycles between different criteria, or there may be a hidden difference between the labels or context; there is a need for a richer comparative model, or for separate modelling of different groups. The “Correct and brief.” synthesis rule of the project is an order in which the value of the mark can be passed, and it does not contain loops, so it applies to BT teaching. Independent inspection is a direct award for a candidate, with three differences and zero persistence; no parameter is equal to three times log3.

Prevent Prompt–Candidate Mismatches

If the correct answer to “Positive,Short” is put together in a pair of correct answers to the positive and negative hints, “Negative,Short” wins and actually compares the two different tasks. Both BT and DPO assume common x, which may receive a gradient that is biased towards a fixed symbol rather than the correctness of the condition. It seems okay to look only at the Winner text syntax, which must be checked for the identity of the context. Real multiple rounds of data are conditional on the same rotations, system alerts and history, and cannot be considered to be consistent by just the same string in the last sentence.

Position deviations can be checked in exchange display order. If the label rules are independent of the right and left, swap the candidates and flip the label at the same time, the same content should be kept in mind. The internal storage of winner/loser does not contain the right and left positions on the screen; this eliminates the role of the interface sequence in the synthetic rules, but does not prove that humans collect them or have a location effect. If later access to human data is made, the original display order should be preserved, the labeler information should be stored, and the deviation should be estimated under the balanced distribution, rather than the evidence removed when exported.

The length deviation also distinguishes “Real mission preferences” from “It's not about shortcuts.”. This task clearly requires shortness, so that the brief feature is part of the target; but the correctness weight is higher, and the answer cannot be based on the shortest error. If all Winners are shorter, all losers are longer, and no short error is included for long, the incentive model may only learn length. The project allows the correct shortness to be different than the correct shortness and the correct length, with the two contrasts identifying the correct and short factor. While not covering all natural languages, the foundation of this small mechanism avoids a complete mix of two factors.

Groups, Weights, and Evaluation Leakage

The fraction should be in the community of identification or semantic questions, rather than randomly dividing three pairs from the same x into training and testing. The model training has been provided in two other sets of responses to the reminder, leaving only one pair for the test, which is mainly to test the missing side completions. This project is divided by numeric x; all models and comparisons of the same x are in the same collection. The positive and negative patterns of the tests are still shared with the training, so the conclusion is that the values in the rules are general and cannot claim a new line of reasoning or a preferred migration of the open domain.

Repeating a pair changes the weight of an experience risk. If there are 100 comparisons for a tip and only one, it would be more important to use them directly on average; it would be different to do so on an average basis. This project has three matches for each training x, but this consistency is derived from a balanced design rather than from a normal constant equation. The code is fixed by an 18 pair average. The data should be expanded to keep each reminder comparison in order to avoid the marked dense areas being inadvertently overweighted and to misconstrue this bias as a user's priority.

Independent oracle for final behavioural evaluation, not selected in the training cycle based on its test values β\beta, step or data cleanup rules. β\beta And 200 updates prefixed. β\beta The grid only lists the results. Oracle and the preferences rules come from our design, so the assessment does not have the external validity of human preferences; it has the advantage of being able to check whether the training mechanism works by definition. Once this limitation is specified, the limited task can still provide very clear evidence of arithmetical correctness.

This Lesson's Project Contribution

This chapter delivers the 18 boundary comparisons, context partitioning and legitimacy assertions of the Preferences function, and clear boundaries for noise, flattening, recycling and coverage. The project test confirms that Winner is actually above Loser by article, with the correct number and action number; the BT training accuracy rate is not used as a substitute for this rule. The next chapter introduces an incentive score to a success ratio model, stating that BT is a statistical assumption, then is a presumably deduced target, and finally deals with the scale that determines labels causing fragmentation.

Readers should be able to answer three questions on paper before they enter the reward process: what conditions a particular pair shares, which labels support relative statements and which comparisons are not observed at all. If these questions are unclear, adding network depth or changing optimizers will not make training more credible; it will only more precisely match a vague or mismatched data object.

To enable the sequence to repeat the same comparison, the candidate number must also bind the exact answer string to the EOS policy. Changing “NEG” to “NEG.” changes the probability of a complete event; even if semantic, it cannot continue with the old logprob receipt. The project sequence data summary thus covers the prompt format, four-response string and mask instead of just recording the value x.

Standalone ProgramIndependent verification of the Standard Library: frequency appears, rate differentials and cycle impossibility.
import math
wins,losses=2,1
p=wins/(wins+losses); delta=math.log(wins/losses)
sigmoid=lambda t:1/(1+math.exp(-t))
assert abs(sigmoid(delta)-p)<1e-12
likelihood=lambda q:q**wins*(1-q)**losses
assert likelihood(p)>likelihood(.5) and likelihood(p)>likelihood(.75)
r=[2.,1.,-3.]
differences=[r[0]-r[1],r[1]-r[2],r[2]-r[0]]
assert sum(differences)==0 and 3*math.log(3)>0
for x in [-2.,2.]:
    winner=0 if x<0 else 1
    pairs=[(winner,a) for a in range(4) if a!=winner]
    assert len(pairs)==3
print('estimated preference probability',p,'BT margin',delta,'cycle sum',sum(differences))

TRY IT YOURSELF

Practice I: Repeat comparisons

Six As with Pair, two Bs, frequency estimates and BT splits; are they equal to the absolute value of the reward?

Hint 1
An estimate of the number of negatives p is used, followed by a log [p/(1−p)] for BT split.
Hint 2
All incentives are given with the same constants and differences and odds are observed; this tests whether absolute zero points are identifiable.
Compare with the Solution
The estimated p=6/8 = 3/4; the rate of compensation 3, with a score of log3. The incentive can be [log3,0] or [100+log3,100], which is fully equal to the odds and therefore absolutely zero points are not identifiable. The sample has a frequency error that does not make three-quarters of the known true probability.

TRY IT YOURSELF

Practice II: Identification of length shortcuts

If all Winner is correct and short, and all Loser is wrong and long, how can two types of comparison be filled to distinguish factors?

Hint 1
In order to separate the two factors, it is necessary for each group to change only one of them.
Hint 2
The fixed correctness is compared in length and the fixed length is more positive, and the correct length is checked whether observations have been made to weigh the error short.
Compare with the Solution
Add to “Right short and right long.”, fixed correctness changes only length; then “Right-to-Friends Short”, fixed shortness changes only correctly. These two categories are the key subsets in the project list. If the target also requires validity priority, the correct length and shortness of error can be added, and the current project does not capture this side directly, so it cannot be claimed that observations cover all trade-offs.

TRY IT YOURSELF

Practice III: Application of BT

This is the first time that a country has ever seen a single country in the world, with a steady observation of A, B, C and A. 75 Why can't we just train a few more steps?

Hint 1
The three winnings are turned into three incentive equations.
Hint 2
Add the three models to the left and observe the results; if compared to the right, it will be judged whether the optimisation is inadequate or whether the model is in conflict.
Compare with the Solution
BT requires that all three fractions be log3; but (rA−rB)+(rB−rC)+(rC−rA) = 0) cannot be equal to 3log3. Contradictions arise from the single-mark ordering assumption, which is not optimized. A hidden context or model that expresses circulation/group heterogeneity needs to be checked and a loss defined separately.

CHECK YOUR UNDERSTANDING

Check Your Understanding

Answer first, then open the explanation to check your reasoning. These questions help reveal gaps in understanding; independent implementation and transfer require separate evaluation.

1. What must a preference share?

Show ExplanationThe different conditions compare with the misalignment of objectives.
2.A wins twice and wins once.

Show ExplanationFrequency estimates are the probability under the specified comparison process.
3. BT scale reward for what change?

Show ExplanationCo-diversions are reduced in the incentive differentials, and scaling usually changes the success rate.
4. Cycle preferences are counter-cased.

Show ExplanationA model ' s passable order of magnitude cannot accurately express a strict loop.

Manual completion records your progress; it does not certify your project.