Self-Refine (Madaan et al., 2023) has a single model produce a draft, critique it, and revise it, repeating until the critique is satisfied or a budget runs out. No extra training is needed.
Implement refine_loop(generate, feedback, refine, steps), running the draft, feedback and revision cycle.
Generate once, then in each round check the feedback; stop on 'OK' or when the rounds run out, otherwise refine with the feedback.
No results yet
Run your code to check it against the examples, or submit to run every test.