Right Reset: Chunking by Prefix Removal
Summary
This paper introduces Right Reset (RR), a prefix-removal probing method that uses causal language model hidden-state preservation to identify chunk boundaries in flattened text, recovering 47.7% of original records compared to 25.9% for a BGE baseline.
View Cached Full Text
Cached at: 08/06/26, 07:46 AM
# Right Reset: Chunking by Prefix Removal
Source: [https://arxiv.org/html/2608.04330](https://arxiv.org/html/2608.04330)
\(August 2026\)
###### Abstract
Removing the left context from a causal language model reveals a useful kind of boundary: an edge where the model processes the same right\-hand tokens with little change\. We turn this observation into prefix\-removal probing and introduceRight Reset\(RR\), which measures preservation of the right\-hand hidden\-state trajectory\. A dynamic program converts RR edge scores into variable\-length chunks\. On flattened text formed by concatenating topically similar records after deleting their separators and layout, RR recovers 47\.7% of the original records as clean units, versus 25\.9% for a BGE embedding boundary, the strongest tested conventional baseline without task\-specific model training\. The gain persists after rendering and OCR\. Passive scores from the same Qwen3\-4B layer and direct prompting of a same\-scale instruction model perform substantially worse on flattened records\. Across six language models, RR\-selected cuts also undergo consistently less local output disruption than unselected candidate edges\. An observed\-token likelihood\-ratio readout is competitive in some architectures, indicating that the central contribution is the intervention: context dependence itself can provide a boundary signal when surface structure is weak\.
Keywords:Right Reset; text chunking; causal language models; hidden states; prefix removal; OCR data curation
## 1Introduction
A language model can process some continuations almost the same way even after everything before them is removed\. Those points are natural candidates for chunk boundaries: the right side is locally less dependent on the left\.
This signal matters when conventional cues are weak\. Most text chunkers rely on paragraphs, sentences, layout, or local semantic change\. These are good defaults for ordinary documents, but they can disappear when records are flattened or become ambiguous when neighboring units discuss the same topic\. The text may still contain distinct contextual units even when its visible structure no longer reveals them\.
Right Resetasks one question at every candidate edge:*if the model started here, how differently would it process what comes next?*It removes the complete left prefix, reprocesses the same right\-hand tokens, and compares their hidden\-state trajectories with those from uninterrupted processing\. A high score means the local trajectory is well preserved\. RR therefore finds boundaries through contextual dependence rather than a prescribed document convention\.
RR is an edge score, not a chunk\-size rule\. After scoring, a dynamic program chooses a globally feasible set of cuts\. The chunk count may be fixed when comparing score quality or inferred by a cut penalty in an application\. This separation lets the same boundary signal support different segmentation policies\.
We make three contributions:
1. 1\.We introduce prefix\-removal probing and RR, a hidden\-state preservation score that turns local context dependence into a chunking signal\.
2. 2\.We show that RR recovers 47\.7% of topically similar source records from flattened text, versus 25\.9% for a BGE embedding boundary and 3\.1% for a same\-scale prompted segmenter, and that the result survives rendering and OCR\.
3. 3\.We show that the intervention supplies the signal: passive scores from the same model and layer are much weaker, while six\-model output analyses confirm that RR selects edges with low local context dependence\.
Observed\-token likelihood ratio provides a second readout of the same intervention\. Its relative strength varies by architecture\. This makes the conceptual hierarchy clear: prefix removal is the probing principle, RR is the primary hidden\-state readout, dynamic programming turns scores into chunks, and flattened records are the main application test\.
## 2Related Work
Classical text segmentation uses lexical cohesion, discourse structure, or a generative document model\. TextTiling detects changes in lexical co\-occurrence\(Hearst,[1997](https://arxiv.org/html/2608.04330#bib.bib2)\); statistical methods optimize global segmentations\(Utiyama and Isahara,[2001](https://arxiv.org/html/2608.04330#bib.bib3)\); and supervised systems learn boundaries from document structure\(Koshoreket al\.,[2018](https://arxiv.org/html/2608.04330#bib.bib4)\)\. Applied chunkers use semantic shifts, structured boundaries, or contextual embeddings\(Duarteet al\.,[2024](https://arxiv.org/html/2608.04330#bib.bib9); Liet al\.,[2026](https://arxiv.org/html/2608.04330#bib.bib10); Güntheret al\.,[2024](https://arxiv.org/html/2608.04330#bib.bib8)\)\. RR adds a different criterion: how much a fixed causal model depends on the prefix at an edge\.
Language\-model likelihood has also been used for segmentation, including high\-loss dialogue units, local perplexity criteria, and context\-sensitive tokenization scores\(Fenget al\.,[2021](https://arxiv.org/html/2608.04330#bib.bib5); Zhaoet al\.,[2024](https://arxiv.org/html/2608.04330#bib.bib6); Hronsky and Keuleers,[2024](https://arxiv.org/html/2608.04330#bib.bib7)\)\. Segmental models optimize complete\-segment likelihoods with dynamic programming\(Wanget al\.,[2017](https://arxiv.org/html/2608.04330#bib.bib11)\)\. These methods establish both likelihood and global optimization as useful tools, but they generally score text under its existing context\. RR instead deletes the complete prefix and compares aligned processing before and after the intervention\.
Context ablation and causal analysis test whether information affects model behavior\(Viget al\.,[2020](https://arxiv.org/html/2608.04330#bib.bib15); Khandelwalet al\.,[2018](https://arxiv.org/html/2608.04330#bib.bib16); O’Connor and Andreas,[2021](https://arxiv.org/html/2608.04330#bib.bib17)\), while representation analyses show that layer choice changes what hidden states encode\(Liuet al\.,[2019](https://arxiv.org/html/2608.04330#bib.bib13); Tenneyet al\.,[2019](https://arxiv.org/html/2608.04330#bib.bib14)\)\. RR turns a specific context ablation into a boundary score and then into a segmentation\.
## 3Right Reset
### 3\.1Boundary score
Letx1:nx\_\{1:n\}be a tokenized sequence and lethj\(ℓ\)\(x1:n\)∈ℝdh^\{\(\\ell\)\}\_\{j\}\(x\_\{1:n\}\)\\in\\mathbb\{R\}^\{d\}be the hidden state at positionjjfrom layerℓ\\ellof a causal language model\. Consider the edgebbbetweenxbx\_\{b\}andxb\+1x\_\{b\+1\}\. For a right\-hand windowWW, define
rb=xb\+1:b\+mb,mb=min\(W,n−b\)\.r\_\{b\}=x\_\{b\+1:b\+m\_\{b\}\},\\qquad m\_\{b\}=\\min\(W,n\-b\)\.We runrbr\_\{b\}again after removingx1:bx\_\{1:b\}, obtaining reset statesh~q\(ℓ,b\)\\widetilde\{h\}^\{\(\\ell,b\)\}\_\{q\}forq=0,…,mb−1q=0,\\ldots,m\_\{b\}\-1\. The default implementation preserves the original position IDs so that token identity and alignment are unchanged; a reindexing control gives equivalent results on Qwen2\.5\.
RR is the mean cosine preservation of the full and reset trajectories after skipping the firstssreset positions:
Rℓ\(b\)=1mb−s∑q=smb−1hb\+1\+q\(ℓ\)⋅h~q\(ℓ,b\)∥hb\+1\+q\(ℓ\)∥2∥h~q\(ℓ,b\)∥2\.R\_\{\\ell\}\(b\)=\\frac\{1\}\{m\_\{b\}\-s\}\\sum\_\{q=s\}^\{m\_\{b\}\-1\}\\frac\{h^\{\(\\ell\)\}\_\{b\+1\+q\}\\cdot\\widetilde\{h\}^\{\(\\ell,b\)\}\_\{q\}\}\{\\lVert h^\{\(\\ell\)\}\_\{b\+1\+q\}\\rVert\_\{2\}\\lVert\\widetilde\{h\}^\{\(\\ell,b\)\}\_\{q\}\\rVert\_\{2\}\}\.\(1\)Higher values mean that removing the prefix changes the local hidden trajectory less\. The score is directional: it measures dependence of the right side on the left, not symmetric dissimilarity between adjacent spans\. Unless stated otherwise, we useW=24W=24,s=1s=1, and a layer at 75% of decoder depth\.
Fullx1x\_\{1\}⋯\\cdotsxbx\_\{b\}xb\+1x\_\{b\+1\}xb\+2x\_\{b\+2\}⋯\\cdotsxb\+Wx\_\{b\+W\}Resetprefix removedxb\+1x\_\{b\+1\}xb\+2x\_\{b\+2\}⋯\\cdotsxb\+Wx\_\{b\+W\}hidden statesRR cosineobserved\-tokenlikelihood ratiofull outputKL referenceshared constraineddynamic programFigure 1:RR removes the complete prefix but holds the right\-hand tokens and their alignment fixed\. Hidden\-state preservation supplies the RR score\. Observed\-token likelihood ratio reads the same intervention behaviorally; output KL is used only as a same\-model mechanism reference\.
### 3\.2Two other readouts of the intervention
Letpb,qfullp^\{\\mathrm\{full\}\}\_\{b,q\}andpb,qresetp^\{\\mathrm\{reset\}\}\_\{b,q\}be the next\-token distributions at aligned full and reset positions\. The observed\-token likelihood\-ratio damage over realized continuation tokens is
dLR\(b\)=1W−s−1∑q=sW−2logpb,qfull\(xb\+q\+2\)pb,qreset\(xb\+q\+2\)\.d\_\{\\mathrm\{LR\}\}\(b\)=\\frac\{1\}\{W\-s\-1\}\\sum\_\{q=s\}^\{W\-2\}\\log\\frac\{p^\{\\mathrm\{full\}\}\_\{b,q\}\(x\_\{b\+q\+2\}\)\}\{p^\{\\mathrm\{reset\}\}\_\{b,q\}\(x\_\{b\+q\+2\}\)\}\.\(2\)We use−dLR\(b\)\-d\_\{\\mathrm\{LR\}\}\(b\)as a boundary utility\. This is counterfactual: unlike raw surprisal, it compares the same observed token with and without the prefix\. If the next token were sampled frompfullp^\{\\mathrm\{full\}\}, the expectation of the log ratio would equalDKL\(pfull∥preset\)D\_\{\\mathrm\{KL\}\}\(p^\{\\mathrm\{full\}\}\\\|p^\{\\mathrm\{reset\}\}\)\(Kullback and Leibler,[1951](https://arxiv.org/html/2608.04330#bib.bib26)\)\. Corpus tokens are not such samples, so the observed value is not an unbiased per\-position KL estimate\.
For evaluation, we measure the complete distributional change:
dKL\(b\)=1W−s−1∑q=sW−2DKL\(pb,qfull∥pb,qreset\)\.d\_\{\\mathrm\{KL\}\}\(b\)=\\frac\{1\}\{W\-s\-1\}\\sum\_\{q=s\}^\{W\-2\}D\_\{\\mathrm\{KL\}\}\\\!\\left\(p^\{\\mathrm\{full\}\}\_\{b,q\}\\,\\\|\\,p^\{\\mathrm\{reset\}\}\_\{b,q\}\\right\)\.\(3\)This KL score is the mechanism reference: zero means that removing the prefix leaves the model’s local predictive distribution unchanged\.
### 3\.3From edge scores to chunks
RR scores edges independently\. We convert each method’s valid scores to within\-document average\-rank percentiles and select cuts with exact dynamic programming\. For score\-quality comparisons, all methods use the same eligible edges, fixed chunk countKK, target lengthTT, hard limitsLminL\_\{\\min\}andLmaxL\_\{\\max\}, and length coefficientλ\\lambda\. With calibrated utilityu\(b\)u\(b\), the segmentation0=t0<⋯<tK=n0=t\_\{0\}<\\cdots<t\_\{K\}=nmaximizes
∑k=1K−1u\(tk−1\)−λ∑k=1K\(tk−tk−1−TT\)2,\\sum\_\{k=1\}^\{K\-1\}u\(t\_\{k\}\-1\)\-\\lambda\\sum\_\{k=1\}^\{K\}\\left\(\\frac\{t\_\{k\}\-t\_\{k\-1\}\-T\}\{T\}\\right\)^\{2\},\(4\)subject to the hard length limits and eligible internal cuts\. The bounded recurrence runs inO\(KnLmax\)O\(KnL\_\{\\max\}\)time withO\(Kn\)O\(Kn\)state\. Applications may instead leaveKKopen and charge a calibrated penalty for each cut, producing variable chunk sizes and counts\.
## 4Flattened\-Record Recovery
When topically similar records are concatenated after their separators and layout are removed, RR recovers 47\.7% of the original records as clean units\. A BGE embedding boundary, the strongest tested conventional baseline without task\-specific model training, recovers 25\.9%\. This is the paper’s main application result\.
The benchmark contains 60 held\-out streams built from 276 unique FiQA, NFCorpus, and SciFact records in BEIR\(Thakuret al\.,[2021](https://arxiv.org/html/2608.04330#bib.bib28)\); 15 calibration streams contain 65 additional records\. Each stream contains three to six records joined by one ordinary space\. BGE\-base\-en\-v1\.5 similarity is used to place related records next to one another, weakening topic\-shift cues\(Beijing Academy of Artificial Intelligence,[2023](https://arxiv.org/html/2608.04330#bib.bib30)\)\. A second construction uses E5\-base\-v2 similarity, removing BGE’s dual role in constructing the benchmark and serving as its strongest conventional baseline\(Wanget al\.,[2022](https://arxiv.org/html/2608.04330#bib.bib29)\)\.
We evaluate flattened original text and a one\-column 180\-DPI rendering processed by local Apple Vision OCR\. Chunkers receive no line, page, bounding\-box, whitespace\-gap, source\-record, or record\-count information\. All methods use word\-boundary candidates on an eight\-token grid plus sentence ends, 48–384\-token hard limits, and a 192\-token soft target\. RR uses Qwen3\-4B layer 27 andW=24W=24\. An open\-count dynamic program charges a method\-specific cut penalty calibrated only on the 15 calibration streams; record counts are not available at inference time\.
A predicted chunk is a clean recovered unit when it contains at least 90% of one source record and at least 90% of the chunk belongs to that record\. Partition F1 is the harmonic mean of token\-weighted chunk purity and record completeness\. Observed\-token LR is the comparison within the prefix\-removal family\. Conventional baselines without task\-specific model training are BGE boundary distance, passive surprisal, sentence cuts, and a fixed grid\. Three further controls use the same Qwen layer as RR: residual jump, symmetric local hidden\-state distance, and attention isolation\.
We also test direct prompting with instruction\-tuned Qwen3\-4B\. It scores twelve tagged candidates at a time using 96 tokens of context on each side and returns a probability for every edge\. This gives the prompted model bidirectional evidence while keeping the record count hidden\. Its scores use the same candidate set, calibration split, and open\-count dynamic program as RR\. Statistics use 10,000 domain\-stratified paired stream\-bootstrap resamples\.
Table 1:Flattened\-record recovery with paired 95% bootstrap intervals\. BGE is the strongest tested conventional baseline without task\-specific model training\. Prompted Qwen is evaluated on the primary flattened\-original construction\.The paired RR–BGE interval is positive for both metrics in all three conditions\. On flattened original text, the strongest same\-Qwen passive score recovers 19\.0% of clean units and reaches 0\.797 partition F1, compared with RR’s 47\.7% and 0\.893\. Access to the same representation alone does not explain the gain\. The prompted Qwen baseline reaches 3\.1% \[1\.4%, 5\.2%\] clean\-unit recovery and 0\.730 \[0\.717, 0\.743\] partition F1\. RR’s paired gains are 44\.6 points \[37\.7, 51\.5\] and 0\.164 \[0\.146, 0\.180\], respectively, and are positive within all three domains\.
Rendering and OCR leave the RR–BGE advantage essentially unchanged\. RR’s clean\-unit recovery also exceeds LR by 0\.0825 \[0\.0039, 0\.1647\] in this condition\. The E5\-packed construction reproduces the result and removes BGE from record selection\. OCR is therefore a robustness test of the flattened\-text result, not the task definition\.
Figure 2:Two complete held\-out streams\. Colored bars are hidden records; pale bars are predicted chunks\. RR exactly recovers four related biomedical records in the upper stream\. In the lower stream, it misses both joins between three related cancer records while passive surprisal recovers them more closely\.Figure[2](https://arxiv.org/html/2608.04330#S4.F2)shows a complete recovery and a failure, illustrating both the signal and its document\-level variation\. Exact RR scoring is more expensive than one\-pass scoring: on an M3 Max, the Qwen3\-4B implementation processes 50,818 source tokens and 7,701 candidates in 289 seconds after warmup, or 176 source tokens per second\. On the same hardware, the chunkwise prompted baseline averages 25\.0 seconds per flattened\-original stream; the RR workload averages 4\.8 seconds per OCR stream over the same underlying 60\-stream set\. This positions the current implementation for offline curation at the tested scale\.
As a scope control, we also evaluate conventional top\-level sectioning on Wiki\-50\(Koshoreket al\.,[2018](https://arxiv.org/html/2608.04330#bib.bib4)\)\. Under development\-calibrated thresholds, RR and BGE are statistically indistinguishable \(Pk=0\.338P\_\{k\}=0\.338and0\.3400\.340\), and both trail the published supervised Wiki\-727K model \(0\.1820\.182\)\. This provides no evidence of an RR advantage where sentence and topic cues remain available\. Full results and protocol details appear in Appendix[A\.4](https://arxiv.org/html/2608.04330#A1.SS4)\.
## 5Evidence for the Boundary Signal
The application shows that RR finds useful cuts\. We next test the proposed mechanism: RR should prefer edges where the model’s local predictions depend less on the removed prefix\. For selected cuts𝒞\\mathcal\{C\}and common eligible edgesℰ\\mathcal\{E\}, we measure
MKL\(𝒞\)=1\|ℰ∖𝒞\|∑b∈ℰ∖𝒞dKL\(b\)−1\|𝒞\|∑b∈𝒞dKL\(b\)\.M\_\{\\mathrm\{KL\}\}\(\\mathcal\{C\}\)=\\frac\{1\}\{\|\\mathcal\{E\}\\setminus\\mathcal\{C\}\|\}\\sum\_\{b\\in\\mathcal\{E\}\\setminus\\mathcal\{C\}\}d\_\{\\mathrm\{KL\}\}\(b\)\-\\frac\{1\}\{\|\\mathcal\{C\}\|\}\\sum\_\{b\\in\\mathcal\{C\}\}d\_\{\\mathrm\{KL\}\}\(b\)\.\(5\)A positive margin means that selected cuts undergo less output\-distribution change than eligible edges left inside chunks\. This is a direct test of the prefix\-removal mechanism; the flattened\-record experiment supplies the external boundary target\.
We evaluate two deterministic passages from each of ten literary and technical sources on Qwen3\-4B, Qwen3\.5\-9B, Gemma 4 E4B, Qwen2\.5\-0\.5B, GPT\-2, and Pythia\-410M\(Yanget al\.,[2025](https://arxiv.org/html/2608.04330#bib.bib22); Qwen Team,[2026](https://arxiv.org/html/2608.04330#bib.bib23); Google DeepMind,[2026](https://arxiv.org/html/2608.04330#bib.bib25); Yanget al\.,[2024](https://arxiv.org/html/2608.04330#bib.bib21); Radfordet al\.,[2019](https://arxiv.org/html/2608.04330#bib.bib19); Bidermanet al\.,[2023](https://arxiv.org/html/2608.04330#bib.bib20)\)\. RR, observed\-token LR, and ten non\-counterfactual baselines use the same candidates, cut count, length constraints, and dynamic program\. Confidence intervals use 10,000 source\-cluster bootstrap resamples\.
Table 2:Output\-KL separation margins with 95% source\-cluster bootstrap intervals\. “Passive” is the strongest non\-counterfactual point estimate for that model\.RR has positive separation in all ten source clusters for each model, and every model\-level interval is above zero\. It significantly exceeds the strongest passive method in five of six models; the Gemma comparison is inconclusive\. RR also significantly exceeds the strongest raw\-likelihood baseline in every model\.
The observed\-token likelihood ratio confirms that the intervention matters beyond hidden\-state cosine\. RR wins in Qwen2\.5 and Pythia, the methods tie in Qwen3 and Qwen3\.5, and LR wins in GPT\-2 and Gemma\. Prefix\-removal probing is consistently useful; the strongest readout is architecture\-dependent\. RR remains attractive because it is effective, reads an intermediate trajectory directly, and avoids vocabulary\-wide distribution comparisons\.
A layer sweep rises sharply from early layers, peaks near 75% of decoder depth, and declines at the final layer\. The boundary signal therefore develops through the network rather than reducing to an input\-level discontinuity\. Window and reset\-prefix controls appear in Appendix[A\.5](https://arxiv.org/html/2608.04330#A1.SS5)\.
## 6Discussion
The experiments support a simple interpretation\. Causal models contain boundary information in how their right\-hand processing changes when earlier context is removed\. Passive hidden\-state jumps, attention isolation, raw likelihood, and semantic distance recover much less of that information\. RR measures it through hidden\-state preservation; observed\-token likelihood ratio shows that the signal is also visible behaviorally\.
The hidden\-state and likelihood readouts have different advantages\. RR avoids vocabulary normalization and uses a representation available before the output projection\. Observed\-token LR has a direct behavioral interpretation and wins in some architectures\. Together they show that complete prefix removal is the central operation, with RR as the primary hidden\-state readout\.
The Wiki\-50 scope control reinforces the intended boundary of the claim: contextual dependence is most useful when separators disappear and neighboring units remain topically similar, not as a replacement for conventional chunkers\.
## 7Limitations
RR measures local, checkpoint\-specific context dependence\. Layer, window, and reset prefix affect its rankings, and hidden\-state cosine is not invariant to representation reparameterization\. The flattened\-record benchmark covers 276 English records from three domains, and its application comparison is limited to methods without task\-specific model training\. Exact RR also requires one reset\-window evaluation per candidate edge, making it substantially more expensive than one\-pass chunkers\. Broader corpora, matched supervised comparators, and cheaper approximations are natural next steps\.
## 8Conclusion
Removing a prefix reveals how much the text to its right still depends on what came before\.Right Resetturns that dependence into a boundary score by measuring preservation of the right\-hand hidden\-state trajectory, and dynamic programming turns the scores into chunks\. On flattened text with weak structural cues, RR recovers substantially more source records than the tested conventional, prompted, and same\-model passive baselines\. The broader finding is simple: context dependence is most useful as a boundary signal where ordinary chunking cues fall short\.
## Competing Interests
This research was conducted independently and does not represent the views of the author’s employer\. The employer had no role in the research\.
## Appendix AReproducibility Details
### A\.1Models and execution
Experiments use Python, PyTorch, and Hugging Face Transformers\(Wolfet al\.,[2020](https://arxiv.org/html/2608.04330#bib.bib18)\)\. Model weights are float16 and readouts float32 on an M3 Max with 36 GB unified memory\. Table[3](https://arxiv.org/html/2608.04330#A1.T3)lists the pinned revisions\. Qwen3\.5\-4B is used only for the scoring\-window study; Qwen3\-4B\-Base is used for RR in the flattened\-record application\. The prompted comparator uses the 4\-bit MLX checkpointQwen/Qwen3\-4B\-MLX\-4bitat revision52a5ab34fa604bc8\.
Table 3:Pinned revisions for the six\-model mechanism evaluation\.The ten mechanism sources are four novels \(*Pride and Prejudice*,*Moby\-Dick*,*Dracula*, and*Dr\. Jekyll and Mr\. Hyde*\);*On the Origin of Species*;*The Prince*;*The Republic*;*Common Sense*; the Rust ownership chapter; and a PyTorch autograd tutorial\. Tokenization affects candidate packing, so each model follows the same deterministic source protocol but may not receive identical token spans\. Both passages from a source remain in the same bootstrap cluster\.
### A\.2Comparator definitions
All scores are oriented so larger values prefer a cut\.boundary\_surprisalis full\-context NLL of the first right\-hand token;window\_surprisalis mean full\-context NLL over the evaluation targets; andppl\_minimumadapts local sentence\-perplexity minima\(Zhaoet al\.,[2024](https://arxiv.org/html/2608.04330#bib.bib6)\)\.attention\_isolationis negative attention mass from right\-window queries to prefix keys\.residual\_jumpis cosine distance between adjacent uninterrupted hidden states\.embedding\_jumpcompares mean input embeddings in eight\-token windows\. Sentence, punctuation, fixed\-grid, and seeded\-random methods provide surface and policy controls\.
For the application,embedding\_boundaryis one minus cosine similarity between normalized BGE\-base\-en\-v1\.5 embeddings of 64\-token left and right spans\.local\_hidden\_distancecompares mean Qwen3\-4B layer\-27 states in symmetric 24\-token windows\. Application residual jump and attention isolation use that same checkpoint and layer\. The prompted comparator scores fixed batches of twelve edges using 96\-token left and right contexts; 99\.91% of held\-out scores are present, and the seven omissions receive the frozen fallback value\. All application methods receive the same candidates, percentile transformation, penalty\-calibration split, and open\-count recurrence\.
### A\.3Application construction
The 60 evaluation streams use 276 unique records and the 15 calibration streams use 65 different unique records\. Stream is the resampling unit within each domain; because records do not repeat, no additional repeated\-record cluster is required\. The primary 180\-DPI condition has 99\.26% character agreement with rendered source text\. Exact source joins are candidate edges in 90\.7% of cases; the constrained gold diagnostic permits nearby candidates while enforcing the common 48–384\-token hard limits\.
The open\-count application recurrence maximizes
∑b∈𝒞\(u\(b\)−ρ\)−0\.02∑k\(tk−tk−1−192192\)2,\\sum\_\{b\\in\\mathcal\{C\}\}\\bigl\(u\(b\)\-\\rho\\bigr\)\-0\.02\\sum\_\{k\}\\left\(\\frac\{t\_\{k\}\-t\_\{k\-1\}\-192\}\{192\}\\right\)^\{2\},where the cut penaltyρ\\rhois selected separately for each method using only the calibration streams\. The gold record count is absent from inference\.
### A\.4Conventional sectioning control
Wiki\-50 is read from the original authors’ archives\. The 50 test documents contain 177 top\-level sections and 2,776 sentences after removing the level\-1 preface, folding subsections into their parent sections, and applying the original list, formula, and code\-placeholder filtering\. The calibration sample is the first 30 development\-file members in the pinned archive order rather than a random sample; it contains 104 sections and 1,428 sentences\. The two samples share no document IDs\. RR uses Qwen3\-4B layer 27,W=24W=24, ands=1s=1; BGE compares three\-sentence windows on each side\. Residual jump, local hidden\-state distance, lexical cohesion, uniform length, and no\-cut diagnostics are also recorded\.
Each continuous method receives every internal sentence ending and one raw\-score threshold calibrated only on the labeled development sample\. No task\-specific model parameters are trained\. The primary metric is weighted sentence\-levelPkP\_\{k\}as implemented bysegeval2\.0\.11\. Intervals use 10,000 document\-bootstrap resamples, condition on the frozen development\-calibrated thresholds, and do not include calibration\-sample uncertainty\.
Table 4:Wiki\-50 top\-level sectioning\. LowerPkP\_\{k\}is better\. Intervals are 95% document\-bootstrap intervals; published results do not provide comparable intervals\.RR and BGE are statistically indistinguishable: RR minus BGE is−0\.0017\-0\.0017\[−0\.0467\-0\.0467, 0\.0448\]\. Both undersegment, predicting 2\.56 and 1\.96 sections per document against a gold mean of 3\.54\. The no\-cut diagnostic has zero boundary recall but reachesPk=0\.304P\_\{k\}=0\.304, illustrating that sparse boundaries and false\-cut penalties make severe undersegmentation competitive under this metric\.
A non\-operational ranking diagnostic supplies each method the gold number of sections\. UnderPkP\_\{k\}, RR produces the best partition among the tested fixed scorers: 0\.333, versus 0\.363 for local hidden\-state distance and 0\.385 for BGE\. Exact\-boundary F1 is 0\.157 for RR, 0\.197 for local hidden\-state distance, and 0\.213 for BGE; mean average precision is 0\.284, 0\.304, and 0\.301, respectively\. The diagnostic therefore shows lower\-PkP\_\{k\}partition geometry for RR when the count is fixed, not uniformly superior ranking of the exact gold boundaries\.
### A\.5Configuration controls
On Qwen2\.5, output\-KL separation margins at 5%, 25%, 50%, 75%, and 100% of decoder depth are 0\.120, 0\.308, 0\.371, 0\.411, and 0\.343\. A Qwen3\.5\-4B study crosses scoring and evaluation windows of 12, 24, 36, 48, 64, and 96 tokens\. All 36 combinations have positive margins; short scoring windows work best for short evaluation horizons, while long windows better predict long\-horizon disruption\. A 24\-token score does not establish transfer to the disjoint positions 25–95: its margin is 0\.0216 \[−0\.0143\-0\.0143, 0\.0614\]\. Replacing the empty reset with a neutral separator preserves positive matched and cross\-condition margins in Qwen3, Gemma, and GPT\-2\. BOS and eight\-token local\-prefix variants produce different rankings, making the reset prefix part of the method specification\.
Code, frozen configurations, source hashes, saved scores, bootstrap outputs, and figure data are available at[https://github\.com/ZECTBynmo/right\-reset\-paper](https://github.com/ZECTBynmo/right-reset-paper)\. The repository README documents the released artifacts and reproduction commands\.
## References
- Beijing Academy of Artificial Intelligence \(2023\)BGE\-base\-en\-v1\.5 model card\.Note:Hugging Face model repositoryExternal Links:[Link](https://huggingface.co/BAAI/bge-base-en-v1.5)Cited by:[§4](https://arxiv.org/html/2608.04330#S4.p2.1)\.
- S\. Biderman, H\. Schoelkopf, Q\. G\. Anthony, H\. Bradley, K\. O’Brien, E\. Hallahan, M\. A\. Khan, S\. Purohit, U\. S\. Prashanth, E\. Raff, A\. Skowron, L\. Sutawika, and O\. Van Der Wal \(2023\)Pythia: a suite for analyzing large language models across training and scaling\.InProceedings of the 40th International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.202,pp\. 2397–2430\.External Links:[Link](https://proceedings.mlr.press/v202/biderman23a.html)Cited by:[§5](https://arxiv.org/html/2608.04330#S5.p2.1)\.
- A\. V\. Duarte, J\. Marques, M\. Graça, M\. Freire, L\. Li, and A\. L\. Oliveira \(2024\)LumberChunker: long\-form narrative document segmentation\.arXiv preprint arXiv:2406\.17526\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2406.17526),[Link](https://arxiv.org/abs/2406.17526)Cited by:[§2](https://arxiv.org/html/2608.04330#S2.p1.1)\.
- X\. Feng, X\. Feng, L\. Qin, B\. Qin, and T\. Liu \(2021\)Language model as an annotator: exploring DialoGPT for dialogue summarization\.InProceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing \(Volume 1: Long Papers\),pp\. 1479–1491\.External Links:[Document](https://dx.doi.org/10.18653/v1/2021.acl-long.117),[Link](https://aclanthology.org/2021.acl-long.117/)Cited by:[§2](https://arxiv.org/html/2608.04330#S2.p2.1)\.
- Google DeepMind \(2026\)Gemma 4 model card\.Note:Google AI for DevelopersExternal Links:[Link](https://ai.google.dev/gemma/docs/core/model_card_4)Cited by:[§5](https://arxiv.org/html/2608.04330#S5.p2.1)\.
- M\. Günther, I\. Mohr, D\. J\. Williams, B\. Wang, and H\. Xiao \(2024\)Late chunking: contextual chunk embeddings using long\-context embedding models\.arXiv preprint arXiv:2409\.04701\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2409.04701),[Link](https://arxiv.org/abs/2409.04701)Cited by:[§2](https://arxiv.org/html/2608.04330#S2.p1.1)\.
- M\. A\. Hearst \(1997\)TextTiling: segmenting text into multi\-paragraph subtopic passages\.Computational Linguistics23\(1\),pp\. 33–64\.External Links:[Link](https://aclanthology.org/J97-1003/)Cited by:[§2](https://arxiv.org/html/2608.04330#S2.p1.1)\.
- R\. Hronsky and E\. Keuleers \(2024\)Tokenization via language modeling: the role of preceding text\.InProceedings of the Second Workshop on Computation and Written Language \(CAWL\) @ LREC\-COLING 2024,pp\. 23–35\.External Links:[Link](https://aclanthology.org/2024.cawl-1.4/)Cited by:[§2](https://arxiv.org/html/2608.04330#S2.p2.1)\.
- U\. Khandelwal, H\. He, P\. Qi, and D\. Jurafsky \(2018\)Sharp nearby, fuzzy far away: how neural language models use context\.InProceedings of the 56th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 284–294\.External Links:[Document](https://dx.doi.org/10.18653/v1/P18-1027),[Link](https://aclanthology.org/P18-1027/)Cited by:[§2](https://arxiv.org/html/2608.04330#S2.p3.1)\.
- O\. Koshorek, A\. Cohen, N\. Mor, M\. Rotman, and J\. Berant \(2018\)Text segmentation as a supervised learning task\.InProceedings of NAACL\-HLT,pp\. 469–473\.External Links:[Document](https://dx.doi.org/10.18653/v1/N18-2075),[Link](https://aclanthology.org/N18-2075/)Cited by:[Table 4](https://arxiv.org/html/2608.04330#A1.T4.3.2.1.1),[Table 4](https://arxiv.org/html/2608.04330#A1.T4.3.3.2.1),[Table 4](https://arxiv.org/html/2608.04330#A1.T4.3.7.6.1),[Table 4](https://arxiv.org/html/2608.04330#A1.T4.3.8.7.1),[§2](https://arxiv.org/html/2608.04330#S2.p1.1),[§4](https://arxiv.org/html/2608.04330#S4.p9.3)\.
- S\. Kullback and R\. A\. Leibler \(1951\)On information and sufficiency\.The Annals of Mathematical Statistics22\(1\),pp\. 79–86\.External Links:[Document](https://dx.doi.org/10.1214/aoms/1177729694)Cited by:[§3\.2](https://arxiv.org/html/2608.04330#S3.SS2.p1.5)\.
- H\. Li, Z\. Shen, S\. Jeoung, Y\. Chen, J\. Li, Q\. Zhu, S\. Wang, V\. N\. Ioannidis, and H\. Rangwala \(2026\)BoundRL: efficient token\-level structured text segmentation through reinforced boundary generation\.InFindings of the Association for Computational Linguistics: ACL 2026,pp\. 34706–34726\.External Links:[Document](https://dx.doi.org/10.18653/v1/2026.findings-acl.1733),[Link](https://aclanthology.org/2026.findings-acl.1733/)Cited by:[§2](https://arxiv.org/html/2608.04330#S2.p1.1)\.
- N\. F\. Liu, M\. Gardner, Y\. Belinkov, M\. E\. Peters, and N\. A\. Smith \(2019\)Linguistic knowledge and transferability of contextual representations\.InProceedings of NAACL\-HLT,pp\. 1073–1094\.External Links:[Document](https://dx.doi.org/10.18653/v1/N19-1112),[Link](https://aclanthology.org/N19-1112/)Cited by:[§2](https://arxiv.org/html/2608.04330#S2.p3.1)\.
- J\. O’Connor and J\. Andreas \(2021\)What context features can transformer language models use?\.InProceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing \(Volume 1: Long Papers\),pp\. 851–864\.External Links:[Document](https://dx.doi.org/10.18653/v1/2021.acl-long.70),[Link](https://aclanthology.org/2021.acl-long.70/)Cited by:[§2](https://arxiv.org/html/2608.04330#S2.p3.1)\.
- Qwen Team \(2026\)Qwen3\.5\-9B\-Base model card\.Note:Hugging Face model repositoryExternal Links:[Link](https://huggingface.co/Qwen/Qwen3.5-9B-Base)Cited by:[§5](https://arxiv.org/html/2608.04330#S5.p2.1)\.
- A\. Radford, J\. Wu, R\. Child, D\. Luan, D\. Amodei, and I\. Sutskever \(2019\)Language models are unsupervised multitask learners\.Technical reportOpenAI\.External Links:[Link](https://cdn.openai.com/better-language-models/language-models.pdf)Cited by:[§5](https://arxiv.org/html/2608.04330#S5.p2.1)\.
- I\. Tenney, D\. Das, and E\. Pavlick \(2019\)BERT rediscovers the classical NLP pipeline\.InProceedings of the 57th Annual Meeting of the Association for Computational Linguistics,pp\. 4593–4601\.External Links:[Document](https://dx.doi.org/10.18653/v1/P19-1452),[Link](https://aclanthology.org/P19-1452/)Cited by:[§2](https://arxiv.org/html/2608.04330#S2.p3.1)\.
- N\. Thakur, N\. Reimers, A\. Rücklé, A\. Srivastava, and I\. Gurevych \(2021\)BEIR: a heterogeneous benchmark for zero\-shot evaluation of information retrieval models\.InProceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks,External Links:[Link](https://openreview.net/forum?id=wCu6T5xFjeJ)Cited by:[§4](https://arxiv.org/html/2608.04330#S4.p2.1)\.
- M\. Utiyama and H\. Isahara \(2001\)A statistical model for domain\-independent text segmentation\.InProceedings of the 39th Annual Meeting of the Association for Computational Linguistics,pp\. 499–506\.External Links:[Document](https://dx.doi.org/10.3115/1073012.1073076),[Link](https://aclanthology.org/P01-1064/)Cited by:[§2](https://arxiv.org/html/2608.04330#S2.p1.1)\.
- J\. Vig, S\. Gehrmann, Y\. Belinkov, S\. Qian, D\. Nevo, Y\. Singer, and S\. Shieber \(2020\)Investigating gender bias in language models using causal mediation analysis\.InAdvances in Neural Information Processing Systems,Vol\.33\.External Links:[Link](https://proceedings.neurips.cc/paper_files/paper/2020/hash/92650b2e92217715fe312e6fa7b90d82-Abstract.html)Cited by:[§2](https://arxiv.org/html/2608.04330#S2.p3.1)\.
- C\. Wang, Y\. Wang, P\. Huang, A\. Mohamed, D\. Zhou, and L\. Deng \(2017\)Sequence modeling via segmentations\.InProceedings of the 34th International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.70,pp\. 3674–3683\.External Links:[Link](https://proceedings.mlr.press/v70/wang17j.html)Cited by:[§2](https://arxiv.org/html/2608.04330#S2.p2.1)\.
- L\. Wang, N\. Yang, X\. Huang, B\. Jiao, L\. Yang, D\. Jiang, R\. Majumder, and F\. Wei \(2022\)Text embeddings by weakly\-supervised contrastive pre\-training\.arXiv preprint arXiv:2212\.03533\.External Links:[Link](https://arxiv.org/abs/2212.03533)Cited by:[§4](https://arxiv.org/html/2608.04330#S4.p2.1)\.
- T\. Wolf, L\. Debut, V\. Sanh, J\. Chaumond, C\. Delangue, A\. Moi, P\. Cistac, T\. Rault, R\. Louf, M\. Funtowicz, J\. Davison, S\. Shleifer, P\. von Platen, C\. Ma, Y\. Jernite, J\. Plu, C\. Xu, T\. Le Scao, S\. Gugger, M\. Drame, Q\. Lhoest, and A\. M\. Rush \(2020\)Transformers: state\-of\-the\-art natural language processing\.InProceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations,pp\. 38–45\.External Links:[Document](https://dx.doi.org/10.18653/v1/2020.emnlp-demos.6),[Link](https://aclanthology.org/2020.emnlp-demos.6/)Cited by:[§A\.1](https://arxiv.org/html/2608.04330#A1.SS1.p1.1)\.
- A\. Yang, A\. Li, B\. Yang, B\. Zhang, B\. Hui, B\. Zheng, B\. Yu, C\. Gao, C\. Huang, C\. Lv,et al\.\(2025\)Qwen3 technical report\.arXiv preprint arXiv:2505\.09388\.External Links:[Link](https://arxiv.org/abs/2505.09388)Cited by:[§5](https://arxiv.org/html/2608.04330#S5.p2.1)\.
- A\. Yang, B\. Yang, B\. Zhang, B\. Hui, B\. Zheng, B\. Yu, C\. Li, D\. Liu, F\. Huang, H\. Wei,et al\.\(2024\)Qwen2\.5 technical report\.arXiv preprint arXiv:2412\.15115\.External Links:[Link](https://arxiv.org/abs/2412.15115)Cited by:[§5](https://arxiv.org/html/2608.04330#S5.p2.1)\.
- J\. Zhao, Z\. Ji, Y\. Feng, P\. Qi, S\. Niu, B\. Tang, F\. Xiong, and Z\. Li \(2024\)Meta\-chunking: learning text segmentation and semantic completion via logical perception\.arXiv preprint arXiv:2410\.12788\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2410.12788),[Link](https://arxiv.org/abs/2410.12788)Cited by:[§A\.2](https://arxiv.org/html/2608.04330#A1.SS2.p1.1),[§2](https://arxiv.org/html/2608.04330#S2.p2.1)\.Similar Articles
Adaptive Chunking: Optimizing Chunking-Method Selection for RAG
Introduces Adaptive Chunking, a framework using five intrinsic document metrics to select optimal chunking strategies for RAG, improving answer correctness from 62-64% to 72% and question resolution rate by over 30%.
ThinkReset: Learnable Intermediate Interface Construction for Bounded-Context Long-Horizon Reasoning
This paper proposes ThinkReset, a method that constructs reusable intermediate interfaces to replace discarded reasoning history, enabling better long-horizon reasoning under bounded context windows.
REBASE: Reference-Background Subspace Elimination for Training-Free In-Context Segmentation
REBASE is a training-free framework that suppresses spurious contextual correspondences in in-context segmentation by projecting features onto the orthogonal complement of a low-rank background subspace, achieving state-of-the-art results among training-free methods on several datasets.
Zero Gap Is Not Restoration: Stratified Per-Question Probability Evaluation and Step-wise Mitigation of Benchmark Contamination
This paper critiques existing benchmark contamination mitigation metrics and proposes SA-PPG (Stratified Aggregate of Per-question Probability Gaps) for more reliable evaluation, alongside RailCap, a decoding-time mitigation method that caps greedy fallback tokens to suppress memorization.
Excess Separability: Nuisance-Controlled Residual-Stream Probing for Benchmark Contamination Detection
This paper proposes a nuisance-controlled residual-stream probing protocol to detect benchmark contamination in language models, showing that naive probing fails and their corrected method controls false positives while achieving reasonable power.