Training AI to Paint with Code via Reinforcement Learning
kastnerkyle · x · 2026-08-25
This project trains an LLM to generate images by writing p5.brush JavaScript code using reinforcement learning, making the output editable code rather than static pixels. The system runs a four-step loop: the model receives a prompt and generates a sketch, which is rendered via Puppeteer into a PNG. A judge model compares this against reference paintings to produce a reward signal for GRPO updates. The core challenge explored is defining reward functions for subjective aesthetic tasks.
Related event: RL-Trained Qwen Coding Model Paints Watercolors by Writing p5.js Code(11 posts)→
More from Multimodal
- AI Mecha Build Hit by Camera Bug That Only Shots the Lower Body — Promptmethus · 2026-11-30
- Eerily Realistic AI Video of a Baby Chimp in a Lab Baffles Viewers — Chips_n_guacamole · 2026-11-30
- AI Slides: Why Text-Layer Separation and Native PPTX Both Fall Short, and When to Pick Which — dotey · 2026-11-30
- Decide-then-Render sampler keeps seed fidelity while speeding FLUX 11-25x training-free — _akhaliq · 2026-11-30
- MaLiang paper renders playable game worlds from a numerical canvas at 22 FPS on one GPU — _akhaliq · 2026-11-30
- FiatLux paper introduces Lightgram for interactive video relighting in a single model — _akhaliq · 2026-11-30