Language-model preference optimization
GPT-5.6 Luna · Codex · max effort
Public case ID: codex__dpo_preference_alignment__gpt-5.6-luna__max
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
Baseline flow is fixed pairs → policy/reference sequence probabilities → pairwise sigmoid DPO → LoRA update. Candidate flow uses the same computation and data but adds 0.1 times chosen-token negative log-likelihood to DPO at weight 1.0; no generated labels, synthetic data, outside model, or prior reasoning enters training. The algorithmic objective, schedule, publication engineering, and checkpoint policy changed; the backbone, reference, full data, beta 0.01, learning rate 5e-6, batch structure, and seed 42 remained fixed. The winning exploratory objective was submitted, but its 200-step cosine schedule became…
Exploration and replay evidence
Four-hour exploration
The common proxy was higher-is-better ifeval_strict_accuracy_public128; all probes used one training seed. The fixed start passed 55/128, while locally trained baseline DPO passed 51/128, so baseline improvement was unsubstantiated. Pure chosen-answer SFT reached 54/128: it recovered relative to local DPO but did not beat the anchor, so it became an auxiliary signal rather than the sole objective. Length-normalized DPO produced unusually weak gradients and 12/32, so that setting was rejected. Filtering to 32,388 high-score, high-margin pairs yielded healthy training preference accuracy but only 9/32; the agent rejected filtering and restored all data. Mixed DPO and SFT reached 58/128, SE 0.043999, the best complete proxy, and was adopted. Crucially, both nominal mixed variants' receipts show the same 1.0:0.1 weights, despite the trajectory calling the first “equal weight”; this was replication, not a weight comparison, and its three-row lead over the anchor is only directional evidence. A launcher typo introduced by the agent initially broke publication after successful baseline training, but intact adapters were recovered and the bug was fixed. A two-step smoke test then verified long-step safety ceiling, wall-clock stopping, epoch saves, terminal export, and loading. Submission left 197 seconds, less than the fastest measured meaningful 32-example evaluation at 218.536 seconds.
Formal replay
Fresh replay completed 10,218 of a 1,000,000-step safety ceiling, or 2.741 epochs. It used 41,465/43,200 seconds (95.98%) and stopped at the 41,400-second wall-clock threshold, not a short fixed endpoint. All retained adapters loaded. Official higher-is-better ifeval_strict_accuracy_hidden413 results were:
| Checkpoint | Score, n=413 | Uncertainty / diagnostic | Status | |---|---:|---|---| | 3728, 1.000 epoch | 205/413 = 0.496368 | SE 0.024603; 45 clipped | valid | | 7456, 2.000 epochs | 213/413 = 0.515738 | SE 0.024591; 15 clipped | valid | | 10218, 2.741 epochs | 220/413 = 0.532688 | SE 0.024551; 26 clipped | best |
The official metric improved monotonically. Best performance is descriptively 56 rows above the fixed-start reference and 10 above the shipped 210/413 baseline under the same final protocol. Exploration proxy and final totals are not directly comparable; one seed, no paired baseline receipt, and simultaneous objective/schedule changes preclude significance or attribution to the SFT term alone.
Official reduction rule
Best of up to 3 retained checkpoints
| Artifact | Progress | IFEval strict accuracy | Std. error | n | Role |
|---|---|---|---|---|---|
| artifact-3728 | 3728 | 0.4964 | 0.0246 | 413 | Retained |
| artifact-7456 | 7456 | 0.5157 | 0.0246 | 413 | Retained |
| artifact-10218 | 10218 | 0.5327 | 0.0246 | 413 | Best · final |
Best retained
0.5327
artifact-10218
Final checkpoint
0.5327
artifact-10218
Checkpoint rule
Best is final
Win/loss versus the recipe is unchanged.
Reference comparison
Fixed start
0.3971
Best retained artifact beats it by 0.1356.
Shipped recipe
0.5085
Best retained artifact beats it by 0.0242.
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 - gpt-5.6-luna / Codex CLI 0.146.0 / max
Status. Exploration, explicit submission, formal retraining, three artifact validations, and three official final evaluations completed; an earlier attempt failed a pre-agent storage gate. The DPO-plus-SFT recipe's best checkpoint scored 220/413 = 0.532688 on official strict instruction following.
What happened. The task starts from a fixed Zephyr/Mistral 7B SFT model and 61,135 UltraFeedback preference pairs. The baseline uses pair order in a sigmoid direct preference optimization (DPO) loss, with the adapter-disabled base as reference, and updates a rank-128 quantized LoRA adapter. The agent found failures in exact length, combined constraints, capitalization, and formatting, then added chosen-answer supervision at weight 0.1 to DPO at weight 1.0 and built a long wall-clock recipe.
Four-hour exploration. The common proxy was higher-is-better ifeval_strict_accuracy_public128; all probes used one training seed. The fixed start passed 55/128, while locally trained baseline DPO passed 51/128, so baseline improvement was unsubstantiated. Pure chosen-answer SFT reached 54/128: it recovered relative to local DPO but did not beat the anchor, so it became an auxiliary signal rather than the sole objective. Length-normalized DPO produced unusually weak gradients and 12/32, so that setting was rejected. Filtering to 32,388 high-score, high-margin pairs yielded healthy training preference accuracy but only 9/32; the agent rejected filtering and restored all data. Mixed DPO and SFT reached 58/128, SE 0.043999, the best complete proxy, and was adopted. Crucially, both nominal mixed variants' receipts show the same 1.0:0.1 weights, despite the trajectory calling the first “equal weight”; this was replication, not a weight comparison, and its three-row lead over the anchor is only directional evidence. A launcher typo introduced by the agent initially broke publication after successful baseline training, but intact adapters were recovered and the bug was fixed. A two-step smoke test then verified long-step safety ceiling, wall-clock stopping, epoch saves, terminal export, and loading. Submission left 197 seconds, less than the fastest measured meaningful 32-example evaluation at 218.536 seconds.
How the submitted method works. Baseline flow is fixed pairs → policy/reference sequence probabilities → pairwise sigmoid DPO → LoRA update. Candidate flow uses the same computation and data but adds 0.1 times chosen-token negative log-likelihood to DPO at weight 1.0; no generated labels, synthetic data, outside model, or prior reasoning enters training. The algorithmic objective, schedule, publication engineering, and checkpoint policy changed; the backbone, reference, full data, beta 0.01, learning rate 5e-6, batch structure, and seed 42 remained fixed. The winning exploratory objective was submitted, but its 200-step cosine schedule became constant learning rate after 500 warmup steps and was performance-tested only by a two-step smoke run before formal replay.
Formal and evaluation evidence. Fresh replay completed 10,218 of a 1,000,000-step safety ceiling, or 2.741 epochs. It used 41,465/43,200 seconds (95.98%) and stopped at the 41,400-second wall-clock threshold, not a short fixed endpoint. All retained adapters loaded. Official higher-is-better ifeval_strict_accuracy_hidden413 results were:
| Checkpoint | Score, n=413 | Uncertainty / diagnostic | Status | |---|---:|---|---| | 3728, 1.000 epoch | 205/413 = 0.496368 | SE 0.024603; 45 clipped | valid | | 7456, 2.000 epochs | 213/413 = 0.515738 | SE 0.024591; 15 clipped | valid | | 10218, 2.741 epochs | 220/413 = 0.532688 | SE 0.024551; 26 clipped | best |
The official metric improved monotonically. Best performance is descriptively 56 rows above the fixed-start reference and 10 above the shipped 210/413 baseline under the same final protocol. Exploration proxy and final totals are not directly comparable; one seed, no paired baseline receipt, and simultaneous objective/schedule changes preclude significance or attribution to the SFT term alone.
Audit and takeaway. Formal receipts match the fixed data, start, reference, and candidate-patch hash; only source crossed from exploration. Literal checking of evaluator-only hidden inputs against the complete raw trajectory including tool results, experiment commands, and patch found no hidden prompt, row, or boundary-delimited key, with a public prompt serving as a positive control. No network use, outside data or weights, evaluator modification, same-GPU outside process, or formal-budget underuse was found. Observable agent behavior is clean; protocol/evaluation-boundary exposure is none found; platform/scheduling/resource isolation has a confirmed defect in the initial storage gate, while the selected runs are compliant. The trajectory demonstrates a capable ablation-to-formal pipeline, but not robust identification of why the full recipe improved.
Full semantic audit
codex__dpo_preference_alignment__gpt-5.6-luna__max - Full English Analysis
1. Run identity, attempt selection, and lineage
2. Reader-facing overview
The task asks the coding agent to improve strict instruction following from a fixed merged Zephyr/Mistral 7B supervised-finetuning start and fixed UltraFeedback preference pairs. The shipped baseline performs direct preference optimization (DPO) through a quantized LoRA adapter: it raises the chosen answer relative to the rejected answer while the same base model with its adapter disabled supplies a fixed reference. Exploration may use a 128-example public proxy, whereas official final evaluation covers 413 examples; their headline scores are not directly interchangeable.
The agent remeasured the policy anchor and baseline, localized failures to length, combination, capitalization, and exact-format constraints, then tested four method directions: chosen-answer SFT, length-normalized DPO, high-confidence pair filtering, and DPO plus a small chosen-answer SFT term. The first three were not adopted alone because they were neutral, underpowered, or regressive. It submitted standard sigmoid DPO plus chosen-answer negative log-likelihood at weights 1.0:0.1, together with wall-clock-controlled long training and robust checkpoint publication.
Formal replay started fresh, completed 10,218 steps or 2.741 epochs, used 95.98% of the 12-hour phase budget, and stopped through its wall-clock callback rather than a short fixed endpoint. All three retained adapters loaded. Official final accuracy rose with progress from 205/413 to 213/413 and then 220/413; checkpoint-10218 scored 0.532688 with standard error 0.024551. That is descriptively 10 rows above the task's shipped 210/413 reference and 56 above the fixed start, but the single seed and absence of a paired baseline receipt do not establish significance or isolate causality.
Observable agent behavior is clean, and literal cross-source checking found no hidden final input in the trajectory, commands, or patch. No external data, added weights, network use, or explore-to-formal model contamination was found. There was a confirmed platform defect in the first pre-agent storage-gating attempt, while the selected exploration and formal runs had compliant single-GPU isolation. Scientifically, the main limitation is that the two nominal mixed-objective variants were actually the same configuration and the long constant-learning-rate schedule received only a two-step smoke test before submission.
3. Task, baseline, and evaluation contract
3.1 Task and fixed boundaries
``text Starting model or artifact: fixed-revision merged Zephyr/Mistral 7B SFT model Allowed training data and assets: fixed-revision 61,135-row UltraFeedback chosen/rejected dataset Agent-modifiable content: solution/run.sh, solution/train.py, training objective, schedule, and checkpoint-publication implementation Fixed or forbidden content: starting model, training data, hidden final inputs, evaluators, and fresh formal start; no network, external rows, or external pretrained weights Proxy evaluator: ifeval_strict_accuracy_public128 / higher is better / public subset / n=128 / binomial standard error reported Final evaluator: ifeval_strict_accuracy_hidden413 / higher is better / 128 public plus 285 held-out inputs / n=413 / binomial standard error reported Artifact contract: at most three valid numbered checkpoints; the highest official final score among valid artifacts wins ``
Both evaluators give an example credit only when every instruction constraint in its prompt passes. The proxy is the declared public subset of the final source; final evaluation adds 285 held-out examples and reports public-versus-held-out diagnostics. Although the per-example metric definition is shared, exploration models, formal checkpoints, sample sets, and run phases differ, so a public128 exploration score must not be subtracted from a hidden413 final score.
Task-package references under the final protocol are 164/413 (0.397094) for the fixed start and 210/413 (0.508475) for the shipped baseline. These are reference receipts, not paired reruns produced inside this trajectory.
3.2 How the baseline works
``text [UltraFeedback chosen/rejected answer pairs and the fixed starting model] -> [the policy with a quantized LoRA adapter scores both sequences; disabling the adapter gives fixed reference scores] -> [the dataset's chosen/rejected ordering supplies the preference target] -> [pairwise sigmoid DPO at beta 0.01, optimized with paged AdamW 32-bit under a cosine schedule and 10% warmup] -> [only rank-128 LoRA parameters over attention and feed-forward projections change; an adapter is exported] ``
The baseline uses all 61,135 pairs, maximum sequence length 1,024, microbatch four, gradient accumulation four, and a global batch of 16 pairs. It requests 772 steps and saves at steps 386 and 772. The four-bit backbone and the adapter-disabled reference stay frozen. The agent's concrete initial diagnosis was that the baseline did not improve the public proxy and that failures clustered in constraint-heavy families: the fixed start passed 55/128 while the locally trained baseline passed 51/128, with length, combined requirements, capitalization, and exact formatting prominent among failures.
4. Four-hour exploration and decision process
The selected run lasted from 11:54:00 to 15:51:23 UTC. Roughly the first 98 minutes went to contract inspection and anchor/baseline establishment, the next 88 minutes to four 200-step probes and partial evaluations, and the last 54 minutes to a full mixed-objective recheck, checkpoint-publication repair, formal recipe construction, smoke testing, and source audit. Explicit submission left 197 seconds, less than the fastest measured meaningful 32-example proxy evaluation in this run, 218.536 seconds.
U-01 - Does the baseline improve constraint-heavy instruction following?
Motivation and hypothesis. The agent first asked whether shipped DPO beat the fixed policy anchor and whether the residual failures suggested a targetable weakness.
Concrete change and experimental setup. It evaluated the fixed start on all 128 public examples, then trained the shipped recipe on all 61,135 pairs for 772 steps with seed 42 and evaluated the exported adapter on the same proxy.
Observed result. The fixed start scored 55/128 = 0.429688, SE 0.043755. Local DPO scored 51/128 = 0.398438, SE 0.043273. Training completed in 3,131.6 seconds with loss 0.618325. However, an agent-introduced AVE_UNIT typo in the launcher's publication block caused exit 127 after training; intact adapters at steps 386 and 772 were recovered, and publication and loading succeeded after the fix.
Agent interpretation. It concluded that pairwise preference training alone was not protecting exact instruction details and proposed a direct chosen-answer token objective.
Report assessment and confounders. Four rows on a single proxy run do not establish real degradation, but the result supplies no evidence of improvement. The publication error was an engineering failure introduced and corrected by the agent, not a failed training job.
Decision and impact. Standard DPO remained the comparison point. The agent moved to SFT, normalization, and filtering probes and made publication/loadability a pre-submission check.