RELIEF: Revision-Based Learning from Interactive Experience and Feedback

Jiawen Li1, Chenming Ge2, Alice Gao3, Rishab Vempati1, Yi-Hao Peng4, Jason Wu1
1Purdue University2University of Michigan 3University of Washington4MIT

Manuscript · Submitted to NAACL 2027

RELIEF generates an interface, collects feedback, revises the interface, and reconstructs generation traces for fine-tuning.
RELIEF uses feedback-guided interface revisions to construct training supervision. Figure 1.

Abstract

Code generation models are increasingly used to produce interactive artifacts, such as websites and user interfaces. Many properties that determine whether these interfaces are useful only become apparent through realistic interaction, making them difficult to incorporate into model training. In this paper, we introduce RELIEF (REvision-based Learning from Interactive Experience and Feedback), a method for improving code generation models using feedback on their generated interfaces. RELIEF uses a coding agent to revise these interfaces, then incorporates the improvements into their original generation traces to produce supervision for fine-tuning. To evaluate RELIEF, we collected a dataset of 200 synthetically generated websites paired with 355 interaction recordings and accompanying feedback from 24 users. We used critiques derived from code inspection, automated interaction, explicit human feedback, and human interaction recordings to fine-tune variants of two code generation models. Our results show that feedback effectiveness varies with base model capabilities, with critiques inferred from human interaction recordings leading to the largest usability improvements overall under our tested models.

Method

RELIEF uses a coding agent to revise generated interfaces from usability feedback. The revisions are then incorporated into the original generation traces to provide supervision for fine-tuning the generation model. We compared four feedback sources using the same revision and training procedure.

Feedback sources

Trace reconstruction

RELIEF records the website source after each file-writing action in the original generation trace. It uses code differences and Git-blame-style attribution to identify the actions responsible for revised code, then patches those actions. Replaying the reconstructed trace verifies that it reproduces the revised website. The resulting traces are used for supervised fine-tuning with LoRA adapters.

A date-filter revision is attributed to the Add filters step in the original generation trace. The step is patched and the trace is replayed to reproduce the revised interface.
Trace reconstruction for a revised flight-search interface. Figure 4.

Separate variants of each base model were fine-tuned for each feedback source. Reconstruction preserved the original reasoning while revising code-writing actions. Sections 4 and 6 of the paper describe the procedure and its limitations.

Evaluation

We evaluated variants of Inkling Small and Qwen 3.8 27B using human preference comparisons and task completion on held-out websites.

Human preference

Arena Elo ratings with 95 percent confidence intervals. Human-interaction variants scored 1014 for Qwen and 1023 for Inkling, compared with base-model ratings of 1007 and 997. Confidence intervals overlap.
Arena Elo ratings from 400 pairwise comparisons by six annotators. Error bars show 95% confidence intervals. Figure 5.

The human-interaction variants received the highest observed Elo ratings for both base models. The confidence intervals overlap, so these results do not establish a definitive ranking of feedback sources.

Task completion

Task completion after model fine-tuning · Table 2
Training conditionInkling SmallQwen 3.8 27B
Base model78.8%83.7%
Code critique71.7%83.2%
Computer-use-agent critique82.6%89.7%
Human-written feedback75.5%86.4%
Human interaction84.8%90.8%

A computer-use agent evaluated 184 held-out tasks across 14 websites. Task completion was measured after up to three generation retries; first-attempt eligibility was reported separately.

Feedback inferred from human interaction recordings produced the highest observed task completion in both model families. The effects of the other feedback sources varied by base model.

BibTeX

@unpublished{li2026relief,
  title={Revision-Based Learning from Interactive Experience and Feedback},
  author={Li, Jiawen and Ge, Chenming and Gao, Alice and Vempati, Rishab and Peng, Yi-Hao and Wu, Jason},
  year={2026},
  note={Manuscript submitted to NAACL 2027},
  url={https://oscar-ge.github.io/files/RELIEF.pdf}
}

Download BibTeX