AIToday
Large Language ModelsQiita 機械学習Published: Nov 30, 2026, 16:00 JST

Qwen2.5-1.5B test: similarity drops to 0.082 at temperature 1.2

Send on LINE
Qwen2.5-1.5B test: similarity drops to 0.082 at temperature 1.2

3 Key Points

  1. What happened

    Running Qwen/Qwen2.5-1.5B-Instruct three times each at temperatures 0.1, 0.7 and 1.2, average similarity between outputs fell from 0.642 to 0.182 to 0.082.

  2. Why it matters

    Low temperature produced consistently similar answers on healthcare, transport and education, while 1.2 mixed languages and broke into unusable text, so wider variation did not mean better answers.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The experiment is built around one controlled comparison: same model, same prompt, same three seeds, with only the temperature setting changed. By holding top_p at 1.0 and top_k at 0, the author tries to isolate temperature's effect, which makes the resulting numbers easier to read as a temperature signal rather than a mix of sampling settings.

The qualitative results line up with the quantitative ones. At 0.1 the model kept returning to the same themes, such as healthcare, autonomous driving and education, and the similarity score of 0.642 reflects that. At 0.7 the structure itself began to shift, with one run returning a numbered list, and similarity dropped to 0.182. At 1.2 the sentence degenerated into mixed languages and fragments, and similarity fell to 0.082.

The author is explicit about the limits: only three runs per temperature were tested, and string similarity says nothing about meaning or naturalness. The follow-up promised in the post will look at logits, Softmax and temperature to explain why changing the setting alters which tokens get picked.

FAQ
What prompt and model were used in the experiment?
The test used Qwen/Qwen2.5-1.5B-Instruct with the prompt asking for about 100 characters on AI's future impact on society, generating up to 150 new tokens with do_sample=True, top_p=1.0 and top_k=0.
How was output similarity measured?
Similarity was calculated with Python's difflib SequenceMatcher, averaging the ratios across the three pairs of outputs produced from seeds 42, 43 and 44, on a 0-to-1 scale where 1 means nearly identical strings.
Did higher temperature make the answers longer?
Yes, average character counts rose from 192.3 at 0.1 to 201.7 at 0.7 and 272.7 at 1.2, but the 1.2 outputs contained many unnatural strings, so length did not reflect richer content.
Qiita 機械学習Read Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleClaude Code works harder when told it trains another AI