Join the discussion
Question 5/15
Which setting can reduce variability by narrowing the sampling distribution during inference?
Correct Answer: C
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.
"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.
Add Comments
- Other Question (15q)
- Q1. Which statement about fine-tuning for test tasks is INCORRECT?...
- Q2. What BEST protects sensitive test data at rest and in transit?...
- Q3. You are tasked with applying structured prompting to perform impact analysis on recent cod...
- Q4. Which competency MOST helps testers steer LLMs to produce useful, on-policy testware?...
- Q5. Which setting can reduce variability by narrowing the sampling distribution during inferen...
- Q6. What does an embedding represent in an LLM?
- Q7. You are tasked with applying structured prompting to perform impact analysis on recent cod...
- Q8. Which statement about data privacy risks in GenAI-assisted testing is INCORRECT?...
- Q9. A prompt section states: "Web checkout module v3.2; focus on coupon application; existing ...
- Q10. What is a hallucination in LLM outputs?
- Q11. How do tester responsibilities MOSTLY evolve when integrating GenAI into test processes?...
- Q12. Who typically defines the system prompt in a testing workflow?...
- Q13. Which of the following is NOT a valid form of LLM-driven test data generation?...
- Q14. What is a primary compliance concern related to Shadow AI in organizational test environme...
- Q15. What is a key data-related aspect when defining a GenAI strategy for testing?...
