potentialpaper

Scratchpad Patching: Decoupling Compute from Patch Size in Byte-Level Language Models

Lin Zheng, Vasilisa Bashlovkina, Timothy Dozat, Dan Garrette, Laura Rimell, Joshua Maynez

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We present Scratchpad Patching for patch-based byte-level models, which inserts transient, entropy-triggered scratchpads inside patches and significantly improves modeling quality at much larger patch sizes.

Abstract. Tokenizer-free language models eliminate the tokenizer step of the language modeling pipeline by operating directly on bytes; patch-based variants further aggregate contiguous byte spans into patches for efficiency. However, the average patch size chosen at the model design stage governs a tight trade-off: larger patches reduce compute and KV-cache footprint, but degrade modeling quality. We trace this trade-off to patch lag: until a patch is fully observed, byte predictions within it must rely on a stale representation from the previous patch to preserve causality; this lag widens as patches grow larger. We introduce Scratchpad Patching (SP), which inserts transient scratchpads inside each patch to aggregate the bytes seen so far and refresh patch-level context for subsequent predictions. SP triggers scratchpads using next-byte prediction entropy, selectively allocating compute to information-dense regions and enabling post-hoc adjustment of inference-time compute. Across experiments on natural language and code, SP improves model quality at the same patch size; for example, even at 1616 bytes per patch, SP-augmented models match or closely approach the byte-level baseline on downstream evaluations while using a 16×16\times smaller KV cache over patches and requiring roughly 33--4×4\times less inference compute than the byte-level baseline.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:44 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper introduces a modification of patch-based byte-level models, inserting transient intermediate states within patches to reduce patch lag. The results show that this recovers much of the quality lost with larger patches while retaining substantial inference-compute and KV-cache savings.

The reviewers are broadly positive about the paper and find the proposed approach novel, well motivated, and supported by good experiments. A few points about the scope and efficiency claims need clarification. Please prioritize the following in the rebuttal:

  1. Quantify the training-time FLOP overhead introduced by scratchpads for the different patching methods, alongside the reported inference-time savings.
  2. Explain the degradation of H-Net under FLOP matching and, more generally, when scratchpad patching may hurt rather than help. This is important for understanding the scope of the claim that the method is generic.
  3. Clarify why fixed patching with SP can outperform the byte-level baseline in BPB, and provide the typical scratchpad update frequency across tasks or patching methods.

Additional scaling experiments would be useful but are out of scope for the rebuttal. Likewise, actual serving latency or throughput measurements would strengthen the paper but are not the highest priority.

Final justification

The rebuttal addressed the main concerns raised in my meta-review. The authors quantified the training-time overhead of scratchpads, clarified the H-Net failure mode and scope of the generic claim, explained the BPB behavior and scratchpad update frequency, and additionally provided scaling evidence at a second model size. The reviewers remain broadly positive, with one maintaining an Accept score and the others viewing the remaining issues as limitations, which the authors should acknowledge in the revision.

Area Chair jaRi · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper introduces a modification of patch-based byte-level models, inserting transient intermediate states within patches to reduce patch lag. The results show that this recovers much of the quality lost with larger patches while retaining substantial inference-compute and KV-cache savings.

The reviewers are broadly positive about the paper and find the proposed approach novel, well motivated, and supported by good experiments. A few points about the scope and efficiency claims need clarification. Please prioritize the following in the rebuttal:

  1. Quantify the training-time FLOP overhead introduced by scratchpads for the different patching methods, alongside the reported inference-time savings.
  2. Explain the degradation of H-Net under FLOP matching and, more generally, when scratchpad patching may hurt rather than help. This is important for understanding the scope of the claim that the method is generic.
  3. Clarify why fixed patching with SP can outperform the byte-level baseline in BPB, and provide the typical scratchpad update frequency across tasks or patching methods.

Additional scaling experiments would be useful but are out of scope for the rebuttal. Likewise, actual serving latency or throughput measurements would strengthen the paper but are not the highest priority.

Final justification

The rebuttal addressed the main concerns raised in my meta-review. The authors quantified the training-time overhead of scratchpads, clarified the H-Net failure mode and scope of the generic claim, explained the BPB behavior and scratchpad update frequency, and additionally provided scaling evidence at a second model size. The reviewers remain broadly positive, with one maintaining an Accept score and the others viewing the remaining issues as limitations, which the authors should acknowledge in the revision.

Reviewer 5S99OpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
4/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper introduces a transient patches in byte-level language models to address patch lag and closely match the accuracy of byte-level baseline models while using 16 bytes per patch. The resulting model has lower KV footprint and inference compute while being as good as having a smaller patch size model.

The key contribution of this paper is the algorithm behind selecting when to update the scratchpad to stay within the compute bounds of the underlying model. The second important idea is the decoupling of KV with the scratchpad elements.

Strengths and weaknesses

Strengths

  1. Novel idea to reduce patch lag introduced by long patch sizes in patch based models
  2. The authors have introduced the problem statement clearly which leads to a clear understanding of their proposed solution.
  3. Major results are complete and show the benefit of the approach.

Weakness:

  1. Figure 5 is the main result but extremely difficult to read (ie. too cluttered)
  2. Probably need a token/per-byte baseline in the scaling curves.
Questions
  1. How is BPB of fixed(p=4/8)+SP better than byte level, Similarly, tokenizer based text metrics seem to be better for fixed-patch + SP? This makes me question whether the metrics are good enough or are the models under-trained
  2. Since the SP update frequency is gated by a threshold it will be good to show the expected update frequency for general tasks as another evaluation metric.
Limitations

Yes

Final justification

The authors have addressed the weaknesses and clarified how BPB of SP models are better. I think this paper qualifies as a good paper in terms of the concept and experimental findings and I think I have fairly rated it as a borderline accept.

Formatting concerns

None

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for identifying the two central ideas: reducing patch lag and separating transient computation from persistent KV states, and for the concrete feedback on Fig. 5.

W1: "Figure 5 is the main result but extremely difficult to read (ie. too cluttered)"

A1: We agree. In the revision, we will redesign Fig. 5 as one panel per patchifier family, allowing each non-SP/SP pair to be read directly, and show the byte-level and tokenizer-based models as reference lines rather than as two points among many. We will apply the same treatment to the downstream frontiers in Appendix F.1.

W2: "Probably need a token/per-byte baseline in the scaling curves."

A2: Both baselines are present in Fig. 5, but the current presentation makes them difficult to identify. The redesign above will make them explicit. We also completed controlled Fixed (p=8p=8) comparisons at 500M and 2B parameters under a 100B-byte, 50,000-step training schedule:

Model 500M / 100B (new) 2B / 100B (new) 2B / 400B (in the paper)
Byte-level 0.7283 0.6933 0.6366
Tokenizer-based 0.7509 0.7063 0.6465
Fixed (p=8p=8) 0.7833 0.7295 0.6691
Fixed (p=8p=8) + SP 0.7425 0.6920 0.6345

SP improves over Fixed (p=8p=8) in all three configurations. In the revision, we will add this comparison and make both reference baselines explicit in the redesigned figure.

Q3: How can the BPB of Fixed (p=4/8) + SP be better than the byte-level model, and better than the tokenizer-based model on text metrics; are the metrics good enough, or are the models under-trained?

A3: BPB is negative log-likelihood normalized per raw byte, so it is directly comparable across byte-level, patch-based, and tokenizer-based models and does not favor a model for using fewer sequence elements. All main configurations see the same 400B raw bytes over 50,000 steps. The byte-level baseline also uses approximately 2.0× the training FLOPs of Fixed (p=4p=4) + SP, so it is not disadvantaged by a smaller compute budget. Moreover, the within-family ordering holds at both 500M and 2B parameters, so it is not unique to one model scale.

The ordering is also not specific to SP. Mildly compressed non-SP models already obtain lower validation BPB than the byte-level baseline (Fixed (p=2p=2), 0.6327; H-Net (C=3C=3), 0.6322; byte-level, 0.6366). SP extends this behavior to larger patches: Fixed (p=4p=4) + SP reaches 0.6301 and Fixed (p=8p=8) + SP reaches 0.6345, while committing 4× and 8× fewer patch states. The FLOP-matched Fixed (p=8p=8) result in Fig. 7 further shows that the gain is not explained only by additional computation.

The domain-specific results indicate where the difference arises. Fixed (p=8p=8) + SP is better than the byte-level model on natural language (0.8444 versus 0.8534 BPB) and slightly worse on code (0.3482 versus 0.3454). The tokenizer-based model shows the same pattern more strongly (0.8443 on natural language but 0.3647 on code), helping explain why its aggregate BPB (0.6465) trails the byte-level model even though it is a strong NLU baseline in Table 1. We hypothesize that compression supplies a useful abstraction in locally predictable regions, while SP allocates additional computation to high-entropy positions. In the revision, we will state this explanation as a hypothesis and add the domain-specific analysis.

Q4: "Since the SP update frequency is gated by a threshold it will be good to show the expected update frequency for general tasks as another evaluation metric."

A4: On the validation mixture, scratchpads fire approximately once every 5–7 bytes:

Patchifier Bytes per update
Fixed (p=4p=4) 5.4
Fixed (p=8p=8) 4.8
SpaceByte 6.5
Entropy-based 6.9
H-Net 5.9

The rate is content-dependent: on the code validation split, scratchpads fire approximately once every 8–10 bytes across the four patchifier families. Update frequency describes how often SP injects transient computation, whereas FLOPs, our primary metric reported in the paper, is the more complete end-to-end compute measure and permits direct comparison with the byte-level, tokenizer-based, and non-SP patchifier baselines. Fig. 9 additionally shows how changing the update frequency after training controls the inference quality-compute trade-off.

In the revision, we will report the average update frequency per patchifier alongside the end-to-end FLOPs/byte measurements.

Reviewer e49bOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
4/4
Clarity
4/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

Tokenizer-free byte-level language models avoid the brittleness of subword tokenization by operating directly on bytes. To keep computation tractable, patch-based variants aggregate contiguous bytes into patches before feeding them into the main trunk. This introduces a structural issue: patch lag. Within each patch, only the final byte can condition on the current patch's trunk representation — all earlier bytes must rely on the previous patch's stale output. The larger the patch, the worse this gets, creating a hard trade-off between efficiency and quality. Scratchpad Patching (SP) inserts transient intermediate states inside each patch. Whenever the encoder's next-byte prediction entropy exceeds a threshold, SP aggregates the bytes observed so far within the patch, runs them through the main trunk, and uses the resulting state to condition subsequent byte predictions. These scratchpad states are never written to the KV cache and are invisible to future patches, so the committed patch sequence length and memory footprint stay exactly the same. Training unrolls all scratchpad states into a flat sequence with a specialized attention mask that enforces correct causal information flow, allowing full parallel training.

Strengths and weaknesses

Strengths

  • Paper writing is good. Simple and clear.
  • The experiments and ablation studies are sufficiently comprehensive.
  • The method is also very interesting; I personally like it.

Weaknesses:

The paper reports a range of efficiency metrics — sequence reduction factor, FLOPs/byte reduction, and KV cache reduction — but what is missing is actual latency or throughput measurements in real deployment settings. I want to see a comparison with a standard BPE-based tokenizer model serving real requests.

Questions

N/A

Limitations

Yes

Final justification

Maintaining positive score.

Formatting concerns

N/A

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the positive assessment of the method, presentation, and experimental coverage.

W1: "The paper reports a range of efficiency metrics ... but what is missing is actual latency or throughput measurements in real deployment settings. I want to see a comparison with a standard BPE-based tokenizer model serving real requests."

A1: We agree that serving latency and throughput measurements are missing. The current submission reports analytical efficiency and does not claim a measured serving speedup. A fair measurement requires a customized implementation that efficiently schedules transient scratchpad updates and writes of committed patch states to the persistent trunk KV cache in a batched manner, together with equally optimized byte and tokenizer baseline inference runtimes. Under our current infrastructure, wall-clock results would primarily reflect framework, kernel, and scheduling maturity rather than the method alone. We therefore report inference FLOPs and persistent patch-level KV cache as implementation-independent analytical proxies.

The controlled analytical comparison nevertheless establishes the quality-compute trade-off that a serving study would evaluate. On MBPP/HumanEval, Fixed (p=8p=8) + SP obtains 32.1/15.9 pass@1 at 3.2×/3.7× lower inference FLOPs per byte and 8× fewer persistent patch states than the byte-level baseline. In contrast, the tokenizer-based model obtains 23.3/13.3 pass@1 at 3.1×/3.5× lower inference FLOPs per byte (Table 2).

In our current implementation, we observe that wall-clock cost broadly tracks the number of trunk invocations. For example, emitting a scratchpad approximately every 2 bytes while committing a patch every 4 bytes has roughly the wall-clock cost of a non-SP model with 2 bytes per patch. This implementation-specific observation is not a controlled serving-latency or throughput comparison. In the revision, we will clarify that inference FLOPs and persistent patch-level KV states are analytical proxies rather than measured system speed or total serving memory, and state the absent serving evaluation as a limitation.

Reviewer r76SOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes Scratchpad Patching (SP), a method for patch based byte level language models that inserts transient scratchpad states inside patches. These states aggregate bytes seen so far within a patch and refresh patch level context for later byte predictions, reducing the “patch lag” caused by using stale previous patch representations. Scratchpads are trained in parallel via a specialized attention mask but are excluded from the persistent KV cache at inference, so the method aims to add targeted compute without increasing the committed patch sequence length. The authors evaluate SP across fixed-size, SpaceByte, entropy-based, and H-Net-style patchifiers on validation BPB, code generation, and multiple-choice NLU tasks (lines 178-201).

Strengths and weaknesses

Patch lag is a clear structural problem in patch-based byte models. Larger patches reduce sequence length but force many byte predictions to rely on stale patch context SP is a simple and general mechanism for addressing this problem.

The empirical evaluation is a major strength. The authors test several patchifier families under a shared backbone, include byte-level and tokenizer-based baselines, and evaluate both language-modeling quality and downstream tasks. The results are also consistently favorable. SP improves NLU averages for most patchifiers, substantially recovers quality for large fixed patches, and improves MBPP/HumanEval pass@1 while largely preserving patch-level cache reduction.

The following are some concerns -

  1. All experiments are at ~2B parameters with what appears to be one training run per configuration.For a technique claimed to be "generic", at least a second scale or a partial scaling trend is needed to show the frontier shift persists.
  2. On NLU the tokenizer-based baseline remains strongest. SP mostly recovers the degradation from aggressive patching rather than surpassing the tokenizer, so the headline benefit is concentrated in the code setting and in KV-cache/inference-FLOP efficiency.
  3. Also, as the authors note, SP does not reduce training FLOPs (lines 326-328), so the "decoupling compute from patch size" claim applies mainly at inference. The training-time overhead of the transient states is not quantified per family.
Questions
  1. All results are at ~2B parameters. Can you provide any evidence even a single additional scale or a partial scaling trend that the frontier shift in Fig. 5/Fig. 7 persists as model size grows?
  2. Since scratchpads add training-time compute (Sec. 3.2) but no inference KV cache, can you quantify the total training-FLOP overhead of SP versus the non-SP baseline per family, alongside the inference savings? This would make the overall compute trade-off explicit.
  3. For the H-Net degradation under FLOPs matching (lines 282-284), can you characterize when SP hurts rather than helps? Understanding the failure mode would clarify the scope of the "generic" claim.
  4. Does the reported KV-cache reduction in Table 2 include all inference-time caches from the byte-level encoder, trunk, and decoder, or only the persistent patch-level trunk states?
Limitations

Yes

Formatting concerns

No issues

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the precise summary and for recognizing the breadth and consistency of the evaluation. We address each concern below.

W1/Q1: "All experiments are at ~2B parameters with what appears to be one training run per configuration ... can you provide any evidence even a single additional scale or a partial scaling trend that the frontier shift in Fig. 5/Fig. 7 persists as model size grows?"

A1: We completed a controlled Fixed (p=8p=8) comparison at 500M and 2B parameters under the 100B-byte, 50,000-step training schedule; the main experiments in the submission use 2B parameters and 400B bytes. Absolute BPB is therefore higher under the shorter 100B-byte schedule.

Model 500M / 100B (new) 2B / 100B (new) 2B / 400B (in the paper)
Byte-level 0.7283 0.6933 0.6366
Tokenizer-based 0.7509 0.7063 0.6465
Fixed (p=8p=8) 0.7833 0.7295 0.6691
Fixed (p=8p=8) + SP 0.7425 0.6920 0.6345

SP consistently improves over Fixed (p=8p=8) in all three configurations. These results provide a second model scale and training horizon and support a consistent within-family benefit across the tested model scales and data budgets.

Each configuration is a single training run. Given the compute budget and time available, replicating 2B-parameter pretraining on 400B bytes across multiple seeds was not feasible. In the revision, we will add the 500M comparison and state the single-run protocol as a limitation.

W2: "On NLU the tokenizer-based baseline remains strongest. SP mostly recovers the degradation from aggressive patching rather than surpassing the tokenizer, so the headline benefit is concentrated in the code setting and in KV-cache/inference-FLOP efficiency."

A2: We agree with the broader scope qualification. The tokenizer-based model is a strong NLU baseline, averaging 55.9 in Table 1; Fixed (p=4p=4) + SP and SpaceByte + SP marginally exceed it at 56.2, while the remaining SP variants are lower. The supported NLU claim is within-family recovery together with an improved quality-efficiency trade-off: SP raises Fixed (p=16p=16) from 48.0 to 54.2, matching the byte-level model (54.1) while committing 16× fewer patch states.

The ordering differs on code generation. On MBPP, Fixed (p=8p=8) + SP reaches 32.1 pass@1, compared with 26.3 for the byte-level model and 23.3 for the tokenizer-based model (Table 2). The tokenizer advantage is also language-dependent: it improves over the byte-level baseline on the natural-language validation split (0.8443 versus 0.8534 BPB), but performs worse on code (0.3647 versus 0.3454) and ranks poorly across the 200 languages in FLORES-200 (Appendix F.2). In the revision, we will foreground within-family recovery and quality-efficiency rather than broad superiority to tokenization, and present the role of representation-specific inductive bias as a hypothesis.

W3/Q2: "Since scratchpads add training-time compute (Sec. 3.2) but no inference KV cache, can you quantify the total training-FLOP overhead of SP versus the non-SP baseline per family, alongside the inference savings?"

A3: The per-family FLOP ratios of SP to the non-SP baseline are:

Patchifier Training SP/non-SP Inference SP/non-SP
Fixed (p=8p=8) 1.88× 1.46×
SpaceByte 1.61× 1.30×
Entropy-based 1.42× 1.47×
H-Net 1.37× 1.27×

These ratios depend on both the committed-patch rate and the scratchpad rate. The reduction factors reported in Table 2 use the byte-level model, instead of the corresponding non-SP patchifier, as the reference; against that reference, SP variants retain 2.3–2.5× lower training FLOPs, 2.5–4.5× lower inference FLOPs/byte, and 4–16× fewer persistent patch states. In the revision, we will report both reference points rather than discussing training cost only in the Limitations.

Q3: "For the H-Net degradation under FLOPs matching ... can you characterize when SP hurts rather than helps? Understanding the failure mode would clarify the scope of the ‘generic’ claim."

A4: Under strict FLOP matching, H-Net + SP degrades; we hypothesize that this occurs because its boundary rule and scratchpad trigger frequently allocate adjacent, redundant trunk computations. H-Net predicts whether the current position starts a patch, whereas the SP entropy head at position nn estimates whether the next byte n+1n+1 is difficult to predict. A scratchpad at nn is therefore often followed immediately by a boundary at n+1n+1, and the two trunk states aggregate nearly identical prefixes. Appendix F.4 shows this one-position coupling qualitatively. When this redundant computation is charged against a fixed FLOP budget, H-Net + SP falls behind its non-SP counterpart (Fig. 7); under the fixed-data protocol, it still improves BPB from 0.6422 to 0.6382 and improves pass@1 (Table 2).

More generally, SP is less effective when its trigger is strongly coupled to the boundary rule or when updates are dense enough to reprocess predictable bytes. On natural language, updating at every position (E>0E>0; 0.8927 BPB) is worse than selective triggering (E>1.5E>1.5; 0.8880 BPB) despite using more than 2× the training FLOPs (Appendix F.3). In the revision, we will state these failure conditions in Sec. 5.1 and narrow "generic" in Sec. 1 to compatibility with the four patchifier families tested here.

Q4: "Does the reported KV-cache reduction in Table 2 include all inference-time caches from the byte-level encoder, trunk, and decoder, or only the persistent patch-level trunk states?"

A5: It includes only the persistent patch-level trunk states. Scratchpads are overridden and do not add persistent trunk states. The byte-resolution encoder and decoder retain their own KV caches, which do not shrink with fixed patch size. Using the architecture specified in Appendix B (Table 3), the analytical end-to-end attention-KV reduction is approximately 2.3× for Fixed (p=4p=4) + SP and 3.0× for Fixed (p=8p=8) + SP, compared with the reported 4× and 8× reductions for the trunk alone.

We report the persistent trunk term because it is the component controlled directly by patchification; however, the byte-resolution caches are not negligible. Inference FLOPs/byte already covers the encoder, patchifier, trunk, unpatchifier, and decoder. In the revision, we will label the cache metric "persistent patch-level KV-cache reduction," state its scope in Sec. 4.2 and the Table 2 caption, and report the analytical end-to-end accounting alongside it.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…