[KongchangAI]
ConceptTemperature / Temperature参数

Temperature Parameter

A hyperparameter used during large language model inference to control the randomness of outputs. Higher temperature values increase output diversity and suit creative tasks, while lower values improve output consistency and suit precise tasks such as testing.

Core Facts

Timeline (last 90 days)

Oct 16

Even with the LLM temperature set to 0, the same intent may still generate different SQL structures due to differences in prompt wording, context length, and prior tool call results.

Unverified50%
Oct 16

An LLM outputs a probability distribution when generating each word, and the higher the temperature the more random the sampling; even if two assistants recall the same information sources, different temperature settings can lead to different wording or even a different order of companies mentioned.

Unverified50%
Oct 15

Under a sampling strategy with a temperature parameter greater than 0, even if the input is exactly the same, a large model may produce different token sequences across multiple runs, thereby following different tool-calling paths and reasoning processes.

Unverified50%
Oct 14

The temperature parameter T adjusts the sharpness of the logits distribution via softmax(logits/T): the lower T is, the closer it is to greedy decoding, and the higher T is, the closer it is to uniform sampling.

Unverified50%
Oct 14

In the context of attention, the temperature parameter controls the sharpness of the softmax: low temperature makes attention concentrate on a few keys (low entropy, possibly overfitting), while high temperature makes the weights more uniform (high entropy, possibly under-focusing).

Unverified50%
Oct 13

The temperature parameter T controls the smoothness of the softmax; a higher T value makes the probability distribution smoother and exposes more information about the teacher model's internal decision logic.

Unverified50%
Sep 21

In typical practice, the temperature parameter T is commonly set between 3 and 10; after distillation training is complete, the student model reverts to the standard T=1 setting at inference time.

Unverified50%
Sep 21

When T=1 the output is a standard softmax distribution; when T>1 the probability distribution becomes more uniform—the higher the temperature, the flatter the output distribution, and the more fine-grained information the student model captures.

Unverified50%
Sep 19

When the probability distribution during the decoding phase fluctuates (such as when the temperature parameter is too high or the context matches the training distribution of a particular language), the model may slip into the semantic space of another language when predicting the next token.

Unverified50%
Sep 12

Sampling parameters, especially temperature, significantly affect model output, and are set independently by each tool and almost never exposed to the user.

Unverified50%

3 more timeline events

All Facts (15)

Verified

When a large language model generates each token, it samples from a probability distribution; the temperature parameter controls the degree of randomness—higher temperature produces more diverse outputs, while lower temperature produces more deterministic ones.

80%
Verified

The Softmax formula with temperature parameter T is P(xᵢ) = exp(zᵢ/T) / Σexp(zⱼ/T); when T→0 it degenerates to argmax, and when T→∞ it approaches a uniform distribution

65%
Verified

The temperature parameter design in the language model sampling process means that the same prompt may produce completely different outputs across different calls, so retrying itself does not guarantee convergence.

65%
Verified

temperature为0时退化为贪婪解码,每步选取概率最高的Token,但仅能保证单次模型版本内的确定性

65%
Unverified

Even with the LLM temperature set to 0, the same intent may still generate different SQL structures due to differences in prompt wording, context length, and prior tool call results.

50%
Unverified

An LLM outputs a probability distribution when generating each word, and the higher the temperature the more random the sampling; even if two assistants recall the same information sources, different temperature settings can lead to different wording or even a different order of companies mentioned.

50%
Unverified

Under a sampling strategy with a temperature parameter greater than 0, even if the input is exactly the same, a large model may produce different token sequences across multiple runs, thereby following different tool-calling paths and reasoning processes.

50%
Unverified

The temperature parameter T adjusts the sharpness of the logits distribution via softmax(logits/T): the lower T is, the closer it is to greedy decoding, and the higher T is, the closer it is to uniform sampling.

50%
Unverified

In the context of attention, the temperature parameter controls the sharpness of the softmax: low temperature makes attention concentrate on a few keys (low entropy, possibly overfitting), while high temperature makes the weights more uniform (high entropy, possibly under-focusing).

50%
Unverified

The temperature parameter T controls the smoothness of the softmax; a higher T value makes the probability distribution smoother and exposes more information about the teacher model's internal decision logic.

50%
Unverified

When T=1 the output is a standard softmax distribution; when T>1 the probability distribution becomes more uniform—the higher the temperature, the flatter the output distribution, and the more fine-grained information the student model captures.

50%
Unverified

In typical practice, the temperature parameter T is commonly set between 3 and 10; after distillation training is complete, the student model reverts to the standard T=1 setting at inference time.

50%
Unverified

When the probability distribution during the decoding phase fluctuates (such as when the temperature parameter is too high or the context matches the training distribution of a particular language), the model may slip into the semantic space of another language when predicting the next token.

50%
Unverified

Sampling parameters, especially temperature, significantly affect model output, and are set independently by each tool and almost never exposed to the user.

50%
Unverified

Common sampling strategies include top-k sampling (retaining only the k tokens with the highest probability), top-p sampling (dynamically selecting the minimum set of tokens whose cumulative probability just exceeds a threshold p), and the temperature parameter (controlling the sharpness of the distribution by scaling the logits).

50%

Source Articles