it’s the night before an exam, and you haven’t studied.
We have all been there, so that’s the question I used for a hands-on lab in Amazon Bedrock: “I have an exam tomorrow and I haven’t studied. What should I do tonight?”
The lab, Explore Foundation Models and Prompt Engineering on AWS Skill Builder, was meant to show how two settings, temperature and top P, change what a model writes. I expected chaos at the high settings and calm at the low ones. That is not what happened.
What I Expected
Temperature controls how surprising the model’s word choices are. A low value means predictable text, and a high value means more adventurous text. Top P limits the model to its most likely next words, so a low value means only the safest options. I figured turning the temperature up would give me a wild, creative answer.
What Actually Happened
I used Nova Micro and ran the same question three times.
Temperature 0: It opened with a kind line about stress, then gave a tidy nine-step plan: assess your time, prioritize topics, make a study plan, gather materials, use active study techniques, stay focused, stay healthy, review, and sleep.
Temperature 1: The plan was almost the same, with the same nine steps in the same order. The changes were small. “Feel stressed” became “feel overwhelmed,” and a few extra tips appeared, like focusing on the hardest topics first, explaining things out loud to an imaginary friend, and going to bed early. Even the sleep step was only renamed from “good night’s sleep” to “adequate rest.”
Top P 0.1: I kept the temperature at 1 for this run and changed only top P. The answer came back word for word the same as my temperature 0 version. Even with the “creative” slider turned up, a low top P squeezed the model back to its safest words. I only ran it once, so I would want to repeat it before calling it a rule.
What Surprised Me
The advice itself never changed. For a question this common, the model seems to have a very strong default answer. Temperature 1 only nudged the wording, and top P 0.1 shut even that down.
The model also never asked which subject the exam was in or how many hours I had left. The plan was solid but completely generic. Reading three versions of it made me realize that a good answer and an answer that is useful for me are not the same thing.
What I’d Take From This
- For a common advice question, temperature mostly changes the phrasing, not the plan.
- Top P can override temperature. With the temperature at 1, a low top P still gave me the temperature 0 answer.
- Before you trust a result, check that your settings really are what you think they are. I double-checked mine, and it changed how I wrote this.
What I Want to Try Next
I want to run a creative prompt, like a short story about a student with one hour of Wi-Fi left, at temperature 0 and temperature 1 to see whether the gap is bigger there.
Loading article