Exam CT-GenAI Topic 1 Question 3 Discussion

Actual exam question for ISQI's CT-GenAI exam
Question #: 3
Topic #: 1
Which setting can reduce variability by narrowing the sampling distribution during inference?

Suggested Answer: C Vote an answer

In the context of LLM inference,Temperatureis a hyperparameter that controls the randomness or
"creativity" of the model's output. When the temperature is set high, the model's probability distribution is
"flattened," meaning it is more likely to select less-probable tokens, leading to more diverse and sometimes unpredictable text. For software testing, where precision and repeatability are paramount,lowering the temperature(Option C) is the standard practice. A temperature of 0.0 makes the model "deterministic," meaning it will consistently choose the token with the highest probability. This narrows the sampling distribution and significantly reduces variability between runs. While a larger context window (Option D) allows the model to process more information, it does not directly control the randomness of token selection.
Similarly, the "learning rate" (Option B) is a parameter used during thetrainingorfine-tuningphase, not during inference. For generating test cases or scripts that must follow strict logic, a lower temperature ensures that the model remains focused and produces consistent results.

by Cornell at Sep 11, 2026, 10:25 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10