arXiv:2608.27893cs.CVAug 2026

Manuscript Offprint

arXiv:2608.27893

CommerceVibe: Learning to Design E-Commerce Creatives as Executable Visual Code via Dual-Feedback Reinforcement Learning

Yajiao Xu, Jin Zhang, Jiangbo Ai, Tao Jiang, Mo Xu, Lina Huang, Chengfu Huo

Abstract

High-quality e-commerce creatives are essential for presenting products and conveying marketing messages. Recent diffusion models enable scalable creative generation and produce visually compelling images, but their flattened raster outputs often contain distorted text and inconsistent product details, requiring refinement before deployment. Moreover, without explicit structure, the resulting creatives are difficult to edit and reuse, while complex design requirements remain challenging to encode as verifiable training signals. To address these challenges, we present CommerceVibe, which represents creatives as executable visual code and formulates generation as conditional HTML/CSS program synthesis. Given product images, design requirements, and product information, it produces renderable, editable, and reusable creatives. We further introduce dual-feedback reinforcement learning, in which rule-based feedback evaluates rendered programs for text readability, product visibility, and layout validity, while visual feedback from a vision-language model (VLM) assesses rendered creatives against input specifications across six perceptual and commercial dimensions. Together, these complementary feedback signals improve both constraint satisfaction and perception-dependent quality. We perform supervised fine-tuning (SFT) of Qwen3.5-9B on over 28,000 e-commerce examples, followed by dual-feedback reinforcement learning. On a 1,300-case benchmark, the optimized CommerceVibe model achieves a weighted score of 94.0/100, compared with 87.3 for the SFT-only variant, and outperforms strong external models. Blind evaluations by five e-commerce design experts further validate these improvements. CommerceVibe supports controllable, editable, and scalable e-commerce creative production.

Introduction

E-commerce creatives combine supplied product images, marketing copy, and graphic elements within a limited canvas. To be production-ready, a creative must preserve product appearance, present the required information accurately, and organize the content clearly. However, creating such materials manually for large product catalogs, frequent campaigns, and multiple output formats is difficult, while fixed template-based generation methods limit design diversity. These challenges call for generation methods that are reliable, controllable, and directly editable.

Diffusion models have substantially improved visual realism and controllable image synthesis through various conditioning strategies (Rombach et al. 2022; Saharia et al. 2022; Zhang, Rao, and Agrawala 2023; Li et al. 2023a), enabling large-scale creative generation. However, the resulting images may still contain incorrect text, altered product features, or fabricated selling points. Such issues are not merely visual defects, as they may misrepresent products, mislead customers, and make the creatives unsuitable for direct deployment. Moreover, diffusion models generate flattened raster images in which products, text, and backgrounds are not preserved as separate, editable elements. As a result, modifying textual content, replacing product images, or adjusting layouts often requires costly refinement or complete regeneration.

Structured visual representations preserve the identity of individual products, text blocks, and graphic elements, enabling element-level editing and reuse (Cheng et al. 2025; Wang, Shimose, and Takamatsu 2025; Liu et al. 2026a). Beyond editability, executable representations further provide a way to verify whether generated creatives satisfy explicit constraints. An HTML/CSS document naturally supports such verification: after rendering, its visible content, image references, element positions, and boundaries can be inspected automatically. This allows errors such as text overflow, element occlusion, and out-of-bounds elements to be measured by rule-based checks and assigned severity scores (Pan et al. 2026).

However, converting these measurements into effective training signals for structured e-commerce creative generation raises two challenges. (1) The set of checks and their weights must align with the number of supplied product images. For example, with one product image, the product should be visually prominent. With multiple product images, all supplied products should be included in the creative, and occlusion between products must be detected. (2) Rule-based checks can identify structural errors such as text overflow, element occlusion, and out-of-bounds elements, but cannot fully judge the visual quality of a creative. Learned preference evaluators assess the rendered creative as a whole (Xu et al. 2023), but are less precise about element-level errors. These limitations motivate combining rule-based feedback for explicit structural constraints with learned preference feedback for overall visual quality.

To address these challenges, CommerceVibe represents e-commerce creative generation as conditional HTML/CSS

Figure

Figure 1: Overview of CommerceVibe. Supervised fine-tuning establishes basic creative generation ability, while dual-feedback reinforcement learning combines rule-based feedback with VLM-based preference feedback to optimize the policy through GRPO. The resulting policy generates executable HTML/CSS creatives in one pass.

program synthesis (Figure 1). A fixed preprocessing procedure is first used to convert each free-form user request into a consistent structured format. The normalized request, supplied product images, and product information are then provided to the policy under a fixed system instruction that defines the generator role and required output structure. The policy generates one complete HTML/CSS document in a single decoding pass. Supplied product images are directly referenced rather than regenerated, and text is represented as native HTML elements rather than synthesized in a raster image, so that product appearance is preserved and text distortion is avoided.

CommerceVibe is trained in two stages. First, the Qwen3.5-9B backbone (Qwen Team 2026) is fine-tuned on 28,568 quality-controlled examples to establish a basic ability to generate e-commerce creatives. Second, the SFT policy is optimized with GRPO (Shao et al. 2024) under dual-feedback reinforcement learning to further improve compliance with design requirements and overall visual quality.

To systematically evaluate model performance in e-commerce creative generation, we construct a 1,300-case benchmark using product images collected from real-world e-commerce scenarios, with cases containing varying numbers of input images. On this benchmark, CommerceVibe is compared with three leading external models—GPT-5.5 (OpenAI 2026), Claude Opus 4.8 (Anthropic 2026), and Gemini 3.5 Flash (Google DeepMind 2026)—under a single-pass generation setting. CommerceVibe achieves the highest weighted score and outperforms all three external models. An independent blind evaluation conducted by five e-commerce design experts also confirms the overall creative quality of CommerceVibe and its alignment with human expert judgments. These results demonstrate the effectiveness of executable HTML/CSS generation for e-commerce creatives.

Our contributions are:

• We introduce CommerceVibe, which represents e-commerce creative generation as conditional HTML/CSS program synthesis, producing editable and executable creatives that directly reuse supplied product images, render text as native HTML elements, and provide verifiable structures for reinforcement learning optimization.

• We introduce dual-feedback reinforcement learning, which combines rule-based checks for Text, Product, and Layout errors with VLM-based preference feedback for visual and commercial quality.

• We construct a 1,300-case benchmark for e-commerce creative generation and show that CommerceVibe outperforms leading external models in both automatic evaluation and independent expert assessment.

References (35)