by a3w · 6d ago · 0 comments
This graph shows log(perplexity) it says. So perplexity starts at zero, then gets negative? I notice I am confused. Most plausible: you mean log-perplexity in best case is 1, for no perplexity, i.e. zero?
A helpful comparison: suppose you have a model that always outputs a uniform distribution over K possible tokens (assigning probability 1/K to each one), and that the next token is indeed one of those K options. This model has perplexity K. So, in some sense a perplexity of K is comparable to narrowing down the answer to one of K possibilities. This includes the special case of K=1, which is the best possible model.
Then
> So perplexity [in this graph] starts at [or near] zero, then gets negative?
was correct. Strange that some things are not inverted to be more handy.
Conversly pH/pOH using inverted, then positive numbers, since logs get negative.
(And pH rarly then gets negative, meaning "ten times" when it reaches -1, and that is usually not even taught in school, using 0 and 14 as limits for aqueous solutions there instead.)
pH 0 means something dissociates water at a rate of 10^-0 or 100% - every single molecule of acid converts an H2O to H3O+, so you don't really have that acid any more, you just have H3O+ and they all look the same. You can't measure acidity stronger than pH 0 in water because you're just measuring the maximum acidity of the water itself. For some reason the opposite thing happens for bases at 14.
Different solvents that disassociate can have different bounds, and we can extrapolate values outside of 0-14 by measuring different strong acids against each other in solvents that react with acids less. Like if one acid causes another to dissociate, that one is stronger.
None of the models get a negative perplexity. It's not possible to get a negative perplexity: that would mean you're doing better than predicting the next token with probability 1, which is impossible.