Hacker News new | ask | show | jobs
by a3w 6 days ago
"At the best case, perplexity is 1"

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?

1 comments

The best possible perplexity is 1, and the best possible log-perplexity is log(1) = 0. The only way to achieve this is with a model that always predicts that the next token has probability 1 -- i.e., a perfect model.

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.

Great, thank!

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.)

IIRC the pH scale is only 0 to 14 in aqueous solution. Neutral is 7 because pure water dissociates itself to OH- and H3O+ at a rate of 10^-7 or near enough. That is water dissociates water at a rate of 10^-7.

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.

https://en.wikipedia.org/wiki/Leveling_effect

Huh, TIL! I always thought that the only reason we didn't measure negative pH levels was because our undergrad chemistry lab didn't trust us with acids that strong. Super interesting that it's actually a fundamental property of water.
I think you have something backwards. The graph shows log-perplexity, with the oldest models getting a log-perplexity of 1 and the newest ones getting closer to 0.7. I don't know what base they're using for their log, but suppose that it's base 2. Then, the oldest models have a perplexity of 2^1 = 2, and the newest models are approaching a perplexity of 2^0.7 = 1.62.

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.