Scratchpad Patching: Decoupling Compute from Patch Size in Byte-Level Language Models
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
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 16 bytes per patch, SP-augmented models match or closely approach the byte-level baseline on downstream evaluations while using a 16× smaller KV cache over patches and 3-4× less inference compute.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 89 of its 101 references that are in the map. First posted on arXiv 10 May 2026.
Builds on
89 of 101 references.
Closest ancestors · 1
Same direction, newest first
Other references · 88
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
38 more
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2022No Language Left Behind: Scaling Human-Centered Machine Translationcited by 1,312
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,104
- 2016Deep Networks with Stochastic Depthcited by 979
- 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Headscited by 843
- 2018Universal Transformerscited by 647
- 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 639
- 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 629
- 2013Generating Sequences With Recurrent Neural Networkscited by 554
- 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 509
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 506
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 415
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 398
- 2024Better & Faster Large Language Models via Multi-token Predictioncited by 360
- 2024xLSTM: Extended Long Short-Term Memorycited by 327
- 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 323
- 2023Think before you speak: Training Language Models With Pause Tokenscited by 264
- 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 258
- 2023Looped Transformers as Programmable Computerscited by 237
- 2021CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representationcited by 232
- 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 170
- 2021PonderNet: Learning to Pondercited by 168
- 2015Conditional Computation in Neural Networks for faster modelscited by 167
- 2025Scaling Latent Reasoning via Looped Language Modelscited by 165
- 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 162
- 2021Charformer: Fast Character Transformers via Gradient-based Subword Tokenizationcited by 160
- 2023OpenWebMath: An Open Dataset of High-Quality Mathematical Web Textcited by 155
- 2017Learning to Generate Reviews and Discovering Sentimentcited by 148
- 2024Byte Latent Transformer: Patches Scale Better Than Tokenscited by 146
- 2018Character-Level Language Modeling with Deeper Self-Attentioncited by 138
- 2025Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computationcited by 133
- 2024OLMES: A Standard for Language Model Evaluationscited by 106
- 2016Hierarchical Multiscale Recurrent Neural Networkscited by 104
- 2021Hierarchical Transformers Are More Efficient Language Modelscited by 102
50 most cited of 88 All 88 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026The Efficiency Gap in Byte Modeling
- 2026FOCUS & RePAIR: Mitigating Text Degeneration via Token-Level Guidance for Pruned Large Language Models
- 2026Byte Language Models: Scaling, Emergent Abstractions, and Information Allocation
- 2026ByteFlow: Language Modeling through Adaptive Byte Compression without a Tokenizer
- 2026Low-Bit Recurrent States in Hybrid Language Models
- 2026Window-Diffusion: Accelerating Diffusion Language Model Inference with Windowed Token Pruning and Caching
- 2026Beyond Scattered Acceptance: Fast and Coherent Inference for DLMs via Longest Stable Prefixes
- 2024AtP*: An efficient and scalable method for localizing LLM behaviour to components