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
The temperature parameter controls the sampling process; the higher the temperature, the more random and diverse the output, and the lower the temperature, the more it tends toward the highest-probability choice.
When temperature is set to 0, decoding degenerates to greedy decoding, selecting the highest-probability token at each step, but this only guarantees determinism within a single model version.
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.
Timeline (last 90 days)
Decoding strategies such as temperature parameters and top-p sampling can only perturb the probability distribution; they cannot create new viewpoints that do not exist in the training data.
Adjusting decoding parameters such as temperature and top-p affects a single generation and cannot guarantee long-term diversity across users and sessions.
Two small trainable projection heads project the text vectors into the same space, similarity is computed via a learnable temperature parameter, and the closest option is the predicted answer.
In the full-label setting, none of the four bandit methods surpassed a simple baseline of cross-entropy plus one temperature parameter in average expected calibration error (ECE) across four unseen label patterns.
The regularized optimal policy p* satisfies p*(τ) ∝ p0(τ) exp(A(τ)/β), where A is the advantage function and β is the temperature parameter.
Even with the temperature set to zero, inference across different batches and different infrastructure may still have subtle differences.
The temperature parameter divides and scales the logits before softmax: when the temperature is low (such as 0.2), the probability of the high-probability token approaches 100%; when the temperature is high (such as 2.0), the probability of the high-probability token drops significantly (such as 'moon' dropping to 6.3%).
Differentiable logic gates commonly use Sigmoid or Softmax functions to approximate the step function, and use a temperature parameter to control the sharpness of the approximation: at high temperatures it is smooth and easy to optimize, while at low temperatures it approaches a true logic gate.
The output of generative large models is essentially the result of probabilistic sampling; the same input under different sampling parameters (such as temperature and top-p) produces different text, so there is no unique correct answer.
The first stage covers the essential differences between large-model application development and traditional backend development, the boundaries of model capabilities, the role of tokens and context windows, the impact of the temperature parameter on output, API calling and billing logic, and what each mainstream model excels at.
17 more timeline events
All Facts (20)
The temperature parameter controls the sampling process; the higher the temperature, the more random and diverse the output, and the lower the temperature, the more it tends toward the highest-probability choice.
80%VerifiedWhen temperature is set to 0, decoding degenerates to greedy decoding, selecting the highest-probability token at each step, but this only guarantees determinism within a single model version.
80%VerifiedWhen 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%VerifiedThe randomness of AI large language model outputs stems from the temperature parameter and sampling strategy; when generating each token, the model is essentially performing probabilistic sampling.
70%VerifiedThe output of generative large models is essentially the result of probabilistic sampling; the same input under different sampling parameters (such as temperature and top-p) produces different text, so there is no unique correct answer.
65%VerifiedHigh temperature combined with a missing repetition penalty can easily cause the model to fall into repetitive loops or generate meaningless content.
65%VerifiedThe 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%VerifiedThe 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%UnverifiedAgent behavior is influenced by probabilistic model outputs, and the same user request may follow different execution paths due to differences in temperature parameters, context windows, or model versions.
70%UnverifiedInference parameters usually include temperature, top-p and maximum generation length; a lower temperature is conducive to code stability.
60%UnverifiedA lower temperature parameter makes model output more deterministic and is suitable for structured tasks, while a higher temperature introduces more creativity and is suitable for brainstorming scenarios.
60%UnverifiedAdjusting decoding parameters such as temperature and top-p affects a single generation and cannot guarantee long-term diversity across users and sessions.
50%UnverifiedDecoding strategies such as temperature parameters and top-p sampling can only perturb the probability distribution; they cannot create new viewpoints that do not exist in the training data.
50%UnverifiedTwo small trainable projection heads project the text vectors into the same space, similarity is computed via a learnable temperature parameter, and the closest option is the predicted answer.
50%UnverifiedIn the full-label setting, none of the four bandit methods surpassed a simple baseline of cross-entropy plus one temperature parameter in average expected calibration error (ECE) across four unseen label patterns.
50%UnverifiedThe regularized optimal policy p* satisfies p*(τ) ∝ p0(τ) exp(A(τ)/β), where A is the advantage function and β is the temperature parameter.
50%UnverifiedEven with the temperature set to zero, inference across different batches and different infrastructure may still have subtle differences.
50%UnverifiedThe temperature parameter divides and scales the logits before softmax: when the temperature is low (such as 0.2), the probability of the high-probability token approaches 100%; when the temperature is high (such as 2.0), the probability of the high-probability token drops significantly (such as 'moon' dropping to 6.3%).
50%UnverifiedDifferentiable logic gates commonly use Sigmoid or Softmax functions to approximate the step function, and use a temperature parameter to control the sharpness of the approximation: at high temperatures it is smooth and easy to optimize, while at low temperatures it approaches a true logic gate.
50%UnverifiedThe first stage covers the essential differences between large-model application development and traditional backend development, the boundaries of model capabilities, the role of tokens and context windows, the impact of the temperature parameter on output, API calling and billing logic, and what each mainstream model excels at.
50%