Learn Before
Concept

Log probabilities

By using log probabilities instead of raw probabilities, we get numbers that are not as small. The result of doing all computation and storage in log space is that we only need to convert back into probabilities if we need to report them at the end; then we can just take the exp of the logprob: p1×p2×p3×p4=exp(logp1+logp2+logp3+logp4)p_1 \times p_2 \times p_3 \times p_4 = exp( log{p_1} + log{p_2} + log{p_3}+ log{p_4})

0

1

Updated 2026-01-15

Tags

Data Science

Foundations of Large Language Models Course

Computing Sciences

Related