Know Your Limits: Entropy Estimation Modeling for Compression and Generalization
Benjamin L. Badger, Matthew Neligeorge
TL;DR
This work investigates the fundamental role of informational entropy in language modeling and compression, introducing encoder-augmented causal decoders to enable efficient per token entropy estimation. It demonstrates that entropy estimation models train more efficiently than traditional causal models and can achieve superior scaling, leading to more accurate token level entropy estimates. The authors prove that training toward the dataset entropy yields ideal generalization and provide empirical evidence that entropy informed training improves generalization for causal models. The approach also includes practical techniques such as quantization aware training and second order entropy estimation to enhance robustness and tractability across large scale settings, with potential applicability to other modalities beyond language.
Abstract
Language prediction is constrained by informational entropy intrinsic to language, such that there exists a limit to how accurate any language model can become and equivalently a lower bound to language compression. The most efficient language compression algorithms today are causal (next token prediction) large language models, but the use of these models to form accurate estimates of language entropy is currently computationally infeasible. We introduce encoder-augmented causal decoder model architectures that exhibit superior training efficiency characteristics and achieve higher compression than causal transformers even when trained on modest hardware. We demonstrate how entropy estimates can be obtained on a per-token basis, and show that the generalization of models trained to approach the entropy of their training data necessarily exceeds the generalization of models trained to minimize loss beyond this value. We show empirically that causal models trained to approach but not exceed estimated per-token entropies exhibit greater generalization than models trained without taking entropy into account.
