Segmenting Human–LLM Co-authored Text via Change Point Detection
arXiv:2605.03723v1 [cs.CL] 5 May 2026
Mengchu Li1∗, Jin Zhu1∗ , Jinglai Li1 , Chengchun Shi2,† 1 School of Mathematics, University of Birmingham 2 Department of Statistics, London School of Economics and Political Science
Abstract The rise of large language models (LLMs) has created an urgent need to distinguish between human-written and LLM-generated text to ensure authenticity and societal trust. Existing detectors typically provide a binary classification for an entire passage; however, this is insufficient for human–LLM co-authored text, where the objective is to localize specific segments authored by humans or LLMs. To bridge this gap, we propose algorithms to segment text into human- and LLM-authored pieces. Our key observation is that such a segmentation task is conceptually similar to classical change point detection in time-series analysis. Leveraging this analogy, we adapt change point detection to LLM-generated text detection, develop a weighted algorithm and a generalized algorithm to accommodate heterogeneous detection score variability, and establish the minimax optimality of our procedure. Empirically, we demonstrate the strong performance of our approach against a wide range of existing baselines.
1
Introduction
State-of-the-art large language models (LLMs), including GPT-5 (OpenAI, 2025), Gemini (Comanici et al., 2025), and Grok-4 (xAI, 2025), exhibit strong capabilities in following human instructions, performing complex reasoning, and generating text at scale. These powerful tools have been deeply integrated into both professional and daily workflows, rendering LLM-generated content pervasive across various domains, such as academic literature, technical reports, and student assignments. This growth has spurred a line of research on LLM-generated text detection; see Section 1.1 for a review. These works typically study detection as a binary classification problem, determining whether an entire passage is human- or LLM-authored. However, in practice, LLM-generated text is rarely used without modification. Users often revise, edit, or blend it with their own writing. For instance, in technical reports, users may draft the core methodological sections themselves while relying on LLMs to generate descriptive text for tables and figures. In creative writing, authors may collaboratively generate stories with LLMs (Xie et al., 2023). Such human–LLM co-authoring settings have become increasingly common as LLMs continue to evolve. ∗
Equal contribution. † Corresponding author.
1
🧐 Which segments are written by LLM?
🥳 Segments found by change point! LLM-written pieces
Human-LLM co-authored text Ferrari challenged until the nal laps, when Mercedes extended their lead to half a second over the red cars. …… but the truth is that with the gap at 0.517secs to Hamilton, there was nothing he could have done. The gap suggests Mercedes are favourites for the race, even if Ferrari can be expected to push them. …… complained of oversteer on his nal run in the second: "Q1 was what I was expecting. "He did a very good job and I didn't. We knew how quick he was. …… Only one car - Nico Hulkenberg's Force India - was out on the track with six minutes to go." The two Williams cars did go out in the nal three minutes but were already through to Q3 and so nothing was at stake. ……. Bahrain GP qualifying results Bahrain GP coverage details.
LLM-written
LLM Score
human-written pieces
Segmenting co-authored text
human-written
Sentence
change point detection
Sentence
fi
fi
fi
Figure 1: Workflow of our proposal, which adapts change point detection to LLM-generated text localization. In these “hybrid” settings, a binary classification of an entire passage as human- or LLM-authored is insufficient. A more meaningful question is whether we can segment the document into humanand LLM-authored pieces to identify which portions are generated by LLMs. However, as discussed in Section 1.1, only a few works have considered LLM-generated text localization. This paper advances the state of LLM text detection by making the following contributions: • We identify that the problem of segmenting human–LLM co-authored text is conceptually closely connected to change point detection problems in time-series analysis. This perspective motivates a new framework that adapts change point detection for LLM-generated text localization (refer to Figure 1 for a graphical visualization of the workflow). • We propose three change point detection algorithms tailored to human–LLM text segmentation. We begin with a vanilla adaptation of classical change point detection (Section 3.1) and reveal its limitations in settings with heterogeneous detection score variability. To overcome this limitation, we develop a weighted algorithm (Section 3.2) and a generalized algorithm (Section 3.3) that encode sentence-specific information and substantially improve segmentation accuracy. • We derive estimation error bounds for both vanilla and weighted algorithms (Theorems 1 and 2), showing that the latter achieves more accurate estimation under less restrictive signal-to-noise ratio conditions. Together with a minimax lower bound that characterizes the intrinsic difficulty of the segmentation problem (Theorem 3), we demonstrate that the weighted algorithm achieves this limit, establishing its minimax optimality. We further extend such optimality guarantees to the generalized algorithm under appropriate conditions. • We evaluate the empirical performance of the proposed algorithms across a broad range of experimental settings (Section 5 and Appendix B). Results demonstrate that our proposal consistently outperforms existing baseline algorithms, reducing segmentation errors by up to 50%.
2
1.1
Literature review
Our proposal is closely related to three main bodies of literature: LLM-generated text detection, LLM-generated text localization, and change point detection in time-series analysis. LLM-generated text detection. These works primarily study the binary classification problem of distinguishing between human- and LLM-authored text. Existing approaches can be broadly categorized into machine learning (ML)-based and zero-shot methods. Specifically, ML-based methods collect datasets of human-written text, prompt LLMs to produce corresponding rewrites, and then utilize both sources of text to train a classifier to perform this binary classification (Solaiman et al., 2019; Ippolito et al., 2020; Guo et al., 2023; Hu et al., 2023; Mao et al., 2024; Guo et al., 2024; Tian et al., 2024; Yu et al., 2024; Chen et al., 2025; Zhou et al., 2025, 2026b). In contrast, zero-shot methods are training-free. They construct statistical measures derived directly from the text, such as its intrinsic dimensionality, or based on the next-token probability distributions of a target LLM (Gehrmann et al., 2019; Mitchell et al., 2023; Su et al., 2023; Tulchinskii et al., 2023; Bao et al., 2024; Hans et al., 2024; Yang et al., 2024; Song et al., 2025). These measures take on different values for human and LLM-authored content, which serves as the basis for classification. While our proposal employs similar techniques for distinguishing between human and LLMgenerated text, we study the more complex problem of text localization rather than providing a binary label for the entire passage, as discussed below. LLM-generated text localization. In practical settings, users rarely adopt LLM-generated text directly. Instead, they revise or edit the generated content (Zhang et al., 2024a). This collaborative writing process is commonly referred to as human–AI co-authoring. LLM-generated text localization aims to localize the portions of a document that originate from an LLM. Dugan et al. (2023) empirically evaluate humans’ ability to detect the boundary between human- and LLM-authored text. A line of recent research applies existing detectors at the sentence level to localize LLM-authored sentences (Wang et al., 2023; Zeng et al., 2024b; Jiang et al., 2025). In contrast, Su et al. (2025) adopt a bottom-up approach, performing token-level detection and aggregating these classifications to determine whether a sentence is authored by a human or an LLM. In addition to these works, Zhang et al. (2024b) demonstrate that pooling information across several consecutive sentences improves performance over individual sentence-level classification. Li et al. (2024) combine standard change point algorithms with watermarking techniques to obtain text segmentation. Change point detection. Change point detection aims to identify and localize structural changes within a sequence of observations – for instance, a sudden shift in their expected value. It has been a popular research topic in statistics and machine learning (e.g., Baranowski et al., 2019; Verzelen et al., 2023; Bhattacharyya & Ramdas, 2025; Wang et al., 2020). The literature on change point detection covers different types of data and various categories of structural changes. Methodologically, the CUSUM statistic, introduced in Section 2.2, plays a central role in numerous algorithms (e.g. Fryzlewicz, 2014; Baranowski et al., 2019; Wang et al., 2020; Cho & Kirch, 2022; Wang et al., 2021). Theoretically, minimax rates of convergence have been
3
established to understand the fundamental difficulty of different problems and to provide a rigorous benchmark for evaluating different algorithms (e.g. Yu, 2020).
2
Preliminaries
We first introduce examples of detection statistics for LLM-generated text, the CUSUM statistic and the Narrowest-Over-Thresholding (NOT, Baranowski et al., 2019) algorithm for classical change point detection, upon which our proposal is built. Next, we formulate our problem of text segmentation/localization and discuss its connection to change point detection.
2.1
Detection statistics for LLM-generated text
While our framework allows the use of general detection statistics, we consider, for illustration purposes, the zero-shot FastDetectGPT (Bao et al., 2024) statistic, which leverages the nexttoken prediction probabilities from a pre-trained language model. Given a text segment Z containing n tokens, let Z<t := (Z1 , Z2 , . . . , Zt−1 ). Consider the following detection statistic: n 1X ϕ(Z) = n t=1
log score(Zt |Z<t ) − EZt′ ∼sample(•|Z<t ) log score(Zt′ |Z<t )
,
where score(•|Z<t ) denotes the scoring model and sample(•|Z<t ) denotes the sampling model, which is used to sample Zt′ given Z<t , and which may be different from the scoring model. The intuition behind this statistic is that LLM-generated text tends to yield higher values compared to human-written text. We also note that the variance of ϕ(Z) when Z is generated from the sampling model can be approximated by σ̂ 2 (Z) = n−2
P
t VarZt′ ∼sample(•|Z<t )
log score(Zt′ |Z<t ) .
It is clear from the formulation that as the length of the text n increases, the variability of ϕ(Z) tends to decrease and therefore becomes more reliable. Further developments based on FastDetectGPT utilize training data to improve performance (e.g. Zhou et al., 2025, 2026a), and we consider those ML-based variants in our experiments as well.
2.2
CUSUM and NOT for change point detection
Let Y = (Y1 , . . . , YN ) denote a time series of N observations indexed sequentially. The goal of change point detection is to identify structural changes within this sequence. For example, letting µi = E(Yi ) represent the expected value of each observation, we seek to determine the locations t where µt ̸= µt+1 . Throughout the rest of the paper, we let [N ] denote the set of integers {1, . . . , N } for N ∈ Z+ . The CUSUM statistic plays a crucial role in these algorithms. For any time points {s, t, e} ⊂ [N ] such that s ≤ t < e, the CUSUM statistic at t over the interval [s, e] is defined as s Y Cs,e (t) =
Ss:t S(t+1):e |Y s:t − Y (t+1):e |, Ss:e
(1)
where Y t1 :t2 denotes the sample average of observations {Yt }t in the interval [t1 , t2 ] and St1 :t2 = t2 − t1 + 1 denotes the number of samples within [t1 , t2 ]. 4
Procedure 1 NOT-meta algorithm Input: (i) Data vector Y = (Y1 , . . . , YN ), (ii) Threshold parameter r; (iii) Number of random intervals M ; (iv) Statistics AYs,e (b), B(s, e) Output: Set of estimated change points S ⊂ {1, . . . , N }. 1: Let e ← N , s ← 1 and S ← ∅, apply NOT-meta(s, e, r) described in Steps 2–15. 2: if e − s < 1 then 3: STOP 4: else 5: Uniformly randomly draw M intervals within [s, e] and form an interval set M AYsm ,em (b) > r
6:
O← m∈M:
7:
if O = ∅ then STOP else m∗ ← arg min B(sm , em ), b∗ ← arg max AYsm∗ ,em∗ (b),
8: 9: 10:
max
sm ≤b<em
m∈O
S ← S ∪ {b∗ } 12: NOT-meta(s, b∗ , r) 13: NOT-meta(b∗ + 1, e, r) 14: end if 15: end if
sm∗ ≤b<em∗
11:
Y (b)| is the generalized likelihood ratio statistic for testing It can be shown that maxs≤b<e |Cs,e
whether there is a change in the sequence {µt }t under Gaussian assumptions (e.g., Baranowski et al., 2019; Wang et al., 2020). Beyond the Gaussian case, the applicability of this maximal-type statistic extends to various data distributions as well. It has served as a cornerstone for a wide range of change point detection algorithms with both strong theoretical guarantees and promising empirical performance (e.g., Liu et al., 2021; Padilla et al., 2021; Wang et al., 2021; Li et al., 2022). Of particular interest is the NOT algorithm (Baranowski et al., 2019), which we adapt for our task of LLM text localization. In Algorithm 1, we detail a meta-algorithm that slightly differs from the original NOT algorithm. This version allows two arbitrary statistics, AYs,e (b) and B(s, e), as inputs, which can be tailored to our needs. Note that with the default choice Y (b), B(s, e) = e − s, Algorithm 1 reduces to the original algorithm. AYs,e (b) = Cs,e
The main advantage of NOT lies in its ability to accurately localize multiple change points. With multiple change points, their joint effect can make individual changes difficult to detect; see the discussion around Figure 1 of Fryzlewicz (2014). This challenge is addressed by sampling several random intervals in Line 5 of Algorithm 1, which ensures that with high probability, each individual change point is isolated as the only structural change in at least one randomly generated interval, thus facilitating its detection.
2.3
Problem setup
Consider a paragraph or an article X partitioned into N parts (X1 , . . . , XN ), each authored by either a human or an LLM. Our goal is to segment it into human-written and LLM-generated pieces. A naïve approach is to apply a score function ϕ, either a zero-shot statistical measure or 5
WikiQA
1.0
Story
AUC
0.9 0.8 0.7 0.6 0.5
5
10
20
40
80
Length of texts
160
320
Binoculars (Hans et al. 2024) Roberta (Gehrmann et al. 2019)
5
10
20
40
80
Length of texts
160
320
FastDetectGPT (Bao et al. 2024) AdaDetectGPT (Zhou et al. 2025)
Figure 2: AUCs of various detectors on the WikiQA and Story datasets with varying lengths of input texts. RoBERTa and AdaDetectGPT are two ML-based LLM detectors, while Binoculars and FastDetectGPT are two zero-shot detectors. an ML classifier, to assess whether each Xt is generated by an LLM. For instance, Xt is classified as LLM-authored if ϕ(Xt ) exceeds a certain threshold. With these classification labels at hand, we directly obtain a segmentation of the entire paragraph. As a concrete example, each score ϕ(Xt ) can be set to the FastDetectGPT statistic (Bao et al., 2024). As demonstrated empirically by Bao et al. (2024), LLM-generated text typically yields higher ϕ values compared to human-written text. Alternatively, we may define ϕ(Xt ) as the negative rewrite distance – the negative semantic distance between Xt and its LLM-rewritten version. This is motivated by the observation that LLM-generated text remains closer to its rewrite than human-authored text does (Mao et al., 2024; Yang et al., 2024). However, such an approach suffers from two limitations: (i) The optimal classification threshold is difficult to determine a priori, and the performance of the resulting algorithm can be highly sensitive to this choice. (ii) As discussed in Section 1.1, pooling information across consecutive sentences improves detection accuracy. However, the naïve approach evaluates each sentence individually, leading to suboptimal segmentation. To address these limitations, we frame LLM text localization as a change point detection problem. We define change points as the indices where authorship transitions between human and LLM. Formally, let 0 = τ0 < τ1 < · · · < τK < τK+1 = N denote K unknown change points. These points partition the paragraph into K + 1 segments, such that each segment X(τi +1):τi+1 = (Xτi +1 , Xτi +2 , . . . , Xτi+1 ) is authored entirely by either a human or an LLM for every i ∈ {0} ∪ [K]. Under this formulation, localizing human- or LLM-authored sentences is equivalent to identifying the set of change points {τk }K k=1 (see Figure 1 for an illustration). This enables us to leverage classical change point 6
detection for LLM text localization, as detailed in the next section. Before going into the methodologies, we make a note on the initial partition (X1 , . . . , XN ) of the entire text X. In the remaining part of this work, we consider a scenario in which each Xt corresponds to a sentence. However, this is merely for convenience of description. In practice, Xt can be defined at different levels of granularity, such as paragraphs or tokens, and our framework is directly applicable in these settings as well. Generally speaking, if one uses coarse units, such as paragraphs, then the number of observations N would be small, and it is likely that a single unit already contains both human-written and LLM-authored content. If one instead uses fine units, such as treating each Xt as one token or small groups of tokens, then the sample size N and boundary resolution both increase, but neighboring scores become more dependent and the variability of the scores ϕ(Xt ) tends to be large due to the small segment sizes. We demonstrate the applicability of our methods in token-level segmentation in Table A2.
Methodology: From change point detection to LLM text
3
localization This section details our proposal for adapting change point detection to LLM-generated text localization. We begin by introducing a vanilla adaptation of the NOT algorithm (see Algorithm 1) and discussing its limitations (Section 3.1). To address these limitations, we propose a weighted algorithm (Section 3.2) and a generalized algorithm (Section 3.3). Finally, we detail the procedure for localizing human–LLM text based on the resulting change point estimates (Section 3.4).
3.1
Vanilla change point detection
Having introduced the CUSUM statistic and the NOT algorithm that builds upon it, a natural approach to segmenting human–LLM co-authored text is to transform each sentence Xt in the target paragraph X into a scalar ϕ(Xt ) using an existing detection score function ϕ, such as the FastDetectGPT statistic or rewrite distance. This transformation yields a one-dimensional time series (ϕ(X1 ), . . . , ϕ(XN )), enabling the application of standard change point detection, such as the default NOT algorithm discussed in Section 2.2, to identify all change points τi . We refer to this approach as VCP, short for Vanilla adaptation of Change Point detection. However, directly applying the default NOT algorithm or other off-the-shelf change point detection algorithms is often suboptimal, as they fail to account for the heterogeneous signal strength in ϕ(Xi ) often resulting from varying sentence lengths1 . Specifically, both theoretical results (Zhou et al., 2025) and empirical findings (Bao et al., 2024) suggest that detection accuracy increases with the length of the text. This relationship is further illustrated in Figure 2, which reports the area under the curve (AUC) for both ML-based LLM detectors and zero-shot LLM detectors across varying text lengths. The results show that detection accuracy generally increases with the input length. 1
Even if each Xi has the same number of tokens, the variability of the detection score ϕ(Xi ) can be heterogeneous and may be estimated as mentioned in Section 2.1.
7
Consequently, change points are easier to detect when they occur near long sentences, and they become more elusive near shorter sentences. Despite this, VCP treats the level of difficulty equally across the time series, which leads to inefficient change point detection. Mathematically, this limitation stems from the use of standard CUSUM statistics in (1), which treats each observation uniformly. Our proposed methodology, detailed in the following section, explicitly scales the contribution of each score ϕ(Xi ) in the CUSUM statistic according to its variability, measured by either a built-in estimate or sentence length. This scaling leads to more efficient and, in theory, minimax optimal segmentation for human–LLM co-authored text (see Section 4).
3.2
Weighted change point detection
In this section, we introduce WCP, a Weighted Change Point detection algorithm, to overcome the limitation of VCP. As discussed in Section 3.1, not all sentences are created equal for authorship identification. Rather, the difficulty of detection is inherently tied to sentence length and detection-score variability. WCP exploits this observation by assigning larger weights to more informative sentence-level detection scores and prioritizing these observations for more accurate change point detection. Specifically, for a generic time series Y = (Y1 , . . . , YN ) and a weight vector w = (w1 , . . . , wN ), the algorithm relies on the following weighted CUSUM statistic, defined as: s Y Ws,e (t) =
where Stw1 :t2 =
w Sw Ss:t (t+1):e w Ss:e
w
w
|Y s:t − Y (t+1):e |,
(2)
w w −1 Pt2 i=t1 wi represents the cumulative weight, and Y t1 :t2 = (St1 :t2 ) i=t1 wi Yi
Pt2
denotes the weighted average of the observations over the interval [t1 , t2 ]. By construction, a relatively larger weight wi amplifies the impact of observation Yi on the statistic. When wi = 1 for all i ∈ [N ], the weighted CUSUM is reduced to the standard CUSUM statistic in (1). Y (b) and B(s, e) = S w WCP applies the meta-algorithm (Algorithm 1) with AYs,e (b) = Ws,e s:e
to sentence-level scores (ϕ(X1 ), · · · , ϕ(XN )) for change point detection. The choice of the weight vector w is critical, as it encodes sentence-specific information into the segmentation. In our theoretical analysis, we show that setting wi to the inverse variance of each score ϕ(Xi ) outperforms the vanilla algorithm and achieves minimax optimal segmentation. In our implementation, we may use the variance estimator mentioned in Section 2.1 as the weights by setting wi = {σ̂(Xi )}−2 , or simply use sentence length as a proxy by setting wi = nκi , where ni denotes the number of tokens in sentence Xi and κ > 0 is a hyperparameter (typically set to 1 or 2).
3.3
Generalized change point detection
Another natural approach to enhance the performance of the vanilla algorithm is to replace the average of sentence-level scores ϕ(Xt ) in CUSUM with segment-level scores ϕ(Xt1 :t2 ), obtained by applying, for example, the FastDetectGPT statistic to the concatenated text Xt1 :t2 . This 8
yields the following generalized CUSUM statistic: s
GX s,e (t) =
w Sw Ss:t (t+1):e w Ss:e
ϕ(Xs:t ) − ϕ(X(t+1):e ) .
(3)
X w Substituting AX s,e (b) in Algorithm 1 with our newly defined Gs,e (b), and B(s, e) with Ss:e , yields
the resulting algorithm, which we refer to as GCP, short for Generalized Change Point detection. Compared to the standard CUSUM statistic in (1), (3) offers two advantages: (i) It aggregates information across multiple sentences, enabling the LLM detector to achieve higher classification accuracy than detecting each sentence individually. (ii) It implicitly incorporates sentence-specific attributes, such as sentence length, into the resulting score, since longer sentences likely exert a larger influence on the segment-level score. While being more general than the weighted version in (2), we show later in Theorem 4 that (3) can be equivalent to (2) under specific choices of ϕ. However, one limitation of GCP is its computational cost. In particular, implementing Algorithm 1 with the generalized CUSUM statistic requires computing the score function ϕ on various segments of X, due to the recursive nature of the algorithm. In contrast, VCP and WCP only require a single pass of ϕ over each individual sentence Xi .
3.4
Human-LLM text localization
After obtaining the estimated change points τb1 < . . . < τbK b , we divide the whole passage into c + 1 segments K
X1:bτ1 , Xbτ1 +1:bτ2 , . . . , X(bτ
K −1
b
+1):b τ
K
b
, X(bτ +1):N , K
b
c denotes our estimated number of change points. We next apply ϕ to these segments where K
to calculate their detection scores {ϕ(X1:bτ1 ), ϕ(Xbτ1 +1:bτ2 ), · · · , ϕ(X(bτ +1):N )}, and employ a K
b
clustering algorithm (e.g., k-means with k = 2) to group these segment-wise scores into two clusters. Given our construction of ϕ where higher values indicate a larger probability of LLM generation, the cluster with the larger mean is classified as LLM-authored, while the other cluster is identified as human-authored.
4
Theory
Summary. In this section, we develop theoretical guarantees for the proposed algorithms in Section 3. We begin with a summary of our main findings: • Non-asymptotic error bound: Theorems 1 and 2 establish non-asymptotic bounds on the localization error (i.e., distance between the estimated change points and their oracle locations) for VCP and WCP, respectively. Crucially, VCP’s error bound is governed by the maximal variance of the sentence-level scores, whereas the bound for WCP depends on their harmonic mean. Since the harmonic mean is strictly bounded by the maximum, these results formally demonstrate that WCP outperforms VCP, particularly in the presence of heterogeneous variances. In the homogeneous case, the two algorithms achieve equivalent performance.
9
• Minimax optimality: Theorem 3 derives a minimax lower bound for the change point estimation error. Notably, this lower bound matches the upper bound achieved by WCP. Together with Theorem 2, this establishes the minimax optimality of WCP. Furthermore, we show the equivalence of WCP and GCP under appropriate conditions in Theorem 4, which effectively extends minimax optimality to GCP. To the best of our knowledge, minimax rates of this form with delicate dependence on the heterogeneous variance parameters have not been established, even in the change point literature. Non-asymptotic error bound. We next detail these results. Suppose there are K change points {τj }j∈[K] in a paragraph X = (X1 , . . . , XN ). Let ∆1 = minj∈[K+1] {τj − τj−1 } denote the minimum gap between these change points. Furthermore, let µh = E[ϕ(Xh )] and µm = E[ϕ(Xm )] denote the expected scores for a human-authored sentence Xh and an LLM-authored sentence Xm , respectively. Let σi denote the sub-Gaussian parameter of ϕ(Xi ), defined in (9); we simply refer to σi2 as the variance proxy of ϕ(Xi ) in the main text. The following theorem upper bounds the localization error of VCP (Section 3.1). Theorem 1 (Error bound for VCP). Under the assumptions and appropriate choice of tuning parameters specified in Appendix A.1, if there exist some absolute constant c > 0 and some 0 < δ < 1 such that 2 (µm − µh )2 ∆1 ≥ cσmax log(N/δ),
(4)
2 where σmax = maxi∈[N ] σi2 , then with probability at least 1 − δ, the outputs of VCP {τbj }j∈[K] b and
c satisfy that K c = K and max |τbj − τj | = O K j∈[K]
σ2
max log(N/δ) (µm − µh )2
.
(5)
Theorem 1 shows that with high probability, VCP recovers the true number of change points and upper bounds the localization error as specified in (5). However, the upper bound depends on 2 , which is quite pessimistic. In practice, if even a single score ϕ(X ) the maximal variance σmax i
exhibits high variance – often the case for short sentences with limited tokens – the resulting bound becomes considerably large. This suggests that VCP’s theoretical performance is limited by the least reliable sentence classification in the paragraph. The condition in (4) is called the signal-to-noise ratio (SNR) condition, which requires that the detectable signal, represented by the left-hand side (LHS) of (4), dominates the noise level on the right-hand side (RHS). The signal strength in this context is a product of two components: (a) (µm − µh )2 , which measures how well ϕ can distinguish human- and LLM-authored text, and (b) ∆1 , the minimal distance between two consecutive change points. Notably, the RHS is also 2 , which can be quite restrictive in practice. scaled by σmax
We next demonstrate how WCP (Section 3.2) improves both the signal-to-noise condition (4) and the error bound (5) in the following theorem. Theorem 2 (Error bound for WCP). Under the same assumptions specified in Appendix A.1, together with the signal-to-noise condition in (4), if we choose wi = σi−2 and B(s, e) = e − s in
10
c the WCP algorithm, its outputs, {τbj }j∈[K] b and K satisfy that, with probability at least 1 − δ, X
c = K and K
i∈(τj ,b τj ]∪(b τj ,τj ]
Moreover, let ∆2 = minj∈[K+1]
log(N/δ) 1 =O , ∀j. 2 (µm − µh )2 σi
P τj
−2 i=τj−1 +1 σi .
(6)
If maxi∈[N ] σi−2 = O(∆2 ), M ≥ N 2 log(K/δ)
w , then the SNR condition in (4) can be replaced by and B(s, e) = Ss:e
(µm − µh )2 ∆2 ≥ c log(N/δ),
(7)
for some absolute constant c > 0, while the result in (6) still holds. The error bound in (6) measures the weighted distance between the estimated and true change points. To provide intuition, consider the case where the variance σi2 is inversely proportional to the sentence length ni (i.e., σi2 ∝ n−1 i ). In this scenario, the term
P −2 σi in (6) represents the
total number of tokens between τj and τbj . Comparing Theorem 1 with Theorem 2, we see that WCP outperforms VCP in two aspects. First, under the same SNR condition (4), WCP achieves a smaller localization error. This is because
|τj − τbj | ≤ 2 σmax
X i∈(τj ,b τj ]∪(b τj ,τj ]
1 , σi2
and hence (6) implies (5). Second, WCP obtains the stronger guarantee even under a weaker SNR condition (7), allowing more subtle changes in the signal to be detected. Specifically, the requirement in (7) is less stringent than that of (4) because ∆2 = min
j∈[K+1]
τj X i=τj−1
1 ∆1 ≥ 2 , 2 σmax σ +1 i
which offers a stronger signal on the left-hand side. The proof of (6) under the weaker condition (7) relies on refined theoretical arguments at the “token” level, instead of the “sentence” level. Minimax optimality. We next show that the localization error achieved by WCP is minimax optimal. To present the minimax lower bound, we introduce the following notation. For a given δ ∈ (0, 1/2), an estimator τb and a distribution P , let Q(δ, τb, P ) := inf{η ∈ [0, ∞) : P (|τb − τ | ≤ η) ≥ 1 − δ}, which can be interpreted as the smallest localisation error that can be achieved by τb with probability at least 1 − δ. Theorem 3 (Minimax lower bound). Suppose Assumptions (i) and (ii) in Appendix A.1 hold. Suppose that there is only one change point 1 < τ < N representing a transition from LLMauthored to human-authored text. Let P denote the joint distribution of {ϕ(Xi )}i∈[N ] . Consider
11
the class of distributions n
o
w w P = P : (µm − µh )2 min{S1:τ , S(τ +1):N } ≥ C log(1/δ) ,
with wi = σi−2 , for some absolute constant C > 0. It holds that inf sup Q(δ, τb, P ) ≥ max{h1 , h2 }, b τ P ∈P
where h1 and h2 satisfy τX +h1
τ X 1
1 c log(1/δ) = , 2 (µm − µh )2 σ τ +1 i
c log(1/δ)
= , (µm − µh )2 σ2 τ −h2 i
(8)
for some constant c > 0. To see that the guarantee in Theorem 2 is minimax optimal, we set the failure probability δ = N −1 , which is a natural choice to ensure that (6) holds with probability approaching 1 as N → ∞. Without loss of generality, we consider the upper bound in the case of a single change point. When τb > τ , (6) becomes b τ X 1
2 =O
τ +1
σi
log(N ) , (µm − µh )2
which together with the definition of h1 in (8), immediately implies τb − τ = O(h1 ). Similarly, we have τ − τb = O(h2 ) when τ > τb. Combining these two cases, we conclude that WCP’s estimated change point satisfies |τb − τ | = O(max{h1 , h2 }), and therefore matches the lower bound up to constants in Theorem 3. To conclude this section, the following informal theorem establishes the equivalence between WCP and GCP, so that the minimax optimality applies to GCP as well. See Appendix A.3 for the full statement. Theorem 4 (Equivalence). Suppose ϕ is set to either a zero-shot detection statistic or an ML-based detection statistic evaluating a rewrite distance. Under appropriate conditions, the Y generalized CUSUM statistic (3) equals the weighted CUSUM statistic (2), i.e. GX s,e (t) = Ws,e (t)
for all t ∈ [N ], with Y = (ϕ(X1 ), . . . , ϕ(XN )), and therefore WCP is equivalent to GCP.
5
Experiments
This section presents extensive experiments to assess the empirical performance of our approach. In Section 5.1, we first study the setting with a single change point, and then extend the evaluation to multiple change points in Section 5.2. Section 5.3 further conducts a sensitivity analysis under more complicated data-generating settings that may affect the performance of our method. We conclude the section with a real-world study involving manually manipulated
12
text (see Section 5.4). Below, we first describe the basic setup in simulation. More experimental details are provided in Appendix C. • Datasets. We first describe our procedure for generating human–LLM co-authored text. We randomly sample 100 documents from each of three publicly available datasets: WikiQA (Rajpurkar et al., 2016), News (Narayan et al., 2018), and Story (Fan et al., 2018). For each document, we split the text into multiple segments. We then prompt LLMs to regenerate some segments while keeping the remaining segments in their original human-authored form. To ensure diversity, several models are employed, including GPT-5-mini (Singh et al., 2025) and Claude 4.5 (Anthropic, 2025). Details regarding the specific prompts used for LLM rewriting are provided in Appendix C. • Evaluation metric. We use the WindowDiff (WD) metric proposed by Pevzner & Hearst (2002). Its definition is provided in Appendix C. We also add count error (CE), which denotes the difference between the true number of change points and the estimated number. A negative CE indicates overestimation of the number of change points. We report the average WD and CE across 100 documents for every combination of LLM generator and dataset. • Methods. We compare VCP, WCP, a sentence-level prediction baseline (denoted by SenPred, Kushnareva et al., 2024), a majority-voting algorithm (denoted by Voting, Zhang et al., 2024b), direct prompting of the LLM that rewrites the paragraph to segment the human–LLM coauthored text (denoted by LLMPred), TextTiling (Hearst, 1997), and a partial LLM detector (PaLD, Lei et al., 2025). To ensure fairness among score-based methods, we use the same detection score, ϕ, for segmentation. We consider several choices of ϕ: an ML-based score from AdaDetectGPT (Zhou et al., 2025), and zero-shot scores derived from FastDetectGPT and log likelihood (Gehrmann et al., 2019; Bao et al., 2024). The main text presents results obtained using AdaDetectGPT.
5.1
Single change point detection
We first evaluate whether the proposed change-point formulation can localize a single transition between human-written and LLM-written text. When generating the co-authored text, the change-point location is sampled at random for each document. This setting better reflects practical cases, where the LLM-written segment may appear at an arbitrary position. Table 1 reports the results under this single random change-point setting.
13
Table 1: Results on single change-point detection. The best results are presented in bold. PaLD is associated with high computational cost; thus, its results on the News and Story datasets are omitted.
Model
Claude 4.5
GPT-5-mini
Method
WikiQA
News
Story
WD
CE
WD
CE
WD
CE
TextTiling
0.422
-0.475
1.176
-4.560
0.805
-2.970
LLMPred
0.588
-0.859
1.155
-3.360
1.526
-4.620
SenPred
0.388
-1.374
1.739
-6.970
2.343
-9.430
Voting
0.308
-0.192
0.184
-0.620
0.443
-1.480
PaLD
0.489
-1.525
–
–
–
–
VCP
0.231
-0.010
0.191
0.000
0.272
0.000
WCP
0.227
-0.010
0.120
0.000
0.207
0.000
TextTiling
0.418
-0.465
1.324
-5.120
0.969
-3.480
LLMPred
0.477
-0.606
1.206
-3.630
1.361
-4.020
SenPred
0.636
-2.030
2.769
-11.430
2.859
-11.460
Voting
0.372
-0.465
0.863
-3.150
0.925
-3.370
PaLD
0.685
-2.202
–
–
–
–
VCP
0.363
-0.010
0.369
0.000
0.356
0.000
WCP
0.345
-0.010
0.314
0.000
0.321
0.000
Table 1 leads to the following observations. 1. WCP attains the smallest WD across all six model–dataset combinations. The improvement is particularly clear on the News and Story datasets, where sentence-wise prediction and direct LLM prompting produce substantially larger segmentation errors. 2. VCP also controls the number of detected change points, with CE essentially matching that of WCP. However, its WD is consistently larger than that of WCP, which is consistent with the theoretical role of weighting in improving localization under heterogeneous sentence-level detection noise. 3. The baseline methods often have negative CE, indicating a tendency to over-detect changes, and this over-detection is accompanied by larger WD. One reason is that their objectives are not fully aligned with the human–LLM boundary localization problem. TextTiling segments text by semantic coherence, whereas semantic shifts need not coincide with provenance shifts between human-written and LLM-written segments. Voting, SenPred, and LLMPred make sentence- or window-level decisions without explicitly enforcing a change-point structure. These results support the main mechanism of our approach: imposing a change-point structure on sentence-level detection scores improves boundary localization in mixed human–LLM documents. 4. PaLD is closer in spirit to our objective, but its greedy search may lead to suboptimal segmentation. This comparison suggests that the change-point detection procedure used to 14
select segment boundaries plays an important role in reliable localization.
5.2
Results on multiple change points
In this part, we consider settings with multiple change points where the number of change points K varies within {1, 2, 3, 5, 8}. For each document, we evenly split the text into K + 1 segments, each containing approximately the same number of sentences. The 1st, 3rd, 5th, · · · segments are unchanged, while the remaining segments are written by an LLM. PaLD is not included in this or subsequent experiments due to its computational cost. Table 2: Results on multiple change-point detection on the Story dataset. The best results are presented in bold.
Model
K=1
Method
WD
CE
K=2 WD
CE
K=3 WD
CE
K=5 WD
CE
K=8 WD
CE
TextTiling 0.75 -2.68 0.77 -3.80 0.72 -4.47 0.64 -4.64 0.53 -3.06
Claude 4.5
LLMPred
1.42 -4.24 1.23 -4.68 1.05 -4.43 0.52
2.27
0.49
4.96
SenPred
2.18 -8.70 2.24 -13.80 2.19 -17.91 1.89 -23.38 1.31 -24.68
Voting
0.38 -1.23 0.45 -2.19 0.46 -2.78 0.38 -2.71 0.33 -2.56
VCP
0.31 -1.73 0.33 -2.81 0.31 -2.90 0.32 -3.35 0.33 -1.22
WCP
0.26 -1.11 0.29 -1.01 0.31 -1.13 0.33 -0.91 0.33 0.68
TextTiling 0.96 -3.47 1.05 -5.34 0.91 -6.10 0.75 -6.50 0.61 -5.20
GPT-5-mini
LLMPred
1.34 -4.02 1.20 -4.74 1.12 -5.06 0.56
SenPred
2.68 -10.94 2.89 -17.90 2.92 -24.38 2.42 -30.43 1.79 -33.54
Voting
0.40 -0.50 0.47 -0.28 0.46
VCP
0.41 -0.47 0.50 -1.64 0.51 -2.01 0.51 -1.52 0.46
0.65
WCP
0.39 -0.88 0.41 0.05 0.43 0.24 0.44 0.76 0.43
1.91
0.86
1.45
0.51
4.46
0.82 -7.60 0.65 -6.39
Table 2 shows that WCP remains competitive as the number of change points increases. Across both LLM generators, WCP achieves the best or near-best WD in most settings. VCP also performs strongly because it uses the same change-point structure, but its larger WD in many settings indicates that unweighted segmentation is less powerful when sentence-level detection scores are heterogeneous. In contrast, the baseline methods often incur larger WD or CE, which is consistent with the single-change-point results.
5.3
Sensitivity analysis
We further study two data-generation factors that may affect localization performance: adversarial attacks on the text and the proportion of LLM-written content. Adversarial attack.
We consider two adversarial settings: (1) decoherence and (2) paraphras-
ing. For decoherence, we perturb LLM-generated sentences to reduce their coherence, making 15
them closer to human-written text that may not be perfectly coherent. Specifically, we use a lightweight attack that randomly swaps one adjacent word pair within each LLM-generated sentence. For paraphrasing, we perturb human-written sentences by using a language model to rephrase them, making them closer to LLM-generated text. Results under the two attacks are presented in Table 3. Although these perturbations increase the difficulty of localization, WCP generally achieves the best performance across the two adversarial settings. Its WD also increases more mildly than those of the baselines, suggesting that the change-point formulation remains useful when sentence-level detection signals are weakened. Table 3: Results on two adversarial attack setups.
Setup
Method
WikiQA
News
Story
WD
CE
WD
CE
WD
CE
TextTiling
0.418
-0.465
1.320
-5.110
0.969
-3.480
LLMPred
0.490
-0.687
1.193
-3.740
1.217
-3.450
decoherence SenPred
0.696
-2.172
2.941
-12.150
2.892
-11.800
Voting
0.441
-0.657
0.950
-3.480
0.929
-3.390
WCP
0.370
-0.010
0.380
0.000
0.354
0.000
TextTiling
0.417
-0.485
1.313
-5.130
0.957
-3.430
LLMPred
0.540
-0.949
0.879
-2.230
1.216
-3.500
SenPred
0.675
-2.162
2.858
-11.800
3.076
-12.580
Voting
0.400
-0.455
0.944
-3.450
1.018
-3.910
WCP
0.412
-0.010
0.421
0.000
0.379
0.000
paraphrase
Varying proportion of LLM-written content. We next use the Story dataset to study how performance changes with the proportion of LLM-written content. For each document, we keep an initial proportion of sentences as human-written and generate the remaining sentences using an LLM. We vary this proportion within {5%, 10%, 20%, 40%, 80%}. Table 4 shows the results of WCP and baselines. WCP consistently achieves smaller WD and more stable CE across different LLM-authored proportions, indicating that the proposed localization procedure remains effective when the relative lengths of human-written and LLM-written segments vary.
16
Table 4: Performance of various methods on different proportions of LLM-written content on the Story dataset. 5% Method
5.4
WD
CE
10% WD
20%
CE
WD
CE
40% WD
CE
80% WD
CE
TextTiling 0.97 -7.77
0.97 -7.77
0.94 -7.62
0.93 -6.98
0.92 -5.58
LLMPred
0.93 -8.72
0.94 -8.59
0.90 -8.04
0.86 -7.89
0.91 -8.20
SenPred
1.00 -37.44 1.00 -36.80 0.99 -35.73 0.99 -36.46 1.00 -37.16
Voting
0.69 -8.90
WCP
0.26 -2.84 0.21 -2.99 0.24 -2.80 0.29 -2.65 0.44 -2.71
0.48 -5.40
0.46 -5.12
0.52 -6.58
0.81 -11.19
The CoAuthor Dataset Analysis
We next evaluate our method on the human–AI co-authored text dataset provided by Lee et al. (2022). The CoAuthor data were collected through a custom text-editor interface. At the beginning of each session, writers were given a prompt and asked to write either a creative story or an argumentative essay. During writing, they could request GPT-3 suggestions through a shortcut whenever needed. The interface logged the full interaction trace, including writers’ own text, GPT-3 suggestions, whether suggestions were accepted or dismissed, and subsequent edits to accepted suggestions or previous text. In total, CoAuthor contains 1,445 writing sessions produced by 63 writers interacting with four GPT-3 instances, including 830 creative-writing stories and 615 argumentative-writing essays. Following the setup in Zeng et al. (2024a), each document is annotated at the sentence level with three labels: human-written, collaboratively written, and fully LLM-generated sentences. This setting turns localization into a three-class segmentation problem, which is more challenging than the binary human–LLM setting and better reflects practical human–AI co-authoring scenarios. We also compare a strong supervised baseline considered in Zeng et al. (2024a), SegFormer (Bai et al., 2023). Since pretrained checkpoints for SegFormer are not publicly available, we train the model from scratch. We split the CoAuthor dataset into training (60%), validation (20%), and test (20%) sets, and report all results on the held-out test set. We also include the baseline methods considered in the preceding experiments. Because the task has three classes, we apply the clustering procedure in Section 3.4 to assign detection scores to the three labels. The results on the CoAuthor dataset are summarized in Table 5. VCP and WCP achieve the smallest WD, indicating better boundary localization on this real-world co-authoring dataset. SegFormer obtains the smallest absolute CE, which is expected for a supervised model trained on the dataset, but its WD remains larger than that of the proposed change-point methods. Unsupervised baselines, such as Voting and TextTiling, have substantially larger WD, suggesting that they remain less effective at handling segmentation tasks in this three-class setting.
17
Table 5: Results on the real-world CoAuthor dataset. WD
6
CE
TextTiling
0.66
-6.76
LLMPred
0.64
-6.25
SenPred
0.70
-11.68
Voting
0.51
-2.65
SegFormer
0.39
2.45
VCP
0.36
2.63
WCP
0.36
2.71
Conclusion
This paper proposes a change point detection approach to localize human- and LLM-authored text in hybrid human–LLM documents. We develop three algorithms to address this largely unexplored problem, establish their finite-sample error guarantees and minimax optimality, and demonstrate their superior empirical performance. By bridging the change point detection literature with modern LLMs, our work paves the way for leveraging classical time-series tools to solve the evolving challenges posed by LLM-generated content.
References Anthropic. System card:claude sonnet 4.5. 2025. URL https://www-cdn.anthropic.com/ 963373e433e489a87a10c823c52a0a013e9172dd.pdf. Bai, H., Wang, P., Zhang, R., and Su, Z. Segformer: a topic segmentation model with controllable range of attention. In Proceedings of the AAAI conference on artificial intelligence, volume 37, pp. 12545–12552, 2023. Bao, G., Zhao, Y., Teng, Z., Yang, L., and Zhang, Y. Fast-DetectGPT: Efficient zero-shot detection of machine-generated text via conditional probability curvature. In The Twelfth International Conference on Learning Representations, 2024. Baranowski, R., Chen, Y., and Fryzlewicz, P. Narrowest-over-threshold detection of multiple change points and change-point-like features. Journal of the Royal Statistical Society Series B: Statistical Methodology, 81(3):649–672, 2019. Bhattacharyya, S. and Ramdas, A. Theoretical guarantees for change localization using conformal p-values. arXiv preprint arXiv:2510.08749, 2025. Bird, S., Klein, E., and Loper, E. Natural language processing with Python: analyzing text with the natural language toolkit. " O’Reilly Media, Inc.", 2009. Chen, J., Zhu, X., Liu, T., Chen, Y., Xinhui, C., Yuan, Y., Leong, C. T., Li, Z., Tang, L., Zhang, L., et al. Imitate before detect: Aligning machine stylistic preference for machine-revised text
18
detection. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pp. 23559–23567, 2025. Cho, H. and Kirch, C. Two-stage data segmentation permitting multiscale change points, heavy tails and dependence. Annals of the Institute of Statistical Mathematics, 74(4):653–684, 2022. Comanici, G., Bieber, E., Schaekermann, M., Pasupat, I., Sachdeva, N., Dhillon, I., Blistein, M., Ram, O., Zhang, D., Rosen, E., et al. Gemini 2.5: Pushing the frontier with advanced reasoning, multimodality, long context, and next generation agentic capabilities. arXiv preprint arXiv:2507.06261, 2025. Dugan, L., Ippolito, D., Kirubarajan, A., Shi, S., and Callison-Burch, C. Real or fake text? investigating human ability to detect boundaries between human-written and machine-generated text. In Proceedings of the Thirty-Seventh AAAI Conference on Artificial Intelligence and Thirty-Fifth Conference on Innovative Applications of Artificial Intelligence and Thirteenth Symposium on Educational Advances in Artificial Intelligence, AAAI’23/IAAI’23/EAAI’23. AAAI Press, 2023. Fan, A., Lewis, M., and Dauphin, Y. Hierarchical neural story generation. In Gurevych, I. and Miyao, Y. (eds.), Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 889–898, Melbourne, Australia, July 2018. Association for Computational Linguistics. Fryzlewicz, P. Wild binary segmentation for multiple change-point detection. The Annals of Statistics, 42(6):2243–2281, 2014. doi: 10.1214/14-AOS1245. Gehrmann, S., Strobelt, H., and Rush, A. GLTR: Statistical detection and visualization of generated text. In Costa-jussà, M. R. and Alfonseca, E. (eds.), Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pp. 111–116, Florence, Italy, July 2019. Association for Computational Linguistics. Guo, B., Zhang, X., Wang, Z., Jiang, M., Nie, J., Ding, Y., Yue, J., and Wu, Y. How close is ChatGPT to human experts? comparison corpus, evaluation, and detection. arXiv preprint arXiv:2301.07597, 2023. Guo, H., Cheng, S., Jin, X., Zhang, Z., Zhang, K., Tao, G., Shen, G., and Zhang, X. Biscope: AI-generated text detection by checking memorization of preceding tokens. Advances in Neural Information Processing Systems, 37:104065–104090, 2024. Hans, A., Schwarzschild, A., Cherepanova, V., Kazemi, H., Saha, A., Goldblum, M., Geiping, J., and Goldstein, T. Spotting LLMs with binoculars: zero-shot detection of machine-generated text. In Proceedings of the 41st International Conference on Machine Learning, 2024. Hearst, M. A. Text tiling: Segmenting text into multi-paragraph subtopic passages. Computational linguistics, 23(1):33–64, 1997. Hu, X., Chen, P.-Y., and Ho, T.-Y. Radar: Robust AI-text detection via adversarial learning. Advances in neural information processing systems, 36:15077–15095, 2023.
19
Ippolito, D., Duckworth, D., Callison-Burch, C., and Eck, D. Automatic detection of generated text is easiest when humans are fooled. In Jurafsky, D., Chai, J., Schluter, N., and Tetreault, J. (eds.), Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 1808–1822, Online, July 2020. Association for Computational Linguistics. Jiang, L., Wu, D., and Zheng, X. SenDetEX: Sentence-level AI-generated text detection for human-AI hybrid content via style and context fusion. In Christodoulopoulos, C., Chakraborty, T., Rose, C., and Peng, V. (eds.), Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 5287–5302, Suzhou, China, November 2025. Association for Computational Linguistics. ISBN 979-8-89176-332-6. Kushnareva, L., Gaintseva, T., Magai, G., Barannikov, S., Abulkhanov, D., Kuznetsov, K., Tulchinskii, E., Piontkovskaya, I., and Nikolenko, S. Ai-generated text boundary detection with roft. In First Conference on Language Modeling, 2024. Lee, M., Liang, P., and Yang, Q. Coauthor: Designing a human-ai collaborative writing dataset for exploring language model capabilities. In Proceedings of the 2022 CHI conference on human factors in computing systems, pp. 1–19, 2022. Lei, E., Hsu, H., and Chen, C.-F. Pald: Detection of text partially written by large language models. In The Thirteenth International Conference on Learning Representations, 2025. Li, M. and Yu, Y. Adversarially robust change point detection. Advances in Neural Information Processing Systems, 34:22955–22967, 2021. Li, M., Berrett, T., and Yu, Y. Network change point localisation under local differential privacy. Advances in Neural Information Processing Systems, 35:15013–15026, 2022. Li, X., Li, G., and Zhang, X. Segmenting watermarked texts from language models. Advances in Neural Information Processing Systems, 37:14634–14665, 2024. Liu, H., Gao, C., and Samworth, R. J. Minimax rates in sparse, high-dimensional changepoint detection. The Annals of Statistics, 49(2):1081–1112, 2021. doi: 10.1214/20-AOS1994. Ma, T., Verchand, K. A., and Samworth, R. J. High-probability minimax lower bounds. arXiv preprint arXiv:2406.13447, 2024. Madrid Padilla, C. M., Xu, H., Wang, D., MADRID PADILLA, O. H., and Yu, Y. Change point detection and inference in multivariate non-parametric models under mixing conditions. Advances in Neural Information Processing Systems, 36:21081–21134, 2023. Mao, C., Vondrick, C., Wang, H., and Yang, J. Raidar: generative AI detection via rewriting. In The Twelfth International Conference on Learning Representations, 2024. Mitchell, E., Lee, Y., Khazatsky, A., Manning, C. D., and Finn, C. Detectgpt: Zero-shot machine-generated text detection using probability curvature. In International Conference on Machine Learning, pp. 24950–24962. PMLR, 2023. Narayan, S., Cohen, S. B., and Lapata, M. Don’t give me the details, just the summary!
20
topic-aware convolutional neural networks for extreme summarization. ArXiv, abs/1808.08745, 2018. OpenAI. GPT-5 system card. 2025. URL https://cdn.openai.com/gpt-5-system-card.pdf. Padilla, O. H. M., Yu, Y., Wang, D., and Rinaldo, A. Optimal nonparametric multivariate change point detection and localization. IEEE Transactions on Information Theory, 68(3): 1922–1944, 2021. Pevzner, L. and Hearst, M. A. A critique and improvement of an evaluation metric for text segmentation. Computational Linguistics, 28(1):19–36, 2002. Rajpurkar, P., Zhang, J., Lopyrev, K., and Liang, P. SQuAD: 100,000+ questions for machine comprehension of text. In Su, J., Duh, K., and Carreras, X. (eds.), Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 2383–2392, Austin, Texas, November 2016. Association for Computational Linguistics. Singh, A., Fry, A., Perelman, A., Tart, A., Ganesh, A., El-Kishky, A., McLaughlin, A., Low, A., Ostrow, A., Ananthram, A., et al. Openai gpt-5 system card. arXiv preprint arXiv:2601.03267, 2025. Solaiman, I., Brundage, M., Clark, J., Askell, A., Herbert-Voss, A., Wu, J., Radford, A., Krueger, G., Kim, J. W., Kreps, S., et al. Release strategies and the social impacts of language models. arXiv preprint arXiv:1908.09203, 2019. Song, Y., Yuan, Z., Zhang, S., Fang, Z., Yu, J., and Liu, F. Deep kernel relative test for machine-generated text detection. In The Thirteenth International Conference on Learning Representations, 2025. Su, J., Zhuo, T., Wang, D., and Nakov, P. DetectLLM: Leveraging log rank information for zero-shot detection of machine-generated text. In Bouamor, H., Pino, J., and Bali, K. (eds.), Findings of the Association for Computational Linguistics: EMNLP 2023, pp. 12395–12412, Singapore, December 2023. Association for Computational Linguistics. Su, Z., Wang, Y., Wan, H., Zhang, Z., and Luo, M. HACo-det: A study towards fine-grained machine-generated text detection under human-AI coauthoring. In Che, W., Nabende, J., Shutova, E., and Pilehvar, M. T. (eds.), Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 22015–22036, Vienna, Austria, July 2025. Association for Computational Linguistics. Tian, Y., Chen, H., Wang, X., Bai, Z., ZHANG, Q., Li, R., Xu, C., and Wang, Y. Multiscale positive-unlabeled detection of AI-generated texts. In The Twelfth International Conference on Learning Representations, 2024. Tulchinskii, E., Kuznetsov, K., Kushnareva, L., Cherniavskii, D., Nikolenko, S., Burnaev, E., Barannikov, S., and Piontkovskaya, I. Intrinsic dimension estimation for robust detection of AI-generated texts. In Advances in Neural Information Processing Systems, volume 36, pp. 39257–39276, 2023.
21
Vershynin, R. High-dimensional probability: An introduction with applications in data science, volume 47. Cambridge university press, 2018. Verzelen, N., Fromont, M., Lerasle, M., and Reynaud-Bouret, P. Optimal change-point detection and localization. The Annals of Statistics, 51(4):1586–1610, 2023. Wang, D., Yu, Y., and Rinaldo, A. Univariate mean change point detection: Penalization, cusum and optimality. Electronic Journal of Statistics, 14(1):1917–1961, 2020. doi: 10.1214/ 20-EJS1710. Wang, D., Yu, Y., and Rinaldo, A. Optimal change point detection and localization in sparse dynamic networks. The Annals of Statistics, 49(1):203–232, 2021. Wang, P., Li, L., Ren, K., Jiang, B., Zhang, D., and Qiu, X. SeqXGPT: Sentence-level AIgenerated text detection. In Bouamor, H., Pino, J., and Bali, K. (eds.), Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 1144–1156, Singapore, December 2023. Association for Computational Linguistics. xAI. Grok 4 model card. 2025. URL https://data.x.ai/2025-08-20-grok-4-model-card. pdf. Xie, Z., Cohn, T., and Lau, J. H. The next chapter: A study of large language models in storytelling. arXiv preprint arXiv:2301.09790, 2023. Xu, H., Wang, D., Zhao, Z., and Yu, Y. Change-point inference in high-dimensional regression models under temporal dependence. The Annals of Statistics, 52(3):999–1026, 2024. Yang, X., Cheng, W., Wu, Y., Petzold, L. R., Wang, W. Y., and Chen, H. DNA-GPT: Divergent N-gram analysis for training-free detection of GPT-generated text. In The Twelfth International Conference on Learning Representations, 2024. Yu, X., Qi, Y., Chen, K., Chen, G., Yang, X., Zhu, P., Shang, X., Zhang, W., and Yu, N. DPIC: Decoupling prompt and intrinsic characteristics for llm generated text detection. In Globerson, A., Mackey, L., Belgrave, D., Fan, A., Paquet, U., Tomczak, J., and Zhang, C. (eds.), Advances in Neural Information Processing Systems, volume 37, pp. 16194–16212. Curran Associates, Inc., 2024. Yu, Y. A review on minimax rates in change point detection and localisation. arXiv preprint arXiv:2011.01857, 2020. Zeng, Z., Liu, S., Sha, L., Li, Z., Yang, K., Liu, S., Gaševic, D., and Chen, G. Towards detecting ai-generated text within human-ai collaborative hybrid texts. arXiv preprint arXiv:2403.03506, 2024a. Zeng, Z., Liu, S., Sha, L., Li, Z., Yang, K., Liu, S., Gašević, D., and Chen, G. Detecting AI-generated sentences in human-AI collaborative hybrid texts: challenges, strategies, and insights. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI ’24, 2024b. doi: 10.24963/ijcai.2024/835. Zhang, Q., Gao, C., Chen, D., Huang, Y., Huang, Y., Sun, Z., Zhang, S., Li, W., Fu, Z., Wan,
22
Y., and Sun, L. LLM-as-a-coauthor: Can mixed human-written and machine-generated text be detected? In Duh, K., Gomez, H., and Bethard, S. (eds.), Findings of the Association for Computational Linguistics: NAACL 2024, pp. 409–436, Mexico City, Mexico, June 2024a. Association for Computational Linguistics. Zhang, Z., Qin, W., and Plummer, B. Machine-generated text localization. In Ku, L.-W., Martins, A., and Srikumar, V. (eds.), Findings of the Association for Computational Linguistics: ACL 2024, pp. 8357–8371, Bangkok, Thailand, August 2024b. Association for Computational Linguistics. Zhou, H., Zhu, J., Su, P., Ye, K., Yang, Y., Gavioli-Akilagun, S. A. O. B., and Shi, C. AdadetectGPT: Adaptive detection of LLM-generated text with statistical guarantees. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. Zhou, H., Zhu, J., Yang, Y., and Shi, C. Detecting LLM-generated text with performance guarantees. arXiv preprint arXiv:2601.06586, 2026a. Zhou, H., Zhu, J., Ye, K., Yang, Y., Xu, E., and Shi, C. Learn-to-distance: Distance learning for detecting LLM-generated text. In The Fourteenth International Conference on Learning Representations, 2026b.
23
A
Proofs
A.1
Assumptions
We list the assumptions required for Theorem 1 and Theorem 2 to hold here. The ψ2 -norm for sub-Gaussian random variables is defined in (9). (i) ϕ(X1 ), ϕ(X2 ), · · · , ϕ(XN ) are independent; (ii) ∥ϕ(Xi ) − E(ϕ(Xi ))∥ψ2 ≤ σi for all i ∈ [N ]; (iii) the input threshold r in Algorithm 1 is set to be proportional to
p
log(N/δ);
(iv) there exists some sufficiently large constant C > 0 such that the number of random intervals −1 M ≥ CN 2 ∆−2 1 log(N (δ∆1 ) ). We note that the independence and sub-Gaussianity assumptions, (i) and (ii), are primarily
imposed to simplify the theoretical analysis and are standard in the change point detection literature (e.g., Wang et al., 2020; Baranowski et al., 2019; Verzelen et al., 2023). Meanwhile, they can be relaxed to accommodate temporally dependent sequences (e.g., Madrid Padilla et al., 2023; Xu et al., 2024) and heavy-tailed distributions (e.g., Li & Yu, 2021; Cho & Kirch, 2022). We do not further pursue those directions as the main contribution is to understand the effects of heterogeneous σi on the signal-to-noise condition and localization error. Assumptions (iii) and (iv) are mild as both r and M are user-specified.
A.2
Proofs for Theorems 1– 3
For a real-valued random variable X, we define its Orlicz-ψ2 norm as ∥X∥ψ2 = inf{t > 0 : E[exp({|X|/t}2 )] ≤ 2}.
(9)
A variable with a finite Orlicz-ψ2 norm is sub-Gaussian, meaning its distribution has a tail that is at least as light as that of a Gaussian variable. In this section, we collect the proofs of results in the main sections. To simplify notation, we shall use Y = (Y1 , . . . , YN ) to denote ϕ(X) = (ϕ(X1 ), . . . , ϕ(XN )), and use µ = (µ1 , . . . , µN ) to denote the mean vector of Y . We can further write Yi = µi + ϵi where each ϵi satisfies ∥ϵi ∥ψ2 ≤ σi . We also introduce the following general notation. Recall that for a general weight w = vector w = (w1 , . . . , wN ), Su:v
Pv
i=u wi , 1 ≤ u ≤ v ≤ N . For vectors v, w ∈ R
N , and b ∈ [N ],
with 1 ≤ s ≤ b ≤ e − 1 < N , we write s v Ws,e (b) =
w Sw b Ss:b (b+1):e X wi w Ss:e
where b ψs,e (i) =
Sw i=s s:b
vi −
r w S(b+1):e w Sw , Ss:b r s:ew
−
e X
wi b vi = |⟨v, ψs,e ⟩w |, w S i=b+1 (b+1):e
Ss:b , w Sw Ss:e (b+1):e
0,
s ≤ i ≤ b, b < i ≤ e, otherwise,
24
(10)
and ⟨x, y⟩w =
PN
i=1 xi yi wi for two vectors x, y ∈ R
N . We also denote ∥x∥2 = ⟨x, x⟩ = x⊤ W x, w w
with W = diag(w). The following lemma is important in the proof of Theorem 2. Lemma 5. Let µ = (µ1 , . . . , µN ) denote the mean vector of Y = (Y1 , . . . , YN ) and let τ1 , . . . , τK be the change points. Suppose 1 ≤ s < e ≤ N , such that τj−1 < s ≤ τj < e ≤ τj+1 for some w , Sw j = 1, . . . , K. Let η = min{Ss:τ (τj +1):e } and κ = |µh − µm |. Then j µ µ Ws,e (τj ) = max Ws,e (b), s≤b<e
and
√
√ µ (τ ) ≤ √ηκ. Moreover, it holds that ηκ/ 2 ≤ Ws,e j τ
τ
j j b b µ µ ∥ψs,e ⟨ψs,e , µ⟩w − ψs,e ⟨ψs,e , µ⟩w ∥2w = (Ws,e (τj ))2 − (Ws,e (b))2 ,
and µ µ (Ws,e (τj ))2 − (Ws,e (b))2 =
Sw Sw (b+1):τj (τj +1):e 2 κ w S(b+1):e w w S(τ +1):b Ss:τj j
w Ss:b
κ2
if s ≤ b < τj ,
(11)
(12)
if τj ≤ b < e.
Proof of Lemma 5. For a general triplet s ≤ b < e, it holds that
µ Ws,e (b) =
r w Ss:b κ Sw , w w S S s:e (b+1):e (τj +1):e r w w
b ≤ τj ;
Ss:τj S(τ +1):e j
κ , w Ss:e r w S(b+1):e w κ w Ss:τ , w Ss:e Ss:b
(13)
b = τj ; b ≥ τj ,
j
µ (b) is maximized at b = τ since all w ≥ 0 for i ∈ [N ]. Note that and then it is clear that Ws,e j i
v u w w u Ss:τj S(τ √ j +1):e η/2 ≤ t ≤ η,
q
w Ss:e
which leads to the fact that
√
√ µ (τ ) ≤ √ηκ. The expression for (W µ (τ ))2 − ηκ/ 2 ≤ Ws,e j s,e j
µ (b))2 in (12) follows from direct calculation using (13). Finally, to see (11), we consider first (Ws,e
the case b < τj , then τ
τ
j j b b ∥ψs,e ⟨ψs,e , µ⟩w − ψs,e ⟨ψs,e , µ⟩w ∥2w =
e X
wi ki2
(14)
i=s
where
ki =
r s w w S(τ S(b+1):e τj j +1):e b ⟨ψ , µ⟩ − w Sw w ⟨ψs,e , µ⟩w , w w s,e Ss:b Ss:τ Ss:e s:e j s r Sw w Ss:b
−
(τj +1):e
⟨ψ b , µ⟩ −
w Sw w w s,e Ss:e Ss:τ Sw (b+1):e j s:e s r w w Ss:τ Ss:b j b , µ⟩ + − ⟨ψs,e w Sw Sw Sw Sw s:e
s:e
(b+1):e
25
s ≤ i ≤ b;
τ
j ⟨ψs,e , µ⟩w ,
(τj +1):e
τ
j ⟨ψs,e , µ⟩w ,
b < i ≤ τj ; τj < i ≤ e.
τ
j b , µ⟩ using (13) which yields Under the observation (10), we can compute ⟨ψs,e , µ⟩w and ⟨ψs,e w
ki =
0, w (S(τ )2 +1):e
κ2
j w
2
s ≤ i ≤ b; Sw
b < i ≤ τj ;
,
(b+1):τj (S(b+1):e ) w S(τ +1):e j κ2 (S w )2 , w (S(b+1):e )2
τj < i ≤ e.
(b+1):τj
Substituting the above in (14) leads to the claimed result when b < τj . The other case can be obtained in the same way. We first present the proof of Theorem 2 and then comment on how Theorem 1 directly follows from it. Proof of Theorem 2. We follow the structure of the proof of Theorem 1 in Baranowski et al. (2019), which consists of Five Steps, and make the necessary changes to accommodate the heterogeneity of σi and our WCP algorithm. We need to modify the events considered in their τ
τ
b ⟨ψ b , µ⟩ − ψ j ⟨ψ j , µ⟩ and Steps One and Two as follows. Let µψ = ψs,e s,e s,e w w s,e
D = {(j, s, e, b) : j = 1, . . . , K, τj−1 < s ≤ τj , τj < e ≤ τj+1 , s ≤ b < e}. Consider the following two events: A={ B=
ϵ |Ws,e (b)| ≤ r},
max
s,b,e:1≤s≤b<e≤N
n |⟨µ , ϵ⟩ | ψ
w
∥µψ ∥w
(15)
o
≤ r, ∀(j, s, e, b) ∈ D .
Note that using independence and sub-Gaussianity of the components of ϵ with ∥ϵi ∥ψ2 ≤ σi = −1/2
wi
, we have b ∥⟨ϵ, ψs,e ⟩w ∥2ψ2 =
N X
b wi ϵi ψs,e (i)
i=1
2 ψ2
≤C
N X
b wi ϵi ψs,e (i)
i=1
2 ψ2
≤ C,
for some absolute constant C, where the first inequality is due to Proposition 2.7.1 in Vershynin (2018). Similarly, it also holds that ⟨µψ , ϵ⟩w ≤ C. ∥µψ ∥w ψ2 Hence, using a union bound and tail bound for sub-Gaussian random variable (e.g. Vershynin, 2018, Proposition 2.6.6), we obtain P(Ac ) ≤ N 3 exp(−cr2 )
P(B c ) ≤ N 4 exp(−cr2 ).
Choosing r = c′ log(N/δ) with a large enough absolute constant c′ > 0 ensures both P(Ac ) and p
P(B c ) are less than δ.
26
Step Three is the key step showing the difference between the signal-to-noise conditions (4) and (7). The main goal of this step is to show that when a large number of random intervals are generated, each change point τj is captured by some interval. However, under different conditions, we need to consider intervals at different “scales.” Under the signal-to-noise condition in (4), i.e. 2 (µm − µh )2 ∆1 ≳ σmax log(N/δ) =
log(N/δ) , mini∈[N ] wi
where ∆1 = minj∈[K+1] {τj − τj−1 }, we can consider intervals directly at the index scale, as in the proof of Theorem 1 in Baranowski et al. (2019). Let IjL = (τj − ∆1 /3, τj − ∆1 /6)
IjR = (τj + ∆1 /6, τj + ∆1 /3),
and M = {[s1 , e1 ], . . . , [sM , eM ]} be the randomly generated intervals. The following event C = {∀j = 1 . . . , K, ∃ m ∈ {1, . . . , M }, s.t. sm ∈ IjL , em ∈ IjR }, satisfies P(C) ≥ 1 − δ
if
−1 M ≥ 36N 2 ∆−2 1 log(N (δ∆1 ) ),
using the arguments in the original proof. Under the signal-to-noise condition in (7), i.e. (µm − µh )2 ∆2 ≳ log(N/δ), w where ∆2 = minj∈[K+1] S(τ = minj∈[K+1] j−1 +1):τj
Pτj
−2 i=τj−1 +1 σi , we need to adapt the lengths of
IjL and IjR to the scale of the weights. Specifically, with a slight abuse of notation we again let w IjL = {s ∈ {1, . . . , τj } : ∆2 /6 < Ss:τ < ∆2 /3}, j w IjR = {e ∈ {τj + 1, . . . , N } : ∆2 /6 < S(τ < ∆2 /3}. j +1):e
(16)
w Note that the set IjL will not include any points i ≤ τj−1 since S(τ ≥ ∆2 . Similarly, j−1 +1):τj
IjR will also not include any points i > τj+1 . Moreover, these two sets are non-empty since maxi∈[N ] wi < ∆2 /6 by assumption, so that each set contains at least one element. Again, we let [s1 , e1 ], . . . , [sM , eM ] be the randomly generated intervals and consider event C as above. Note that for each interval [sm , em ], we have P(sm ∈ IjL , em ∈ IjR ) ≥ 1/N 2 . Then, we can control P(C c ) ≤
K Y M X
(1 − P(sm ∈ IjL , em ∈ IjR )) ≤ K 1 −
j=1 m=1
Therefore, choosing M ≥ N 2 log(K/δ) ensures P(C) ≥ 1 − δ.
27
1 M ≤ K exp(−M/N 2 ). N2
In the following, we work under the event A ∩ B ∩ C, which happens with probability at least 1 − 3δ. In Step Four, we aim to find an upper bound on the localization error. Consider the set of over-thresholding intervals O = {m ∈ M :
max
sm ≤b<em
WsYm ,em (b) > r}.
Using the event A and Lemma 5, we have that this set is non-empty under the weaker signal-tonoise condition (7). Therefore it is also non-empty under the condition (4) since ∆2 = min
τj X
j∈[K+1]
i=τj−1
∆1 1 . 2 ≥ σ2 σ max +1 i
There is a slight difference in how we select the shortest over-threshold interval, depending on whether we work under the condition (4) or (7). This is related to the fact that the intervals are defined at different scales. In particular, we choose m∗ = arg minm∈O (em − sm + 1) when w assuming (4) and m∗ = arg minm∈O (S(s ) when assuming (7). Such choices ensure that m +1):em
the corresponding intervals cannot contain more than one change point. With a slight abuse of notation, we simply use [s, e] to denote the interval [sm∗ , em∗ ]. It can be shown using the same arguments as in Baranowski et al. (2019) that this interval contains a w , Sw 2 2 single change point, which we denote as τj , and min{Ss:τ (τj +1):e } > r /κ . The estimator j Y (b). The arguments below do not rely on the signal-to-noise is τbj = bb = arg maxb∈[s,e] Ws,e
conditions. To control the error between τj and bb, note that τ
j Y Y b (Ws,e (τj ))2 − (Ws,e (b))2 = (⟨Y , ψs,e ⟩w )2 − (⟨Y , ψs,e ⟩w )2
τ
τ
j j b b = (⟨µ, ψs,e ⟩w )2 − (⟨µ, ψs,e ⟩w )2 + (⟨ϵ, ψs,e ⟩w )2 − (⟨ϵ, ψs,e ⟩w )2
τ
τ
j j b b + 2⟨ϵ, ψs,e ⟨ψs,e , µ⟩w − ψs,e ⟨ψs,e , µ⟩w ⟩.
Consider first b ≥ τj , and the other case can be dealt with similarly. Using Lemma 5 together with the identity (10), we have τ
j b (⟨µ, ψs,e ⟩w )2 − (⟨µ, ψs,e ⟩w )2 =
w S(τ Sw j +1):b s:τj w Ss:b
κ2 .
Using the bounds in events A and B (15), we further have τ
j b (⟨ϵ, ψs,e ⟩w )2 − (⟨ϵ, ψs,e ⟩w )2 ≤ r2
τ
τ
τ
τ
j j j j b b b b 2⟨ϵ, ψs,e ⟨ψs,e , µ⟩w − ψs,e ⟨ψs,e , µ⟩w ⟩ ≤ 2r∥ψs,e ⟨ψs,e , µ⟩w − ψs,e ⟨ψs,e , µ⟩w ∥w
v u w w u S(τ +1):b Ss:τ j j t = 2r κ. w Ss:b
28
Notice that if w 2S(τ Sw j +1):b s:τj
κ2 =
w Ss:b
w − S w )S w 2(Ss:b s:τj s:τj w Ss:b
w w κ2 ≥ min{Ss:τ , S(τ }κ2 > r2 , j j +1):b
Y (τ ))2 − (W Y (b))2 > 0. Since S w > r 2 /κ2 , we have that the estimator b b must satisfy then (Ws,e j s,e s:τj
Sw
b=
(τj +1):b
bb X
wi =
i=τj +1
bb X
r2 1 ≤ 2, 2 κ σ i=τ +1 i j
Y (b). For b < τ , following the same arguments as, otherwise, it cannot be the maximizer of Ws,e j w and using the fact S(τ > r2 /κ2 , we would obtain j +1):e τj X 1
2 ≤
σ bb+1 i
r2 . κ2
Therefore, combining these two cases, we obtain max{τj ,b b}
X
min {τj ,b b}+1
1 r2 ≤ . κ2 σi2
Finally, we note that we omit the details of Step Five, which deals with the recursive aspect of the algorithm and shows that the true number of change points K is recovered. This step in our case follows directly by using similar adjustments to the intervals [sk , ek ] as (16), and incurring a slightly modified version of Lemma 3 in Baranowski et al. (2019) with τj − s + 1 replaced by w and e − τ replaced by S w Ss:τ j (τj +1):e . j
Proof of Theorem 1. Note that as long as wi = c for some c > 0, it holds that s v Ws,e (b) =
=
w Sw b Ss:b (b+1):e X wi w Ss:e
√
s
c
w vi −
i=s
Ss:b
e X
wi vi w S i=b+1 (b+1):e
b (b − s + 1)(e − b) i=s vi − e−s+1 b−s+1
P
Pe
i=b+1 vi
e−b
=
√
v cCs,e (b).
2 Moreover, choosing c = 1/σmax = mini∈[N ] wi ensures that the high-probability events A and
B in the proof of Theorem 2 still hold with the same choice of r. Therefore the conclusion of 2 . Substituting this choice into the bound (6), Theorem 2 still holds but only with wi = 1/σmax
we obtain the claimed result max |τbj − τj | ≲
j∈[K]
2 σmax log(N/δ) . (µm − µh )2
Proof of Theorem 3. Fix a δ ∈ (0, 1/2). We start by considering the following two distributions
29
P1 and P2 both belonging to P, where P1 is the joint distribution N independent random variables such that Yi ∼ N (µm , σi2 )
Yi ∼ N (µh , σi2 )
i ≤ τ,
i > τ.
P2 denotes the joint distribution N independent random variables such that Yi ∼ N (µm , σi2 )
Yi ∼ N (µh , σi2 )
i ≤ τ + h1 ,
Let κ = |µm − µh | and then DKL (P1 , P2 ) =
i > τ + h1 .
Pτ +h1 κ2 i=τ +1 σ 2 . Now, applying Ma et al. (2024, Corollary i
6), a version of Le Cam’s two-point lemma for high-probability lower bounds, we obtain that if h1 is chosen such that τX +h1
1 κ2 ≤ log( ), 2 4δ(1 − δ) σ i=τ +1 i then inf bτ supP ∈P Q(δ, τb, P ) ≳ h1 . Therefore, we can choose it to be max{h1 ∈ [N − τ ] : Pτ +h1 κ2 1 2 w i=τ +1 σ 2 ≤ log( 4δ(1−δ) )} and this value is guaranteed to be less than N − τ since κ S(τ +1):N ≳ i
log(1/δ), as required in P. The other lower bound can be obtained by considering P1 and P3 belonging to P, where P3 is the joint distribution of N independent random variables such that Yi ∼ N (µm , σi2 ) Then we have DKL (P1 , P3 ) = satisfies
i ≤ τ − h2 − 1, κ2 i=τ −h2 σ 2 .
Pτ
i
Yi ∼ N (µh , σi2 )
i ≥ τ − h2 .
The same arguments as before implies that if h2
τ X
κ2 1 2 ≤ log( 4δ(1 − δ) ), σ i i=τ −h 2
then inf bτ supP ∈P Q(δ, τb, P ) ≳ h2 . We take max{h2 ∈ [τ ] :
κ2 1 i=τ −h2 σ 2 ≤ log( 4δ(1−δ) )} and this
Pτ
i
w ≳ log(1/δ), as required in P. Combining these value is guaranteed to be less than τ since κ2 S1:τ
two cases yields our claim.
A.3
Equivalence of GCP and WCP
In this section, we show the equivalence between (3) and (2) when ϕ takes certain general forms that are used in the literature (e.g. Mitchell et al., 2023; Bao et al., 2024; Zhou et al., 2025). Let Zt = R(Xt ) denote the text rewritten by some LLM given input text Xt , Xt,i denote the i-th token in the t-th sentence, and Xt,<i denote all the tokens before i-th token in the t-th sentence. Assume Yt and Xt share the same number of tokens nt , which can be achieved by zero-padding the shorter sequence. Consider the detector ϕ that takes the form of either a zero-shot detection statistic ϕ1 (Xt ) =
1 log pφb(Xt ), nt
where pφb is some possible source model to be detected, or a ML-based detection statistic ϕ2 (Xt ) =
nt pφb(Xt ) pφb(Xt,i |Xt,<i ) 1 1 X log = log , nt pφb(Zt ) nt i=1 pφb(Zt,i |Zt,<i )
30
where pφb is a classifier trained to maximally distinguish Xt and Zt . Proposition 6. Under the above choices of detection statistics ϕ, if for any input text X with N sentences, where each sentence Xi has ni tokens, it holds that pφb(Xi,j |Xi,<j ) = pφb(Xi,j |X<i,<j ),
(17)
for i ∈ [N ], j ∈ [ni ], then Y GX s,e (b) = Ws,e (b),
∀b ∈ [N ],
with Y = (ϕ(X1 ), . . . , ϕ(XN )) and wi = ni . Proof of Proposition 6. We directly prove the case for ϕ2 , and the case for ϕ1 is a special case by setting pφb(Zt ) = 1. Under ϕ2 , we have s X Ds,e (b) =
w Ss:e
s Y Ws,e (b) =
w Sw Ss:b (b+1):e
w Sw Ss:b (b+1):e w Ss:e
ni ni b X e X X pφb(Xi,j |X<i,<j ) pφb(Xi,j |X<i,<j ) 1 X 1 − log log w w Ss:b i=s j=1 pφb(Zi,j |Z<i,<j ) S(b+1):e i=b+1 j=1 pφb(Zi,j |Z<i,<j ) ni ni e b X X X pφb(Xi,j |Xi,<j ) pφb(Xi,j |Xi,<j ) 1 X 1 log log − w w Ss:b i=s j=1 pφb(Zi,j |Zi,<j ) S(b+1):e i=b+1 j=1 pφb(Zi,j |Zi,<j )
Therefore, under the assumption that for any i ∈ [N ] and j ∈ [ni ], pφb(Xi,j |Xi,<j ) = pφb(Xi,j |X<i,<j ), Y (b) = D X (b) for all b ∈ [N ]. where X is the input text, it holds that Ws,e s,e
B
Additional numerical results
B.1
Additional experiments with varying detectors
Our method requires a sentence-level detector as input. While the main text uses AdaDetectGPT, here we examine whether the proposed change-point procedure remains effective with alternative detector scores, including log likelihood (LL; Gehrmann et al., 2019), log-likelihood log-rank ratio (LRR; Su et al., 2023), and Fast-DetectGPT (FDGPT; Bao et al., 2024). For a concise comparison, we report SenPred and Voting, which are among the strongest baselines in the main experiments. Table A1 shows that WCP remains competitive across all three detector choices, suggesting that our gain over baselines is not tied to a particular detector.
31
Table A1: Robustness to different sentence-level detector scores. Detector
B.2
Method
WikiQA
News
Story
WD
CE
WD
CE
WD
CE
LL
SenPred 0.57 Voting 0.40 WCP 0.30
-1.34 -0.07 -0.05
2.85 0.77 0.28
-11.09 2.38 -2.46 0.88 -1.18 0.37
-9.08 -2.99 -1.94
LRR
SenPred 0.61 Voting 0.43 WCP 0.30
-1.57 -0.17 -0.02
3.11 0.96 0.37
-12.31 2.93 -11.98 -3.26 0.92 -3.31 -1.43 0.36 -1.70
FDGPT
SenPred 0.47 Voting 0.39 WCP 0.30
-1.26 -0.10 -0.03
2.87 0.59 0.29
-11.19 2.98 -11.79 -1.92 0.85 -3.04 -1.69 0.31 -1.53
Additional experiments on token-level detection
We further evaluate the proposed localization idea in a token-level setting, which provides a finer-grained test of mixed human–LLM editing. We consider cases where either 40 or 100 tokens are generated by an LLM. We compare our method with Voting and TokenPred, where TokenPred applies the detection statistic to a 20-token window around each target token before classification. The results in Table A2 show that our method achieves substantially smaller WD and more stable CE, indicating that the change-point formulation remains useful. Table A2: Token-level localization under different lengths of LLM-generated content.
C
Number
Methods
WD
CE
40
TokenPred Voting WCP
10.62 1.127 0.379
-42.58 -4.58 -0.98
100
TokenPred Voting WCP
21.483 2.611 0.222
-90.818 -9.737 0.172
Experiment details
Implementation details. For VCP and WCP in the reported experiments, we fix the input parameter M in Algorithm 1 at 200 and set r =
p
log(N ).
For LLMPred, we use the following prompt to identify LLM-generated segments:
32
Prompt for implementing LLMPred You are an expert in determining the LLM-written sentences in text. Return ONLY the sentence indices (starting from 0) that are written by a language model. The text to detect is:
[filled in the bracket].
The sentence indices
are:
For TextTiling, we use the implementation in nltk.tokenize.texttiling (Bird et al., 2009). For SegFormer in the CoAuthor experiment, we use the implementation provided by Zeng et al. (2024b), which is publicly available on GitHub2 . Human–LLM co-authored text generation procedure. As mentioned in Section 5, we asked one LLM to rewrite pieces of human-written text to obtain semantically fluent co-authored text. The prompt for generating the LLM-rewritten text is: Prompt on generating the LLM-written text [System prompt] You are a creative writing assistant.
Continue the given
text naturally and fluently, matching the style and tone of what came before. User prompt:
Continue the following text by writing approximately {k}
more sentences.
Return ONLY the new continuation sentences, without
repeating the original text. {preceding text filled in the bracket} Without loss of generality, we perform sampling with the temperature set to 0.8. Claude 4.5 in the main text corresponds to claude-haiku-4-5, and the GPT-5-mini model corresponds to gpt-5-mini. All experiments are conducted on an H20 96 GB GPU with 96 Intel(R) Xeon(R) Platinum 8255C CPUs @ 2.50 GHz. Settings for LLM detectors. We consider several LLM detectors: AdaDetectGPT, LL, LRR, and FastDetectGPT. For AdaDetectGPT, its scoring model is a pretrained transformation applied consistently across all experiments. For FastDetectGPT, we set score and sample to be the same model, chosen from google/gemma-2-9b-it. Finally, LL and LRR also require a scoring model, which we set to google/gemma-2-9b-it, as in FastDetectGPT. (r)
Evaluation details. Let Ci
(h)
and Ci
denote the numbers of true and estimated change points
2
https://github.com/douglashiwo/AISentenceDetection/blob/main/A-Segment_Detection_Models/ SegFormer.zip
33
in the i-th sliding window. The WindowDiff metric is defined as: WD =
−k 1 TX (r) (h) |C − Ci |. T − k i=1 i
34