Unverified50% confidenceSolutionExact time
在LLM引用行为测试中固定随机性需要同时设置temperature和top-p参数并在支持时固定随机种子
1
Sources
50%
Confidence
Long-term
Relevance
7/25/2026
First Seen
Sources
如何科学测试提示词对LLM引用行为的影响
redditr/learnmachinelearning7/9/2026
Related Claims
Unverified大语言模型(LLM)由于temperature、top-p、top-k等采样策略带有随机性,同一提示词在两次调用中可能产生截然不同的响应81% similarVerifiedWhen generating each token, LLMs randomly sample from a probability distribution according to a temperature parameter rather than selecting the deterministic output with the highest probability, thereby producing emergent properties.79% similarVerifiedThe inconsistency of LLMs is closely related to the model's temperature parameter and stochastic sampling process, and multiple calls to the same model with the same question may produce different answers.76% similarUnverifiedLLM基于Transformer架构的自注意力机制和Softmax概率分布,通过温度参数控制采样随机性,温度趋近0时输出最高概率token,温度升高时引入更多随机性75% similarUnverifiedLLM本质上是在做下一个token的概率预测,即便温度参数设为0,面对复杂的多步骤指令时,模型仍会受到注意力机制的影响73% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/615565API
curl https://kongchang.com/api/v1/knowledge/claims/615565MCP
get_claim(id=615565)