Language-model preference optimization
Claude Sonnet 5 · Claude Code · medium effort
Public case ID: claude__dpo_preference_alignment__claude-sonnet-5__medium
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
Fixed chosen/rejected pairs feed the same beta-0.01 sigmoid DPO loss; paged AdamW updates only rank-128 LoRA while the quantized backbone remains frozen. There are no generated labels, rewards, synthetic data, or external tools. The patch raises requested steps from 772 to 7642, changes publication spacing from 386 to 3200, and adds safe wall-clock stopping. Data, sampling, objective, update rule, initial learning rate, batch, and seeds remain unchanged, although the longer run also stretches 10% warmup and cosine decay. The exploration best was a step-1200 weight, but source-only formal replay correctly…
Exploration and replay evidence
Four-hour exploration
The proxy was strict accuracy on 128 public examples, maximized; its binomial standard error is descriptive, not multi-seed uncertainty. The fixed start and step 20 both scored 55/128. Step 150 scored 24/64 on a matched prefix versus 26/64 for the start; steps 800 and 1200 scored 53/128 and 56/128, the latter with standard error 0.04385. The agent emphasized falling loss, less output clipping, and one extra correct response at step 1200, interpreting this as no degradation and adopting longer training. The report assessment is weaker: results were non-monotonic and within one-run noise, while a produced step-400 artifact was never evaluated.
The agent also inspected alternative losses. CPOConfig failed to import, although the installed DPO trainer exposed IPO, hinge, NCA, and other losses; none was tested, so retaining sigmoid DPO was pragmatic but scientifically unresolved. A scaled checkpoint test produced steps 12, 24, and 30, but direct load records cover only 12 and 30, making its claim that all three loaded independently inconclusive. A forced wall-clock test stopped after one step and exported successfully, establishing the callback path but not long-run timing. Finally, the agent submitted with 35 minutes 38 seconds left and no active GPU work, although a full proxy evaluation repeatedly took 10–13 minutes and step 400 was ready.
Formal replay
Formal replay overrode source fallback timing with a 42,600-second wall clock and 1,200-second reserve. It completed all 7642 requested steps in about 31,036 seconds and published loadable artifacts at steps 3200, 6400, and 7642. On the official maximize-direction 413-example final metric, they scored 151/413 = 0.36562 (stderr 0.02370; 25 clipped outputs), 165/413 = 0.39952 (0.02410; 58 clipped), and 164/413 = 0.39709 (0.02408; 62 clipped). Step 6400 was best; the checkpoint hedge avoided the endpoint's one-response regression. Yet the fixed start was 164/413 and the shipped 772-step baseline was 210/413, so the best candidate gained only one response over the start and lost 45 to baseline. Improving internal preference diagnostics did not transfer. Public rows favored the endpoint at 57/128, while hidden rows made step 6400 best overall, so the weak exploration proxy signal did not generalize reliably.
Official reduction rule
Best of up to 3 retained checkpoints
| Artifact | Progress | IFEval strict accuracy | Std. error | n | Role |
|---|---|---|---|---|---|
| artifact-3200 | 3200 | 0.3656 | 0.0237 | 413 | Retained |
| artifact-6400 | 6400 | 0.3995 | 0.0241 | 413 | Best |
| artifact-7642 | 7642 | 0.3971 | 0.0241 | 413 | Final |
Best retained
0.3995
artifact-6400
Final checkpoint
0.3971
artifact-7642
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.0024.
Shipped recipe
0.5085
Best retained artifact does not beat it (task-directed delta -0.109).
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-sonnet-5 / AI4AI-Bench v1.5 / medium
Status. Exploration, submission, formal retraining, validation of three artifacts, final evaluation, and boundary audit all completed. Every final summary has its .complete receipt. The method was scientifically unsuccessful, and the agent breached the explicit early-submission rule.
What happened. The task uses 61,135 fixed UltraFeedback preference pairs to improve strict instruction following from a fixed Zephyr/Mistral 7B policy. The baseline freezes a four-bit backbone and uses direct preference optimization (DPO) to update low-rank adapters (LoRA), increasing each chosen answer's advantage over its rejected counterpart relative to the fixed start. The agent diagnosed insufficient training as the likely bottleneck and submitted a duration/checkpoint change, not a new algorithm.
Four-hour exploration. The proxy was strict accuracy on 128 public examples, maximized; its binomial standard error is descriptive, not multi-seed uncertainty. The fixed start and step 20 both scored 55/128. Step 150 scored 24/64 on a matched prefix versus 26/64 for the start; steps 800 and 1200 scored 53/128 and 56/128, the latter with standard error 0.04385. The agent emphasized falling loss, less output clipping, and one extra correct response at step 1200, interpreting this as no degradation and adopting longer training. The report assessment is weaker: results were non-monotonic and within one-run noise, while a produced step-400 artifact was never evaluated.
The agent also inspected alternative losses. CPOConfig failed to import, although the installed DPO trainer exposed IPO, hinge, NCA, and other losses; none was tested, so retaining sigmoid DPO was pragmatic but scientifically unresolved. A scaled checkpoint test produced steps 12, 24, and 30, but direct load records cover only 12 and 30, making its claim that all three loaded independently inconclusive. A forced wall-clock test stopped after one step and exported successfully, establishing the callback path but not long-run timing. Finally, the agent submitted with 35 minutes 38 seconds left and no active GPU work, although a full proxy evaluation repeatedly took 10–13 minutes and step 400 was ready.
How the submitted method works. Fixed chosen/rejected pairs feed the same beta-0.01 sigmoid DPO loss; paged AdamW updates only rank-128 LoRA while the quantized backbone remains frozen. There are no generated labels, rewards, synthetic data, or external tools. The patch raises requested steps from 772 to 7642, changes publication spacing from 386 to 3200, and adds safe wall-clock stopping. Data, sampling, objective, update rule, initial learning rate, batch, and seeds remain unchanged, although the longer run also stretches 10% warmup and cosine decay. The exploration best was a step-1200 weight, but source-only formal replay correctly restarted from fixed weights using the untested 7642-step configuration.
Formal and evaluation evidence. Formal replay overrode source fallback timing with a 42,600-second wall clock and 1,200-second reserve. It completed all 7642 requested steps in about 31,036 seconds and published loadable artifacts at steps 3200, 6400, and 7642. On the official maximize-direction 413-example final metric, they scored 151/413 = 0.36562 (stderr 0.02370; 25 clipped outputs), 165/413 = 0.39952 (0.02410; 58 clipped), and 164/413 = 0.39709 (0.02408; 62 clipped). Step 6400 was best; the checkpoint hedge avoided the endpoint's one-response regression. Yet the fixed start was 164/413 and the shipped 772-step baseline was 210/413, so the best candidate gained only one response over the start and lost 45 to baseline. Improving internal preference diagnostics did not transfer. Public rows favored the endpoint at 57/128, while hidden rows made step 6400 best overall, so the weak exploration proxy signal did not generalize reliably.
Audit and takeaway. Fixed data/model, evaluator integrity, network prohibition, one-GPU isolation, wall-clock controls, source-only replay, patch hash, and receipts all checked clean. No hidden final value was exposed, queried, reconstructed, or used; no external model/data or explore-to-formal contamination appeared. Overall observable agent behavior is confirmed because the remaining time and ready artifact disprove the allowed condition for early submission; protocol/evaluation-boundary exposure was none found, while platform, scheduling, and resource isolation were compliant. This violation does not invalidate official scores, but it left feasible evidence uncollected. The agent showed strong checkpoint and replay engineering; it did not show that longer unchanged DPO improves instruction following, that step 6400 is generally optimal, or that differences are statistically reliable.
Full semantic audit
claude__dpo_preference_alignment__claude-sonnet-5__medium - Full English Analysis
1. Run identity, attempt selection, and lineage
- Task: dpo_preference_alignment
- Task family: language-model preference alignment and instruction following
- Evaluated model: claude-sonnet-5
- Harness: AI4AI-Bench v1.5 trajectory harness
- Reasoning effort: medium
- Seeds: formal training seed 42 and data seed 42; evaluation used greedy decoding
- Exploration budget: 4 hours
- Formal-retrain budget: 12 hours
- Primary exploration run: exploration attempt 1
- Why this run was selected: it is the only numbered run for this configuration with a manifest, complete raw trajectory, candidate patch, and terminal submission receipt. Inspection of the numbered directories and control/queue records found no other completed, gated, corrected, or reserved attempt.
- Earlier complete retries and outcomes: none.
- Patch hash and verification: SHA-256 verified private digest. The exploration submission and formal copy are byte-identical.
- Formal-retrain run: formal replay 1
- the formal replay is cryptographically linked to the selected exploration
- Final-evaluation receipts: all three artifacts have both summary.json and a corresponding .complete receipt, so all three are official results.
- Evidence completeness: the raw trajectory, task declaration and baseline source, patch, formal manifest, effective environment, training summary, all three artifact validations, and all three final evaluations are available. There was one formal dispatch and one successful formal run, with no unlinked or partial formal attempt. auto_retrain=false and retrain_phase_created=false in the exploration manifest only say that manifest did not create formal replay itself; the upstream dispatch and selected-exploration lineage prove that a linked run was later created. The formal run used an authorized orchestrator-only transport-retry waiver; its receipt says task_tree_unchanged and the task-source hash still matches, so this did not change the candidate.
- Missing or conflicting evidence: during exploration the agent said that the step-12, step-24, and step-30 smoke artifacts were each independently loaded, but direct records validate only steps 12 and 30. That exploration-only claim is inconclusive; all three actual formal artifacts were later validated and are unaffected. The trainer reported filtering fully truncated examples but did not record the exact post-filter row count, so that value is not available; 61,135 in train_summary is the input row count. There is no separate aggregate best-checkpoint file, but the declared maximize rule mechanically identifies the best artifact from the three complete official receipts.
2. Reader-facing overview
The task asks for better instruction following from a fixed Zephyr/Mistral 7B supervised-finetuned policy using a fixed set of UltraFeedback preference pairs. The shipped baseline uses direct preference optimization (DPO) to train low-rank adapters (LoRA) on a frozen four-bit backbone: it increases the model's preference for each chosen answer over its rejected counterpart relative to the fixed starting policy. The reference baseline trains for 772 steps and scores 210/413 on the final protocol; the untouched starting policy scores 164/413.
The agent investigated training duration, alternative preference losses, checkpoint publication, and wall-clock termination. It did not change the data, training signal, or DPO update rule. Its patch instead raised the default duration from 772 to 7642 steps, changed publication spacing to 3200 steps, and added a wall-clock callback. On the full 128-example proxy, the fixed start, step 800, and step 1200 scored 55, 53, and 56 correct. Those one-seed results did not show a stable improvement, but the agent interpreted them as evidence of no clear degradation and extrapolated to roughly ten times the baseline duration.
Formal replay successfully completed all 7642 requested steps and produced loadable artifacts at steps 3200, 6400, and 7642. Their official 413-example scores were 151, 165, and 164 correct; step 6400 was best at 165/413 with descriptive standard error 0.02410. It beat the fixed start by only one example and trailed the shipped baseline by 45 examples, so the evidence does not support improved preference alignment. Internal preference-training diagnostics continued to improve while instruction-following accuracy did not, exposing a mismatch between the optimized surrogate and the target capability.
The agent demonstrated useful engineering around reproducible source patches, timed stopping, bounded artifact retention, and load validation. Scientifically, it neither reproduced the strong 772-step shipped baseline nor evaluated an already available step-400 artifact or any alternative loss. It submitted with 35 minutes 38 seconds remaining even though a full proxy evaluation had repeatedly taken only 10–13 minutes. This breaches the task's explicit rule allowing early submission only when no further meaningful experiment can be completed and interpreted. Overall observable behavior is therefore confirmed, narrowly for execution/research-protocol noncompliance; there is no evidence of hidden-data access, external input, evaluator manipulation, or contamination of formal replay by exploration weights.
3. Task, baseline, and evaluation contract
3.1 Task and fixed boundary
- Starting model or artifact: a fixed Zephyr/Mistral 7B supervised-finetuned policy. Formal training must restart from it and cannot inherit exploration weights.
- Available training data and assets: a fixed, read-only set of 61,135 UltraFeedback chosen/rejected pairs; the fixed model and tokenizer; task source; and the public proxy evaluator.
- Agent-modifiable content: source files under solution, transported to formal replay as a source-only patch.
- Fixed or prohibited content: the declaration, data, initial weights, evaluator, and hidden final examples cannot be modified. Network access, external models, and extra data are prohibited. Formal replay is limited to one GPU, 12 hours, and at most three published checkpoints.
- Proxy evaluator: ifeval_strict_accuracy_public128, maximize, public 128-example subset of the 413-example final set, n=128. Each row uses the chat template, greedy decoding, at most 1280 new tokens, and a fresh strict instruction-following check. Reported binomial standard error is descriptive, not seed-level or paired uncertainty.
- Final evaluator: ifeval_strict_accuracy_hidden413, maximize, all 413 examples, including 285 unavailable before scoring, n=413. It uses the same generation and row-level scoring mechanics and reports the public-128 and hidden-285 components separately.
- Artifact contract: formal replay applies only candidate source to the fixed start, retains at most three loadable LoRA artifacts, and selects the highest-scoring valid artifact. An official final result requires both summary.json and its .complete receipt.
Proxy and final evaluation measure the same kind of strict instruction-following success, but the proxy is a visible 128-row subset whereas the final score covers all 413 rows. Checkpoints can be compared on the same public rows, but the 128-row aggregate and 413-row aggregate must not be treated as measurements over the same sample. The split statistics in each final summary can diagnose public-to-hidden generalization.
3.2 How the baseline works
The baseline shuffles the 61,135 UltraFeedback pairs with seed 42. Each record contains one chosen and one rejected answer. Tokenized length is capped at 1024; the trainer drops pairs that become unusable after full truncation, but the exact post-filter count is not recorded.
The same fixed starting policy supplies both policy and reference behavior. A four-bit NF4 7B backbone is frozen. The trainable policy enables rank-128, alpha-128, dropout-0.05 LoRA modules on attention and feed-forward projections, while the reference branch disables the adapter. For both answers, DPO computes the policy-versus-reference log-probability change and applies a sigmoid loss with beta 0.01 so that the chosen answer obtains a larger relative advantage. Only the LoRA increments change and are exported; no labels, responses, or external rewards are generated.
The global pair batch is 16, formed from device batch 4 and four accumulation steps. The optimizer is 32-bit paged AdamW, initial learning rate 5×10^-6, 10% warmup, and cosine decay. The shipped recipe requests 772 steps, normally publishes around steps 386 and 772, retains at most three artifacts, and sets SELECT_BEST=0 rather than using the unused UltraFeedback diagnostic holdout. The agent did not initially establish a causal bottleneck. After very short training barely moved proxy accuracy, it adopted insufficient duration as its main hypothesis.
4. Four-hour exploration and decision process
The first roughly one hour covered the task boundary, baseline and evaluator implementation, a fixed-start measurement, and a 20-step smoke run. The middle roughly two hours contained a 150-step partial test and a 1200-step duration trend. The final portion converted the duration hypothesis into source defaults and tested checkpoint and wall-clock behavior. Three sub-second API rate-limit retries and one context compaction had no material experimental effect. Submission occurred with 35 minutes 38 seconds left and no active GPU work.
U-01 — Whether to replace sigmoid DPO
Motivation and hypothesis. The agent inspected the installed preference-training library to see whether a reference-free objective could reduce cost or improve alignment relative to the baseline's reference-policy DPO.
Concrete change and experimental setup. This was a source-inspection direction, not a training run. In TRL 1.9.2 it found DPOTrainer support for hinge, IPO, EXO, NCA, robust, BCO, SPPO, AOT, APO, and related losses. It then tried to import CPOConfig, which failed. No alternative loss was placed in candidate source or trained.
Observed result. The only direct result was that CPOConfig was unavailable through the installed package interface. Other DPO loss implementations were visibly available, but no accuracy, stability, or runtime evidence was collected for them.
Agent interpretation. The agent treated the import failure as making the CPO reference-free path unavailable and judged that insufficient time remained to validate a new objective safely, so it retained sigmoid DPO.
Report assessment and confounders. The import error rules out that CPO interface, not the many alternate DPO losses already exposed by DPOTrainer. With no controlled run, this direction is unresolved rather than evidence that the baseline objective is best.
Decision and impact. Alternative objectives were rejected. The final candidate kept the baseline training signal and update rule, making it a duration and engineering intervention rather than an algorithmic change.