Generative AI Leader Practice Question: Techniques to Improve Generative AI Model Output
A content generation model for e-commerce product descriptions repeats the same phrases across multiple descriptions (e.g., 'high-quality', 'best-in-class'). The team wants more varied and engaging output. Which parameter adjustment is most appropriate?
⚠ Common exam trap
The Generative AI Leader exam often tests the distinction between frequency penalty and temperature, where candidates mistakenly increase temperature to add variety, not realizing that temperature increases randomness and can break coherence, while frequency penalty directly targets repetition without sacrificing quality.
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
✓
Increase the frequency penalty parameter to 1.0.
Increasing the frequency penalty to 1.0 penalizes tokens that have already appeared in the generated text, directly reducing repetition of phrases like 'high-quality' and 'best-in-class'. This encourages the model to use more diverse vocabulary and sentence structures, leading to varied and engaging product descriptions.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Increase the frequency penalty parameter to 1.0.
Why this is correct
Frequency penalty specifically reduces the model's tendency to repeat tokens, improving lexical diversity.
- ✗
Decrease the max output tokens to 50.
Why it's wrong here
Shorter output does not solve the repetition of phrases within the allowed length.
- ✗
Increase the temperature parameter to 1.5.
Why it's wrong here
Higher temperature can reduce repetition but also introduces more randomness and potential incoherence.
- ✗
Set the top-p value to a very small number like 0.1.
Why it's wrong here
Small top-p narrows the vocabulary, potentially increasing repetition of common words.
Go deeper
Related to this question
About these practice questions
One of 683 original Generative AI Leader practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.