AI-Powered Ad Creative Generation: A Technical Practice Guide
This article breaks down the technical architecture behind intelligent ad creative generation, using Baidu Marketing's practice as a reference. It explains the two-layer design of a generation engine and a merchant agent interaction system, why reinforcement learning is applied to move from random generation to goal-oriented generation, how reward functions are engineered, and how production time is reduced from hours to about 90 seconds through pipeline restructuring. It also covers turning vague intent into executable creative specs, building a data and feedback loop, evaluation metrics, common pitfalls, and a phased adoption roadmap for teams building similar systems.
1. Background: Why Creative Production Is the Bottleneck in the Marketing Pipeline
Across the digital marketing pipeline, delivery strategy, audience targeting, and bidding mechanisms are already highly automated. The one stage that still relies heavily on manual work is creative production. A usable ad creative typically goes through topic selection, copywriting, visual design, compliance review, and multi-size adaptation, which often adds up to several hours. More importantly, creative is a high-frequency consumable: assets fatigue, audiences grow desensitized, and accounts need a steady supply of new material to sustain performance.
This creates a structural mismatch. The demand side wants creatives that are plentiful, fast, and fresh, while the supply side is a labor-intensive, serial workflow. The answer is not to keep adding people, but to frame creative production as a generation problem that a model can solve, and to use reinforcement learning to connect generation with delivery feedback. On August 5, 2025, Baidu Marketing integrated DeepSeek technology to enable intelligent ad creative generation and upgraded merchant interaction. Its technical backbone has two parts: an ad creative generation engine and a merchant agent interaction system. This article does not discuss any specific third-party components; instead, it abstracts this class of capability into a general technical paradigm used across the industry.
2. Overall Architecture: A Two-Layer Design for Generation and Interaction
A practical intelligent creative system is usually split into two layers.
The first is the generation layer, which turns requirements into assets. It takes structured inputs such as product information, selling points, target audience, and delivery scenarios, and outputs copy, headlines, visual composition descriptions, and even multi-size adaptation results.
The second is the interaction layer, which translates human intent accurately into generation parameters. Merchants rarely express requirements as rigorous prompts; they give vague descriptions such as “make it more premium, the kind young people like.” The merchant agent interaction system handles clarification, slot completion, constraint validation, and result explanation, so non-technical users can reliably get usable output.
The two layers are decoupled through an explicit intermediate representation, which can be understood as a creative spec object. This keeps UI logic and model logic from contaminating each other. Example:
{"product": {"name": "Sample Product", "selling_points": ["long battery life", "lightweight"]},"audience": {"age_range": "18-30", "interest": ["commuting", "outdoors"]},"constraints": {"forbidden_words": ["best", "number one"], "max_len": 20},"scene": {"channel": "feed", "ratio": ["9:16", "1:1"]}}
3. Ad Creative Generation Engine: From Random Generation to Goal-Oriented Generation
3.1 Why Reinforcement Learning Is Needed
The problem with a pure generative model is that it produces output that “looks right but is not optimal.” It can generate fluent copy and appealing visual descriptions, but it cannot guarantee business metrics such as click-through rate or conversion rate. If you only use supervised learning to fit historical high-performing assets, the model degrades into imitating existing styles and struggles to explore new expressions.
With deep reinforcement learning, generation is modeled as sequential decision-making: at each step the model chooses copy structure, rhetorical style, and visual elements, eventually producing a complete creative and receiving a reward. The generative-adversarial structure (the idea represented by DRL-GAN) plays two roles here: the generator produces candidates, and the discriminator distinguishes “looks like a high-quality asset” from “does not,” providing a reasonably dense learning signal without large amounts of manual labeling.
3.2 Reward Function Design Is the Engineering Focus
Reward design determines what the model ultimately pursues. In practice, a multi-objective weighted sum is common, with normalization and clipping to prevent a single metric from dominating:
def reward(ctr, cvr, compliance, novelty):# Normalize each metric to [0,1] first, then take a weighted sumr = 0.45 * ctr + 0.25 * cvr + 0.20 * compliance + 0.10 * noveltyreturn max(0.0, min(1.0, r))
Three lessons stand out. First, compliance must be a hard constraint rather than a soft bonus; non-compliant assets are rejected outright. Second, the novelty term suppresses mode collapse and stops the model from repeatedly emitting the same phrasing. Third, rewards need delayed attribution, because creative performance often stabilizes only after accumulating a certain amount of exposure, so a sensible attribution window must be designed.
3.3 Engineering Breakdown: From Hours to 90 Seconds
Compressing the production cycle from 4 to 6 hours down to under 90 seconds is not about speeding up a single model. It comes from restructuring the pipeline:
- Front-load feature preparation: product knowledge, audience tags, and historical asset vectors are precomputed in an offline index; online serving only does retrieval and concatenation.
- Generate candidates in parallel: copy, visual description, and multi-size adaptation are split into non-blocking branches that run simultaneously.
- Cache and reuse: similar requests hit template and fragment caches, reducing repeated inference.
- Apply rules before generation: sensitive words, forbidden expressions, and length limits are injected as constraints up front instead of being fixed after the fact.
- Tiered review: machine review quickly clears low-risk assets, while high-risk samples are routed to humans, avoiding a fully serial wait.
4. Merchant Agent Interaction System: Turning Vague Intent into an Executable Spec
The core of the interaction layer is not chat but state management. A usable design has four modules:
- Intent recognition and slot extraction: pull slots such as product, selling points, audience, style, and forbidden items from natural language.
- Clarification and follow-up strategy: proactively ask when a key slot is missing, but cap the number of turns to avoid interrupting the user.
- Constraint validation and explanation: when a result fails a condition, explain why and give an actionable fix.
- Versioning and rollback: keep the spec and result of each generation to support comparison and rollback.
User: Make me a promotional asset, something eye-catchingSystem: Scenario = promotion detected. Please add: target audience (default 18-30 commuters)? Main selling point (default price advantage)?User: Use the defaults, and avoid superlativesSystem: Generated 3 candidates, all passed the superlative-word check. Version A is more emotional, B is more feature-focused, C is more scenario-focused.
The key engineering point here is the “default value strategy”: provide sensible defaults for high-frequency slots, compressing interaction from question-and-answer into confirmation. This is also a major reason the overall experience can reach the 90-second range.
5. Data and Feedback Loop
The ceiling on generation quality is set by data. It helps to build three layers of data assets:
- Asset layer: store creative specs, rendered results, sizes, and placements in a structured form.
- Performance layer: aggregate metrics such as impressions, clicks, and conversions, aligned by asset and audience dimensions.
- Feedback layer: human ratings, review outcomes, and edit traces, used to train the reward model and preference ranking.
The loop is: generate candidates → explore with small traffic → collect performance → update the reward model → iterate the generation policy. To keep exploration from hurting delivery, a fixed share of traffic is usually reserved for exploration, and the proportion of new assets per account is capped.
6. Evaluation System and Common Pitfalls
Evaluation should cover four dimensions at once: generation quality (fluency, relevance, compliance rate), business performance (clicks and conversions), production efficiency (end-to-end latency, first-pass rate), and diversity (novel proportion after semantic deduplication).
Common pitfalls include reward overfitting that leads to homogenization; imbalance between discriminator and generator that causes unstable training; ignoring multi-size adaptation, which breaks cropping on the delivery side; and treating compliance as a post-hoc filter, which causes heavy rework. The corresponding fixes are to add diversity regularization, monitor and alert on training metrics, inject layout constraints during generation, and move compliance rules ahead into the prompt and decoding stages.
7. Adoption Roadmap
- Phase 1: standardize specs and structure the asset library, turning unstructured assets into searchable data.
- Phase 2: launch a semi-automatic form of the generation engine, with humans confirming key checkpoints while feedback data accumulates.
- Phase 3: add the agent interaction layer, using defaults and clarification strategies to lower the barrier to use.
- Phase 4: introduce reinforcement learning and performance attribution to gradually raise the auto-approval rate and the speed of asset iteration.
Overall, the real value of intelligent creative generation is not replacing designers, but handing repetitive work to the pipeline while leaving judgment and strategy to people. Once generation latency drops to the minute level and the interaction barrier falls to simple confirmation, creative supply can finally match the pace of automated delivery.
