1 Autoregressive next-token prediction and lossless source coding optimize identical Shannon cross-entropy: doubling predicted token probability saves exactly one bit under arithmetic coding.
“Next token prediction and compression are literally the same objective. Double the probability, save one bit. An arithmetic coder turns those probabilities into the actual compressed file.”