From revisions to supervision
Reconstruct how the improved interface could have been generated.
The revised website provides a target. RELIEF connects its changes back to the original generation steps.
- Replay. Record the website source after each file-writing step in the original generation trace.
- Attribute and patch. Use code differences and Git-blame-style attribution to identify and revise the steps responsible for changed code.
- Verify and train. Replay the reconstructed trace to check that it reproduces the revised website, then use it for supervised fine-tuning.
Training and reconstruction details
We fine-tuned a separate variant of each base model for each feedback source using reconstructed generation traces. The experiments used supervised fine-tuning with LoRA adapters. Reconstruction retained the original reasoning while revising code-writing actions; see Sections 4 and 6 of the paper for the procedure and its limitations.

