Plan First, Generate Second: A Technical Look at Controllable Image Generation
This article explains why production design workflows need more than realistic images, and how a "plan first, generate second" approach addresses those needs. It covers the hard constraints of semantic precision, spatial control, and editability; how an explicit intermediate representation makes constraints verifiable and errors traceable; how layered output enables local edits without full regeneration; and the evaluation and engineering practices that make such systems practical.
1. Background: Generative Design Enters the “Deliverable” Stage
Early image generation was judged mainly on visual realism and how closely the style matched a description. Once generated results enter a real design workflow, the evaluation criteria expand quickly: Is the text readable and well laid out? Is the number of elements exact? Are subjects positioned as expected? Can the result be modified afterward? A poster may look right overall while only the headline needs replacing; a slide may have the correct structure while only one icon needs to move. If every small adjustment requires regenerating the whole image, users not only wait longer but may also lose the parts they were already satisfied with.
For this reason, industrial design scenarios impose three hard constraints on generation systems:
- Semantic precision: a specified number of objects, an explicit chart type, readable text content;
- Spatial control: element positions, layering relationships, whitespace, and alignment;
- Editability: the output must be a layered structure, not a single flattened bitmap.
2. Core Idea: Make Planning Explicit
The essence of “plan first, generate second” is to separate the reasoning process that was previously compressed into a single generation model. The system first produces an intermediate representation—an element list, bounding boxes, text strings, and stacking order—and then hands it to a rendering or generation module for execution. This brings three benefits: constraints can be validated, errors can be localized, and cost can be distributed.
A simplified example of a planning data structure:
{"canvas": {"width": 1080, "height": 1350},"layers": [{"id": "bg", "type": "image", "bbox": [0, 0, 1080, 1350], "z": 0},{"id": "title", "type": "text", "bbox": [80, 120, 920, 260],"content": "Spring New Product Launch", "style": {"size": 72, "weight": "bold"}},{"id": "hero", "type": "image", "bbox": [80, 320, 1000, 900], "z": 1}]}
The planning stage can be handled by rules, a layout solver, or a model working together. The key point is that the intermediate representation is explicit, readable, and verifiable. Wrong element counts, overflowing text, and conflicting layers can all be caught before rendering, rather than leaving users to pick from a pile of unusable images.
3. Layered Architecture: Still Editable After Generation
Alongside planning is layered output. If the result naturally carries layers—background, subject, text, decoration—users can replace only the headline or move only one element while keeping the rest unchanged. In engineering terms, this usually requires each layer to be independently addressable, with clear bounding boxes and z-order, and text layers that retain strings rather than pixels. This way, “local redraw” degrades into “single-layer recomputation,” reducing both latency and uncertainty.
4. Evaluation and Engineering Considerations
- Layered metrics: evaluate composition quality, count accuracy, text readability, and local edit success rate separately;
- Caching and reuse: planning results can be cached, and unchanged layers reused during adjustments;
- Fallback on failure: when planning validation fails, fall back to a conservative layout instead of rendering directly;
- Observability: record intermediate planning states to help determine whether the error is in planning or in rendering.
5. Conclusion
The gap between “can generate” and “can deliver” comes down to controllability and editability. “Plan first, generate second” breaks the design process into verifiable intermediate steps, improving accuracy, control, and editability at the same time. Combined with layered output and a clear evaluation system, this type of approach is easier to implement in real design tools and easier to prove its value through actual use.
