Perplexity

Perplexity from Likelihood

PPL=P(w1w2...wN)−1N=1P(w1w2...wN)N=1∏iP(wi|w1w2...wi−1)N

Perplexity from Cross Entropy

PPL=eCE