Bowerbird improves visual coding agents with stepwise strategy learning
Bowerbird: Evolving and Internalizing Behavioral Strategies for Long-Horizon Visual Coding
Computer Vision and Pattern Recognition
Summary
Building websites automatically from screenshots is hard because actions can be repetitive or undo previous work. The authors created Bowerbird, which helps agents learn better step-by-step through careful feedback on each action's success or failure. This approach lets the agent evolve a set of smart strategies and then learn them deeply so it can perform well without extra guidance. Bowerbird improved task success rates significantly while using fewer actions and less communication.
What this means in practice
- •For software developers: Automate and improve website design from screenshots with fewer errors and less manual tuning by using evolved stepwise coding strategies.
- •For automation engineers: Develop more efficient multimodal agents for complex tasks that require sequences of actions verified incrementally.
Authors
Hai-Long Sun, Chenglei Wang, Jingdong Chen, Han Peng
Abstract
Multimodal agents can now develop websites from reference screenshots through long-horizon workflows of perception, coding, and verification. Existing methods typically train agents through supervised fine-tuning (SFT) on trajectories selected by final task outcomes, or reinforcement learning (RL) with trajectory-level rewards. However, even successful trajectories can contain redundant actions, regressions, or inadequate verification. Outcome-level supervision provides limited feedback on which intermediate steps to reinforce and which to correct. In this paper, we propose Bowerbird, a framework that combines step-level evaluation, feedback-guided strategy evolution, and strategy internalization. Specifically, step-level evaluation provides dense progress feedback by rewarding newly passed functional and visual checks, penalizing regressions, and accounting for turn and token costs. Using this feedback, strategy evolution develops a self-evolving behavioral playbook without updating model parameters, retaining only revisions that improve validation performance. Strategy internalization supplies the evolved playbook as privileged input during SFT, followed by RL with dense step rewards and no playbook. At inference, the agent requires no additional strategy guidance. Across challenging visual coding tasks, Bowerbird improves the overall score over outcome-based training by 18.8%, while reducing token usage and interaction turns by 31.8% and 32.2%, respectively. It also achieves state-of-the-art results among models below 500B parameters and even matches closed-source models.