AesCode: Aesthetic Code Generation with Decoupled Cross-Modal Rewards

Xin Gao, Yifan Yang, Xin Li, Pan Wang, Yan Li +11 more
10/13/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Generating information-rich visual artifacts such as slides, posters, and dashboards as code is appealing because the outputs are structured, editable, and verifiable. Yet code models cannot see how their choices of layout and color come together on the canvas, often limiting spatial planning and aesthetic quality.

Show full abstract

Image generators excel at visual design but can misrender requested content, making their outputs unreliable targets for direct reproduction. We therefore introduce AesCode, which generates code grounded in the content prompt while using an image generated from the same prompt as an aesthetic guidance. To do so, AesCode represents the target as a design graph that describes the whole canvas and makes each property attributable. From this graph, we derive complementary cross-modal rewards: deterministic verifiers score properties parsable from code and rendering, while a VLM judge assesses the non-parsable ones with a sample-specific Visual Graph Rubric (VGR) tied to graph elements and relations. We optimize these decoupled rewards through reinforcement learning with per-channel normalization to jointly improve spatial planning, aesthetic quality, and verifiable correctness. To evaluate this setting, we build a benchmark that scores verifiable correctness and visual quality separately, with visual scores highly consistent with human judgments. We find that reference images substantially improve the visual quality of code generated by existing models, and ablations show that AesCode benefits from references both as model input and as a source of visual rewards. Relative to same-scale Qwen3-VL baselines given the same references, AesCode-8B and AesCode-32B improve visual quality by 31.1 and 22.4 percentage points, reaching scores comparable to those of closed-source frontier models such as GPT-5.5 and Claude Opus 4.8.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gao2026aescode,
  title  = {AesCode: Aesthetic Code Generation with Decoupled Cross-Modal Rewards},
  author = {Xin Gao and Yifan Yang and Xin Li and Pan Wang and Yan Li and Muzhao Tian and Mingxi Cheng and Bei Liu and Kai Qiu and Qi Dai and Dong Chen and Yue Dong and Leandros Tassiulas and Rex Ying and Ji Li and Chong Luo},
  year   = {2026},
  eprint = {2610.18860},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.18860v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.18860.svg)](https://codeofpaper.com/paper/2610.18860)

Discussion