keyword
average log-probability
Average log-probability is a metric in natural language processing and machine learning that quantifies the confidence or likelihood a model assigns to a sequence of text by calculating the arithmetic mean of the logarithmic conditional probabilities of its individual tokens. When evaluating generated text, multiplying raw token probabilities causes the total probability to shrink with sequence length, unfairly penalizing longer responses and risking numerical underflow. By converting these probabilities into logarithms, summing them across the output, and dividing by the total token count, the average log-probability creates a length-normalized score where values closer to zero indicate higher model certainty. This measurement is commonly used to score candidate answers, assess prediction calibration, and identify potentially uncertain or unreliable model generations.
1 item

