Papers
Topics
Authors
Recent
Search
2000 character limit reached

Language Modeling is Monotone Compression

Published 8 Oct 2026 in cs.IT, cs.AI, and cs.CR | (2610.11031v1)

Abstract: A long-standing hypothesis in artificial intelligence and neuroscience posits that intelligence is closely related to compression: the ability to compress information efficiently intuitively reflects capacities associated with intelligence and learning. Indeed, recent experimental works verify this intuition by showing connections between the capabilities of LLMs and their ability as compressors: for instance, Deletang et al. (ICLR'24) demonstrate that LLMs can be used as powerful compressors, and Huang et al. (COLM'24) show that the compression ability of LLMs is highly correlated with their performance on benchmarks for knowledge and reasoning. In this work, we initiate a theoretical study of this connection. Our main result is that LLMs (formally modeled as next-token predictors) are equivalent to monotone (a.k.a. order-preserving) compression algorithms---namely, compression algorithms where the encoding process preserves the ordering of the inputs---in the sense that the one can be constructed from the other while preserving the same error up to an additive gap of 2. We next show that the monotonicity is required for this equivalence to hold if and only if cryptographic (infinitely-often) one-way functions exist. As a direct corollary, we get a cryptographic result of independent interest: the notion of next-bit pseudoentropy (a computational analogue of entropy) of a distribution is equivalent to monotone incompressibility of the distribution. (Previously, it was only known (Haitner et al., ITCS'23) that incompressibility implies next-bit pseudoentropy.)

Summary

  • The paper proves an efficient equivalence between autoregressive models and monotone compression, enabling bidirectional transformations with a constant loss.
  • The authors argue that monotonicity is both sufficient and often necessary for maintaining predictive accuracy when transitioning between compression and autoregressive modeling.
  • The findings align compression with next-bit pseudoentropy, linking inorder preservation to both efficient autoregressive modeling and predictability of compressed distributions.

Problem formulation and conceptual contribution

“Language Modeling is Monotone Compression” (2610.11031) gives a complexity-theoretic characterization of the relationship between autoregressive language modeling and lossless data compression. The paper formalizes a LLM as an efficiently computable next-token predictor and measures its quality by expected negative log-likelihood, equivalently the cross-entropy between a source distribution DD and the distribution induced by autoregressive sampling from the model. Compression is formalized through efficient prefix-free encodings whose expected code length is compared with the Shannon entropy H(D)H(D).

The central claim is not that arbitrary compression and language modeling are equivalent. Rather, the paper identifies monotone compression as the exact structural condition needed for an efficient equivalence. An encoding is monotone when it preserves a specified lexicographic ordering: if xx precedes yy in the source ordering, then the binary codeword for xx precedes the codeword for yy. Under this condition, the paper proves an efficient two-way transformation:

  • a δ\delta-optimal autoregressive model yields a (δ+2)(\delta+2)-optimal monotone compressor;
  • a δ\delta-optimal monotone compressor yields a δ\delta-optimal autoregressive model.

Thus, the two representations have the same statistical efficiency up to a constant additive gap of two bits in one direction. This is a stronger statement than the informal observation that arithmetic coding can turn model probabilities into compressed representations. It establishes that the converse is also possible, but only when the encoding has sufficient order structure to support efficient recovery of prefix probabilities.

The result also explains an empirical asymmetry in prior work. Compression systems built from autoregressive predictors can be highly effective because arithmetic coding directly exploits the model’s conditional probabilities. Conversely, heuristic predictors constructed from general compressors can perform substantially worse. The paper attributes this disparity not merely to engineering differences, but to a formal computational obstruction: non-monotone compression can hide predictive structure in a way that efficient next-token prediction cannot recover.

Formal setup

Let H(D)H(D)0 be a distribution over token sequences, represented without loss of generality as fixed-length strings using an end-of-sequence token and padding. An autoregressive model H(D)H(D)1 assigns a conditional distribution H(D)H(D)2 to every next token. Its induced distribution over complete sequences is

H(D)H(D)3

The training objective is the expected negative log-likelihood,

H(D)H(D)4

which equals the cross-entropy H(D)H(D)5. Since

H(D)H(D)6

excess language-modeling loss is exactly a KL-divergence penalty, relative to the optimum H(D)H(D)7.

A compression scheme consists of an injective, prefix-free encoding H(D)H(D)8 and its decoder. Its objective is to minimize

H(D)H(D)9

Shannon’s source coding lower bound gives xx0 for binary prefix-free codes. A compressor is xx1-optimal if its expected code length is at most xx2.

The monotonicity condition is imposed over the entire input domain, not merely over the support of xx3. This is important for efficiency: monotonicity allows decoding and ranking by binary search, and it induces a tractable relationship between codeword intervals and source-prefix intervals. In particular, all strings sharing a fixed token prefix form a contiguous lexicographic interval, and monotonicity maps that source interval to a contiguous interval of binary random seeds or codewords.

The paper works in a non-uniform polynomial-time setting. Input lengths, alphabet sizes, and sequence lengths are polynomially bounded, and the relevant algorithms receive polynomial-size advice. These assumptions are essential to the efficient transformations and should not be conflated with claims about practical neural-network training.

From autoregressive models to monotone compression

The forward transformation uses arithmetic encoding with respect to the model-induced distribution xx4. For each complete output xx5, arithmetic coding assigns a codeword satisfying

xx6

Averaging over samples from the true distribution xx7 gives

xx8

Since cross-entropy decomposes into entropy plus KL divergence,

xx9

a model with excess loss at most yy0 produces a compressor with expected length at most yy1. The additive two-bit term is the arithmetic-coding overhead used by the construction. The paper notes that some constant overhead is unavoidable in general prefix-free coding; even non-monotone codes cannot uniformly achieve zero additive redundancy for arbitrary distributions.

The monotonicity of the resulting compressor is inherited from arithmetic coding. Arithmetic encoding orders the probability intervals associated with outputs according to the source ordering. The construction is therefore not simply a generic entropy coder: its interval structure preserves lexicographic order.

Efficiency requires more than efficient next-token evaluation. Arithmetic encoding also requires efficient computation of the cumulative distribution function

yy2

The paper shows that this CDF can be computed recursively from the model’s next-token probabilities. For a candidate sequence yy3, one sums the probabilities of all outputs that first diverge from yy4 at each position by choosing a smaller token, then adds the probability of yy5 itself. Because the alphabet and sequence length are polynomially bounded, only polynomially many conditional-probability evaluations are needed.

This result identifies a precise computational property underlying the common practice of compressing with LLMs: efficient autoregressive prediction implies efficient arithmetic encoding because the model’s local probabilities suffice to compute global lexicographic cumulative probabilities.

From monotone compression to autoregressive prediction

The reverse direction is technically more involved. Given a prefix-free monotone encoding yy6, the authors construct a distribution yy7 by decoding uniformly random binary strings. Informally, a random seed is examined from left to right; if one of its prefixes is a valid codeword, the corresponding source string is output. If no valid codeword is encountered, the procedure returns an appropriate source string determined by the order-preserving encoding.

For every source string yy8,

yy9

The reason is direct: every random seed beginning with xx0 causes the sampler to output xx1, and this event has probability xx2. Consequently,

xx3

Taking expectations under xx4 yields

xx5

Therefore, if xx6 is xx7-optimal, then

xx8

so the induced distribution has xx9. The corresponding autoregressive model is consequently yy0-optimal.

The central algorithmic issue is computing the conditional next-token probabilities of yy1. A naive approach would enumerate all random seeds, which is exponential in the code length. Monotonicity avoids this. The sampler is weakly monotone: larger binary seeds produce lexicographically no-smaller outputs. Therefore, the set of seeds producing outputs at most a given sequence yy2 is an initial interval of the seed space. Its endpoint can be located by binary search using only polynomially many sampler evaluations.

Once the CDF of yy3 is available, prefix probabilities follow by subtracting CDF values at the endpoints of lexicographic prefix intervals. Conditional next-token probabilities are then ratios of prefix probabilities. This supplies an efficient autoregressive representation of the distribution generated by the compressor.

The construction is significant because it preserves the compression loss globally. The model is not repeatedly approximating local token probabilities from the code lengths of prefixes. Instead, it defines one coherent distribution over complete outputs and derives all next-token probabilities from that distribution. The paper contrasts this with a prior heuristic that assigns a token weight based on the incremental change in compressed length. Such a method can incur a constant KL error at every generation step, producing total loss linear in sequence length. The present construction avoids that accumulation by performing the approximation once at the level of complete sequences.

Why monotonicity is necessary

The paper’s strongest structural claim is that monotonicity is not merely a convenient sufficient condition. Under standard cryptographic assumptions, it is necessary for any strong equivalence between efficient compression and efficient autoregressive prediction.

Assuming one-way functions, and hence pseudorandom generators, the authors construct an efficiently samplable distribution

yy4

where yy5 expands an yy6-bit seed to a yy7-bit pseudorandom string. A non-monotone compressor can encode such a sample using only the seed yy8, achieving expected length exactly yy9, which equals the entropy of the distribution. Encoding and decoding remain efficient: the compressor outputs the second component, and the decoder recomputes the generator output.

However, any efficient autoregressive model that predicts the distribution substantially better than chance would enable distinguishing pseudorandom generator outputs from uniformly random strings. Specifically, if an autoregressive model achieved KL divergence below δ\delta0, then its probability assignments to the first δ\delta1 bits could be thresholded to distinguish δ\delta2 from δ\delta3 with constant advantage. This contradicts pseudorandomness.

The resulting lower bound is quantitatively strong:

For every constant δ\delta4, every efficient autoregressive model has KL divergence at least δ\delta5 for all sufficiently large lengths, or infinitely many lengths in the infinitely-often formulation, while the non-monotone compressor achieves exactly δ\delta6.

Thus, under one-way functions, the gap between optimal non-monotone compression and efficient language modeling is linear in the sequence length. No transformation with constant or even sublinear additive loss can exist for arbitrary efficient compressors.

The construction exposes the role of order preservation. The compressor extracts the hidden seed from a pseudorandom-looking output, but the encoding destroys the lexicographic geometry needed to infer local conditional probabilities. Efficient decoding alone is insufficient: an autoregressive model requires a way to aggregate codeword mass over all outputs sharing a prefix, and a non-monotone encoding can make those sets computationally inaccessible.

The converse complexity-theoretic result is also established. If infinitely-often one-way functions do not exist, then the monotonicity condition can be dropped, although only approximately. The authors invoke the Impagliazzo–Luby next-bit prediction framework [(2610.11031) cites the 1989 result] to show that efficiently samplable distributions admit approximate next-bit predictors under the relevant nonexistence assumption. Given an arbitrary efficient δ\delta7-optimal compressor, uniform decoding of codewords defines a distribution within KL divergence δ\delta8 of the source. The next-bit prediction theorem then yields an autoregressive model statistically close to an optimal predictor for that auxiliary distribution.

This establishes a sharp dependence on cryptographic hardness:

  • with infinitely-often one-way functions, monotone and non-monotone compression separate;
  • without infinitely-often one-way functions, arbitrary compression admits an approximate prediction-to-compression equivalence.

The result is conditional and asymmetrical. The positive result without one-way functions incurs statistical error, unlike the exact monotone construction. It therefore does not establish exact equivalence between all compression and autoregressive modeling.

Connection to pseudoentropy

The paper applies the equivalence to next-bit pseudoentropy, a computational analogue of Shannon entropy. For a binary sequence, next-bit pseudoentropy measures whether each bit remains computationally unpredictable given its preceding prefix, aggregated across positions.

Prior work showed that incompressibility implies next-bit pseudoentropy, up to a constant, but the converse fails for unrestricted efficient compression when one-way functions exist. The present paper identifies the missing structural restriction: next-bit pseudoentropy is equivalent, up to an additive gap of two, to monotone incompressibility.

For a distribution family δ\delta9 and threshold (δ+2)(\delta+2)0, the paper establishes the equivalence between:

  • the inability of every efficient monotone prefix-free encoding to achieve expected length below (δ+2)(\delta+2)1;
  • next-bit pseudoentropy at least (δ+2)(\delta+2)2.

The forward implication follows by converting any efficient next-token predictor into a monotone arithmetic code. If the distribution had insufficient pseudoentropy, the corresponding predictor would achieve low KL divergence, and arithmetic encoding would yield a monotone compressor violating the incompressibility assumption. The reverse implication follows by converting a monotone compressor into an equally good autoregressive model and applying the characterization of pseudoentropy through KL-hardness.

This corollary gives a cryptographic interpretation of the main theorem. Monotone compression is not only an information-theoretic counterpart of autoregressive prediction; it is also the coding-theoretic form of next-bit unpredictability. The restriction to monotone codes is essential because unrestricted codes can exploit pseudorandom structure that is compressible but not efficiently predictable one bit at a time.

Limitations and open questions

The paper’s claims concern efficiently computable abstract distributions and encodings, not trained neural networks or practical compression ratios. The model class is a black-box family of next-token probability functions, and the results do not provide bounds relating transformer size, optimization dynamics, finite-sample estimation, or generalization to the existence of a (δ+2)(\delta+2)3-optimal model. Consequently, the equivalence should not be interpreted as an empirical claim that any high-performing compressor can be directly converted into a competitive LLM.

The constructions also rely on several technical assumptions: polynomially bounded alphabets and sequence lengths, prefix-free encodings, efficient exact or sufficiently precise probability computations, and non-uniform polynomial-time algorithms. The additive gap of two bits arises from arithmetic encoding and is constant rather than asymptotically significant, but the paper does not establish whether a fully general efficient monotone transformation can reduce this overhead to the optimal one-bit coding redundancy.

The negative result is conditional on the existence of infinitely-often one-way functions. Since that assumption is unresolved, the unconditional status of the separation between monotone and non-monotone compression remains open. Conversely, when infinitely-often one-way functions do not exist, the paper obtains approximate rather than exact prediction, with statistical error introduced by next-bit reconstruction. The precise tradeoff between this error, computational resources, and compression redundancy is not fully optimized.

Finally, the formal monotonicity requirement is defined relative to a fixed efficiently computable lexicographic ordering. It remains open how robust the equivalence is under alternative orderings, randomized or adaptive encodings, approximate monotonicity, and practical entropy coders whose arithmetic precision and probability representations are finite. These questions bear directly on whether the theoretical distinction between monotone and non-monotone compression corresponds to a broad practical principle or primarily to the exact computational model used in the paper.

Conclusion

The paper establishes that efficient autoregressive prediction and efficient monotone compression are quantitatively equivalent representations of the same distributional structure. Arithmetic coding gives the forward reduction with a two-bit overhead, while monotone decoding of uniformly sampled codewords gives the reverse reduction without additional cross-entropy loss. Monotonicity is also shown to be computationally substantive: assuming one-way functions, optimal non-monotone compression can coexist with linear next-token prediction error. The resulting equivalence between monotone incompressibility and next-bit pseudoentropy extends the modeling–compression connection into cryptographic complexity theory and identifies order preservation as the key condition governing efficient reversibility.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Explain it Like I'm 14

1. What is this paper about?

The paper studies the connection between LLMs, such as ChatGPT, and data compression.

A LLM tries to predict the next word or token in a sequence. A compression program tries to describe information using as few bits as possible. The authors ask:

Are predicting text and compressing text really two versions of the same task?

The paper’s main answer is yes—but only when the compression method follows the same ordering as the original data. The authors call this special kind of compression monotone compression.


2. What questions are the researchers asking?

The paper focuses on several main questions:

  1. Can a good LLM be turned into a good compression program?
  2. Can a good compression program be turned back into a good LLM?
  3. Why does turning LLMs into compressors seem to work better in practice than turning compressors into LLMs?
  4. Is the ordering requirement in monotone compression truly necessary?
  5. What does this connection tell us about ideas in cryptography, such as pseudoentropy?

Here, “good” usually means that the system makes only a small number of mistakes or uses only a small number of extra bits compared with the theoretical best possible method.


3. How did the researchers study the problem?

The paper is mainly a theoretical computer science paper. This means the authors use mathematics and proofs rather than running a large experiment.

LLMs as next-token predictors

The authors describe a LLM as a machine that looks at the beginning of a sentence and gives probabilities for what might come next.

For example, after seeing:

“The cat sat on the”

the model might assign probabilities such as:

Next token Probability
mat 0.60
floor 0.20
chair 0.05
other words 0.15

The model does this repeatedly until it predicts an entire piece of text.

The paper measures the model using cross-entropy, which can be understood as:

How many bits, on average, are needed to describe real text when using the model’s predictions?

If the model gives high probability to the correct next token, it needs fewer bits. If it gives low probability to the correct token, it needs more bits.

Compression

A compression program changes an input, such as a sentence or file, into a shorter string of bits. Another program can use those bits to reconstruct the original input exactly.

A compression method is good if its average compressed length is close to the amount of information that the data actually contains. This ideal amount is called entropy.

An analogy is packing a suitcase:

  • Entropy is the smallest realistic amount of space needed.
  • A good compression algorithm packs the suitcase efficiently.
  • A poor algorithm leaves lots of empty space.

Monotone compression

A compression method is monotone if it preserves the ordering of inputs.

Suppose words or strings are arranged alphabetically:

apple, ball, cat, dog

Then their compressed codes must appear in the same order. If apple comes before ball, the code for apple must also come before the code for ball.

This may sound like a small technical detail, but it allows the researchers to search through compressed codes efficiently using binary search, much like searching for a name in a phone book by repeatedly opening it near the middle.

The two transformations

The researchers prove two conversions.

From a LLM to compression

They use a method called arithmetic coding. It assigns shorter codes to outputs that the LLM considers more likely.

For example:

  • A very likely sentence gets a short code.
  • An unlikely sentence gets a longer code.

Arithmetic coding keeps the ordering of the possible outputs, so it creates a monotone compression scheme.

From monotone compression to a LLM

The researchers work in the other direction. They use the compressed codes as a way of defining probabilities.

Roughly:

  • Shorter code = more likely output.
  • Longer code = less likely output.

They then construct a probability distribution over complete texts and use that distribution to calculate the probability of each next token.

The construction uses a sampler: a procedure that reads random bits and turns them into possible outputs. Because the compression is monotone, the sampler’s outputs are also ordered. This makes it possible to calculate probabilities efficiently using binary search.


4. What are the main findings?

Finding 1: LLMs and monotone compressors are almost equivalent

The paper proves that:

  • From a good LLM, researchers can build a nearly equally good monotone compression algorithm.
  • From a good monotone compression algorithm, researchers can build a LLM that is equally good.

The first direction loses at most about 2 extra bits because of the details of arithmetic coding. This is a very small constant amount compared with the length of a large text.

In simple terms:

Predicting the next token and compressing the complete text can achieve almost the same quality, as long as the compression preserves ordering.

This is the paper’s central result.

Finding 2: Monotonicity is important

The authors show that ordinary compression is not always enough.

If certain cryptographic objects called one-way functions exist—which most computer scientists believe they do—then there can be compression algorithms that are excellent at shortening data but do not allow an efficient LLM to predict the data well.

A one-way function is like a special lock:

  • It is easy to use the lock to produce a locked result.
  • It is extremely difficult to reverse the result and recover the original information.

Because of this, a compression program might hide useful prediction information in a way that is difficult for a LLM to recover.

Therefore:

Good compression does not always lead to good prediction unless the compression preserves order.

This helps explain why practical systems often find it easier to turn LLMs into compressors than to turn general compressors into LLMs.

Finding 3: A connection to cryptographic pseudoentropy

The paper also studies next-bit pseudoentropy.

Ordinary entropy measures how unpredictable information really is. Pseudoentropy measures how unpredictable information appears to be to efficient computers.

The authors show that, up to a small constant difference, the following are equivalent:

  • A distribution cannot be efficiently compressed by a monotone compressor.
  • Its next bits appear sufficiently unpredictable to efficient algorithms.

This gives a stronger and more exact connection between compression and pseudoentropy than earlier research had established.


5. Why are these results important?

The findings give a mathematical explanation for an idea that had mostly been supported by experiments:

A model that understands patterns well should also be able to compress information well.

The paper shows that this is not just a vague similarity. Under the right conditions, the two abilities are mathematically connected.

The results also explain an important practical difference:

  • When we have a LLM, we can naturally use its probabilities to compress text.
  • When we have a compression algorithm, it may not be possible to recover useful next-token probabilities from it.
  • Requiring the compressor to preserve ordering fixes this problem.

This could help researchers better understand what LLMs learn during training. It may also help design new algorithms that combine prediction and compression.

Simple conclusion

The paper argues that language modeling is a form of compression with predictions.

A LLM says:

“Given what I have seen, this next token is probably the most likely.”

A compressor says:

“Because this information is likely, I can describe it using fewer bits.”

These ideas are closely related. The researchers prove that they are almost interchangeable when compression preserves the order of possible outputs. Their work provides a theoretical foundation for connecting language-model ability, intelligence, compression, and some important ideas in cryptography.

Knowledge Gaps

Knowledge gaps, limitations, and open questions

  • Empirical validation is absent. The paper establishes a theoretical equivalence but does not experimentally test whether existing LLMs or practical compressors satisfy the required monotonicity and efficiency conditions.
  • The model of an LLM is highly idealized. LLMs are represented solely as efficiently computable next-token probability distributions, leaving out finite parameterization, training procedures, optimization error, context-window limits, numerical precision, sampling constraints, and hardware costs.
  • The source distributions considered are restrictive. The results assume finite, efficiently representable alphabets and polynomially bounded sequence lengths, so it remains unclear whether they extend to natural-language streams, unbounded sequences, continuous data, or dynamically growing vocabularies.
  • The analysis concerns complete samples rather than prefixes or online streams. It does not establish analogous guarantees for sequential compression, arbitrary truncation points, streaming data, or settings in which encoding and prediction must operate incrementally.
  • The additive two-bit loss is not fully characterized. The paper does not determine whether the +2+2 overhead from arithmetic encoding is optimal, whether it can be reduced under additional assumptions, or whether an exact equivalence is possible with another coding construction.
  • The practical cost of monotone compression is unresolved. Although monotonicity enables efficient inversion through binary search, the paper does not quantify the computational, memory, latency, or numerical-precision overhead of constructing and evaluating such encoders.
  • The required ordering may be unnatural for real compressors. The theoretical monotonicity condition depends on a lexicographic ordering of inputs and codewords, but the paper does not show how to enforce or approximate this property in state-of-the-art compressors without substantially degrading compression quality.
  • The constructed predictor may be impractical despite being polynomial-time. The conversion from a monotone compressor uses global information about complete outputs and repeated binary searches, but no concrete bounds are provided for its runtime, model size, memory usage, or inference latency.
  • Finite-precision implementation issues are not addressed. The proofs rely on exact probabilities, cumulative distribution functions, comparisons, and codeword boundaries; the robustness of the equivalence under floating-point arithmetic and approximate probability computations remains unknown.
  • The treatment of variable-length outputs is underspecified in several constructions. The sampler and CDF-based predictor rely on a known polynomial upper bound on codeword length, while the generality and efficiency of handling unknown, highly variable, or unbounded code lengths are not fully developed.
  • Support and zero-probability cases require further clarification. The constructions define probabilities and conditional next-token distributions using CDF differences and ratios, but the behavior when prefixes have zero probability or when the model assigns zero probability to valid outputs is not systematically analyzed.
  • The cryptographic separation is conditional. The impossibility result depends on the existence of infinitely-often one-way functions, and the paper does not provide unconditional separations or identify weaker assumptions sufficient for the same result.
  • The no-ioOWF converse may be nonconstructive or difficult to instantiate. Although the paper invokes results that allow non-monotone compression to imply approximate prediction when ioOWFs do not exist, it does not explain whether the resulting predictor can be explicitly constructed or efficiently realized in practice.
  • The strength of the cryptographic lower bound is not fully explored. The separation gives linear excess cross-entropy for certain distributions, but the exact dependence on output length, compression properties, computational model, and allowable statistical error remains open.
  • The role of non-uniformity limits interpretation. The definitions permit polynomial advice and non-uniform algorithms, whereas practical LLMs and compressors are usually uniform; it is unclear whether the theorems hold under uniform computation or how non-uniform advice affects their significance.
  • The results do not compare different computational resources. The paper equates existence of efficient predictors and compressors but does not provide fine-grained reductions preserving model size, circuit complexity, parallelism, query complexity, or hardware-relevant resource bounds.
  • Approximate monotonicity is not studied. Real compression algorithms may violate ordering preservation only rarely or by small amounts, but the paper gives no robustness theorem relating approximate monotonicity to prediction quality.
  • The connection to knowledge and reasoning capabilities remains unproven. The theoretical equivalence concerns cross-entropy and expected code length only; it does not establish that monotone compressibility predicts performance on factual knowledge, reasoning, coding, or other downstream benchmarks.
  • The relationship to training dynamics is unexplored. The paper does not explain whether gradient-based language-model training naturally produces monotone or approximately monotone encodings, nor whether imposing monotonicity during training is feasible.
  • The scope of the pseudoentropy corollary is limited. The equivalence is stated for next-bit pseudoentropy and monotone incompressibility, but extensions to block pseudoentropy, computational entropy variants, conditional sources, or other pseudorandomness notions are not considered.
  • The effect of model misspecification is unclear. The theory measures optimality relative to a fixed source distribution DD, but does not analyze distribution shift, mixtures of sources, adversarially chosen test distributions, or imperfect estimates of DD.
  • No lower bounds are given for practical prediction from arbitrary compressors. The cryptographic construction demonstrates a worst-case separation, but it remains open how broadly non-monotone compressors fail to yield useful predictors on natural distributions.
  • The connection between monotonicity and coding-theoretic structure is not fully characterized. It is not determined whether monotonicity is merely sufficient for efficient inversion or whether weaker structural properties—such as efficiently computable rank functions or approximately ordered codewords—would suffice.
  • The conclusions depend on prefix-free coding. The paper does not establish whether analogous equivalences hold for uniquely decodable, enumerative, arithmetic, or other coding schemes that are not explicitly prefix-free.
  • The paper leaves open whether stronger equivalences hold for restricted source classes. For example, distributions with bounded dependence, Markov structure, deterministic support orderings, or efficiently computable probabilities may permit equivalence without monotonicity or with smaller losses.

Practical Applications

Immediate Applications

  • LLM-based lossless compression for text and tokenized data — software, cloud storage, and data infrastructure. The paper formally supports deploying an autoregressive LLM as a monotone compressor through arithmetic encoding. A practical workflow is:

    1. train or select an autoregressive model;
    2. compute next-token probabilities;
    3. apply arithmetic coding to encode complete sequences;
    4. decode using the same model and arithmetic-decoding procedure. This can be used for text archives, source code, logs, documentation, and structured token streams. The expected compressed length is bounded by the model’s cross-entropy plus an additive overhead of approximately two bits under the paper’s construction. Dependencies: exact agreement between encoder and decoder, efficiently computable probabilities and cumulative distribution functions, finite or polynomial-size vocabularies, and sufficiently accurate model probabilities. The result concerns expected loss over the source distribution, not guaranteed compression for every individual file.
  • Compression-based evaluation of LLMs — AI benchmarking and model selection. Because cross-entropy and expected compression length are equivalent up to a small additive term, organizations can evaluate LLMs by measuring the compressed size of held-out corpora. This provides an operational metric for comparing models on domain-specific knowledge, code, legal text, biomedical documents, or multilingual data. A model-selection workflow could rank candidate models by bits per token or resulting compressed size rather than relying exclusively on task-specific benchmarks. Dependencies: the evaluation corpus must be representative of the target distribution; compression scores can be affected by tokenization, sequence boundaries, context length, and implementation overhead.

  • Domain-adaptive compression systems — enterprise data management. Firms can fine-tune an autoregressive model on recurring internal data—such as customer-support transcripts, software repositories, telemetry, or financial reports—and use it as a domain-specific compressor. The theoretical result indicates that improvements in predictive cross-entropy translate directly into improvements in expected compression length. Potential products include model-assisted archival systems, compressed log stores, and domain-specific document repositories. Dependencies: the model must not leak confidential training data during deployment; the computational cost of running the model may outweigh storage savings for small or infrequently accessed files.
  • A principled workflow for converting monotone compressors into predictors — research tooling and specialized prediction.
    • experimental predictors built from symbolic or algorithmic compressors;
    • next-token models for structured data;
    • compression-based baselines in language-model research;
    • predictive interfaces for domains where a monotone compressor already exists.
    • Dependencies: the encoding must be prefix-free, efficiently computable, and monotone; the code-length bound must be polynomially manageable. The construction may be computationally expensive in practice despite being polynomial-time.
  • Improved analysis of compression-derived LLMs — academia and benchmarking. The paper explains why heuristic methods that infer token probabilities from successive prefix-compression lengths can accumulate error at every token, potentially causing loss linear in sequence length. Researchers can use the paper’s complete-output-distribution construction as a stronger baseline for future compression-to-prediction experiments. Dependencies: practical implementations need efficient CDF computation, numerical precision, bounded sequence lengths, and scalable data structures for binary search over code space.
  • Security analysis of compression-based prediction — cybersecurity and cryptography. The separation result provides an immediate conceptual test: a compressor’s excellent compression ratio does not imply that it can yield an efficient next-token predictor unless it satisfies the relevant monotonicity condition. This can be incorporated into audits of compression-based generative systems and cryptographic data encodings. In particular, a system should not infer predictability merely from lossless or near-optimal compression. Dependencies: the separation relies on widely studied assumptions about the existence of one-way functions, especially infinitely-often one-way functions. It is therefore a conditional security insight rather than an unconditional engineering guarantee.
  • Compression-based data-quality and distribution-shift monitoring — industry and policy analytics. Organizations can track the cross-entropy or compressed length of new data under a fixed model. Sudden increases in bits per token can indicate distribution shift, corrupted data, changes in user behavior, or emerging domain-specific terminology. This is applicable to software logs, network traffic represented as tokens, medical records, and industrial sensor streams. Dependencies: higher compression loss is not uniquely diagnostic; it may reflect benign novelty, model degradation, tokenization changes, or privacy-preserving transformations.
  • Educational demonstrations of the relationship between prediction and information theory — academia and education.
    • an autoregressive predictor followed by arithmetic coding;
    • a small monotone prefix-free compressor followed by probability recovery;
    • comparisons between monotone and non-monotone encodings.
    • Dependencies: classroom implementations should use small alphabets and bounded sequence lengths, since the theoretical constructions may be impractical at production scale.

Long-Term Applications

  • Unified model-and-compression architectures — AI systems and storage hardware. The equivalence suggests systems in which one learned probability model serves both as a generative model and as a lossless compression engine. A future product could use a single model for prediction, storage reduction, retrieval prioritization, and uncertainty estimation. For example, an enterprise LLM could generate document continuations while also compressing the documents it indexes. Dependencies: substantial engineering is needed to reduce inference latency, support random access and parallel decoding, manage model-version compatibility, and ensure that storage savings exceed model-storage costs.
  • Compression-aware pretraining objectives — foundation-model development. Since improvements in cross-entropy correspond directly to improvements in expected compression, future training pipelines could optimize models jointly for predictive quality and actual coding performance. This could encourage architectures that are both useful generators and efficient compressors. Potential applications include low-bandwidth LLMs, edge-device storage, and model-assisted archival systems. Dependencies: compression performance on a training corpus may reward memorization rather than generalization; privacy, copyright, and data-governance constraints must be addressed.
  • Predictive models for non-text modalities — multimedia, robotics, and industrial systems.
    • source code and software binaries;
    • genomic sequences;
    • event streams and transaction records;
    • robot action trajectories;
    • discretized sensor and telemetry data;
    • audio, image, or video representations.
    • In robotics, for instance, a model that predicts the next discretized control or observation token could also compress demonstrations and trajectories.
    • Dependencies: the representation must preserve useful ordering, the alphabet and sequence lengths must remain computationally manageable, and domain-specific entropy may not be captured well by a language-model architecture.
  • Cryptographic constructions and pseudoentropy testing — cybersecurity and theoretical cryptography. The equivalence between monotone incompressibility and next-bit pseudoentropy may eventually yield practical tests or constructions for pseudorandomness, randomness extraction, and cryptographic protocol analysis. A distribution that resists efficient monotone compression can serve as evidence of high computational unpredictability under the paper’s characterization. Dependencies: pseudoentropy is computational and typically requires formal security reductions, not merely empirical compression tests. The results also depend on the computational model and may not directly provide deployable cryptographic primitives.
  • New cryptographic separation tools for generative modeling — security research. If one-way functions exist, the paper’s separation indicates that perfectly compressible distributions can nonetheless be difficult for every efficient autoregressive predictor. This could inspire benchmark distributions for testing whether a generative system is genuinely learning structure or merely exploiting a non-predictive encoding. Such benchmarks could be used to study limits of generative modeling, indistinguishability, and the relationship between memorization and prediction. Dependencies: constructing practical instances from the theoretical separations may require explicit cryptographic assumptions, parameter choices, and carefully designed distributions that are not naturally occurring.
  • Standardized compression-based intelligence and capability benchmarks — AI evaluation and policy.
    • predictive cross-entropy;
    • achievable lossless compression;
    • robustness under distribution shift;
    • computational cost per compressed bit;
    • performance across knowledge and reasoning tasks.
    • Such a benchmark could inform procurement standards, model reporting, or regulatory evaluation of general-purpose AI systems.
    • Dependencies: compression is not a complete measure of intelligence or safety. Benchmarks would need controls for training-data contamination, tokenizer design, model size, compute budget, and domain imbalance.
  • Adaptive communication and edge AI — telecommunications and mobile computing. A shared autoregressive model could compress messages, sensor streams, or task instructions at the source and decode them at the destination without transmitting the model repeatedly. This may reduce bandwidth in remote robotics, satellite communications, mobile devices, and Internet-of-Things systems. Dependencies: encoder and decoder must maintain synchronized model versions; model distribution, update costs, error recovery, security, and latency may dominate the theoretical coding advantage.
  • Compression-guided scientific discovery and active learning — academia and research infrastructure. Researchers could use changes in compressibility to identify regularities, anomalies, or regime transitions in large scientific datasets. A model that progressively improves compression may be used as a proxy for whether a representation captures meaningful structure. Applications could include genomics, climate data, experimental physics, and neural recordings. Dependencies: compressibility can reflect nuisance correlations or artifacts rather than scientifically meaningful structure, so domain validation and interpretable diagnostics remain necessary.

Glossary

  • Arithmetic encoding: A lossless coding method that represents symbols as subintervals of a probability interval to achieve near-optimal compression. “A commonly used construction for such a compression algorithm is the arithmetic encoding”
  • Autoregressive model: A probabilistic model that predicts each token conditioned on the preceding tokens. “We formalize LLMs as autoregressive models which, given a string of tokens as a prefix, output a probability distribution over possible next tokens.”
  • Binary search: An efficient search procedure that repeatedly halves an ordered search space. “Since Enc is monotone, we can always decode efficiently through binary search”
  • Conditional distribution: A probability distribution describing an outcome given a specified preceding event or context. “they output a probability distribution that is supposed to approximate the conditional distribution”
  • Cross-entropy: The expected negative logarithm of the probability assigned by one distribution to samples generated by another distribution. “the cross-entropy between D and the model’s predicted distribution”
  • Cumulative distribution function (CDF): A function giving the probability that a random variable is less than or equal to a particular value. “Adding DM(y)D_M(y) then gives the CDF Pr⁡x←DM[x⪯y]\Pr_{x \leftarrow D_M} [x \preceq y].”
  • Empirical entropy: The information content of an individual outcome relative to a probability distribution, defined as its negative log-probability. “the empirical entropy of xx with respect to DD is defined as −log⁡D(x)- \log D(x).”
  • Entropy: A measure of the average uncertainty or information content of a probability distribution. “the (Shannon) entropy of DD to be the quantity”
  • Expected negative log-likelihood: The average negative logarithm of the probabilities assigned to observed outcomes by a model. “the objective of an LLM is, given a ‘training’ distribution DD ..., to learn a model MM that minimizes the expected negative log-likelihood”
  • Infinitely-often one-way function (ioOWF): A function that is computationally difficult to invert for infinitely many input lengths, rather than for all sufficiently large lengths. “the existence of infinitely-often one-way functions (ioOWFs)”
  • Kullback–Leibler divergence (KL divergence): A measure of how one probability distribution differs from another. “KL(D  ∣∣  DM)KL(D \; || \; D_M) represents Kullback-Leibler divergence”
  • Lexicographic ordering: An ordering of strings determined by comparing their symbols from left to right. “compression is monotone if it preserves a lexicographic ordering ≺\prec over inputs”
  • Monotone compression: Compression whose encoding preserves the ordering of its inputs. “compression algorithms where the encoding process preserves the ordering of the inputs”
  • Next-bit pseudoentropy: A computational analogue of entropy based on the unpredictability of successive bits under computational restrictions. “the notion of next-bit pseudoentropy (a computational analogue of entropy)”
  • Next-token predictor: A model that assigns probabilities to the next token given a sequence of preceding tokens. “LLMs (formally modeled as next-token predictors)”
  • Non-uniform algorithm: An algorithm allowed to receive additional advice depending on the input size. “In this work, we assume that algorithms are non-uniform”
  • One-way function (OWF): A function that is easy to compute but computationally infeasible to invert on typical outputs. “one-way functions (which in turn imply ioOWFs) are widely conjectured to exist”
  • Oracle-aided algorithm: An algorithm that can query another algorithm treated as a black-box oracle. “We define an oracle-aided algorithm ΠO\Pi^{O} as an algorithm Π\Pi that is given access to another algorithm OO as a black box”
  • Prefix-free encoding: An encoding in which no valid codeword is a prefix of another valid codeword. “We assume throughout that EncEnc is prefix-free with respect to DD”
  • Pseudoentropy: A computational analogue of information-theoretic entropy that measures unpredictability against restricted algorithms. “There has been a considerable line of research relating the compressibility of a distribution to its pseudoentropy”
  • Polynomial-time computable: Computable within a number of computational steps bounded by a polynomial in the input size. “encoding, decoding, and computing next-token probabilities must run in polynomial time.”
  • Probability distribution: A function assigning probabilities to possible outcomes that sum to one. “they output a probability distribution that is supposed to approximate the conditional distribution”
  • Statistical distance: A measure of the difference between two probability distributions, also called total variation distance. “the statistical distance (or total variation distance) between DD and D′D'”
  • Support: The set of outcomes assigned nonzero probability by a distribution. “we denote by sup⁡(D)\sup(D) its support”
  • Total variation distance: Another name for statistical distance between two probability distributions. “the statistical distance (or total variation distance) between DD and D′D'”
  • Uniformly random bits: Bits generated so that every possible bit string of a given length has equal probability. “samples outputs by decoding uniformly random bits”
  • Weak monotonicity: A non-strict ordering property in which increasing inputs produce nondecreasing outputs. “We observe that this process assigns an output to every random string and, importantly, is weakly monotone”
  • δ-optimal: Having an expected loss or compression length within an additive δ\delta of the theoretical optimum. “we say that a model MM is δ\delta-optimal with respect to DD if its cross-entropy is at most H(D)+δH(D) + \delta.”

Tweets

Sign up for free to view the 3 tweets with 294 likes about this paper.