Back to AI Research

AI Research

AesCode separates visual style from content correctness in generated code

Key Takeaways

  • AesCode combines a design graph, deterministic checks and visual judging to train code generation for editable visual artifacts.
  • ## Use an image for design, not as the specification
  • [AesCode](https://arxiv.org/abs/2610.18860) investigates visual artifacts generated as code, including slides, posters and dashboards.
  • Code produces structured, editable output, but a model may struggle to anticipate how layout and color will look when rendered.
  • An image generator can supply appealing design while misrepresenting requested content.

Use an image for design, not as the specification

AesCode investigates visual artifacts generated as code, including slides, posters and dashboards. Code produces structured, editable output, but a model may struggle to anticipate how layout and color will look when rendered. An image generator can supply appealing design while misrepresenting requested content.
The method keeps the content prompt as the source of the requested information and uses an image generated from that prompt as aesthetic guidance. This separates the role of the reference image from the requirement to preserve correct content.

Give different properties different checks

AesCode represents the target with a design graph describing canvas elements and their relationships. Properties that can be parsed from code or rendering receive deterministic verification. A vision-language judge assesses other properties using a sample-specific visual rubric linked to the graph.
The researchers optimize those reward channels through reinforcement learning with per-channel normalization. Their benchmark measures verifiable correctness separately from visual quality, rather than assuming that an attractive rendering is a correct one.
The paper reports visual-quality gains for its eight-billion and 32-billion parameter models relative to same-scale Qwen3-VL baselines given the same references. Ablations examine references both as model inputs and as sources of visual rewards.

Review the rendered artifact alongside its data

Franklin analysis: this division maps well to document production. Requested text, required elements and their relationships deserve explicit checks, while alignment, spacing and visual balance need rendered inspection.
A useful trial would include a visually persuasive reference with an intentional content error. Check whether the generated code follows the requested information or copies the erroneous image. Also retain the editable output and the separate evaluation scores. The research offers a way to improve visual design without silently making a generated image the authority for the facts an artifact must contain.

Comments