Unit 2 of 10 · about 4 hours · measure

Annotator agreement and noise, and position, length and style bias

An optimizer can learn an annotation interface's shortcuts as easily as its intended rubric. This audit extends the LLM Foundations unit on model judges and human review from evaluating outputs to checking the labels that will train a policy.

You'll be able to

  • Measure agreement and presentation sensitivity while preserving raw votes, ties and abstentions.
  • Separate annotator error from rubric ambiguity, expertise gaps and legitimate preference differences.
  • Design a label-noise intervention and a length/style control before fitting the preference route.

Covers

Annotator disagreement, noise, expertise and adjudicationPosition, length, style, verbosity, identity and presentation bias
1

Read

In this order, only the parts listed

0 of 3 done

  1. InstructGPT: labeler selection and disagreementTraining Language Models to Follow Instructions with Human Feedback (Ouyang et al., 2022)

    arXiv:2203.02155v1, Section 3.4, Human data collection; Appendix B.1, including the labeler selection procedure

    Read the collection and agreement protocol, not the large-model training recipe. The paper's agreement rates describe its recruited population, not a target for your audit.

  2. The RLHF Book: collection bias and judge instructionsRLHF Book - Reward Models, Direct Alignment and Preferences

    Chapter 11, Bias: Things to Watch Out For in Data Collection and Open Questions in RLHF Preference Data; Chapter 5, Generative Reward Modeling, at https://rlhfbook.com/c/05-reward-models.html

  3. A Long Way to Go: length as a confoundA Long Way to Go: Investigating Length Correlations in RLHF (Singhal et al., 2023)

    arXiv:2310.03716v2, Sections 2 to 5: task setup, length-stratified reward analysis, length-only reward, interventions and preference analysis

    Read the controls and plots. Do not reproduce the paper's PPO training or use correlation alone as evidence of a causal length shortcut.

2

Focus on

  • Translate displayed-side labels back to response identity before comparing votes across order swaps. Report agreement, tie/abstention rates and counts by rubric axis and source.
  • Use blinded order swaps and identity removal; vary formatting or verbosity only after checking that the factual content and task constraints remain matched. Report both response lengths beside every win rate, using one fixed tokenizer and also a text-length measure.
  • Retain disagreements before adjudication. Record the reason and expertise needed; consensus can erase a real harmlessness/helpfulness trade-off rather than resolve it.
  • Flip labels only in a separate, versioned training intervention. Keep held-out labels untouched so robustness is not scored against the corruption you introduced.
Common mistakes · 3
  • Calling delayed self-relabeling inter-annotator agreement. It measures your repeatability; use existing repeated labels or another consenting reviewer for between-person evidence.
  • Assuming a judge instruction to ignore length removes length bias. The instruction is a hypothesis to test, not a control that proves itself.
  • Treating all disagreement as random flips. Rubric conflict and population differences need separate slices, not just a noise rate.
3

Try it yourself

Closed-book, before checking anything

Closed-book, canonicalize two annotators' votes on four fixed pairs: ["a", "b", "tie", "a"] and ["a", "a", "tie", "b"]. Exact agreement, counting a shared tie as agreement, is 50%. Then derive that symmetric independent label flipping with probability 0.25 changes an underlying strict preference probability of 0.8 to 0.65. These are constructed checks, not estimates of human reliability.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.A judge chooses the left response in both orders. What does that establish?Answer

    On that pair, its content preference is inconsistent under an order swap. More pairs are needed to estimate a position effect; a single pair does not identify a population bias.

  2. 2.Why is 50% raw agreement not automatically chance agreement?Answer

    Chance agreement depends on the label marginals and tie policy. Raw agreement alone does not adjust for skewed response preferences or annotator populations.

  3. 3.Does a higher reward-length correlation prove the reward model ignores correctness?Answer

    No. Correctness may require detail. Compare content-matched length interventions and inspect residual errors before attributing a shortcut.

You're done when

Your audit distinguishes raw agreement from presentation sensitivity, includes untouched held-out labels, and reports paired lengths and sample counts beside every win rate.

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 17 more in the section

Also in this section

  • Direct Preference OptimizationStanford University · required

    Read Section 4 and Appendix A: derive the objective from the KL-constrained reward formulation, implement it from policy and reference log probabilities summed over response tokens, and gradient-check , sign, masking and identical-pair cases. TRL's sigmoid_norm variant normalizes by length, which the paper does not.

  • Scaling Laws for Reward Model Overoptimization (Gao et al., 2022)OpenAI · required

    Read Sections 2 to 4: a gold reward model stands in for humans, and gold score against optimization pressure takes different forms for best-of-n and RL. The lesson is the shape, not a universal KL threshold.

  • Disentangling Length from Quality in Direct Preference Optimization (Park et al., 2024)Stanford University · support

    Read Sections 2 and 3: add a length penalty to the reward and derive length-regularized DPO, then check its length-controlled results in Section 4.

  • A General Theoretical Paradigm to Understand Learning from Human Preferences (Azar et al., 2023)Google DeepMind · support

    Read Sections 3 to 5: why DPO can overfit deterministic preferences and how IPO's squared loss avoids it. Its tau is DPO's beta under another name.

  • SimPO: Simple Preference Optimization with a Reference-Free Reward (Meng et al., 2024)Princeton University · support

    Read Section 2 (length-normalized average log probability as the reward plus a target margin, with no reference model) and Sections 4.2 and 4.3 (the length-normalization and margin ablations). Without the reference there is no KL anchor, so watch for drift.

  • ORPO: Monolithic Preference Optimization without Reference Model (Hong et al., 2024)KAIST AI · support

    Read Sections 3 and 4: an odds-ratio penalty added to the SFT loss in one stage. Merging the stages makes an SFT-versus-preference ablation harder, so evaluate them apart.

  • KTO: Model Alignment as Prospect Theoretic Optimization (Ethayarajh et al., 2024)Stanford and Contextual AI · support

    Read Section 3.2 (human-aware losses) and Section 4 (a loss for unpaired desirable and undesirable examples with a reference point). Unpaired data still needs label-noise and reference-drift checks.

  • RewardBench: Evaluating Reward Models for Language Modeling (Lambert et al., 2024)Allen Institute for AI · support

    Read Section 4 (the chat, chat-hard, safety and reasoning splits, detailed in Appendix F), Section 5 and Appendix H.2 (length bias). Pin the benchmark version; reward accuracy is not policy quality.

  • RLAIF vs. RLHF: Scaling Reinforcement Learning from Human Feedback with AI Feedback (Lee et al., 2023)Google Research · support

    Read Sections 2 to 5: AI-labeled versus human-labeled preferences on summarization and dialogue, and direct RLAIF without a distilled reward model. The parity holds for their tasks and labelers.

  • Tulu 3, Section 5 (Preference Finetuning)Allen Institute for AI · support

    Read Sections 5.2 to 5.4: building on-policy preference data, the data ablations and the DPO recipe. Use the ablations as the model for your own one-variable comparison.

  • CS336 Assignment 5 Supplement - Preference Data and DPOStanford University · required

    Do supplement Section 6: inspect the HH preference data (look_at_hh) and implement dpo_loss until its test passes. Run a bounded DPO comparison only after the baseline and evaluator are frozen, with a small open model in place of the Llama 3.1 8B B200 run.

  • RLHF Book Code - Reward Models and Direct AlignmentNathan Lambert · support

    Run the preference reward model with a frozen backbone (only the head trains) and the DPO, IPO and length-normalized DPO configs with smaller models and contexts than the defaults. The final partial accumulation window is under-weighted, so fix or avoid it. Explain margins, accuracy and rewards rather than raw loss.

  • TensorTonic - Preference Optimization SetTensorTonic · support

    Solve Canonicalize Pairwise Preference Data (cs336-l15-canonical-preference-pairs), Score a KL-Regularized Policy Batch (cs336-l15-kl-regularized-policy-objective) and Implement the DPO Loss (cs336-l15-direct-preference-optimization-loss). The DPO problem takes sequence log probabilities, so add your own swapped-label, duplicate, length and reference-mismatch cases. Public test cases check the listed edge cases, not gradients or the hidden grader, so keep your own tests beside each solution.

  • TRL DPO TrainerHugging Face · support

    After the scratch loss passes, map dataset format, reference model, and loss variants into TRL 1.15.0: the default loss_type is ["sigmoid"] with beta=0.1, log probabilities are summed over the completion, and the trainer refuses a policy that is the same object as the reference. Confirm the library loss matches your scratch objective on one frozen batch.

  • Modern LLM Notebook - RLHF AlignmentWalking Labs · optional

    Use notebooks-en/part2-training/19-rlhf-alignment.ipynb as a compact end-to-end orientation. Do not substitute its overview for the RLHF Book derivations or the CS336 objective tests.

  • Build a Large Language Model (From Scratch) - DPO Bonus NotebookSebastian Raschka · reference

    Use ch07/04_preference-tuning-with-dpo/ only as a gentle starter before the DPO paper and CS336 tests.

  • Constitutional AI: Harmlessness from AI FeedbackAnthropic · support

    arXiv:2212.08073v1, Sections 3.1 and 4.1 and Appendix C.2: distinguish critique/revision data from constitution-conditioned comparison labels and trace the principle into label provenance. Read and audit the examples; no large-model RL reproduction is required.