AI Image Generation Model Comparison: Prompt Adherence and Editing Tests

    This article presents a repeatable framework for evaluating AI image generation and editing models across five capability dimensions: prompt adherence, identity and structure preservation, local editing and object removal, style transfer, and output specifications. It explains why single-image comparisons are unreliable, how to build checklists and a fixed test set, how to score results using mean and variance, and how to avoid common failure modes such as aspect ratio drift, semantic overreach, and plastic-looking skin. The goal is not to declare a single winner, but to help readers match model strengths to specific use cases and build a quantifiable evaluation loop.

    1. Why Evaluations Get Distorted: Define the Problem First

    When comparing image generation models, the most common mistake is picking a winner based on a single image. Image generation is a high-variance task: the same prompt can produce noticeably different results under different random seeds, so a single sample is not enough to support a conclusion. A more rigorous approach is to break “which model is stronger” into several verifiable capability dimensions, then define fixed inputs, fixed judging criteria, and repeated sampling for each one.

    This article abstracts the hands-on scenarios from the source material into five general capability categories: stylized editing, portrait texture handling, fine control of makeup and attributes, local content removal, and dynamic effect composition. These five cover the most frequent real-world business needs and tend to expose model weaknesses most clearly.

    Note that this article does not declare any specific product better or worse. Instead, it offers an evaluation and prompt engineering method that anyone can reuse.

    2. A Five-Dimension Evaluation Framework

    2.1 Prompt Adherence

    What to check: whether every constraint in the prompt is actually applied, and whether the model “does too little” or “does too much.” For example, if the prompt asks to “preserve skin pore texture” but the output is plastic, smoothed skin, that is doing too little. If the prompt says “keep everything else unchanged” but the background composition changes, that is doing too much.

    Break complex prompts into a constraint checklist and tick off each item rather than giving one overall score:

    1. Constraint checklist example
    2. [ ] Preserve pores and realistic skin texture
    3. [ ] Remove the specified blemish area
    4. [ ] Do not change the person's identity features
    5. [ ] Do not change the aspect ratio
    6. [ ] Do not add new elements to the frame

    2.2 Identity and Structure Preservation

    For portrait editing, the core metric is “is it still the same person.” Evaluation should focus on facial proportions, hairline, ear shape, finger count, and joint structure. Hands and accessories are common failure areas, so the test set should always include samples where hands are visible.

    2.3 Local Editing and Content Removal

    Removal tasks are the hardest, because the model must both “remove the target” and “reasonably fill in the background.” When the background contains text, dense crowds, or regular patterns, the fill-in often blurs or misaligns structures. Evaluate three things: whether the target is completely gone, whether the filled area has continuous texture, and whether non-target areas were altered by mistake.

    2.4 Style Transfer Strength and Semantic Fit

    Stylization is not a filter overlay; it is a coordinated reconstruction of lighting, color, grain, and camera language. The judging standard is the balance between “are the style features clear” and “is the original semantics preserved.” If a model adds elements such as signs or neon lights on its own to chase a style, that is semantic overreach.

    2.5 Output Specifications and Engineering Usability

    This includes whether the aspect ratio is stable, whether the resolution meets delivery requirements, and whether batch calls show consistency fluctuations. This dimension is the most easily overlooked, yet it directly determines whether a model can enter a production pipeline.

    3. A Reusable Prompt Structure

    A six-part structure is recommended: role setup + editing target + items to preserve + items to change + negative constraints + output specifications. It significantly reduces ambiguity:

    1. [Editing target] The main subject in the input image
    2. [Preserve] Facial structure, identity features, aspect ratio, background content
    3. [Change] Change lighting to side-backlight, shift color temperature cooler, add slight film grain
    4. [Negative constraints] No skin smoothing, no added text, do not change finger count
    5. [Output specs] Keep the original aspect ratio, long edge no less than 2048 pixels

    Negative constraints are key to improving stability. Most failures are not capability problems; they happen because the prompt only describes what is wanted and never states what must not be done.

    4. Test Set Design and Quantitative Scoring

    Build a fixed set of 30 to 50 samples covering five categories: portraits, still objects, dense scenes, scenes containing text, and hand close-ups. Sample each item 3 times consecutively, score on a 1 to 5 scale, and report two metrics: mean and variance. The mean represents the capability ceiling; the variance represents production usability. A large variance means extra retry and filtering mechanisms are needed.

    1. scores = {"instruction": 4.3, "identity": 4.1,
    2. "local_edit": 3.4, "style": 4.5, "spec": 3.8}
    3. mean = sum(scores.values()) / len(scores)
    4. variance = sum((v - mean) ** 2 for v in scores.values()) / len(scores)
    5. print(f"mean={mean:.2f} variance={variance:.2f}")

    5. Common Failure Modes and How to Avoid Them

    • Aspect ratio drift: explicitly state at the end of the prompt that the original aspect ratio must be kept, and add a dimension check in post-processing.
    • Semantic overreach: add a “do not add elements to the frame” constraint to style prompts.
    • Leftover artifacts in local edits: split removal into two steps, “locate - remove - fill in,” and process region by region multiple times when necessary.
    • Plastic-looking texture: explicitly state that pores and texture must be preserved, and lower the weight of smoothing-related wording.
    • Structural distortion: treat hands and text areas as separate acceptance items, and retry immediately if they fail.

    6. Implementation Suggestions

    In real projects, image generation capability can be packaged into a general cloud architecture: object storage holds source material and outputs, a message queue smooths out spikes to handle batch tasks, a container platform hosts inference services with elastic scaling, and logging plus monitoring and alerting track sampling quality and failure rates. Baidu AI Cloud has mature practices in these general capabilities and can serve as an architecture reference.

    The selection conclusion should not be that “one model wins across the board,” but a division of labor by scenario: for stylized creative tasks, prioritize style strength; for commercial portraits, prioritize identity preservation and texture; for batch material processing, prioritize variance and specification stability. Building a quantifiable evaluation loop is the right path to maintaining output quality over the long term.