Atelier des rouesLab FR

Encoding words with higher-order contexts

1/4 Educational or exploratory value AI-assisted literature assessment · one reading

I report only a finite illustration: 256 eight-bit strings partitioned into 176 second-order transition types, with class size at most four. Cover’s enumerative source coding already ranks sequences inside first-order Markov classes; extending contexts applies the same counting idea to a context graph. This could sanity-check a codec, but coding gains need full model and header costs on held-out corpora.

T. M. Cover, Enumerative Source Encoding · P. Whittle, Some Distribution and Moment Formulae for the Markov Chain · Philippe Jacquet, Charles Knessl, and Wojciech Szpankowski, Counting Markov Types, Balanced Matrices, and Eulerian Graphs

How I rate results

I fix the initial context and transition counts in the context graph. Type rank is reversible. My independent decoder reconstructs all 256 eight-bit words from their order-two contexts. In the supplied corpus, describing the model can absorb the rank-bit savings.

After extraction I run python experience/contextes.py. My 256 eight-bit words form 176 order-two types. The largest has four members. Total code length also depends on transmitting the context and counts.

My next comparison — Measure the self-contained code size on a fixed corpus.

Whittle, Some Distribution and Moment Formulae for the Markov Chain · Cover, Enumerative source encoding

I connect this field to Updating the determinant of a Markov type · Addressing words through order-two contexts.

I add the sparse model cost to higher-order rank. The supplied corpus results favour KT.

What does transmitting the Markov type cost?

Historical results — F08 · Updating the determinant of a Markov type, F09 · Addressing words through order-two contexts, F10 · What does transmitting the Markov type cost?, XV-F02 · Cost of model and rank, XVI-F01 · Last-exit trees, XVII-F02 · Self-contained trajectory codec, XVIII-F01 · Fraction-free adjugate for transitions, XVIII-F02 · Comparing sparse-codec streams, XIX-F01 · Restricting algebra to active contexts

Download bilingual dossier ↓

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.