Bird
0
0

You want to generate text that balances creativity and coherence. Which temperature value and sampling strategy combination is best?

hard📝 Application Q15 of 15
NLP - Text Generation
You want to generate text that balances creativity and coherence. Which temperature value and sampling strategy combination is best?
ATemperature 0.1 with greedy sampling
BTemperature around 0.7 with top-k sampling
CTemperature 2.0 with random sampling
DTemperature 1.5 with no sampling (always pick max)
Step-by-Step Solution
Solution:
  1. Step 1: Understand temperature impact on creativity

    Temperature ~0.7 balances randomness and predictability, avoiding too repetitive or too random output.
  2. Step 2: Choose sampling method for balance

    Top-k sampling limits choices to top probable tokens, improving coherence while allowing creativity.
  3. Final Answer:

    Temperature around 0.7 with top-k sampling -> Option B
  4. Quick Check:

    Moderate temperature + top-k = balanced creativity [OK]
Quick Trick: Use moderate temperature and top-k for balanced text [OK]
Common Mistakes:
MISTAKES
  • Using very low temperature causing boring text
  • Using very high temperature causing nonsense
  • Ignoring sampling method effects

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More NLP Quizzes