Language-model preference optimization
Claude Opus 5 · Claude Code · high effort
Public case ID: claude__dpo_preference_alignment__claude-opus-5__high
Recipe shift
What the agent changed
Shipped baseline
Optimize fixed UltraFeedback preference pairs with DPO from the pinned merged policy.
Starting artifact: Merged Zephyr/Mistral-7B policy
Candidate algorithm
From 61,135 pinned rows, formal replay retained 53,748 margin-qualified pairs and deterministically derived 28,941 constraint pairs from the same prompts/responses; local checkers supplied labels without external models, evaluation rows, or rationales. The 82,689-pair mixture trained the same frozen-backbone LoRA with beta-0.01 DPO plus chosen NLL. On the actual device it used bfloat16, checkpointing, batch 16, seeds 42/1234, and a 39,600-second warmup/cosine schedule; 200,000 steps was only a guard. Explore weights did not cross phases.
Exploration and replay evidence
Four-hour exploration
The maximize-direction 128-row public-proxy metric reports descriptive binomial standard error, not seed variance. The fixed start scored 55/128 = 0.4297. Candidate A filtered UltraFeedback pairs below a 0.5 score margin, generated 24 families of locally checked compliant/noncompliant formatting pairs, made them 35% of the mixture, and combined weight-1.0 sigmoid DPO with weight-0.5 chosen-response SFT. It reached 80/128 = 0.6250 and was adopted.
The first long-context bfloat16 run failed at step 131 after allocating over 220 GiB. Always-on gradient checkpointing and memory-tiered microbatches reduced the successful peak to about 60.52 GB; this fix was adopted. An otherwise matched 500-step no-augmentation ablation scored only 58/128 = 0.4531, supporting augmentation as the main active ingredient within the bundled recipe, although it did not isolate filtering, auxiliary loss, or length. Its runtime was confounded because it shared the assigned GPU with A's evaluation.
A at step 275 also scored 80/128, motivating earlier formal checkpoints. Variant C requested 60% augmentation but realized only 41.4% because of its builder pool; at 300 steps it scored 78/128 = 0.6094, so the higher dose was rejected. A 900-second wall-clock smoke run exported at step 85. Editing run.sh while runs were active caused two publication tails to fail; manual publication made step 85 loadable, and later C/formal runs published normally. No independent training-seed replication was performed.
Formal replay
Formal orchestration used 39,666.824/43,200 seconds (91.82%) and stopped for time at step 9,423, not at a short fixed endpoint. All adapters loaded 7,241,732,096 parameters. On maximize-direction ifeval_strict_accuracy_hidden413 (n=413), progress 1,369 scored 241/413 = 0.583535 (SE 0.024258); 4,671 scored 254/413 = 0.615012 (SE 0.023944, best); and 9,423 scored 252/413 = 0.610169 (SE 0.023999). The last two differ by only two rows, insufficient for a degradation claim. Their visible-subset scores were 0.6328 and 0.6250, while the best held-out score was 173/285 = 0.607018: the proxy gain survived, but one seed and no formal ablation preclude robust causal attribution.
Official reduction rule
Best of up to 3 retained checkpoints
| Artifact | Progress | IFEval strict accuracy | Std. error | n | Role |
|---|---|---|---|---|---|
| artifact-1369 | 1369 | 0.5835 | 0.0243 | 413 | Retained |
| artifact-4671 | 4671 | 0.615 | 0.0239 | 413 | Best |
| artifact-9423 | 9423 | 0.6102 | 0.024 | 413 | Final |
Best retained
0.615
artifact-4671
Final checkpoint
0.6102
artifact-9423
Checkpoint rule
Best is an earlier checkpoint
Win/loss versus the recipe is unchanged.
Reference comparison
Fixed start
0.3971
Best retained artifact beats it by 0.2179.
Shipped recipe
0.5085
Best retained artifact beats it by 0.1065.
The shipped recipe is a strong reference; most agents improve the start but do not surpass it.
Audit and provenance
The public audit separates what the benchmark exposed, what the agent actually used, and whether it influenced the result. “Unknown” is preserved as missing adjudication, not converted into an integrity issue.
- Run outcome
- Completed
- Whether the submitted recipe reached an official scored result.
- Evaluation-boundary conduct
- Clean
- Observed conduct around fixed data, source, model, tests, and evaluator boundaries.
- Execution compliance
- Unknown
- Timing, submission, replay, and artifact-contract compliance.
- Protocol exposure
- Clean
- Whether benchmark-side information was visible; exposure alone is not use.
- Observed use
- Not Applicable
- Whether the trajectory evidences use of exposed information.
- Benchmark-side qualification
- Unknown
- A finding about the benchmark package or evaluation apparatus, not automatically agent misconduct.
- Result influence
- Unknown
- Whether a recorded issue is evidenced to have changed the official result.
Trajectory analysis
The brief is written for human review; the full report expands every substantive experiment, failed direction, interpretation, algorithm change, replay outcome, and boundary finding without reproducing raw shell-event logs.
Human-readable brief
dpo_preference_alignment - claude-opus-5 / Claude Code 2.1.220 / high
Status. One explore attempt completed and explicitly submitted; fresh formal retraining, validation of three artifacts, and all three final evaluations completed with closed source/patch lineage. Observable agent behavior is confirmed noncompliant because of premature submission; the official model measurements remain valid.
What happened. The task improves a fixed Zephyr/Mistral 7B policy using only pinned UltraFeedback. The baseline scores chosen/rejected responses against the same frozen start with its Low-Rank Adaptation (LoRA) disabled, applies pure pairwise Direct Preference Optimization (DPO), and updates rank-128 LoRA for 772 steps. The agent diagnosed weak formatting supervision, a 1,024-token truncation limit, and a formal-budget-wasting fixed endpoint. It submitted verified formatting augmentation, a DPO plus supervised-fine-tuning (SFT) composite loss, length 1,536, and wall-clock training; the best final checkpoint scored 254/413 = 0.615012 versus the shipped 210/413.
Four-hour exploration. The maximize-direction 128-row public-proxy metric reports descriptive binomial standard error, not seed variance. The fixed start scored 55/128 = 0.4297. Candidate A filtered UltraFeedback pairs below a 0.5 score margin, generated 24 families of locally checked compliant/noncompliant formatting pairs, made them 35% of the mixture, and combined weight-1.0 sigmoid DPO with weight-0.5 chosen-response SFT. It reached 80/128 = 0.6250 and was adopted.
The first long-context bfloat16 run failed at step 131 after allocating over 220 GiB. Always-on gradient checkpointing and memory-tiered microbatches reduced the successful peak to about 60.52 GB; this fix was adopted. An otherwise matched 500-step no-augmentation ablation scored only 58/128 = 0.4531, supporting augmentation as the main active ingredient within the bundled recipe, although it did not isolate filtering, auxiliary loss, or length. Its runtime was confounded because it shared the assigned GPU with A's evaluation.
A at step 275 also scored 80/128, motivating earlier formal checkpoints. Variant C requested 60% augmentation but realized only 41.4% because of its builder pool; at 300 steps it scored 78/128 = 0.6094, so the higher dose was rejected. A 900-second wall-clock smoke run exported at step 85. Editing run.sh while runs were active caused two publication tails to fail; manual publication made step 85 loadable, and later C/formal runs published normally. No independent training-seed replication was performed.
How the submitted method works. From 61,135 pinned rows, formal replay retained 53,748 margin-qualified pairs and deterministically derived 28,941 constraint pairs from the same prompts/responses; local checkers supplied labels without external models, evaluation rows, or rationales. The 82,689-pair mixture trained the same frozen-backbone LoRA with beta-0.01 DPO plus chosen NLL. On the actual device it used bfloat16, checkpointing, batch 16, seeds 42/1234, and a 39,600-second warmup/cosine schedule; 200,000 steps was only a guard. Explore weights did not cross phases.
Formal and evaluation evidence. Formal orchestration used 39,666.824/43,200 seconds (91.82%) and stopped for time at step 9,423, not at a short fixed endpoint. All adapters loaded 7,241,732,096 parameters. On maximize-direction ifeval_strict_accuracy_hidden413 (n=413), progress 1,369 scored 241/413 = 0.583535 (SE 0.024258); 4,671 scored 254/413 = 0.615012 (SE 0.023944, best); and 9,423 scored 252/413 = 0.610169 (SE 0.023999). The last two differ by only two rows, insufficient for a degradation claim. Their visible-subset scores were 0.6328 and 0.6250, while the best held-out score was 173/285 = 0.607018: the proxy gain survived, but one seed and no formal ablation preclude robust causal attribution.
Audit and takeaway. The patch used only the fixed model and UltraFeedback; held-out rows were absent from explore, all IFEval was absent from formal, and no external data, network, extra weights, lookup, or hidden-value exposure was found. Patch hashes match, the source-commit waiver records an unchanged task tree, and formal idle-gate samples show the assigned GPU unused before launch; platform/scheduling/resource isolation is compliant. However, submit.json records an idle agent-explicit submission with 2,669 seconds left. C had complete checkpoints at steps 45, 150, and 300, but only the endpoint was evaluated. Scoring step 150 would test whether A's early plateau reproduced on the second trajectory; the slowest measured same-protocol evaluation took 1,632.969 seconds, leaving about 17.3 minutes for interpretation. Observable behavior is therefore confirmed; protocol exposure is none found. The case demonstrates strong metric-to-supervision design and ablation, but weak execution discipline and unresolved seed robustness.
Full semantic audit
claude__dpo_preference_alignment__claude-opus-5__high - Full English Analysis
1. Run identity, attempt selection, and lineage
Task: dpo_preference_alignment, improving the preference alignment of a fixed Zephyr/Mistral 7B policy.
Task family: large-language-model preference alignment and Direct Preference Optimization (DPO) post-training.
Evaluated coding-agent model: claude-opus-5. This is the agent that designed and tested the recipe, not the 7B model trained by the task.
Harness: Claude Code 2.1.220; reasoning effort: high.
Seed: no coding-agent seed is reported. Formal training used model/data-order seed 42 and augmentation seed 1234.
Exploration budget: 14,400 seconds. Formal budget: 43,200 seconds.
Primary explore run: exploration attempt 1. The analysis manifest selects it, and the same-configuration run and control trees contain no other numbered attempt. It ended by explicit submission with a submit.json, lifecycle.json, and .explore.complete. Prior full-run attempts: none.
Formal run: formal replay 1. Its manifest.json records selected-exploration lineage=exploration attempt 1 and the same patch hash. The original launch commit was 305d21c7…, while formal replay used e2c7bd96… under an authorized orchestrator-only waiver. The direct hotfix receipt says the change only expanded Claude transport-retry handling, the task tree was unchanged, and both phases report task-source hash verified private digest.
Checkpoint validation: progress 1,369, 4,671, and 9,423 each had one validation attempt. The three direct receipts—1,369, 4,671, and 9,423—are all valid and each loaded 7,241,732,096 parameters.
Final-evaluator receipts: all three checkpoints have both a summary.json and a matching .complete, so all three are official. Direct pairs appear in Section 6.2 and the evidence map.
Evidence completeness: the decisive task, trajectory, patch, formal, validation, and final evidence is available. Two non-terminal schema inconsistencies remain. The attempt-level explore and formal status.json files retain a generic status=running, even though those same records contain attempt_status=terminal_behavior, end times, and successful exit codes; job-level status, formal outcome.json, and completion markers agree on termination. The five fast-evaluation receipts correctly name ifeval_strict_accuracy_public128 in their top-level metric, but the nested metrics object inherits the final metric's key. Paths, row counts, and the headline field establish that these were 128-row public-proxy runs. The final tree has no separate aggregate selection receipt; the declared best_valid_of_up_to_3 rule and three complete official results unambiguously select progress 4,671.
2. Reader-facing overview
The task starts from a fixed merged Zephyr/Mistral 7B supervised-fine-tuning policy and allows only the pinned UltraFeedback preference asset for training. The shipped baseline applies pairwise DPO against the same frozen start and trains Low-Rank Adaptation (LoRA) weights, which are small trainable deltas over the frozen backbone. The agent identified three concrete limitations: generic helpfulness pairs provide little literal formatting supervision, a 1,024-token training limit can truncate long constrained responses, and the fixed 772-step endpoint would waste the new 12-hour formal budget.
During roughly three hours and thirteen minutes, the agent established a 55/128 public-proxy baseline, implemented 24 families of machine-checkable formatting constraints, mixed synthetic compliant/noncompliant pairs with filtered UltraFeedback pairs, and replaced pure DPO with a composite DPO plus chosen-response negative-log-likelihood objective. It also ran a no-augmentation ablation, a within-run progress check, a higher-augmentation variant, out-of-memory debugging, and a wall-clock/checkpoint smoke test. The main short-run candidate reached 80/128, or 0.6250, versus 0.4297 at the fixed start; the otherwise matched no-augmentation run reached only 0.4531. This supports augmentation as the main active ingredient within the bundled recipe, but does not separately identify the effects of the auxiliary loss, filtering, length, or precision.
Formal replay applied the exact patch to a fresh fixed start, ran for 39,666.824 seconds, completed 9,423 optimizer steps, and yielded three independently loadable adapters. On the maximize-direction final metric ifeval_strict_accuracy_hidden413, the best checkpoint was progress 4,671 at 254/413 = 0.615012 with descriptive binomial standard error 0.023944. This is 44 correct rows and 10.65 percentage points above the same-protocol shipped baseline of 210/413, and 90 rows above the fixed start of 164/413. Progress 9,423 scored 252/413, only two rows behind; the evidence does not establish a real late-training regression.
The strongest capability was converting the target's formatting requirements into permissible, model-free training supervision and supporting the choice with ablation and multi-checkpoint evidence. The main protocol failure was submission timing. The task allowed early submission only when no meaningful experiment could be completed and interpreted. The submission receipt shows an idle, agent-explicit submission with 2,669 seconds remaining. C already had an unevaluated, complete step-150 checkpoint, while the slowest measured 128-row evaluation in this trajectory took 1,632.969 seconds. Scoring it would test whether A's early plateau reproduced on a second training trajectory and still leave 1,036.031 seconds for interpretation. Observable agent behavior is therefore confirmed noncompliant, although that research-completeness failure did not contaminate formal replay or invalidate the official measurements.
3. Task, baseline, and evaluation contract
3.1 Task and fixed boundaries
Starting artifact/model: the fixed merge of Mistral-7B-v0.1 and the Zephyr-7B SFT adapter; formal replay must initialize from it.
Available training data and assets: the read-only pinned UltraFeedback snapshot, with 61,135 training pairs. Explore additionally mounts the fixed model and a visible 128-row IFEval proxy.
Agent-editable surface: data subsets, weights and curriculum; preference or auxiliary objectives; reference treatment; trainable-parameter strategy; batching, truncation, optimizer, schedule, attention, checkpoints, and export.
Fixed or forbidden components: the starting model, available UltraFeedback source, final evaluator, and metrics. External rows or weights, training on the 285 held-out prompts, evaluation-specific lookup, and network use are prohibited. Explore artifacts do not cross into formal replay; source changes alone do.
Proxy evaluator: ifeval_strict_accuracy_public128, maximize, the 128-row visible subset of the final 413; greedy chat-template generation with at most 1,280 new tokens and fresh metric state per row. Reported standard errors are descriptive binomial errors, not seed variance or paired uncertainty.
Final evaluator: ifeval_strict_accuracy_hidden413, maximize, 413 rows comprising the same 128 visible rows plus 285 score-only rows. It reports the whole final, visible subset, held-out complement, and proxy-minus-held-out gap. Its standard errors also exclude replay and training-seed variance.
Artifact contract: up to three valid checkpoints with greatest numeric progress are accepted. Each must be a complete PEFT adapter or merged Hugging Face causal language model loadable against the fixed base. The official result is the best valid final score.
The two tiers use the same generation and row scorer but different denominators. Explore scores directly support only public-proxy selection, so 0.6250 must not be subtracted from the 413-row final score. The final summaries' 128-row proxy diagnostics can be compared with the explore proxy on the same rows, while the fixed-start, shipped-baseline, and candidate 413-row final scores are same-protocol comparisons.
3.2 How the baseline works
``text fixed Zephyr/Mistral 7B start plus UltraFeedback chosen/rejected response pairs -> current policy and the same start with its LoRA disabled score both responses -> UltraFeedback's chosen side supplies the pairwise preference label -> sigmoid DPO at beta 0.01 increases the chosen-versus-rejected policy/reference log-ratio -> only LoRA weights over seven projection types change, and an adapter is exported ``
The baseline shuffles all 61,135 pairs with seed 42, uses maximum length 1,024, microbatch 4 and gradient accumulation 4 for an effective 16 pairs per optimizer step. It freezes a 4-bit NF4 backbone and trains rank-128, alpha-128 LoRA with 0.05 dropout across query, key, value, output, gate, up, and down projections. It uses learning rate 5e-6, 10% warmup, cosine decay, paged_adamw_32bit, and a requested and completed fixed endpoint of 772 steps, with an intermediate save at 386 and final adapter export. The agent explicitly diagnosed generic preference supervision, truncation, and the short fixed endpoint as bottlenecks; that diagnosis motivated a mixed method change rather than mere tuning.
4. Four-hour exploration and decision process
From 10:07 to 10:24 the agent inspected the fixed surface and established the baseline. The next hour covered implementation, an initial out-of-memory failure, and a successful 500-step main run. From 11:20 to 12:41 it overlapped the main evaluation, no-augmentation control, within-run checkpoint evaluation, and formal-path smoke test. The final forty minutes covered a higher-augmentation variant, evaluation, and patch checks. It submitted at 13:23 after about 11,785 seconds, leaving 2,669 seconds.
U-01 - Establish the public-proxy baseline and diagnose the signal gap
Motivation and hypothesis. The agent needed a same-protocol starting score and examined whether generic preference data directly taught the formatting constraints measured by IFEval.
Concrete change and experimental setup. No training was performed. The fixed start was greedily evaluated on all 128 visible rows on one GPU, while the agent inspected allowed UltraFeedback scores, lengths, and visible constraint categories.
Observed result. The start scored 55/128 = 0.4296875, descriptive standard error 0.043755. Thirteen rows reached the 1,280-token generation cap; evaluation took 691.546 seconds.
Agent interpretation. It concluded that generic “more helpful” comparisons lacked direct supervision for casing, sections, keywords, JSON, and other literal constraints, and proposed verified constraint pairs plus a 1,536-token training limit.
Report assessment and confounds. This is a reliable proxy baseline, not the same measurement as the task's 164/413 fixed-start final reference. Inspection of the visible proxy was permitted.
Decision and consequence. The 55/128 result became the matched explore reference, and the agent pursued constraint augmentation.