[Paper Review] Data Compression and Entropy Estimates by Non-sequential Recursive Pair Substitution
This paper demonstrates that Non-sequential Recursive Pair Substitution (NSRPS) can serve as a foundation for optimal data compression and accurate entropy estimation in Markov sequences. By recursively replacing the most frequent character pairs with new symbols and using efficient coding for substitutions, NSRPS achieves entropy estimates approaching the theoretical limit, yielding an estimated true entropy of ≈0.8 bit/character for written English after extrapolation from 135 GB of text data.
We argue that Non-sequential Recursive Pair Substitution (NSRPS) as suggested by Jiménez-Montaño and Ebeling can indeed be used as a basis for an optimal data compression algorithm. In particular, we prove for Markov sequences that NSRPS together with suitable codings of the substitutions and of the substitute series does not lead to a code length increase, in the limit of infinite sequence length. When applied to written English, NSRPS gives entropy estimates which are very close to those obtained by other methods. Using ca. 135 GB of input data from the project Gutenberg, we estimate the effective entropy to be $\approx 1.82$ bit/character. Extrapolating to infinitely long input, the true value of the entropy is estimated as $\approx 0.8$ bit/character.
Motivation & Objective
- To establish whether NSRPS can be used as a basis for optimal data compression in Markov sequences.
- To evaluate the effectiveness of NSRPS for estimating the true entropy of written language, particularly English.
- To address the limitations of prior NSRPS implementations, which used inefficient and non-unique codings that did not reliably estimate entropy.
- To provide a mathematically sound framework for NSRPS with uniquely decodable and efficient codings of substitutions and substitute sequences.
- To enable reliable extrapolation of entropy estimates to infinite sequence length, offering a more robust alternative to existing methods.
Proposed method
- NSRPS recursively replaces the most frequent non-overlapping character pair in a sequence with a new symbol from an extended alphabet, increasing the alphabet size with each substitution.
- The method uses a greedy strategy: at each step, the pair with the highest frequency is replaced, and the process continues until further substitutions no longer reduce code length.
- Substitutions are encoded using efficient, uniquely decodable codes, and the code length of the resulting sequence is tracked to ensure no net increase in length in the infinite-length limit.
- For entropy estimation, the method computes the entropy of the sequence after each substitution step using pair probabilities, and fits the resulting entropy estimates to a power-law decay model to extrapolate to infinite substitution depth.
- The model $ \hat{h}_i = h + \frac{c}{(i + i_0)^\alpha} $ is used to fit the entropy estimates, allowing extrapolation to the true asymptotic entropy $ h $.
- The approach is validated on 135 GB of English text from Project Gutenberg, with results extrapolated to infinite input length.
Experimental results
Research questions
- RQ1Can NSRPS be proven to yield optimal compression for Markov sequences in the limit of infinite sequence length?
- RQ2Does NSRPS provide a reliable method for estimating the true entropy of written language, particularly English, when extrapolated to infinite input?
- RQ3How does the entropy estimate from NSRPS compare to those from other established methods such as Lempel-Ziv or tree-based gambling algorithms?
- RQ4To what extent do the overhead costs of encoding substitutions affect the optimality of the compression scheme?
- RQ5Can the convergence of entropy estimates under NSRPS be modeled reliably to extrapolate to the true asymptotic entropy?
Key findings
- NSRPS achieves optimal compression for Markov sequences, as the code length does not increase in the limit of infinite sequence length when substitutions and substitute sequences are efficiently encoded.
- For written English, NSRPS yields an entropy estimate of ≈1.82 bit/character using 135 GB of text data, which is close to estimates from other methods.
- After extrapolation to infinite input length using a power-law fit, the true entropy of written English is estimated at ≈0.8 bit/character, with a confidence interval of ±0.2 bit/character.
- The extrapolated entropy estimate is consistent with Shannon’s original estimate and with other recent estimates, but excludes the possibility of zero entropy as proposed in some earlier works.
- The method provides a more reliable extrapolation path to infinite length than existing methods such as tree-based gambling algorithms, despite higher computational cost.
- The study confirms that the Markov structure is a fixed point of the NSRPS process, though the attractor property of this fixed point remains unproven.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.