Representation in Finite-Context Prediction: An Analysis of Tokenization and Fragmentation
Amirmehdi Jafari Fesharaki, Mohammadamin Rami, Aslan Tchamkerten
NeurIPS 2026
TL;DR. Lossless representations can still change what Transformers learn under finite context: fragmentation can intrinsically hurt prediction, while tokenization can expose longer useful history.
Abstract. Transformers predict over a representation of a sequence. The same data can be written as bytes, characters, or subword tokens, and these representations may be lossless. Yet, under a fixed context window, they need not expose the same information to the model. This raises a basic question: how does the choice of representation change what a finite-context predictor can achieve?
We study this question on Markov sources and uncover two complementary phenomena. First, we observe that moving to smaller representation units can hurt prediction even when the context window is enlarged to cover the relevant source history. To explain this, we introduce fragmentation: a lossless recoding that replaces each source symbol by several smaller units. We prove that fragmentation can strictly increase the optimal finite-context log-loss, showing that the gap is not merely an optimization or capacity issue, but can be intrinsic to the representation. This gives a possible theoretical account of the finite-context gap observed in byte- and character-level models such as ByT5 and CANINE relative to subword-tokenized models. Second, we study the opposite direction: greedy tokenization, such as BPE, WordPiece, and related methods, which groups source symbols into larger units. We show that tokenization can make a short token window behave like a longer source-context window, and we give a loss guarantee describing when this is achievable. The guarantee depends on how reliably token windows span the needed source history, together with the compression rate of the tokenizer. This also yields a simple diagnostic for real tokenizers: measuring how much source context a fixed token window reliably contains. Together, the two directions establish a finite-context information-theoretic framework for reasoning about representation choices in Transformers.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:44 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Initial Metareview
The paper is viewed positively overall, and the reviewers appreciate its conceptual contribution toward explaining how representation granularity can fundamentally affect the predictions of finite-context models. The problem is interesting and the paper is considered a good first step toward understanding this phenomenon.
At the same time, the current reviews identify several important issues that should be clarified. In addition to addressing the reviewers' questions, the discussion should primarily focus on the following points, as they would significantly strengthen the paper.
First, the reviewers noted a mismatch between the title and the scope of the technical results. Although the paper is framed around Transformers, the theoretical results apply more generally to predictors with finite context windows. The authors are encouraged to better justify this positioning or revise the framing to more accurately reflect the scope of the contributions.
Second, the reviewers would appreciate further discussion of the fragmentation model and its practical implications. In particular, they encourage the authors to clarify to what extent the observed fragmentation gap persists when simple mechanisms such as positional encodings, phase information, or boundary markers are available, and whether such information can mitigate or eliminate the effect in realistic settings. Addressing these questions successfully would further strengthen the work.
Metareview after Rebuttal
The paper is viewed positively overall, and the reviewers appreciate its conceptual contribution toward understanding how representation granularity affects the predictions of finite-context models. The rebuttal and proposed revisions satisfactorily addressed the main concerns raised in the initial reviews, including the scope and framing of the results and the practical interpretation of the fragmentation phenomenon. The additional experiments also strengthened the empirical motivation for the work.
Overall, the reviewers view the paper positively after the discussion, and the consensus is to accept the paper.
Final justification
The paper is viewed positively and after the discussion, the consensus is to accept the paper.
Read meta-review
Meta-review
Initial Metareview
The paper is viewed positively overall, and the reviewers appreciate its conceptual contribution toward explaining how representation granularity can fundamentally affect the predictions of finite-context models. The problem is interesting and the paper is considered a good first step toward understanding this phenomenon.
At the same time, the current reviews identify several important issues that should be clarified. In addition to addressing the reviewers' questions, the discussion should primarily focus on the following points, as they would significantly strengthen the paper.
First, the reviewers noted a mismatch between the title and the scope of the technical results. Although the paper is framed around Transformers, the theoretical results apply more generally to predictors with finite context windows. The authors are encouraged to better justify this positioning or revise the framing to more accurately reflect the scope of the contributions.
Second, the reviewers would appreciate further discussion of the fragmentation model and its practical implications. In particular, they encourage the authors to clarify to what extent the observed fragmentation gap persists when simple mechanisms such as positional encodings, phase information, or boundary markers are available, and whether such information can mitigate or eliminate the effect in realistic settings. Addressing these questions successfully would further strengthen the work.
Metareview after Rebuttal
The paper is viewed positively overall, and the reviewers appreciate its conceptual contribution toward understanding how representation granularity affects the predictions of finite-context models. The rebuttal and proposed revisions satisfactorily addressed the main concerns raised in the initial reviews, including the scope and framing of the results and the practical interpretation of the fragmentation phenomenon. The additional experiments also strengthened the empirical motivation for the work.
Overall, the reviewers view the paper positively after the discussion, and the consensus is to accept the paper.
Final justification
The paper is viewed positively and after the discussion, the consensus is to accept the paper.
1 comment
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper analyzes the effect that token representation has on the final output loss of sequence prediction models. Their results are split into two types: (1) Fragmentation: under a lossless transformation of a vocabulary into a more fine-grained representation, say from letter-level characters to bits , the loss of an optimal sequence predictor increases; this is due to ambiguity in the fine-grained representation's phase. (2) Greedy tokenization: the authors introduce a tokenization method for a fixed vocabulary that can reduce the relative context size of a prompt but achieves optimal error comparable with the original representation. They include simulations demonstrating this phenomenon and measurements of error on real models.
Strengths and weaknesses
Correctness
I am confident in the correctness of the results in the main body, and have checked the proofs in Appendix A. I took a cursory glance over Appendix B and saw no major issues.
Strengths
-
The idea that the underlying representation, even when lossless, of the prompt can affect the optimal loss is counter-intuitive, and I found the results interesting.
-
The interweaving of results, examples, and simulations is well paced; every time I felt I was a little behind on what the results said, my intuition was supported by either a figure or an example.
-
The included simulations provide good support to the theory and illustrate the authors' points well.
-
The authors take time to weaken the assumptions of Corollary 4.2 to Theorem 4.3, which anticipates an immediate issue of a worst-case condition to a typical-case condition. Although, I think a more general condition which assumed the distribution of could also be included and would be more interpretable. This should follow from the arguments on page 17 by just integrating over the quantiles of the .
-
The loss metrics in this paper are well motivated from an information-theoretic standpoint.
-
I think the paper also scopes its claims quite well and does a good job of explaining the interpretation of its results.
-
As a matter of style, I think the paper is well written. I particularly liked the line ``They do not.'' in the last paragraph of page 3; it gave a nice hook to the reader.
-
The measure seems particularly useful as a future metric of tokenization efficiency.
-
I appreciate the authors' work in Appendix B to translate previous works' assumptions to their own.
Weaknesses
-
Although it is a good first step, the method of fragmentation seems a little arbitrary to me. If I were solving an engineering problem with the model not understanding which phase of the fine-grained representation I am in, then I would also pass a position encoding to the model. Does this fix the problem in reality? Did the authors attempt any slight repair to the algorithm that may fix the loss gap?
-
I think it would be good to directly define the super and subscript notation for random sequences; it's reasonably clear from the context but became a little confusing because the authors also use power for sets.
-
For the fragmentation part of the paper, I believe that at a high level the interpretation is that even when the fine-grained representation is lossless, the models in the paper view this lossless representation for a uniform at random window on the phase of the fine grain, making it lossy due to not aligning with the boundaries of the original representation. Is this correct? If so, I think some inclusion of this in the introduction would be helpful since it signals in which part the information is lost. Just a suggestion.
-
I think it would be helpful to include the dependence of in Theorem 4.1. Naively, I would expect a ``good'' model to send the probability of irrelevant next-tokens given context to be close to zero (or possibly vanishing in the size of the vocabulary or the size of the input prompts) for which the value of may be worth tracking in the bound.
Suggested Edits
-
In the background section, maybe just quickly denote that is entropy and is mutual information.
-
I believe the definition of should have ; is this the case? Or is the definition for any ?
-
Space between Theorem and 4.1 on line 527.
-
It may be nice to include in the main body that the predictor for Theorem 4.3 just assigns a uniform at random guess on the event in Definition 4.1 for intuition.
-
Figure 7 is very convincing to the results of the paper; is it possible to move this to the main body?
Small Edits
-
I assume the wrapping of text on page 9 was done for space reasons, but I would prefer in the final results to have it look a little cleaner.
-
Extra ``-'' on line 775.
Questions
-
What would happen if the prefix tree is only partially known to me at some time? It would be interesting to understand how robust the results are on greedy tokenization with some error in the set of viable tokens.
-
Why is defined as instead of the expectation of a fraction? Is this for tractability? Personally, it seems to be more intuitive to normalize the bits inside the expectation; why exactly was this metric chosen?
-
Is it feasible to run the greedy tokenization in Figure 5 on some examples to estimate the loss, perhaps even for very simple transformer models? I am curious if the upper bound from Theorem 4.3 is tight.
-
It seems the negative results on fragmentation can be avoided by using a comma-free code, i.e., where each element of the code book is the unique element up to shifting. Would using such a code fix the issues in fragmentation? If so, is the overhead of the increase of needed context size a fair tradeoff?
Limitations
Yes, I think the limitation they bring up, that this is an achievability result instead of an optimization result, is the major counterpoint a reader would have.
Final justification
The authors answered my questions well and I retain my assessment that this paper is a solid accept. I cannot justify a 6 for this paper as the results are good but not to the level of changing the field as a whole. I would say there rebuttal raised my score from a low 5 to a medium 5.
Formatting concerns
None
3 comments
Reviewer Nri3 Rebuttal Part 1
We thank the reviewer for the insightful and constructive feedback. Below, we address the concerns and questions raised in the review.
Weaknesses
- [W1] Is fragmentation arbitrary, and does positional encoding or a repair close the gap: The fragmentation model is not meant as an engineering proposal but as the minimal lossless recoding that isolates one effect: replacing each source symbol by a fixed-length block over a finer alphabet. This is exactly the operation taking a token- or character-level representation to a byte- or bit-level one. Its adverse effects are not limited to this construction; they also arise in practical settings, and they can be repaired once the predictor is given the phase, for example via the comma-free code which we address in [Q4]. A more thorough explanation is provided in response to Reviewer r3Bv [W2], which is not repeated here due to character limits.
- [W2] Sub/superscript notation: Thank you for pointing this out. We agree the sequence notation can collide visually with the set-power notation, and we will add a short explicit definition of the sub/superscript convention for random sequences (e.g. ) in the Background section.
- [W3] High-level interpretation of the fragmentation gap: The reviewer's intuition is essentially correct, with one refinement worth making precise. The phase is indeed generated uniformly at random, and the predictor cannot observe it directly, and this is the source of the gap. However, the optimal predictor does not respond by averaging uniformly over phase. Instead, it uses the context to form a posterior over the phase and predicts with it:
where is generally not uniform, since the observed context carries partial information about the phase. The loss is therefore the cost of having to commit to this phase-marginalized predictor , rather than the phase-aware predictor that would be available if the phase were known. This excess is exactly the conditional mutual-information term in Theorem 3.1: it vanishes when the context determines the phase and is positive otherwise. We agree this framing signals clearly where the information is lost, and we will add a short version of it to the introduction of the fragmentation section as suggested.
-
[W4] Explicit dependence in Theorem 4.1: The reviewer is right that the constant depends on . Tracing it in the proof (Appendix A.2), the term is up to sequence-independent boundary contributions, where is the per-step stop probability along the greedy parse. We are happy to state this explicitly in the proof for transparency.
However, we would keep it there rather than in the theorem statement, since it does not change the guarantee. The term is additive and independent of the sequence length: Theorem 4.1 gives , so even for a highly confident predictor (small ) its contribution to the normalized per-source-symbol loss is . It therefore remains an term and the downstream results (Corollary 4.2, Theorem 4.3), which depend only on the asymptotic per-symbol loss, are unaffected.
-
Editorial edits. We thank the reviewer for these and will incorporate them as much as possible and if space allows it.
On the definition of : the definition is general and holds for a -context predictor for any window —it is not tied to .
Questions
- [Q1] Robustness to partial/erroneous knowledge of the prefix tree:
An erroneous vocabulary changes the segmentation itself, so the token boundaries and hence the source span of a window can differ from the true parse. In this case, we do not think a clean general statement is available without further assumptions.
- [Q2] Definition of Tokenization Loss:
The ratio-of-expectations form is not chosen for tractability: it is the almost-sure limit of the population loss measured in bits per source symbol.
In more details, for a source sequence with tokenization , the population loss in bits per source symbol is
since .
The remainder of the response to the question 2 and the rest of the questions are answered in the next comment, due to the issue with the comment section, limiting to 5000 characters per comment instead of the official 10000 characters.
Reviewer Nri3 Rebuttal Part 2
remaining response to question 2.
By Birkhoff's ergodic theorem (as invoked on line 103 in Background), the numerator converges to and the denominator to , yielding
which in general is different than . That quantity does not correspond to the loss per source symbol of any actual encoding, and so is not the right basis for comparison.
- [Q3] Is the bound of Theorem 4.3 tight in practice:
We ran this experiment on WikiText-103. Fixing a target span and a fixed slack, we solve for the token window each tokenizer needs to reach that span, train a small transformer at that , and compare the achieved loss. At , the character tokenizer with serves as the source-level reference :
| Tokenizer | Solved w | w_s (chars) | Test loss (bits/char) |
|---|---|---|---|
| sentencepiece_32k | 37 | 128.00 | 1.4491 |
| bpe_32k | 41 | 128.00 | 1.4343 |
| gpt2 | 42 | 128.00 | 1.4355 |
| bpe_16k | 44 | 128.00 | 1.4345 |
| bpe_4k | 53 | 128.00 | 1.5119 |
| bpe_1k | 65 | 128.00 | 1.6240 |
| bert | 50 | 128.00 | 1.7110 |
| wordpiece_32k | 52 | 128.00 | 1.7193 |
| char | 128 | 128.00 | 1.7458 |
The bound is respected throughout: every tokenizer achieves loss at or below the character-level reference at the same target span, consistent with Theorem 4.3 as an upper bound.
Its tightness however, varies with the tokenizer. It is closest for the some tokenizers (e.g. bert, wordpiece), which sit near the character reference. They effectively deliver about the span and little more. The other tokenizers come in well below the reference, meaning the bound is conservative for them: at a fixed target span their typical windows carry more source history than the target, so they outperform the worst-case guarantee. Part of the variation may also be a training effect, since Theorem 4.3 concerns the optimal finite-context predictor while these are trained transformers.
- [Q4] Do comma-free codes fix fragmentation, and is the overhead fair:
Yes. This is an instance of the principle in [W1] that any mechanism letting the predictor recover the phase removes the phase-ambiguity term, and a comma-free code supplies it intrinsically through the code structure rather than through an added token.
By the defining property of a comma-free code, a codeword cannot straddle the boundary of two adjacent codewords. Consequently, once the predictor's window (measured in sub-symbols) is at least , every window contains enough context to determine the codeword alignment uniquely: only one parse is consistent with a comma-free codebook. In other words, it is not possible to have two contexts which are exactly the same but correspond to different phases. The phase is thus recoverable from the context itself, so the phase-ambiguity term of Theorem 3.1 vanishes.
The overhead. The cost appears in the block length. Plain lossless fragmentation needs only , since all blocks are usable. The comma-free constraint reduces the number of admissible codewords and their maximum number is at most of order with . So for lossless fragmentation, the condition would now be , meaning a larger , and correspondingly a larger context window, is needed to encode the same . A comma-free code therefore removes the phase-ambiguity term entirely, at the cost of a real increase in the required context; whether that tradeoff is worthwhile depends on the setting.
We hope that these clarifications, and the answers to the questions address the reviewer’s concerns. We are glad to provide further details during the discussion period if requested by the reviewer.
References
- Yu Mao, Yufei Cui, Tei-Wei Kuo, and Chun Jason Xue. “TRACE: A Fast Transformer-based General-Purpose Lossless Compressor.” In Proceedings of the ACM Web Conference 2022, pp. 1829–1838, 2022.
- Zeyi Lu, Xiaoxiao Ma, Yujun Huang, Minxiao Chen, Bin Chen, Baoyi An, and Shu-Tao Xia. “EDPC: Accelerating Lossless Compression via Lightweight Probability Models and Decoupled Parallel Dataflow.” In Proceedings of the 33rd ACM International Conference on Multimedia, pp. 7268–7276, 2025.
- Huidong Ma, Xinyan Shi, Sun Hui, Xiaofei Yue, Xiaoguang Liu, Gang Wang, and Wentong Cai. “Efficient Learned Data Compression via Dual-Stream Feature Decoupling.” In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics, pp. 7151–7164, 2026.
Reply to the authors
I have read the response and the authors have answered my questions to a satisfactory extent. I retain my overall score and appreciate there thoroughness in their response.
- Rating
- 4/6
- Confidence
- 2/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work addresses the challenge of understanding how lossless sequence representations change the effective finite context available to a predictor. The paper studies stationary finite-order Markov sources and analyzes two opposing effects: fragmentation and (greedy) tokenization. The claims of the paper are technically clear: the fragmentation theorem decomposes excess loss into context-deficit and phase-ambiguity terms, and the tokenization results give deterministic and typical-span achievability bounds controlled by source span and tokenizer rate.
Strengths and weaknesses
Strengths
-The contributions are some nice and clean information-theoretic results on fragmentation and tokenization (under appropriate Markovian assumptions).
-The experimental results complement nicely the discussion of the theoretical results.
-The paper is written in a clear and coherent way (especially after the introduction, which felt dense at places)
Weaknesses
-The title and positioning of the paper is inappropriate as none of the results are about transformers and they would apply to any predictor with finite context size. This requires a major revision.
-The fragmentation discussion slightly overstates its relevance to byte- or character-level models. The formal gap relies on the predictor not observing phase. In practical settings, positional encodings, start-of-sequence special characters, etc may partially reveal phase. The paper would be stronger if it explicitly characterized when phase ambiguity remains under realistic positional information, and when it can be eliminated by providing phase or boundary features.
-I think similar observations on fragmentation have been made in prior work. For example, see [1]. Can the authors discuss how their results are new in this regard?
[1]. Exact Byte-Level Probabilities from Tokenized Language Models for FIM-Tasks and Model Ensembles. Buu Phan, Brandon Amos, Itai Gat, Marton Havasi, Matthew Muckley, Karen Ullrich. ICLR 2025
Questions
See weaknesses. Also, can you explain how tight is Theorem 4.3 in practice? Does the proposed slack term correlate quantitatively with measured language-model loss across tokenizers?
Limitations
Yes.
Final justification
I think the authors addressed some of my concerns with their rebuttal and the promised changes. I lean towards recommending acceptance of the paper. My confidence is medium to low, though.
Formatting concerns
None.
3 comments
Reviewer r3Bv Rebuttal Part 1
We thank the reviewer for their careful and thorough evaluation. Below, we address the concerns and questions raised in the review.
Weaknesses
-
[W1] Title and scope: We agree. The present title gives Transformers more prominence than is warranted by the formal results. Transformers originally motivated our investigations and are the model class used in our experiments, but the theory concerns a broader object: the optimal population loss of finite-context predictors under different sequence representations. Therefore, we will revise the framing accordingly and propose the title "Representation in Finite-Context Prediction: An Analysis of Tokenization and Fragmentation."
This title better reflects the scope of the results while preserving the connection to the empirical motivation.
-
[W2] Fragmentation in practical settings: The adverse effects of fragmentation are not limited to our theoretical construction; they can also arise in practical settings.
Positional encoding:
Positional encoding gives the relative position (from 1 to the context size w) of a sub-symbol within a context window. It does not reveal the phase, that is the relative position (from 1 to M) of a sub-symbol within a fragmented symbol.
Figure 2 in the paper illustrates this: the two occurrences of the context "101" are indistinguishable to a relative-position predictor, yet they sit at different phases and induce different next-symbol distributions.
Accordingly, positional encoding does not remove the fragmentation gap, which is confirmed throughout our experiments—all of them already use positional encoding.
More generally, the key requirement is that the predictor must have some mechanism for inferring the phase of the fragmentation process. In practical settings, is typically either unknown or not explicitly provided to the model, and no dedicated mechanism, such as an end-of-fragmentation-block token, is necessarily used to communicate the phase.
Byte-level prediction in lossless neural compression provides a concrete example. Recent state-of-the-art architectures, including [2, 3, 4], operate directly on bytes regardless of the structure of the underlying source data, without explicit knowledge of or a mechanism designed to account for fragmentation. These systems therefore have no mechanism to avoid the phase-ambiguity effect our analysis identifies.
When can it be eliminated:
If the phase information is revealed to the predictor, the phase-ambiguity term vanishes. A simple way to achieve this is by adding a special end-of-fragmentation-block sub-symbol, after every fragmented sub-symbol, while increasing the window to to cover the same nominal span (more details in response to Reviewer 3FL7 [W3]). With this additional information, the model achieves the same loss as a model trained directly on the unfragmented source. We will add a remark based on these experiments and discussion in the final version of the paper.
-
[W3] Relation to [1]: We agree that [1] is indeed relevant, but it addresses a different question. Given a pretrained tokenized language model, [1] shows how to recover the exact conditional distribution it induces on the next byte. The issue there is inferential: although the tokenized model and the induced byte-level model assign the same probabilities to complete sequences, a naive use of the tokenized model on a byte prompt can give incorrect next-byte probabilities, a phenomenon the authors call tokenization bias.
Our question is different. We ask how changing the representation affects the minimum achievable log-loss of finite-context predictors. In particular, our fragmentation result concerns a fixed-block, lossless recoding of each source symbol into symbols from a finer alphabet, and shows that this recoding can create an intrinsic finite-context loss gap. Thus, while both works study representation-dependent prediction, [1] derives byte-level probabilities from a fixed tokenized model, whereas we characterize the population loss induced by fragmentation itself.
We thank the reviewer for pointing us to this work and will add it to the related-work discussion.
Questions answered in the next comment, due to the issue with the comment section, limiting to 5000 characters per comment instead of the official 10000 characters per-review.
Reviewer r3Bv Rebuttal Part 2
Questions
- [Q1] Practical implications and tightness of Theorem 4.3:
How tight is Theorem 4.3 in practice? Does the proposed slack term correlate quantitatively with measured language-model loss across tokenizers?
We address the two parts separately.
Correlation with measured loss. To test whether the slack term tracks real model performance, we fix a token window and a small target slack (), compute the corresponding source span for each tokenizer, and train transformer models on WikiText-103 under the same window for each tokenizer.
We first varied the vocabulary size within a single tokenizer family (BPE):
| Tokenizer | w (tokens) | w_s (chars) | Test loss (bits/char) |
|---|---|---|---|
| char | 128 | 128.00 | 1.7458 |
| bpe_1k | 128 | 262.65 | 1.5397 |
| bpe_4k | 128 | 328.38 | 1.4131 |
| bpe_16k | 128 | 407.05 | 1.2992 |
| bpe_32k | 128 | 442.14 | 1.2695 |
We observe that as the vocabulary grows, the source span increases and the test loss decreases. The same holds across different tokenizer families with similar vocabulary sizes (between 30k to 50k):
| Tokenizer | w (tokens) | w_s (chars) | Test loss (bits/char) |
|---|---|---|---|
| wordpiece_32k | 128 | 345.17 | 1.5721 |
| bert | 128 | 359.48 | 1.5569 |
| gpt2 | 128 | 427.78 | 1.2753 |
| bpe_32k | 128 | 442.14 | 1.2695 |
| sentencepiece_32k | 128 | 480.03 | 1.2662 |
We observe that a larger span corresponds to a lower loss.
This suggests that the typical source-span measure is not merely diagnostic, but can serve as a simple, computationally inexpensive proxy for comparing tokenizers before end-to-end language-model training. We will include these observations in the final version as a practical application of our theoretical findings.
Tightness. Theorem 4.3 is an achievability (upper-bound) result: it guarantees that a -token predictor reaches at least the performance of an source predictor, up to the slack . Its usefulness therefore depends on the slack being small over the relevant range of . Across the tokenizers above and in Figures 5, 8, and 9, the slack term stays close to zero until the requested span grows well beyond the token window (roughly – on WikiText-103). In this near-zero-slack regime the bound reduces to with several times larger than , so it certifies a genuine extension of effective context; the bound only becomes loose once is pushed far beyond the span the window reliably supports.
We also checked the bound directly. For each tokenizer, we fixed a target span and slack, chose the smallest token window meeting them, and compared the resulting loss with the source-level loss at that span (full table in our response to Reviewer Nri3). The bound held in all cases, meaning every tokenizer was at or below the character-level reference.
The bound is tighter for some tokenizers, whose realized spans are close to the selected . It is looser for some other tokenizers, whose windows typically contain more source history than required . The remaining gap may also reflect optimization: the theorem is about the best finite-context predictor, whereas the experiment uses a trained Transformer.
We hope that these clarifications, together with the new experiments, revised title, and expanded related-work discussion, address the reviewer’s concerns. We are glad to provide further details during the discussion period if requested by the reviewer.
References
- Buu Phan, Brandon Amos, Itai Gat, Marton Havasi, Matthew J. Muckley, and Karen Ullrich. “Exact Byte-Level Probabilities from Tokenized Language Models for FIM-Tasks and Model Ensembles.” In The Thirteenth International Conference on Learning Representations (ICLR), 2025.
- Yu Mao, Yufei Cui, Tei-Wei Kuo, and Chun Jason Xue. “TRACE: A Fast Transformer-based General-Purpose Lossless Compressor.” In Proceedings of the ACM Web Conference 2022, pp. 1829–1838, 2022.
- Zeyi Lu, Xiaoxiao Ma, Yujun Huang, Minxiao Chen, Bin Chen, Baoyi An, and Shu-Tao Xia. “EDPC: Accelerating Lossless Compression via Lightweight Probability Models and Decoupled Parallel Dataflow.” In Proceedings of the 33rd ACM International Conference on Multimedia, pp. 7268–7276, 2025.
- Huidong Ma, Xinyan Shi, Sun Hui, Xiaofei Yue, Xiaoguang Liu, Gang Wang, and Wentong Cai. “Efficient Learned Data Compression via Dual-Stream Feature Decoupling.” In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics, pp. 7151–7164, 2026.
Thank you. Your response addresses my concern and I am pleased to see the changes. I maintain my original evaluation of the work.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies how lossless sequence representations affect finite-context prediction. It analyzes two directions: fragmentation, where source symbols are split into smaller units, and greedy tokenization, where source symbols are grouped into larger units. The main result is that fragmentation can create an intrinsic finite-context loss gap due to phase ambiguity, while tokenization can effectively extend the source history covered by a fixed token window when token spans are sufficiently large.
Strengths and weaknesses
Strengths
The theoretical framing is clean and useful. I found the fragmentation result particularly interesting: the decomposition into context deficit and phase ambiguity gives a precise explanation for why byte/character-level representations may be harder even when the nominal context span is matched. The tokenization side is also compelling; the source-span definition is simple, interpretable, and leads to a natural guarantee for finite-context predictors. The experiments are well aligned with the theory, especially the synthetic Markov experiments and the span diagnostics for real tokenizers.
Weaknesses
My main concern is scope. The formal results are about optimal finite-context predictors, not directly about what trained Transformers can realize or learn. The authors acknowledge this, but the title and motivation sometimes make the connection to Transformers sound stronger than what is proven. A second limitation is that the real-tokenizer experiments are mostly diagnostic: the WikiText span plots are suggestive, but they do not directly show that the proposed effective-context measure predicts language-modeling loss on natural text. Finally, the fragmentation setup assumes hidden phase information; it would be useful to test whether explicitly giving phase or boundary information removes the observed gap.
Questions
Does the fragmentation penalty disappear if the model is given phase or source-boundary information?
Can the source-span diagnostic be used as a tokenizer training objective, rather than only as an evaluation tool?
Limitations
yes
Final justification
The revised title more accurately reflects the scope of the theoretical results and resolves my concern about framing the contribution as Transformer-specific.
The new WikiText-103 experiments also strengthen the empirical motivation for the source-span diagnostic: larger typical source span is consistently associated with lower bits-per-character loss, both within BPE and across tokenizer families. This remains correlational evidence rather than a demonstration of directly optimizing the proposed tokenizer objective, but I consider it sufficient for the current paper.
Finally, the boundary-marker experiment and the clarification that the phase-ambiguity term vanishes whenever phase is recoverable directly answer my question about fragmentation and appropriately qualify its practical interpretation.
These additions and planned revisions address my main concerns. I have therefore increased my rating from 4 to 5.
Formatting concerns
no
3 comments
Review 3FL7 Rebuttal Part 1
We thank the reviewer for the insightful and constructive feedback. Below, we address the concerns and questions raised in the review.
Weaknesses
-
[W1] Scope: We agree that the current title overemphasizes Transformers relative to the scope of our results. Transformers motivated our study of how sequence representation affects prediction under a fixed context window, and they serve as the model class in our experiments. Our theoretical results concern a broader object: the optimal population loss of finite-context predictors under different sequence representations. Therefore, we propose the new title: "Representation in Finite-Context Prediction: An Analysis of Tokenization and Fragmentation."
This title better reflects the scope of the results while preserving the connection to the empirical motivation.
-
[W2] Effective-context measure and language modeling loss: We agree that the real-tokenizer experiments in the submission are diagnostic. To address this and test whether the source-span measure actually predicts model performance, we ran the following experiment. For a fixed small slack term (0.05 in these experiments) and a fixed token window , we computed the corresponding span for each tokenizer. We then trained transformer models on WikiText-103 with the same window for each tokenizer. The following table reports and the test loss for each tokenizer at and :
We first varied the vocabulary size within a single tokenizer family (BPE):
Tokenizer w (tokens) w_s (chars) Test loss (bits/char) char 128 128.00 1.7458 bpe_1k 128 262.65 1.5397 bpe_4k 128 328.38 1.4131 bpe_16k 128 407.05 1.2992 bpe_32k 128 442.14 1.2695 We observe that as the vocabulary grows, the source span increases and the test loss decreases. The same holds across different tokenizer families with similar vocabulary sizes (between 30k to 50k):
Tokenizer w (tokens) w_s (chars) Test loss (bits/char) wordpiece_32k 128 345.17 1.5721 bert 128 359.48 1.5569 gpt2 128 427.78 1.2753 bpe_32k 128 442.14 1.2695 sentencepiece_32k 128 480.03 1.2662 We observe that a larger span corresponds to a lower loss.
This suggests that the typical source-span measure is not merely diagnostic, but can serve as a simple, computationally inexpensive proxy for comparing tokenizers before end-to-end language-model training. We will include these observations in the final version as a practical application of our theoretical findings.
-
[W3] Prediction under phase information: If the phase information is revealed to the predictor, the phase-ambiguity term vanishes. As alluded to by the reviewers, there are multiple ways to achieve this. A simple way is the following: after fragmenting each source symbol into a block of sub-symbols, we append a special end-of-fragmentation-block sub-symbol, which we denote by . Thus each source symbol is represented by sub-symbols over the enlarged alphabet . The boundary symbol identifies the phase of every subsequent prediction.
We ran this experiment with and (same setting as Figure 1). The plain fragmented model uses context length , while the boundary-marker model uses context length . Hence both windows have the same nominal span of three source symbols. Moreover, in this setting , so the context-deficit term in Theorem 3.1 is zero. The only remaining difference is whether the predictor can infer the phase.
The result matches the theorem. The plain fragmented model plateaus strictly above . However, with boundary markers, the plateau drops to the original-representation loss. Thus, in this experiment, the gap is exactly the phase-ambiguity gap: once the phase is supplied, it disappears. We will add this experiment and the corresponding discussion as a remark in the final version of the paper.
Questions answered in the next comment, due to the issue with the comment section, limiting to 5000 characters per comment instead of the official 10000 characters per-review.
Reviewer 3FL7 Rebuttal Part 2
Questions
- [Q1] Fragmentation Penalty:
Does the fragmentation penalty disappear if the model is given phase or source-boundary information?
Yes, if the model can recover the phase, the phase-ambiguity term vanishes. See [W3] above.
- [Q2] Tokenizer training objective:
Can the source-span diagnostic be used as a tokenizer training objective, rather than only as an evaluation tool?
As noted above in [W2], the typical source-span appears as a good predictor of a transformer's end-to-end loss. One natural way to turn this into a training objective would be to maximize the span subject to a bounded slack term for a fixed window and vocabulary budget:
where is the fixed token window, the vocabulary budget, the set of tokenizers with vocabulary size , and the slack bound. We have not optimized this objective directly and leave it as a promising direction.
We hope these clarifications and the new experiments address the concerns raised; we're glad to provide further explanations during the discussion period.
Dear Reviewer, As the author-reviewer discussion period ending very soon, could you review and respond to the author rebuttals? Thanks.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Comment for Meta Reviewer
We thank the AC for the clear summary and the two focal points. Both, along with the reviewers' individual questions, are addressed in our responses; we briefly indicate where.
Scope and title. We agree the original title over-attributes the results to Transformers, whereas they hold for any finite-context predictor. We have proposed a revised title, "Representation in Finite-Context Prediction: An Analysis of Tokenization and Fragmentation," and clarified that Transformers are the motivating and experimental setting rather than the scope of the theory.
Fragmentation under phase information. We address in detail the extent to which the gap persists when positional or boundary information is available. This is detailed in our responses to Reviewers 1, 2, and 3, including the comma-free-code explanation.
Reviewers' questions. The remaining questions are addressed in the individual responses.
We believe these clarifications and additions address the concerns raised, and we are glad to continue the discussion.