← Latest papers
🤖 machine learning

Right Reset: Chunking by Prefix Removal

The paper introduces "Right Reset," a prefix-removal probing technique that leverages causal language models to detect text boundaries by measuring the preservation of hidden-state trajectories, outperforming conventional embedding-based baselines in recovering original records from flattened text without requiring task-specific training.

Original authors: Mike Vegeto

Published 2026-08-06
📖 4 min read☕ Coffee break read

Original authors: Mike Vegeto

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to read a massive, endless scroll of text where all the page breaks, chapter titles, and paragraph gaps have been erased. It's just one long, continuous stream of words. If you were a human reader, you might get lost, wondering where one story ends and the next begins. This is a common headache for computers that read text, especially when they are trying to organize messy data like scanned documents or flattened records.

To understand how computers try to solve this, we need to look at how "causal language models" work. Think of these models as incredibly attentive students who read a story one word at a time. As they read, they build a mental picture of the context. If the student reads "The cat sat on the...", their brain is already predicting "mat" or "rug" because of the words that came before. This is called "context dependence." Usually, if you remove the beginning of the sentence, the student's prediction for the end changes completely. But what if there are certain spots in the text where the student could start reading from the middle, and their understanding of the next few words would stay exactly the same? Those spots are like natural "breathing points" or boundaries in the story. Finding these points is the key to chopping a giant block of text into manageable, meaningful chunks without needing to know the original formatting.

This is exactly the puzzle tackled in a new paper by independent researcher Mike Vegeto, titled "Right Reset." The paper introduces a clever method called Right Reset (RR) to find these invisible boundaries. Instead of looking for obvious clues like capital letters or periods, RR asks a simple, counter-intuitive question at every possible cut point: "If I delete everything before this word, does the computer's understanding of the words after this point change?"

The researchers found that at the true boundaries between different records (like switching from a story about a cat to a story about a dog), the computer's internal "brain state" barely shifts when the past is removed. It's as if the computer realizes, "Oh, I can start fresh here!" However, if you try to cut the text in the middle of a sentence, the computer gets confused and its internal state changes drastically because it was relying heavily on the words just before the cut.

To test this, the team took 276 distinct records (like scientific facts or news snippets), mashed them together into a single, long, messy line of text with no separators, and then tried to use Right Reset to pull them apart again. The results were quite striking. Right Reset successfully recovered 47.7% of the original records as clean, perfect units. In comparison, the best traditional method they tested (using a standard embedding tool called BGE) only managed to recover 25.9%. Even when they simulated a scenario where the text was scanned from a physical page using OCR (Optical Character Recognition), Right Reset held its ground, recovering 48.7% of the units.

The paper also checked if this was just a fluke of the specific computer model they used. They tested the method on six different language models, ranging from small ones to larger, more complex ones. In almost every case, the cuts chosen by Right Reset were the ones where the computer's predictions were least disturbed by removing the past. This suggests the method isn't just memorizing patterns but is actually detecting a fundamental property of how these models process information.

However, the paper is careful not to claim this is a magic bullet for every situation. When they tested Right Reset on a standard dataset of Wikipedia articles (Wiki-50), where clear headings and paragraphs already exist, the method performed no better than standard tools. This tells us that Right Reset is a specialist tool: it shines when the usual clues (like layout or formatting) are gone, but it doesn't necessarily replace the old ways when those clues are still there.

In short, the paper suggests that by "resetting" the context and seeing how much the computer's brain state wobbles, we can find the hidden seams in messy text. It's a bit like finding the perfect place to cut a long rope by seeing where the tension naturally drops. While it requires more computing power than simple methods, it offers a powerful new way to organize data that has lost its structure, proving that sometimes, forgetting the past is the best way to understand the future.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →