跳到正文
HuggingFace Daily Papers·· 1 天前

AesCode:用解耦跨模态奖励实现美学代码生成

AesCode: Aesthetic Code Generation with Decoupled Cross-Modal Rewards

AI 导读

AesCode 通过将内容提示生成的图像作为美学引导,让代码模型生成幻灯片、海报、仪表盘等结构化视觉产物。该模型将目标表示为设计图,并从中导出解耦的跨模态奖励:确定性验证器评估可从代码和渲染解析的属性,VLM 评委则依据 Visual Graph Rubric 评估不可解析属性,再通过强化学习与逐通道归一化联合优化。

正文

Authors:Xin Gao, Yifan Yang, Xin Li, Pan Wang, Yan Li, Muzhao Tian, Mingxi Cheng, Bei Liu, Kai Qiu, Qi Dai, Dong Chen, Yue Dong, Leandros Tassiulas, Rex Ying, Ji Li, Chong Luo

View PDF HTML (experimental)

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. 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.
Comments: 44 pages,18 figures
Subjects: Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.18860 [cs.AI]
  (or arXiv:2610.18860v1 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2610.18860

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Xin Gao [view email]
[v1] Tue, 13 Oct 2026 17:59:31 UTC (9,828 KB)

来源:HuggingFace Daily Papers · arxiv.org