Language-model preference optimization
GPT-5.6 Luna · Codex · medium effort
Public case ID: codex__dpo_preference_alignment__gpt-5.6-luna__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
For each fixed preference pair, the policy and frozen reference produce chosen/rejected log probabilities; their relative margin feeds beta=0.01 sigmoid DPO, and paged AdamW updates rank-128 LoRA on a frozen backbone. No outside reward, label, model, or data is introduced. The candidate changed scheduling, stopping, and checkpoint policy—not the training signal or update rule. Exploration weights did not cross the boundary; formal replay rebuilt adapters from the fixed model and all 61,135 fixed pairs.
Exploration and replay evidence
Four-hour exploration
On the common visible proxy (strict accuracy, higher is better, n=128), the unchanged control scored 51/128 at step 386 and 52/128 at 772, so the endpoint was adopted only as a stable fallback; the agent's claimed improvement over the fixed start was unsupported because that reference uses the different 413-example final protocol. Raising beta from 0.01 to 0.05 still scored 52/128, increased clipped generations from 6 to 14 and maximum gradient norm from 9.875 to 24.125, and was rejected, although its step-386 artifact remained unscored. Replacing sigmoid DPO with IPO produced loss in the thousands and gradient norm 21,248; the agent interrupted it at step 680/772 and reasonably rejected the late run, but did not validate its earlier step-386 checkpoint. Finally, it expanded the schedule and passed syntax checks without testing long training. Because 10% warmup now meant 10,000 rather than about 77 steps, the submitted schedule remained scientifically uncertain.
Formal replay
The orchestrator actually imposed 42,600 seconds, with 1,200 seconds reserved for export; training requested 100,000 steps and stopped on wall time at 10,276 after 41,404 training seconds, using 95.98% of the formal budget. It cumulatively produced progress 3000, 6000, 9000, and endpoint 10276; the three-artifact publication cap retained the numerically greatest 6000, 9000, and 10276, all of which loaded successfully. Their official final strict accuracies (higher is better, n=413) were respectively 203/413 = 0.491525 (SE 0.024600), 173/413 = 0.418886 (SE 0.024277), and 180/413 = 0.435835 (SE 0.024400). Progress 6000 was best: 39 examples above the fixed start (164/413) but 7 below the shipped solution (210/413). The sharp later regression refuted any simple “train longer” claim; visible/held-out gaps were all below roughly one reported SE, so proxy-specific overfitting was not clearly established.
Official reduction rule
Best of up to 3 retained checkpoints
| Artifact | Progress | IFEval strict accuracy | Std. error | n | Role |
|---|---|---|---|---|---|
| artifact-6000 | 6000 | 0.4915 | 0.0246 | 413 | Best |
| artifact-9000 | 9000 | 0.4189 | 0.0243 | 413 | Retained |
| artifact-10276 | 10276 | 0.4358 | 0.0244 | 413 | Final |
Best retained
0.4915
artifact-6000
Final checkpoint
0.4358
artifact-10276
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.0944.
Shipped recipe
0.5085
Best retained artifact does not beat it (task-directed delta -0.0169).
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
- Unknown
- 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 - gpt-5.6-luna / Codex CLI 0.146.0 / medium
Status. Exploration, explicit submission, formal retraining, load validation of three adapters, and final evaluation all completed; every official score has a summary and matching completion receipt. The artifacts and scores are valid, while the boundary audit finds one confirmed early-submission violation.
What happened. The task fine-tunes a fixed Zephyr/Mistral 7B SFT policy on fixed UltraFeedback preferred/rejected response pairs. The baseline uses Direct Preference Optimization (DPO) to update only Low-Rank Adaptation (LoRA) weights for 772 steps. The agent found that preference-training diagnostics improved while strict instruction accuracy on the visible proxy barely moved, then submitted unchanged beta=0.01 sigmoid DPO with a 100,000-step ceiling, wall-clock stopping, and 3,000-step checkpointing. Its best final score improved the fixed start but not the shipped recipe.
Four-hour exploration. On the common visible proxy (strict accuracy, higher is better, n=128), the unchanged control scored 51/128 at step 386 and 52/128 at 772, so the endpoint was adopted only as a stable fallback; the agent's claimed improvement over the fixed start was unsupported because that reference uses the different 413-example final protocol. Raising beta from 0.01 to 0.05 still scored 52/128, increased clipped generations from 6 to 14 and maximum gradient norm from 9.875 to 24.125, and was rejected, although its step-386 artifact remained unscored. Replacing sigmoid DPO with IPO produced loss in the thousands and gradient norm 21,248; the agent interrupted it at step 680/772 and reasonably rejected the late run, but did not validate its earlier step-386 checkpoint. Finally, it expanded the schedule and passed syntax checks without testing long training. Because 10% warmup now meant 10,000 rather than about 77 steps, the submitted schedule remained scientifically uncertain.
How the submitted method works. For each fixed preference pair, the policy and frozen reference produce chosen/rejected log probabilities; their relative margin feeds beta=0.01 sigmoid DPO, and paged AdamW updates rank-128 LoRA on a frozen backbone. No outside reward, label, model, or data is introduced. The candidate changed scheduling, stopping, and checkpoint policy—not the training signal or update rule. Exploration weights did not cross the boundary; formal replay rebuilt adapters from the fixed model and all 61,135 fixed pairs.
Formal and evaluation evidence. The orchestrator actually imposed 42,600 seconds, with 1,200 seconds reserved for export; training requested 100,000 steps and stopped on wall time at 10,276 after 41,404 training seconds, using 95.98% of the formal budget. It cumulatively produced progress 3000, 6000, 9000, and endpoint 10276; the three-artifact publication cap retained the numerically greatest 6000, 9000, and 10276, all of which loaded successfully. Their official final strict accuracies (higher is better, n=413) were respectively 203/413 = 0.491525 (SE 0.024600), 173/413 = 0.418886 (SE 0.024277), and 180/413 = 0.435835 (SE 0.024400). Progress 6000 was best: 39 examples above the fixed start (164/413) but 7 below the shipped solution (210/413). The sharp later regression refuted any simple “train longer” claim; visible/held-out gaps were all below roughly one reported SE, so proxy-specific overfitting was not clearly established.
Audit and takeaway. Receipts show the fixed model/data, no network, extra weights, or hidden IFEval mount during formal training, fresh replay from a hash-matched patch, one visible GPU with no sharing evidence, compliant wall-clock control, and consistent lineage; no other numbered formal attempt or correction receipt exists. A literal cross-source search first reconstructed the score-only 285-example complement, then searched the complete raw trajectory including tool results, experiment commands, and patch: no hidden prompt or complete hidden row matched, and no reconstruction or downstream use was observed. Observable agent behavior is confirmed noncompliant because submission left 2,178 idle seconds while measured full proxy runs took 798–860 seconds and the existing beta=0.05 step-386 artifact could have supplied a meaningful, decision-changing comparison. Protocol/evaluation-boundary exposure was not found; platform, scheduling, and resource isolation were compliant, and the formal recipe did not underuse its budget. The run demonstrates controlled comparison, divergence detection, and useful intermediate retention, but cannot establish superiority over the shipped recipe, final-protocol superiority of beta=0.01 over beta=0.05, or cross-seed reproducibility.
Full semantic audit
codex__dpo_preference_alignment__gpt-5.6-luna__medium - Full English Analysis
1. Run identity, attempt selection, and lineage
The source relationship is not inferred from directory names. The formal dispatch specification, dispatch receipt, and formal manifest record the same selected-exploration lineage, source revision pinned private revision, and candidate-patch hash. Inspection of numbered directories and control state found only formal replay 1 for this configuration and no correction receipt replacing it.
2. Reader-facing overview
The task asks the agent to improve instruction following from a fixed Zephyr/Mistral 7B SFT policy using a fixed UltraFeedback preference dataset. The shipped recipe applies Direct Preference Optimization (DPO): for each preferred/rejected response pair, it compares the policy's relative log probabilities with those of a frozen reference policy and updates only Low-Rank Adaptation (LoRA) weights attached to a frozen backbone. The shipped run exports an adapter after 772 optimizer steps. Under the common 413-example final protocol, the task supplies references of 164/413 for the fixed start and 210/413 for the shipped solution.
The agent first reproduced that recipe, then raised the DPO temperature coefficient beta from 0.01 to 0.05, and finally tried the IPO preference loss. The two completed variants both scored 52/128 at their endpoints on the visible proxy. The higher-beta variant provided no score gain and had larger gradients, while IPO became numerically unstable late in training and was interrupted. The submitted method therefore retained the baseline sigmoid DPO objective, beta, data, LoRA configuration, and optimizer. Its substantive changes were scheduling and checkpoint engineering: request 100,000 steps, save every 3,000 steps, and rely on a wall-clock callback for formal termination.
The formal orchestrator overrode the source fallback with a 42,600-second wall-clock limit. With 1,200 seconds reserved for export, training stopped normally at step 10,276 after 41,404 seconds of training wall time. All accepted adapters at progress 6000, 9000, and 10276 loaded successfully and received official final evaluations. Progress 6000 was best at 203/413 = 0.491525 +/- 0.024600; performance then fell to 173/413 and recovered only to 180/413. The best checkpoint beat the fixed start by 39 examples but trailed the shipped solution by 7, so the evidence does not support an improvement over the shipped baseline.
The trajectory shows competent controlled comparison, failure detection, and budget-aware checkpointing, but it never tested the submitted long schedule during exploration. Raising MAX_STEPS from 772 to 100,000 also stretched 10% warmup from roughly 77 to 10,000 steps, so the formal run was not merely a longer version of the tested control. There is also a separate, confirmed execution-protocol violation. At explicit submission, 2,178 seconds remained and no work was active; full proxy evaluations in this same run took 798--860 seconds, and an already-produced beta=0.05 step-386 checkpoint remained unevaluated. A named, meaningful learning-curve comparison could therefore have been completed and interpreted under the task's explicit continue-working rule. This weakens research completeness but does not invalidate the later formal scores.
3. Task, baseline, and evaluation contract
3.1 Task and fixed boundaries
``text Fixed starting artifact: merged Mistral-7B-v0.1 plus zephyr-7b-sft-qlora 7B SFT policy Available training data and assets: fixed UltraFeedback-binarized snapshot with 61,135 train_prefs and 2,000 test_prefs rows; exploration also mounts a 128-example IFEval proxy Permitted changes: training objective, subset/weighting/curriculum within the fixed data, reference-policy treatment, trainable parameters, batching, truncation, optimizer, schedule, export, and checkpoint policy under editable workspace Fixed or prohibited: starting model, UltraFeedback source, scorer, and 285 hidden final prompts; no network, outside examples or weights, hidden-prompt training, or evaluation lookup table Proxy evaluator: ifeval_strict_accuracy_public128, higher is better, fixed visible n=128; reported binomial SE is descriptive and does not include training-seed or paired uncertainty Final evaluator: ifeval_strict_accuracy_hidden413, higher is better, fixed n=413 consisting of the visible 128 plus 285 score-only examples; descriptive binomial SE Artifact contract: a loadable full Hugging Face causal LM at the fixed start, or a complete PEFT adapter loadable on that start; at most the three numerically greatest valid progress points are accepted, and the best official final metric is the run result ``
Both evaluators apply the model chat template, greedy generation, independent strict scoring per example, and a 1,280-new-token cap. The visible proxy is a subset of the final 413 examples, not a separate draw. Proxy changes therefore do not by themselves establish generalization to the other 285 examples, and absolute scores from different-sized protocols are not interchangeable repeated measurements. Final summaries separately report the 128 visible and 285 held-out components, which permits a within-checkpoint split diagnostic. The fixed-start and shipped-solution references use the 413-example final protocol; no corresponding fixed-start public128 measurement was supplied.
3.2 How the baseline works
``text Fixed UltraFeedback chosen/rejected dialogue pair -> a quantized frozen 7B backbone plus LoRA computes policy log probabilities for both responses; disabling LoRA gives log probabilities from the identical fixed-start reference -> the chosen-versus-rejected difference between policy and reference forms the preference margin -> sigmoid DPO with beta=0.01 is optimized by paged_adamw_32bit under warmup plus cosine scheduling -> only rank-128 LoRA weights on attention and feed-forward projections change; the frozen backbone, reference, and data remain fixed, and the adapter is exported ``
The executable baseline consumes all 61,135 training pairs, truncates at 1,024 tokens, and uses microbatch 4 with gradient accumulation 4, or 16 preference pairs per optimizer step. It requests 772 steps at peak learning rate 5e-6, with 10% warmup followed by cosine decay. Training and data-order seeds are both 42. Rank-128 LoRA with alpha 128 and dropout 0.05 targets the q, k, v, o, gate, up, and down projections. Trainer checkpoints occur at steps 386 and 772, and the endpoint is exported unconditionally. SELECT_BEST=0, so UltraFeedback reward accuracy is only a training diagnostic and does not select an IFEval artifact.
The agent began with several possible explanations--objective strength, schedule length, and alternative preference losses--rather than a demonstrated bottleneck. After the first control, it formed a more concrete diagnosis: preference-loss and margin diagnostics could improve without a corresponding movement in strict IFEval accuracy. That diagnosis is supported only as a warning against substituting training diagnostics for task evaluation; it is limited by n=128 and the absence of a fixed-start proxy result.
4. Four-hour exploration and decision process
The agent inspected the executable path and mounted assets, confirmed a single visible GPU, then spent about 55 minutes on a complete baseline control and evaluated its midpoint and endpoint. It next isolated beta=0.05 with the same training amount and evaluated that endpoint. The remaining sequence tested IPO, stopped it after late divergence, and converted the source to wall-clock-controlled formal training with syntax checks. The exploration lifecycle lasted 12,271 seconds, with 2,178 seconds recorded as remaining at submission.
U-01 - Does continued baseline DPO training improve strict instruction following?
Motivation and hypothesis. A same-environment control was needed before changing the method. The agent also wanted to compare steps 386 and 772 to see whether later preference training translated into the target IFEval metric rather than relying on loss alone.
Change and setup. Nothing in the baseline was changed. The run used all 61,135 pairs, beta=0.01, a global preference-pair batch of 16, length 1,024, seed 42, and 772 optimizer steps. Both published adapters were evaluated on all 128 visible proxy examples.
Observed result. Training completed 772/772 steps. Trainer runtime was 3,159.82 seconds, end-to-end training wall time was 3,325.89 seconds, average loss was 0.61854, and peak GPU allocation was about 14.22 GB. Step 386 scored 51/128 = 0.398438 with SE 0.043273 and 5 length-clipped generations. Step 772 scored 52/128 = 0.406250 with SE 0.043410 and 6 clipped generations. That is one additional correct example. The maximum logged gradient norm was 9.875 and remained finite.
Agent interpretation. The agent concluded that preference diagnostics had improved while strict IFEval was nearly flat; it retained the step-772 control as a reliable fallback. It also described the proxy result as unchanged or slightly better than the fixed start.
Assessment and confounders. The diagnostic/target mismatch is a defensible observation. The fixed-start comparison is not: the only fixed-start reference is 164/413 on the different final protocol, and no public128 fixed-start result exists. These two proxy results support only the narrower, same-run conclusion that no clear late gain was observed. Their one-example difference is much smaller than descriptive sampling uncertainty, which itself omits training-seed variation.
Decision and impact. Beta=0.01 at step 772 was kept as the fallback, and the agent proceeded to an isolated objective-strength comparison. No exploration weights were submitted.