Bowerbird mascot

Bowerbird: Evolving and Internalizing Behavioral Strategies for Long-Horizon Visual Coding

Hai-Long Sun1,* Chenglei Wang1,* Jingdong Chen1,† Han Peng1,†

1Ant Group

{yimo.shl, chenglei.wcl, jingdongchen.cjd, penghan.peng}@antgroup.com

* Equal contribution    † Corresponding authors

78.2
overall score on visual coding
base model 57.7
+18.8%
over outcome-based training
65.8 → 78.2
−31.8%
generated tokens
119.4K → 81.4K
−32.2%
interaction turns
107.6 → 72.9
Step-level rewards within a successful trajectory, continuations with and without the evolved playbook, and contact-sheet use before and after training
Figure 1From step-level feedback to autonomous strategy use. Step-level rewards distinguish useful and wasteful actions within successful trajectories (top left). The evolved playbook guides more effective execution from the same state (right). Training boosts unguided strategy use at inference (bottom left).

Abstract

TL;DR Bowerbird scores each step of a multimodal coding agent, evolves a playbook of strategies from these scores, and trains the agent to use them without the playbook. It improves the overall score over outcome-based training by 12.4 points (18.8%) while using 31.8% fewer tokens and 32.2% fewer turns.

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.

Contributions

What Bowerbird Contributes

1Limited spontaneous strategy adoption

The base model can exhibit useful development behaviors but rarely adopts them on its own: it organizes image assets into a labeled contact sheet before coding in only 1.1% of its trajectories and inspects the rendered page after its last edit in only 10.6%.

2Stage-aware step-level evaluation

Action-level credit from information value during perception, code progress during coding, and changes in passed checks during verification, minus turn and token costs.

3Strategy evolution and internalization

A self-evolving behavioral playbook keeps only revisions that improve validation performance; SFT and RL then teach the agent to apply the strategies without the playbook at inference.

4Better and cheaper visual coding

Bowerbird outperforms all evaluated open-source models below 500B total parameters and selected closed-source models, while remaining competitive on general multimodal benchmarks.

Pilot study

A Closer Look at Outcome Supervision

We study visual coding, where agents repeatedly write, run, and revise websites from design screenshots, assets, and functional requirements, and replay the edit logs of a frontier model to compare successful and failed attempts.

Execution efficiency of successful and failed trajectories on static, interactive, and full-stack tasks
Figure 2Final outcomes and execution efficiency can diverge. Execution efficiency distinguishes successful from failed trajectories on static webpages (AUC = 0.84), but barely on full-stack websites (AUC = 0.55). Outcome filtering therefore retains inefficient successes and discards efficient failures.
Finding 1
Successful delivery does not imply efficient execution, especially on long-horizon tasks.
0.84 → 0.55AUC of execution efficiency, static → full-stack

62.8% of successful full-stack trajectories contain edits that break previously passed checks.

Finding 2
The right action at the wrong time is still wrong.
31.6%of whole-file rewrites during verification break passed checks

Whole-file rewrites have a positive mean step reward during coding but a negative one during verification.

Finding 3
Models can execute effective strategies but seldom use them autonomously.
4.8% → 63.9%trajectories using both strategies, without → with instructions

Reviewing assets in contact sheets and cropping missing assets occur in only 3.8% and 1.6% of successful trajectories.

Method

The Bowerbird Framework

Overview of the Bowerbird framework
Figure 3Overview of Bowerbird. Stage-aware step-level evaluation estimates action contributions and execution costs. Rule revisions from contrasting trajectory segments are validated on complete tasks to build a behavioral playbook. The playbook guides trajectory generation and SFT and is removed during RL, where step rewards refine strategy use.
Stage 1

Step-level evaluation

Assigns action-level credit based on information value during perception, code progress during coding, and changes in passed checks during verification, while accounting for turn and token costs.

Stage 2

Strategy evolution

Starting from an empty playbook, iteratively refines strategies from contrasting trajectory segments and retains only revisions that improve validation performance, without updating model parameters.

Stage 3

Strategy internalization

The playbook guides trajectory regeneration and serves as privileged input during SFT; RL then removes it and uses dense step rewards to refine when to apply strategies and when to stop.

Results

Main Results on Visual Coding

Bowerbird raises the overall score of the base model from 57.7 to 78.2, achieving 81.6, 85.0, and 68.0 on static, interactive, and full-stack tasks. Among the listed open-source models, only Kimi-K3 scores higher overall, while Bowerbird achieves the highest interactive score. It also outperforms Gemini-3.7-Flash, Claude-Opus-4.8, and GPT-6-Luna overall, and exceeds Qwen3.8-Max by 3.5 points with about 5% of its parameters.

Scores of all evaluated models

Open-sourceClosed-sourceBase model and outcome-based training (same base model)Bowerbird

Bars are drawn from Table 1 on a 0–100 scale and sorted by the selected metric; task-type scores are averages over devices (static) or over visual and functional scores (interactive, full-stack).

Show the full table
ModelParamsHarnessOverall STATIC WEBPAGEINTERACTIVEFULL-STACK
DesktopTabletMobileAvgVSFSAvgVSFSAvg
Open-Source Models
Kimi-K32.8TClaude Code79.085.180.478.881.471.192.181.665.282.874.0
GLM-5.3-Flash320BClaude Code77.889.685.185.486.768.589.178.858.777.468.0
DeepSeek-V4.1-Flash552BClaude Code72.681.278.677.979.259.390.474.949.578.063.8
DeepSeek-V4-Flash-Vision305BClaude Code67.674.869.567.370.553.286.970.045.878.462.1
MiniMax-M3428BClaude Code59.058.851.651.854.147.983.465.742.472.457.4
Kimi-K2.61TClaude Code54.857.352.750.853.640.181.260.636.264.250.2
Qwen3.5-122B-A10B122BClaude Code44.969.762.758.063.524.756.640.719.441.930.7
Qwen3-VL-8B8BClaude Code4.012.411.911.311.90.00.00.00.00.00.0
Closed-Source Models
GPT-6-Astra–Codex86.594.493.193.493.682.692.887.775.181.078.0
Claude-Fable-5–Claude Code82.389.686.786.187.478.188.383.269.083.676.3
Claude-Opus-5–Claude Code80.291.289.589.890.174.488.781.568.070.069.0
Gemini-3.7-Flash–Gemini CLI76.586.481.680.382.863.186.774.957.086.671.8
Claude-Opus-4.8–Claude Code76.182.074.170.975.767.991.179.560.685.773.1
GPT-6-Luna–Codex76.089.285.087.787.360.295.978.051.373.962.6
Qwen3.8-Max2.4TClaude Code74.777.671.469.772.962.291.276.760.388.474.3
GPT-5.6-Sol–Codex73.587.984.485.085.764.883.274.049.172.160.6
Claude-Opus-4.6–Claude Code57.660.454.754.656.644.575.259.841.971.156.5
Gemini-3.1-Pro-Preview–Claude Code28.847.740.541.143.121.437.829.610.317.013.6
Doubao-Seed-2.0-Pro–Claude Code21.540.734.731.235.518.533.526.03.52.53.0
Our Models
Our Base Model124BClaude Code57.765.358.155.659.747.284.665.932.262.847.5
+ Outcome-based training124BClaude Code65.880.573.269.874.557.089.473.236.663.049.8
Bowerbird124BClaude Code78.2+12.486.781.776.581.6+7.175.894.185.0+11.858.977.168.0+18.2
Table 1Main results on visual coding tasks. Bowerbird outperforms outcome-based training across static, interactive, and full-stack tasks, raising the overall score by 12.4 points; green values give these gains. Params: total parameters (–: undisclosed). VS and FS: visual and functional scores.
Gains over outcome-based training by task type and overall score versus number of training trajectories
Figure 4Data efficiency and gains across task types. (a) Gains of Bowerbird and Bowerbird-SFT (after SFT) over outcome-based training by task type. (b) Overall score versus the number of training trajectories. With only 1K trajectories, Bowerbird already surpasses the baseline trained on all 7.3K trajectories (68.8 vs. 65.8).
Radar chart of transfer and general multimodal benchmark scores

Transfer and general capability

Change from the base model to Bowerbird on every benchmark in Figure 5.

Design2Code
95.1 +1.6 vs. base model (93.5)
AndroidWorld
84.1 +16.9 vs. base model (67.2)
OmniDocBench
92.2 +0.8 vs. base model (91.4)
CharXiv-R
84.0 +2.7 vs. base model (81.3)
MMMU-Pro
79.4 +0.4 vs. base model (79.0)
MathVista
89.9 −0.1 vs. base model (90.0)
HLE
28.1 +8.2 vs. base model (19.9)
Figure 5Transfer and general multimodal performance. Comparison of Bowerbird with its base model and open-source models on page reconstruction, mobile GUI control, document parsing, and multimodal reasoning benchmarks.

Analysis

Behavior and Case Analysis

Strategy frequency, screenshot cycles, and tool calls per task for the base model, Bowerbird-SFT, and Bowerbird
Figure 6Effects of training on strategy use and execution costs. We compare the base model, Bowerbird-SFT, and Bowerbird without playbook guidance at inference. RL applies complete design inspection selectively while reducing repeated verification and tool calls.
Step contributions of a 42-step successful trajectory
Case 1Step-level credit inside a successful trajectory. The 42 coding and verification steps of a successful trajectory on a static product landing page with 24 checks in 6 files. Green steps have positive contributions and red regressions negative ones, which the recoveries (blue) cancel; stagnant steps (gray), edits on stale evidence (amber), and the premature task-list completion (purple) contribute nothing.
Designs, failed pages, and successful reproductions for several tasks
Case 2Typical failures in visual coding. Each row shows one task: the design, a run whose delivered page fails visibly (red box, magnified in the inset), and a run that reproduces the design.

Citation

BibTeX

@article{sun2026bowerbird,
  title   = {Bowerbird: Evolving and Internalizing Behavioral Strategies for Long-Horizon Visual Coding},
  author  = {Sun, Hai-Long and Wang, Chenglei and Chen, Jingdong and Peng, Han},
  journal = {arXiv preprint arXiv:2611.37943},
  year    = {2026}
}