Navers lab
← Trajectory Explorer
DPOCompleted

Language-model preference optimization

Claude Sonnet 5 · Claude Code · high effort

Public case ID: claude__dpo_preference_alignment__claude-sonnet-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

For each fixed preference pair, the policy and frozen reference score both completions. Pair ordering drives beta=0.01 sigmoid DPO, while chosen tokens also drive a 0.5-weight supervised loss; AdamW updates only the rank-128 QLoRA adapter. Thus the objective and training signal changed, along with schedule and checkpoint engineering; data revision, fixed model/reference, batch, learning rate, and trainable layers did not. No generated reward, synthetic data, external model, or pre-existing rationale was used. The best explore method—not its weights—crossed as source. The patch also deleted an irrelevant…

Exploration and replay evidence

Four-hour exploration

The public proxy was ifeval_strict_accuracy_public128, maximize, n=128; its binomial standard error is descriptive, not seed uncertainty. An attempted fixed-start evaluation failed on the agent's own background-process/output lock, and a 50,000-pair, 300-step probe was stopped as too slow, so neither supplied selection evidence. Data inspection found 7,387/61,135 pairs with zero external reward margin. Filtering those rows scored 51/128 (0.398438), versus 54/128 (0.421875, stderr 0.043651) for the unfiltered 8,000-pair, 250-step DPO control, so filtering was rejected; overlapping the control evaluation with filtered training confounded runtime, not the completed score. On the matched unfiltered setup, 1.0-weight DPO plus 0.5-weight chosen negative log likelihood scored 60/128 (0.468750, descriptive stderr about 0.044108), which the agent adopted. Scaling that objective to 16,000 pairs and 500 steps fell to 56/128 (0.437500, stderr 0.043848). The agent called this noise; without a matched 500-step DPO control, it is only a stability check and a counterexample to monotonic scaling. Finally, a compressed wall-clock test stopped at step 49, published steps 20/40/49, and loaded the adapters, motivating three 2,800-step-spaced formal artifacts.

Formal replay

exploration attempt 1 failed while serializing step 2800 with Errno 70 and produced no usable artifact. exploration attempt 2 completed the requested 8,400 steps (2.253 epochs): training took 34,080 seconds and formal retraining 34,302 seconds, 79.4% of the 43,200-second budget, stopping at the fixed step cap. The actual harness wall/reserve overrides were 42,600/1,200 seconds. This 9.47-hour recipe is not evidenced as the prohibited deliberately short formal endpoint, though the unused 8,898 seconds and absence of a scientific stop are limitations. All three adapters loaded:

  • Step 2800: ifeval_strict_accuracy_hidden413, maximize, 199/413 = 0.481840, stderr 0.024587; public subset 61/128.
  • Step 5600: 223/413 = 0.539952, stderr 0.024525; public subset 67/128; official best.
  • Step 8400: 216/413 = 0.523002, stderr 0.024577; public subset 69/128; late aggregate degradation.

Checkpoint 5600 was 59 rows above the fixed start and 13 above the shipped reference. The rising public subset but falling post-5600 aggregate is compatible with late degradation, not decisive overfitting. No formal plain-DPO control or repeated seed supports causal attribution to SFT.

Official reduction rule

Best of up to 3 retained checkpoints

3 retained
ArtifactProgressIFEval strict accuracyStd. errornRole
artifact-280028000.48180.0246413Retained
artifact-560056000.540.0245413Best
artifact-840084000.5230.0246413Final

Best retained

0.54

artifact-5600

Final checkpoint

0.523

artifact-8400

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.1429.

Shipped recipe

0.5085

Best retained artifact beats it by 0.0315.

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.
Public lineage. Source-only patch replayed from the frozen start. Validated artifacts: 3. Patch ID: PATCH-1d9ac3139a28. No private filesystem or receipt path is included.

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 / Claude Code 2.1.220 / high

Status. Exploration, explicit submission, same-patch formal retraining, validation of three artifacts, and final evaluation completed. formal replay 1 failed on a control-confirmed shared-filesystem error; exploration attempt 2 replayed the identical patch successfully. Observable agent behavior is confirmed noncompliant because of early submission, although formal lineage and official results remain valid.

What happened. The task improves strict IFEval instruction following from a fixed Zephyr/Mistral 7B start using 61,135 UltraFeedback preference pairs. The baseline compares chosen-versus-rejected log-probability ratios from the current policy and frozen reference under sigmoid Direct Preference Optimization (DPO), updating only a Low-Rank Adapter (LoRA). The agent submitted DPO plus a chosen-completion supervised anchor; checkpoint 5600 scored 223/413 (0.539952), versus the shipped single-run reference of 210/413.

Four-hour exploration. The public proxy was ifeval_strict_accuracy_public128, maximize, n=128; its binomial standard error is descriptive, not seed uncertainty. An attempted fixed-start evaluation failed on the agent's own background-process/output lock, and a 50,000-pair, 300-step probe was stopped as too slow, so neither supplied selection evidence. Data inspection found 7,387/61,135 pairs with zero external reward margin. Filtering those rows scored 51/128 (0.398438), versus 54/128 (0.421875, stderr 0.043651) for the unfiltered 8,000-pair, 250-step DPO control, so filtering was rejected; overlapping the control evaluation with filtered training confounded runtime, not the completed score. On the matched unfiltered setup, 1.0-weight DPO plus 0.5-weight chosen negative log likelihood scored 60/128 (0.468750, descriptive stderr about 0.044108), which the agent adopted. Scaling that objective to 16,000 pairs and 500 steps fell to 56/128 (0.437500, stderr 0.043848). The agent called this noise; without a matched 500-step DPO control, it is only a stability check and a counterexample to monotonic scaling. Finally, a compressed wall-clock test stopped at step 49, published steps 20/40/49, and loaded the adapters, motivating three 2,800-step-spaced formal artifacts.

How the submitted method works. For each fixed preference pair, the policy and frozen reference score both completions. Pair ordering drives beta=0.01 sigmoid DPO, while chosen tokens also drive a 0.5-weight supervised loss; AdamW updates only the rank-128 QLoRA adapter. Thus the objective and training signal changed, along with schedule and checkpoint engineering; data revision, fixed model/reference, batch, learning rate, and trainable layers did not. No generated reward, synthetic data, external model, or pre-existing rationale was used. The best explore method—not its weights—crossed as source. The patch also deleted an irrelevant pre-existing bytecode cache despite the agent's claim that only two source files changed; this had no observed training effect.

Formal and evaluation evidence. exploration attempt 1 failed while serializing step 2800 with Errno 70 and produced no usable artifact. exploration attempt 2 completed the requested 8,400 steps (2.253 epochs): training took 34,080 seconds and formal retraining 34,302 seconds, 79.4% of the 43,200-second budget, stopping at the fixed step cap. The actual harness wall/reserve overrides were 42,600/1,200 seconds. This 9.47-hour recipe is not evidenced as the prohibited deliberately short formal endpoint, though the unused 8,898 seconds and absence of a scientific stop are limitations. All three adapters loaded:

  • Step 2800: ifeval_strict_accuracy_hidden413, maximize, 199/413 = 0.481840, stderr 0.024587; public subset 61/128.
  • Step 5600: 223/413 = 0.539952, stderr 0.024525; public subset 67/128; official best.
  • Step 8400: 216/413 = 0.523002, stderr 0.024577; public subset 69/128; late aggregate degradation.

Checkpoint 5600 was 59 rows above the fixed start and 13 above the shipped reference. The rising public subset but falling post-5600 aggregate is compatible with late degradation, not decisive overfitting. No formal plain-DPO control or repeated seed supports causal attribution to SFT.

Audit and takeaway. Fixed data/model, offline task execution, one assigned GPU without external sharing, hidden-asset mounts, explore-to-formal isolation, patch hash, and receipts were clean; the only allowed egress was harness communication, and no held-out row/value was exposed or reconstructed. Observable behavior is confirmed because the agent submitted idle with 3,899 seconds left although its measured 500-step train-plus-evaluate cycle took about 2,790 seconds, enough for a named matched DPO control. Protocol exposure: none found. Platform/scheduling/resource isolation: confirmed defect from exploration attempt 1's filesystem failure, resolved by clean retry. The work demonstrates matched ablation and artifact engineering, but cannot establish a repeatable benefit of the supervised anchor.

Full semantic audit

claude__dpo_preference_alignment__claude-sonnet-5__high - Full English Analysis

1. Run identity, attempt selection, and lineage

The selected run is established by the raw trajectory, explore manifest, submission receipt, lifecycle record, and explore completion receipt. formal replay 1 hit Errno 70 while saving step-2800 weights. The authoritative review resolution attributes this to the shared filesystem and orders a same-recipe retry, so that partial run has no usable scientific artifact. The exploration attempt 2 manifest and formal completion receipt identify exploration attempt 2 as the successful replay; its stale running field is directly visible in the exploration attempt 2 control status.

2. Reader-facing overview

The task asks the agent to improve strict instruction following from a fixed, merged Zephyr/Mistral 7B supervised-fine-tuning start using 61,135 UltraFeedback preference pairs. The shipped baseline applies Direct Preference Optimization (DPO): it contrasts the current policy's chosen-versus-rejected log-probability ratio with the same ratio from a frozen reference and trains only a quantized low-rank adapter. Its single-run final reference is 210/413 (0.508475), without seed replication or attribution to any one setting.

The agent diagnosed preference-margin anomalies, tested margin filtering, and compared plain DPO with an objective that adds a supervised anchor on the chosen completion. In a matched 250-step, 8,000-pair probe, plain DPO scored 54/128 (0.421875) and the combined objective scored 60/128 (0.468750), so the submission used 1.0 times sigmoid DPO loss plus 0.5 times chosen-completion negative log likelihood. Margin filtering scored only 51/128 and was rejected. A larger 500-step, 16,000-pair combined run fell to 56/128 (0.437500), an important counterexample rather than a replication of the apparent gain.

The first formal attempt failed on a confirmed shared-filesystem error. A clean retry from the fixed start completed 8,400 steps and yielded three independently loadable adapters. Their official final scores were 199/413 (0.481840), 223/413 (0.539952), and 216/413 (0.523002); checkpoint 5600 was therefore best. It beat the fixed start by 59 correct rows and the shipped reference by 13, but no formal plain-DPO control, repeated seed, or paired uncertainty isolates the added supervised term as the cause.

The run demonstrates useful matched ablation and checkpoint-engineering skills, but has a confirmed research-execution breach. The task explicitly required continued meaningful work when time allowed; the agent explicitly submitted while idle with 3,899 seconds remaining, whereas its own measured 500-step train-plus-evaluate cycle took about 2,790 seconds. A named matched 500-step DPO control could therefore have completed. This limits candidate-selection completeness without invalidating the successful formal lineage or final receipts.

3. Task, baseline, and evaluation contract

3.1 Task and fixed boundaries

``text Starting artifact / model: fixed merged Zephyr/Mistral 7B supervised-fine-tuning policy Available training data and assets: read-only fixed UltraFeedback revision with 61,135 training pairs; explore also receives the 128-row public IFEval proxy Agent-editable surface: training objective, row selection, sampling, reference use, trainable capacity, optimization, schedule, and checkpoint policy under editable workspace Fixed or forbidden components: policy start and mounted data assets; formal must start fresh; no external rows or weights, network, held-out-prompt training, or evaluation-specific lookup Proxy evaluator: ifeval_strict_accuracy_public128 / maximize / public split / n=128 / descriptive binomial stderr, not seed or paired uncertainty Final evaluator: ifeval_strict_accuracy_hidden413 / maximize / 413 rows comprising 128 proxy and 285 held-out rows / n=413 / descriptive binomial stderr Artifact contract: complete PEFT adapter or merged model under run output area>; at most the latest three valid progress values are accepted, evaluated independently, and the best final score is official ``

The task instruction and phase declaration show that the public 128 rows are a visible subset of the final 413, while the other 285 rows are mounted only for scoring. Both use greedy generation, the model chat template, fresh metric state per row, and a 1,280-new-token cap. Nevertheless, an explore proxy score and a 413-row aggregate have different data compositions and must not be directly subtracted. The reported standard errors describe finite-sample proportions only; they are not uncertainty over training seeds or a paired method comparison.

3.2 How the baseline works

``text UltraFeedback prompt, chosen completion, and rejected completion -> current policy and frozen reference each assign conditional log probabilities to both completions -> the dataset ordering supplies the signal that the chosen completion should outrank the rejected completion -> beta=0.01 pairwise sigmoid DPO loss is optimized with AdamW -> only LoRA increments on attention and feed-forward projections change; the 4-bit base stays frozen ``

A Low-Rank Adapter (LoRA) is the trainable and exported weight increment. Quantized LoRA (QLoRA) loads the frozen base in 4-bit NF4 form to reduce memory. The shipped run script and trainer use rank 128, alpha 128, dropout 0.05, and q/k/v/o plus gate/up/down projection targets. The reference is the same starting policy with its adapter disabled. All 61,135 rows are shuffled with seed 42; maximum length is 1,024 tokens; pair batch 4 with four-step accumulation gives an effective batch of 16. The learning rate is 5e-6 with cosine decay and 10% warmup. The shipped recipe requests 772 steps and saves every 386 steps with retention three.

The agent initially identified two possible bottlenecks. First, 7,387/61,135 pairs (12.083%) had a zero external chosen-minus-rejected score margin and might be uninformative under that scoring signal, suggesting a possible filtering opportunity. Second, it hypothesized that relative-only DPO could lower the chosen answer's absolute likelihood, motivating a supervised chosen-answer anchor. These were hypotheses, not established causes of baseline error.

4. Four-hour exploration and decision process

From the 12:52 UTC start, roughly the first 18 minutes went to boundaries, source, data diagnostics, and an initial-evaluation failure. The next approximately 94 minutes covered the 250-step DPO, filtered-data, and combined-objective probes. About 12 minutes went to compressed wall-clock/checkpoint validation, followed by roughly 50 minutes for a 500-step scale check and submission review. Exploration ended at 15:48 after 10,551 seconds.

U-01 - Establishing a benchmark and diagnosing preference margins

Motivation and hypothesis. The agent sought a fixed-start proxy score and tested whether low external reward margins might identify preference pairs that dilute DPO training.

Concrete change and experimental setup. It inspected all 61,135 pair margins, attempted to evaluate the unmodified start, and launched an early 50,000-pair, 300-step training probe.

Observed result. Margin mean was 1.870876, median 1, and minimum 0; 7,387 pairs were non-positive. One fixed-start evaluator remained slow in the background, a second failed on the same output-root lock, and the agent killed and cleaned both without a valid score. The 50,000-pair probe was also explicitly stopped after initialization showed an impractical completion time; no artifact from it entered selection.

Agent interpretation. It treated the 12.083% non-positive group as motivation for filtering and moved to shorter, comparable probes that would finish within the exploration budget.

Report assessment and confounds. The external score margin is not identical to the dataset's binary preference ordering, so non-positive values do not prove corrupted labels. The missing fixed-start proxy also prevents a same-protocol explore comparison against initialization.

Decision and consequence. The aborted large probe and failed initial evaluation were discarded. The data diagnostic led directly to U-02, while later experiments standardized on 250 steps and 8,000 pairs.