arXiv Computation and Language By Lin Zheng, Vasilisa Bashlovkina, Timothy Dozat, Dan Garrette, Laura Rimell, Joshua Maynez

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

Read the original on arXiv Computation and Language →

Scratchpad Patching (SP) is a technique for byte‑level language models that removes the need for a fixed patch size by inserting transient scratchpads within each patch. These scratchpads aggregate bytes seen so far and refresh the patch‑level context, allowing the model to use a smaller KV‑cache and less inference compute while maintaining or improving quality. Experiments on natural language and code show that SP‑augmented models match or approach byte‑level baselines at a 16‑byte patch size, using a 16× smaller KV‑cache and 3–4× less compute.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Computation and Language.

arXiv Machine Learning
Oct 16

Patch where the text is new: a compression view of where byte-level models should spend compute

The paper introduces a novel patching strategy for byte‑level language models, called novelty patching, which starts a new patch when upcoming bytes are unlikely to repeat recent context, inspired by LZ77 compression. Experiments on a 1.9 GB math corpus show that novelty patching improves final‑answer accuracy from 47 % to 72 % at 12 M parameters and raises computed‑result accuracy from 21 % to 57 % at 50 M parameters, while having limited impact on prose and source code. The study also analyzes patch boundary distributions and reports several failed approaches, such as typed uncertainty and context‑aware novelty prediction. whyItMatters":"The findings demonstrate that a simple, data‑driven patching rule can significantly enhance the performance of byte‑level models on tasks involving computed results, offering a practical improvement for large language models that process raw text without explicit labels."

By Nicol\'as Vera Z\'u\~niga