Revision-Based Learning from Interactive Experience and Feedback
Organizations: Purdue University · University of Michigan · University of Washington · MIT
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.
Figures & tables
| Fix Condition | Eligible | Completion | (pp) |
|---|---|---|---|
| Inkling Small | |||
| Original | 36/37 | 81% | – |
| Code Critique | 37/37 | 86% | +5 |
| CUA Critique | 37/37 | 86% | +5 |
| Human Interaction | 37/37 | 85% | +4 |
| Human Feedback | 35/37 | 83% | +2 |
| Condition | Eligible @1 | Task Completion |
|---|---|---|
| Inkling Small | ||
| Base Model | 12/14 | 145/184 (78.8%) |
| Code Critique | 13/14 | 132/184 (71.7%) |
| CUA Critique | 14/14 | 152/184 (82.6%) |
| Human Interaction | 12/14 | 156/184 (84.8%) |
| Human Feedback | 13/14 | 139/184 (75.5%) |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value |
|---|---|
| Optimizer | AdamW |
| AdamW | |
| AdamW | |
| Weight decay | 0 |
| Learning rate | (constant) |
| Effective batch size | 32 |
| Characteristic | Value |
|---|---|
| Age | |
| Mean (SD) | 24.13 (2.94) |
| Range | 19–31 |
| Web Design Experience | |
| None | 4 (16.7%) |
| A little (university course) | 8 (33.3%) |
Code Generation
Code generation studies methods for turning natural-language, visual, or formal specifications into executable programs and code edits.
See all 313 papers