Generative AI Leader Practice Question: Techniques to Improve Generative AI Model Output
A company uses a text-to-image model to generate marketing visuals. The results often misinterpret the prompt, e.g., 'a red car' generates a blue car. Which technique should they try first to align the output with the prompt?
⚠ Common exam trap
The trap here is that candidates often jump to hyperparameter tuning (guidance scale) or post-processing (upscaling) as a first fix, when the most fundamental and cost-effective step is to improve the input prompt's specificity, which directly controls the conditioning signal in the diffusion process.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Refine the prompt with more adjectives and context, e.g., 'bright red sports car'
Refining the prompt with more adjectives and context directly addresses the root cause of misalignment: insufficient specificity in the text description. Text-to-image models rely on the semantic richness of the prompt to guide the latent diffusion process; adding 'bright red sports car' provides stronger conditioning signals that steer the model's cross-attention layers toward the intended color and object attributes. This is the most efficient first step before adjusting hyperparameters like guidance scale.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use a negative prompt to exclude blue
Why it's wrong here
A negative prompt suppressing blue biases sampling away from that token but does not bind 'red' to 'car'; colour may shift to green or grey instead. Negative prompts suit removing recurring artefacts or unwanted objects, not enforcing a specific attribute the positive prompt already states.
- ✓
Refine the prompt with more adjectives and context, e.g., 'bright red sports car'
Why this is correct
Text-to-image models weight prompt tokens probabilistically, so vague phrasing leaves colour underspecified. Adding explicit descriptors such as 'bright red sports car' increases the token weight for red, steering sampling toward the intended output. This prompt-refinement step is the fastest fix before considering fine-tuning or negative prompts.
- ✗
Upscale the image resolution to 1024x1024
Why it's wrong here
Upscaling alters pixel dimensions after generation, leaving the semantic content — the blue car — unchanged; it cannot retroactively reassign colour. Resolution increases suit print-ready asset production from an already-correct composition, not prompt-alignment failures, which require conditioning changes during sampling.
- ✗
Increase the guidance scale to 20
Why it's wrong here
A guidance scale of 20 over-constrains sampling, producing saturated, artefact-heavy images rather than correcting colour attribution; the prompt's semantics are already encoded, so the fault lies in conditioning, not scale magnitude. Moderate guidance (7–12) suits sharper adherence, but colour swaps typically need prompt weighting or negative prompts.
Go deeper
Related to this question
About these practice questions
This Generative AI Leader question is part of Courseiva's 1,008-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This Generative AI Leader practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Generative AI Leader exam.