Navers lab
← Trajectory Explorer
DDPOCompleted

Diffusion aesthetic alignment

Claude Opus 5 · Claude Code · high effort

Public case ID: claude__ddpo_sd15_aesthetic__claude-opus-5__high

Recipe shift

What the agent changed

Shipped baseline

Sample 50-step diffusion trajectories, score images with a fixed aesthetic model, and update LoRA with normalized-reward DDPO/PPO.

Starting artifact: Stable Diffusion v1.5 with trainable attention LoRA

Candidate algorithm

Each update draws eight prompts and random latents, samples current SD1.5+LoRA with 20-step DDIM, guidance 5.0, and eta=0, detaches the first 19 steps, and backpropagates negative mean aesthetic reward through the last step, VAE, and frozen CLIP/MLP. AdamW with cosine learning rate updates only 797,184 rank-4 attention-LoRA parameters. Thus the update rule, training signal, sampling, hyperparameters, schedule, engineering, and checkpoint policy all changed; fixed weights, prompts, scorer assets, and LoRA format did not. Exploration weights were excluded, and formal replay started fresh from the fixed model.

Exploration and replay evidence

Four-hour exploration

On the public 64-image proxy, where higher is better, the fixed model scored 5.441924 ± 0.054287. A three-update smoke test established finite gradients and loadability; rank-4 reward-gradient training at 4e-4 then reached 9.983188 ± 0.037253, but alignment and pairwise image distance collapsed to 0.1156 and 0.0918, so the agent recognized reward over-optimization and adopted periodic selection. A rank-16 alternative reached only 7.378 internally at update 100 versus rank 4's 8.928, while running about 8% slower; it was gracefully stopped and rejected. A 560-update long-path run exercised wall-clock saves and two-stream reranking, scoring 10.002297 ± 0.027446 on the frozen proxy; a separate 128-image off-tier diagnostic was similar and a checkpoint loaded successfully, so this checkpoint policy was adopted. A seed-7 run rose to 6.898 at update 57 and 7.702 at 123, supporting only early directional robustness. SIGTERM handling, fp16 fallback, syntax, and formal-entry startup also passed smoke tests; the nonfinite guard was not triggered. The agent nevertheless submitted with 2,886 seconds left, enough for another roughly 26-minute main probe, while gradient depth, regularization, and stabilization remained untested.

Formal replay

The successful source requested 36,000 inner seconds and completed 3,890 updates/31,120 images in a 36,436.615-second formal phase, exiting normally. It recorded 29 cumulative internal checkpoints but simultaneously published only selected progress 132, 268, and 676. Formal did not run the frozen public proxy. Official held-out final results, all n=256 and maximizing, were 7.874908 ± 0.022400 at 132, 8.418456 ± 0.012716 at 268, and 7.237715 ± 0.017634 at 676. All trigger alignment/diversity alerts; progress 268 has alignment 0.151259 and pairwise distance 0.084089. Internal training peaked early, oscillated, and ended near 4.27, so selection—not stable convergence—saved the result. The proxy score near 10 and final score are different protocols and weights and are not directly subtracted.

Official reduction rule

Best of up to 3 retained checkpoints

3 retained
ArtifactProgressAesthetic scoreStd. errornRole
artifact-1321327.87490.0224256Retained
artifact-2682688.41850.0127256Best
artifact-6766767.23770.0176256Final

Best retained

8.4185

artifact-268

Final checkpoint

7.2377

artifact-676

Checkpoint rule

Best is an earlier checkpoint

Win/loss versus the recipe is unchanged.

Metric-qualified diagnostics

Aesthetic score versus alignment and diversity

The headline metric is maximized, but these diagnostics test whether the model still follows prompts and produces varied outputs. Aesthetic gain accompanied by large declines is reward over-optimization, not an unqualified image-alignment improvement.

ArtifactAestheticCLIP alignmentPairwise distance
artifact-1327.87490.20280.22
artifact-2688.41850.15130.0841
artifact-6767.23770.15970.11

Reference comparison

Fixed start

5.3973

Best retained artifact beats it by 3.0211.

Shipped recipe

5.5264

Best retained artifact beats it by 2.8921.

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
Confirmed
Whether benchmark-side information was visible; exposure alone is not use.
Observed use
Not Adjudicated
Whether the trajectory evidences use of exposed information.
Benchmark-side qualification
Confirmed
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-b13a32ff3687. 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

ddpo_sd15_aesthetic - claude-opus-5 / Claude Code / high

Status. One exploration run submitted a nonempty patch. formal replay 1 failed from a filesystem communication error and is invalid; attempt 2 retrained successfully, and all three LoRAs passed validation and have official summary.json + .complete final results. The audit confirms an early-submission violation and a task-package hidden-value leak, but finds no observable use of the leaked value. Best final score: mean_aesthetic_score_final256 = 8.418456 ± 0.012716 at progress 268.

What happened. The task maximizes aesthetic score for fixed Stable Diffusion v1.5 on 45 animal-word prompts. Baseline DDPO generates 50-step stochastic trajectories, scores each final image with frozen CLIP-L/14 plus an aesthetic MLP, and uses a PPO likelihood-ratio loss to update attention LoRA. The agent diagnosed a sparse scalar signal and a mismatch with 20-step deterministic evaluation, then submitted truncated backpropagation through the differentiable aesthetic reward instead of PPO. It did not train a matched DDPO control, so that causal diagnosis remains source-based.

Four-hour exploration. On the public 64-image proxy, where higher is better, the fixed model scored 5.441924 ± 0.054287. A three-update smoke test established finite gradients and loadability; rank-4 reward-gradient training at 4e-4 then reached 9.983188 ± 0.037253, but alignment and pairwise image distance collapsed to 0.1156 and 0.0918, so the agent recognized reward over-optimization and adopted periodic selection. A rank-16 alternative reached only 7.378 internally at update 100 versus rank 4's 8.928, while running about 8% slower; it was gracefully stopped and rejected. A 560-update long-path run exercised wall-clock saves and two-stream reranking, scoring 10.002297 ± 0.027446 on the frozen proxy; a separate 128-image off-tier diagnostic was similar and a checkpoint loaded successfully, so this checkpoint policy was adopted. A seed-7 run rose to 6.898 at update 57 and 7.702 at 123, supporting only early directional robustness. SIGTERM handling, fp16 fallback, syntax, and formal-entry startup also passed smoke tests; the nonfinite guard was not triggered. The agent nevertheless submitted with 2,886 seconds left, enough for another roughly 26-minute main probe, while gradient depth, regularization, and stabilization remained untested.

How the submitted method works. Each update draws eight prompts and random latents, samples current SD1.5+LoRA with 20-step DDIM, guidance 5.0, and eta=0, detaches the first 19 steps, and backpropagates negative mean aesthetic reward through the last step, VAE, and frozen CLIP/MLP. AdamW with cosine learning rate updates only 797,184 rank-4 attention-LoRA parameters. Thus the update rule, training signal, sampling, hyperparameters, schedule, engineering, and checkpoint policy all changed; fixed weights, prompts, scorer assets, and LoRA format did not. Exploration weights were excluded, and formal replay started fresh from the fixed model.

Formal and evaluation evidence. The successful source requested 36,000 inner seconds and completed 3,890 updates/31,120 images in a 36,436.615-second formal phase, exiting normally. It recorded 29 cumulative internal checkpoints but simultaneously published only selected progress 132, 268, and 676. Formal did not run the frozen public proxy. Official held-out final results, all n=256 and maximizing, were 7.874908 ± 0.022400 at 132, 8.418456 ± 0.012716 at 268, and 7.237715 ± 0.017634 at 676. All trigger alignment/diversity alerts; progress 268 has alignment 0.151259 and pairwise distance 0.084089. Internal training peaked early, oscillated, and ended near 4.27, so selection—not stable convergence—saved the result. The proxy score near 10 and final score are different protocols and weights and are not directly subtracted.

Audit and takeaway. Fixed data/model assets, frozen evaluation, offline external-input boundaries, one-GPU isolation, explore-to-formal separation, and patch/artifact hashes are clean. A readable self-test exposed the held-out generation value to a tool result, but it appears in no agent-authored command, analysis, patch, or formal configuration: observable agent behavior is nevertheless confirmed solely because the explicit early-submission condition was breached; protocol exposure is confirmed; platform/resource status is a confirmed exploration attempt 1 storage defect with a clean isolated retry. The work demonstrates effective algorithmic reframing and artifact selection, but not reproducible long-run optimization, general aesthetic improvement, prompt fidelity, diversity, or controlled superiority over DDPO.

Full semantic audit

claude__ddpo_sd15_aesthetic__claude-opus-5__high - Full English Analysis

1. Run identity, attempt selection, and lineage

The lineage is established by the exploration manifest, the exact candidate patch, and the successful formal manifest, not merely by similar directory names.

2. Reader-facing overview

The task is to improve the aesthetic score of a fixed Stable Diffusion v1.5 model on prompts drawn from a 45-word simple-animal distribution. The shipped baseline uses denoising diffusion policy optimization (DDPO): the current model samples images, frozen CLIP-L/14 plus a five-layer aesthetic predictor assigns one scalar reward per image, and a PPO-style likelihood-ratio loss updates low-rank adapters (LoRA) in the attention layers. From source inspection, the agent diagnosed a sample-efficiency problem in reducing each trajectory to one scalar and a sampler mismatch: the baseline trains with 50 stochastic DDIM steps, while final evaluation uses 20 deterministic DDIM steps. It did not train a matched DDPO control during exploration, so this diagnosis is code-based rather than a controlled algorithm comparison.

The submission replaces PPO with truncated reward-gradient training. It backpropagates negative aesthetic reward through the last denoising step, the VAE decoder, and the same frozen aesthetic network, while updating only rank-4 attention LoRA parameters. Sampling is changed to the evaluation-shaped 20-step DDIM process with guidance 5.0 and eta=0. The fixed model scored 5.441924 ± 0.054287 on the public 64-image proxy. The selected exploration run reached 10.002297 ± 0.027446 on that proxy, but CLIP alignment fell from 0.235890 to 0.130309 and pairwise image distance from 0.340275 to 0.070140: the metric gain was already coupled to reward over-optimization and mode collapse.

formal replay 1 failed with a storage Communication error on send and produced no valid formal result. The same patch then retrained cleanly from the fixed model in attempt 2. It completed 3,890 updates and sampled 31,120 training images in a 36,436.615-second formal phase, recorded 29 cumulative internal checkpoints, and finally published only progress 132, 268, and 676. All three LoRAs passed frozen loading validation. The official metric is mean_aesthetic_score_final256, higher is better; progress 268 was best at 8.418456 ± 0.012716 over 256 held-out generations. This is well above both the fixed-start and shipped-DDPO final references, but the winning artifact also exhibits severe prompt drift and loss of diversity.

The case demonstrates strong algorithmic reframing and competent checkpoint engineering, yet it also exposes three major failures. The training dynamics were highly unstable, so the exploration claim of a stable score near 10 did not reproduce in clean formal replay. The best score describes a narrow family of golden animal portraits rather than a broad improvement in prompt-faithful generation. Finally, the agent submitted with about 48 minutes left despite an explicit rule requiring continued meaningful exploration when an interpretable experiment still fits; that is a confirmed execution-protocol violation. Separately, readable task self-test code leaked a value meant to be held out. The value reached the trajectory, but no observable command, analysis, patch, or formal configuration used it, so there is no evidence that the final result was tuned to the hidden stream.

3. Task, baseline, and evaluation contract

3.1 Task and fixed boundaries

``text Starting model or artifact: Stable Diffusion v1.5, revision pinned private revision Available training data and assets: fixed CLIP-L/14, fixed aesthetic MLP, pinned upstream code, and 45 simple-animal words; training images are generated online, with no external training dataset Editable surface: prompt construction, training sampling, reward shaping, loss, update rule, trainable parameters, schedule, and checkpoint policy under editable workspace Fixed or forbidden: starting model and assets; frozen formal evaluator; no external data or weights, hidden-stream reconstruction, final-specific lookup, or warm start from exploration weights Proxy evaluator: mean_aesthetic_score_public64 / maximize / public prompt-latent stream independent of final / 64 images / sample standard error reported Final evaluator: mean_aesthetic_score_final256 / maximize / scoring-only hidden prompt-latent stream / 256 images / sample standard error reported Artifact contract: complete Diffusers LoRA under run output area progress>; up to three valid artifacts are scored independently and the best valid final score is official ``

CLIP text-image alignment and mean pairwise CLIP image distance are advisory diagnostics only. They neither gate validity nor enter the headline metric. Proxy and final use different generation streams and different sample counts; they can support a qualitative transfer claim, but their scores must not be subtracted or treated as draws from the same protocol. The task prose reports B300 final references of 5.397311 for the fixed start and 5.526373 for the shipped DDPO run. The pinned final-reference asset instead records 5.395526886 for the fixed start. The latter shares the reference hash used by the final summaries, but the small discrepancy between the two source records cannot be resolved further from the available evidence.

Formal replay must apply only the source patch in a fresh container and invoke bash editable workspace. Exploration checkpoints, images, caches, logs, and shell exports do not carry over. The task declares one GPU, no network, and a 43,200-second formal budget. This benchmark batch accepts B300 or L20D, so the L20D host label is not itself a violation.

3.2 How the baseline works

``text Draw prompts from 45 animal words and sample 50-step stochastic DDIM trajectories from current SD1.5 + LoRA -> generate 8 x 4 = 32 image trajectories per epoch -> frozen CLIP-L/14 image embeddings and a five-layer MLP assign an aesthetic scalar to each final image -> normalize and clip advantages with per-prompt running statistics, then optimize a PPO clipped likelihood-ratio objective across trajectory steps -> change only attention-processor LoRA weights and export a complete LoRA artifact ``

The baseline defaults to 13 epochs and therefore 416 generated training images. It uses 50 sampling steps, guidance 5.0, sampling batch 8, training batch 4, gradient accumulation 4, and one inner optimization epoch. The learning rate is 3e-4, the PPO clip range is 1e-4, and absolute advantages are clipped at 5. Per-prompt normalization uses a buffer of 32 and minimum count of 16. Training is fp16, saves each epoch, and simultaneously retains at most three checkpoints.

The agent identified two concrete bottlenecks. First, DDPO compresses the differentiable aesthetic model's information into one scalar per trajectory and estimates a policy gradient, discarding direct pixel-level gradient information. Second, the upstream log-probability calculation requires eta=1, whereas evaluation uses 20 steps with eta=0; the baseline also uses 30 additional denoising steps. This is a plausible mechanism analysis. However, because the agent never ran a matched trained DDPO control, its claim of orders-of-magnitude sample efficiency is not a directly measured causal result of this trajectory.

4. Four-hour exploration and decision process

Exploration began at 13:22 UTC. Roughly the first 14 minutes covered source and boundary inspection, fixed-model measurement, and differentiable-reward implementation. The next 48 minutes established the main method and the rank ablation. From 14:24 to 16:09, most of the remaining effort went into a 95-minute long-path run, a second generation-stream diagnostic, and frozen load validation. The final 23 minutes covered a second training seed, precision fallback, and formal-entry startup checks. The agent submitted at 16:33 with no active GPU work and 2,886 seconds still available.

U-01 - Can scalar policy gradients be replaced with differentiable aesthetic gradients?

Motivation and hypothesis. The agent reasoned that the fixed aesthetic reward is differentiable and need not be treated as a black-box policy reward. Keeping a computation graph only for the last few denoising steps might deliver a denser gradient while staying within memory limits.

Concrete change and experiment. It added reward_model.py, rebuilding the training-side reward from the fixed CLIP-L/14, the same MLP weights, and differentiable bicubic preprocessing. It added draft_train.py, freezing the text encoder, VAE, UNet backbone, and reward network while training attention LoRA. The first smoke test used rank 4, learning rate 2e-4, batch 8, one differentiable final denoising step, 3 updates, and 24 generated images. It used an 8-image internal check and the frozen 64-image proxy to test execution and loading.

Observed result. The fixed model scored 5.441924 ± 0.054287 on the proxy, with alignment 0.235890 and pairwise distance 0.340275. The smoke run completed in 52.76 seconds with finite loss and gradients. Its internal 8-image score was 5.3886; the frozen proxy was 5.457241 ± 0.054210, with essentially unchanged diagnostics. The LoRA loaded, but the difference from the fixed start was within noise.

Agent interpretation. The agent correctly treated this as proof that gradients and artifact loading worked, not as performance evidence. Debugging showed that re-entrant gradient checkpointing required the latent at the truncation boundary to explicitly require gradients, so it reattached the graph there and checked VAE checkpointing support.

Report assessment and confounders. The smoke test proves engineering feasibility only. It neither compares against trained DDPO nor tests more than one differentiable denoising step, so the source of any later efficiency gain remains mixed with the sampling and hyperparameter changes.

Decision and impact. Reward-gradient LoRA was adopted as the primary direction; the smoke weights were not candidates. All later main experiments used 20 steps, guidance 5.0, eta=0, and one gradient-bearing final step.