WorksMathematics
Quickest Change-point Detection in Generalized Linear Models with Variational Estimation
Abstract
We consider quickest change-point detection in generalized linear models when the post-change parameter is unknown. Such problems arise, for example, when monitoring whether the relationship between a learned representation and an observed response changes over time. Since detection must occur soon after a change, the post-change parameter must be estimated from a limited number of observations, making finite-sample estimation accuracy particularly important. We propose a window-limited CUSUM procedure that estimates the post-change parameter using a variational-inequality (VI) formulation. For noncanonical links, VI estimation can offer favorable finite-sample accuracy over short windows despite the asymptotic efficiency advantage of maximum likelihood estimation. We characterize how estimation error reduces the effective post-change information rate and affects detection delay, and derive finite-window guarantees accounting for both statistical error and incomplete numerical optimization. The resulting procedure retains false-alarm control and achieves first-order asymptotic optimality under suitable conditions. Numerical experiments compare detection delay and update cost for fixed-budget estimation and benchmark VI-WLCUSUM against alternative detectors.
Introduction
Monitoring the relationship between a feature vector and an observed response is a basic problem in statistical signal processing. Examples include detecting a change in the calibration of a learned representation or in the response of a monitored system. A generalized linear model (GLM)[1] provides a flexible conditional model for such relationships, but the parameter after a change is typically unknown.
Such changes arise in several modern applications. For example, learned language-model representations are mapped to next-token prediction probabilities through a softmax output layer [2], and the calibration of these predictive distributions is an important measure of reliability [3]. A change in the relationship between the learned representation and the observed response may therefore indicate a change in the underlying operating regime. Another example is sequential pairwise-choice data, where the Bradley–Terry model [4] provides a logistic model for comparison outcomes, and changes in its parameters correspond to shifts in preferences or rankings. Change-point detection for sequential pairwise comparisons has been studied, for example, in [5].
When the post-change distribution is unknown, quickest change detection must be coupled with parameter estimation. In this setting, parameter estimation is based on a limited number of post-change observations, since waiting for a large sample increases detection delay. Thus, the estimation problem arising in quickest detection is inherently finite-sample, and asymptotic efficiency alone may not characterize the estimator most suitable for detection.
Page’s CUSUM [6] is minimax optimal under Lorden’s criterion when both the pre- and post-change distributions are known [7]. When the post-change parameter is unknown, window-limited CUSUM (WLCUSUM) [8] estimates it from a recent window and substitutes the estimate into the likelihood-ratio statistic. The quality of this short-window estimate therefore directly affects the post-change information available for detecting the change. This places particular importance on finite-sample estimation accuracy in addition to asymptotic efficiency.
In this work, we use variational-inequality (VI) estimation for the post-change GLM parameter [9, 10]. VI estimation solves a moment equation whose geometry can be simpler than that of likelihood optimization. For canonical links, the VI and likelihood estimating equations coincide up to a known dispersion factor. For noncanonical links, they differ: maximum likelihood has the usual asymptotic efficiency advantage, whereas VI estimation can achieve better accuracy over the short windows relevant to quickest detection. This finite-sample behavior motivates incorporating VI estimation into WLCUSUM. Related VI estimators have also been studied for interacting marked processes [11].
We make the connection between finite-window estimation and sequential detection explicit. In particular, we show that estimation error reduces the effective post-change information rate through the expected conditional KL discrepancy between the true and estimated post-change models. We derive finite-window VI risk bounds that account for both statistical estimation error and incomplete numerical optimization, establish false-alarm and detection-delay guarantees, and give conditions for first-order asymptotic optimality. Numerical experiments examine the resulting tradeoff among finite-sample estimation accuracy, computation, and detection delay.
Setup
We observe a sequence of independent observations , , with covariates following a common distribution . The response follows a standard Generalized Linear
Model (GLM)
where is a known continuous and nondecreasing (inverse) link function. We also allow clipped-link extensions.
We are interested in detecting the change in the parameter values, at an unknown time as soon as possible after it has occurred. This can be cast as the following sequential hypothesis test:
The conditional density family and baseline parameter are known, while is unknown. We assume that the known parameter family is compact and convex for the risk bounds, and need not contain .
Let , with trivial, and let denote the law and expectation for a change after . The subscript denotes no change, whereas denotes an entirely post-change stream. For a stopping time , we seek small Lorden-type worst case delay [12] subject to a large average run length (ARL) :
where .
Adaptive-CUSUM based on VI estimation
Choose a window length . At time , estimate the post-change coefficient from the preceding pairs through
On a fully post-change window, this mean-residual operator is centered at . We define as an exact or approximate solution of the variational inequality (VI)
where measures numerical error; gives an exact solution. This formulation also permits boundary solutions for which need not vanish.
The nondecreasing inverse link makes the gradient of the convex potential function
Thus an exact VI solution minimizes over . For example, with Euclidean projection , positive step sizes , and iteration budget ,
The iterations run from to , starting in .
The resulting VI-WLCUSUM uses threshold , starts at , and, for , computes
and raises an alarm at the stopping time
The estimate is -measurable as the current pair is scored before entering a later estimation window. This separation is essential for false-alarm control. The recursion discards a negative accumulated score before adding the new increment and stops at the first threshold crossing. It is the WLCUSUM recursion of [8], with VI supplying the estimate.
Theoretical Guarantees
We first study the false-alarm control coming from normalized predictive densities. For delay, we first bound the VI estimation error, translate it into lost post-change information, and then account for overlapping windows and threshold overshoot. Throughout, and are fixed unless an asymptotic limit is specified. Please see Appendix A for the proofs.
Assumption 1 (Model and likelihood). All fitted densities are measurable, and have a common support with the baseline for -almost every . Define
Here is Kullback–Leibler divergence. Thus is the mean log-likelihood increment available to an oracle knowing , while measures the predictive cost of using a fitted coefficient .
Assumption 2 (Fixed-window estimation). For each , one deterministic measurable map is used at every time:
Assumption 2 ensures that the increment term depends on only consecutive observations. On an i.i.d. post-change window, write for its fit and .
Assumption 3 (VI accuracy and information loss). The following hold for this post-change window.
(i) The feasible set has diameter . Moreover,
(ii) On an event with , for deterministic ,
(iii) The fit satisfies
where may depend on the data and .
(iv) For , on .
Assumption 3 requires informative windows and controlled numerical error. For differentiable , uniform positive lower bounds on over feasible predictors and on the sample-Gram minimum eigenvalue yield the curvature condition (ii) [13 Eq. (18)]; (iv) separately converts parameter error into predictive KL loss.
Assumption 4 (Predictive moment). In the stationary post-change regime, the predictive increment in (4) satisfies .
This moment condition controls threshold overshoot. Now define
The quantity , used below to bound the VI estimation error, accounts for sampling variability through , numerical inaccuracy through , and poorly informative windows through .
Theorem 1 (False-alarm guarantee). Under Assumption 1, any predictable estimates yielding valid densities satisfy
Theorem 1 separates false-alarm control from estimation accuracy. The additive reflects our convention that includes the initial estimation window.
Theorem 2 (VI error and effective information). Under Assumptions 1–3,
where the increment is evaluated in the stationary post-change regime.
The identity in (9) shows that the information lost through estimation is exactly the expected predictive KL divergence. Under Assumption 3(iv), parameter mean squared error controls this loss of mean post-change information.
Theorem 3 (Worst-case detection delay). Under Assumptions 1–4, if , then
For fixed , the leading term in (10) as is . The remaining terms account for the estimation window and threshold overshoot. A larger window may improve estimation and increase , but also enlarges the explicit term in the numerator. The bound therefore captures the competing effects of window length.
Corollary 1 (First-order minimax optimality). Fix and . Suppose Assumptions 1–4 hold along , with , , , and independent of , and
For ,
and is first-order minimax optimal under Lorden’s criterion.
Corollary 1 shows that VI-WLCUSUM attains the classical minimax benchmark under the false-alarm constraint . This is also the first-order worst-case delay achieved by an oracle CUSUM that knows . Thus, estimating the unknown post-change parameter and using a finite window incur no first-order asymptotic delay penalty.
The following examples attain the first-order minimax guarantee (12) for fixed dimension, parameters, and model constants, with , , , and .
Gaussian example
Let and
where is independent of and . Let be a radius- ball containing and . For , use projected-gradient updates of from the same fixed point in at every window, with
Gaussian concentration [14 Cor. 5.35] and this iteration budget give
Here and the predictive moment satisfies
Thus , and the delay argument of Theorem 3, together with the minimax lower bound, gives (12).
Clipped-Poisson example
Let , where
Assume and almost surely, with . For some , require
This active-region condition and matrix Chernoff [15] give
The bounded means also give , , and . Hence a deterministic fixed-window VI rule with attains (12) by Corollary 1.
Numerical experiments
We study the noncanonical softplus-Poisson model , , where , the covariate coordinates are independent , and . Responses are conditionally independent.
Fixed-budget VI versus likelihood estimation
For and , set , with and for . We calibrate to using 200,000 covariates. VI and the likelihood-based WLCUSUM comparator [8] use , 64 projected steps, and
This constraint provides both methods with a positive-direction and minimum-shift restriction and excludes the null. Initial VI/likelihood step sizes are 0.00125/0.0025, with per-fit decay 0.995. Thresholds are calibrated to target the ARL . Timing uses 40 paired paths and 320 updates per path.
Table 1 shows that VI achieves lower update times across all tested dimensions while maintaining comparable detection delays. At and 400, VI also yields smaller mean delays, although the uncertainty intervals do not establish a systematic high-dimensional advantage. The clearest benefit is computational efficiency under a fixed iteration budget. While MLE is asymptotically efficient under standard regularity conditions, this does not imply better detection performance with a finite estimation window and limited optimization. These results suggest that VI can provide competitive detection performance at lower update cost, with potential delay gains in higher-dimensional, finite-sample settings.
| VI | MLE | [95% CI] | VI | MLE | |
| 20 | 49.97 (1.15) | 49.65 (1.33) | 0.33 [−0.87,1.33] | 2.07 | 4.31 |
| 100 | 102.72 (3.77) | 101.60 (4.06) | 1.13 [−3.07,5.31] | 2.92 | 5.17 |
| 200 | 133.80 (4.89) | 140.72 (5.07) | −6.93 [−12.86,−1.13] | 4.12 | 6.31 |
| 400 | 178.37 (6.83) | 182.64 (7.35) | −4.27 [−13.55,4.21] | 6.30 | 8.45 |
Table 1. Scalar-response comparison. Post-window delay: mean (SE); : VI minus MLE, with paired 95% CI. Update time in ms.
VI-WLCUSUM versus alternative detectors: multivariate responses
We use and , with . Magnitudes are calibrated to joint KL information , so increasing does not increase information per time step. Here imposes no directional constraint.
Let and . VI-WLCUSUM uses steps, initial step 0.1, and decay 0.995. Score-based procedures monitor . The multivariate exponentially weighted moving average (MEWMA) chart [16, 17] uses weight (variance-equivalent memory 32). A moving-window Hotelling-type chart [18] uses , and two-sided coordinatewise CUSUM charts [6] use reference 0.25. Multichart CUSUM [19] and mixture Shiryaev–Roberts (MSR) [20] use the 12/112 nonzero 0.25-lattice points in the radius-1.5 ball for . Oracle CUSUM [6] knows and is a benchmark.
The change follows 256 null-training samples. VI and the score smoothers initialize from the last 32 training samples, while cumulative charts start at zero. Each method uses 12,000 null calibration and 10,000 separate validation paths, targeting ARL .
Table 2 shows that VI-WLCUSUM generally improves delay over the alternatives in these settings. VI has the smallest mean in most settings, but mixture-SR is better for the weakest change at . This exception is consistent with estimation uncertainty offsetting the benefit of adaptation under weak signals. Oracle CUSUM has shorter delays in all settings, indicating a remaining penalty for the unknown parameter. The delay advantage comes with more computation than the classical detectors, especially the score-based methods. Thus VI saves computation relative to the likelihood fit in the first study, but VI-WLCUSUM spends more computation for improved delay relative to simple score charts in the second.
| VI | EW | SC | MC | MSR | OC | |||
| 1 | 0.02 | 155.3 | 194.9 | 188.9 | 190.0 | 173.3 | 162.4 | 114.3 |
| 0.04 | 86.3 | 105.5 | 102.4 | 102.9 | 99.5 | 97.7 | 71.5 | |
| 0.08 | 49.3 | 57.8 | 55.3 | 56.4 | 55.6 | 58.6 | 43.9 | |
| 2 | 0.02 | 151.9 | 187.8 | 193.9 | 191.4 | 181.9 | 164.9 | 111.7 |
| 0.04 | 82.5 | 99.7 | 97.6 | 99.0 | 100.7 | 96.3 | 69.6 | |
| 0.08 | 48.8 | 54.0 | 53.3 | 55.7 | 57.9 | 57.9 | 43.5 | |
| 4 | 0.02 | 155.0 | 194.0 | 191.3 | 188.3 | 201.2 | 173.9 | 110.6 |
| 0.04 | 85.0 | 99.6 | 100.1 | 98.7 | 108.0 | 99.6 | 69.6 | |
| 0.08 | 47.3 | 52.6 | 52.4 | 53.9 | 60.0 | 58.3 | 42.9 | |
| 1 | 0.02 | 205.1 | 256.3 | 247.3 | 241.1 | 199.1 | 192.3 | 113.2 |
| 0.04 | 108.6 | 132.0 | 129.4 | 132.6 | 113.1 | 113.5 | 70.3 | |
| 0.08 | 59.7 | 70.8 | 67.0 | 73.3 | 62.7 | 65.2 | 43.6 | |
| 2 | 0.02 | 202.6 | 244.1 | 247.0 | 249.5 | 215.8 | 208.6 | 108.9 |
| 0.04 | 107.9 | 141.4 | 133.2 | 137.1 | 120.0 | 120.1 | 72.1 | |
| 0.08 | 59.7 | 69.1 | 68.0 | 73.1 | 66.4 | 67.0 | 43.4 | |
| 4 | 0.02 | 196.3 | 244.5 | 248.4 | 242.1 | 241.2 | 231.9 | 109.3 |
| 0.04 | 106.6 | 132.1 | 131.4 | 133.1 | 129.4 | 129.1 | 70.9 | |
| 0.08 | 59.5 | 68.8 | 68.2 | 73.9 | 70.8 | 71.8 | 43.5 |
Table 2. Mean initialized delay over 2,000 paths at target ARL 1000. Bold: smallest non-oracle mean. VI: VI-WLCUSUM; EW: score-based MEWMA; : moving-window Hotelling-type chart; SC: score-based CUSUM; MC: multichart CUSUM; MSR: mixture Shiryaev–Roberts; OC: oracle CUSUM.
Conclusion
We proposed VI-WLCUSUM for quickest change detection in GLMs with unknown post-change parameters. Our analysis relates statistical and optimization errors in VI estimation to the loss of post-change information, leading to finite-window delay bounds and first-order asymptotic optimality. Our formulation provides an alternative to likelihood fitting that can reduce the cost of updating the detector. The numerical results demonstrate this computational benefit while maintaining competitive detection performance.
The delay guarantees require a fixed-window estimator and sufficient empirical curvature, which need not hold for warm-start implementations or high-dimensional problems with short windows. Extending the analysis to these settings is an important next step. Adaptive choices of the window length may further improve the balance between estimation cost and detection delay.
Acknowledgment
This work is supported by the Office of Naval Research [N000142412278].
Compliance with Ethical Standards
This is a numerical simulation study for which no ethical approval was required.
Proofs
Proof of Theorem 1. We follow the martingale argument in [8 Lemma 3]. For , let .
Let be a common dominating measure for the conditional distributions from Assumption 1. Under , independence of from gives, for every measurable set ,
Since almost surely, Assumption 1 gives
The tower property yields
Define the nonnegative adapted process
By (17),
Induction from gives . Thus is adapted and integrable, with and
Hence is an -martingale.
Note that . If for , then
Consequently, by induction, for every . For an integer , bounded optional sampling at yields . Therefore, since ,
If , the result is immediate. Otherwise almost surely, and as , monotone convergence gives .
Proof of Theorem 2. Likelihood-ratio integrability. For probability measures with densities relative to a common dominating measure and , the standard bound [21] gives
For and , define
Thus, . Applying (18) with and , then using Assumption 3(i), (iv) yields
VI risk and information loss. We adapt the VI estimation error arguments of [10 Prop. 3] and [13 Prop. 4.2]. For the i.i.d. post-change training window, put
Correct mean specification and Assumption 3(i) gives
Independence therefore implies
Since , the (approximate) VI (2) at gives . On , Assumption 3(ii) and Cauchy-Schwarz inequality then yield
Thus, on . On , feasibility gives . Therefore,
For a fixed feasible ,
gives
Let , independent of under . Therefore, independence and integrability in (19), together with (20), imply
In particular, on a post-change stream,
where the same bound (19) guarantees that this conditional expectation is well-defined. □
Proof of Theorem 3. Suppose all observations follow the post-change law. By the common window, we can write
for one measurable function . Now i.i.d. pairs imply that is independent of , and
Now define the raw sum and its crossing time by
For a deterministic integer , set
For , the event belongs to . Therefore, conditioning yields
and
Moreover, . Using (23) and pathwise,
Subtracting this tail from (25) yields
On , the first crossing gives , so . On , . Consequently, with ,
Cauchy–Schwarz inequality and (26) imply
Together with (28) and , this gives
Solving this quadratic inequality on gives
The right-hand side is finite and independent of . Since , monotone convergence proves
Thus is integrable and almost surely finite.
On the same observation sequence,
whenever . Induction gives for , hence
The restart argument of [8 Lemma 4] applies to the i.i.d. post-change tail and the common fixed-window map in Assumption 2. That gives
Together with (31) and (32), this proves (10). □
Proof of Corollary 1. The assumptions imply . For all sufficiently large ,
In particular, eventually. Define
Then and . Dividing (10) by gives
Here, the first term tends to one because and . The second and third terms tend to zero because is fixed and . Thus
Also, Theorem 1 gives .
Now we invoke the classical minimax lower bound. For the fixed , Assumption 1 gives independent observations that are identically distributed within each regime, with one-observation laws and . The common covariate law implies
Let over adapted stopping times. For these i.i.d. observation laws, minimax information bound of [12] gives
This bound applies to all such stopping times, including the VI-based rule of VI-WLCUSUM. Theorem 1 places in . Combining (35) and (36) proves the claim.
References
- [1]Peter McCullagh and John A. Nelder, Generalized Linear Models, Chapman and Hall, London, U.K., 2 edition, 1989.
- [2]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin, “Attention is all you need,” in Advances in Neural Information Processing Systems, 2017, vol. 30, pp. 5998–6008.arxiv.org/abs/1706.03762
- [3]Zhengbao Jiang, Jun Araki, Haibo Ding, and Graham Neubig, “How can we know when language models know? on the calibration of language models for question answering,” Transactions of the Association for Computational Linguistics, vol. 9, pp. 962–977, 2021.
- [4]Ralph Allan Bradley and Milton E. Terry, “Rank analysis of incomplete block designs: I. the method of paired comparisons,” Biometrika, vol. 39, no. 3–4, pp. 324–345, 1952.DOI
- [5]Wanshan Li, Alessandro Rinaldo, and Daren Wang, “Detecting abrupt changes in sequential pairwise comparison data,” in Advances in Neural Information Processing Systems, 2022, vol. 35.arxiv.org/abs/2205.12431
- [6]E. S. Page, “Continuous inspection schemes,” Biometrika, vol. 41, no. 1–2, pp. 100–115, 1954.DOI
- [7]George V. Moustakides, “Optimal stopping times for detecting changes in distributions,” The Annals of Statistics, vol. 14, no. 4, pp. 1379–1387, 1986.DOI
- [8]Liyan Xie, George V. Moustakides, and Yao Xie, “Window-limited CUSUM for sequential change detection,” IEEE Transactions on Information Theory, vol. 69, no. 9, pp. 5990–6005, 2023.arxiv.org/abs/2206.06777
- [9]Linglingzhi Zhu, Jonghyeok Lee, and Yao Xie, “Beyond maximum likelihood: Variational inequality estimation for generalized linear models,” 2026, arXiv:2511.03087v2.arxiv.org/abs/2511.03087
- [10]Anatoli Juditsky and Arkadi Nemirovski, “Signal recovery by stochastic optimization,” Automation and Remote Control, vol. 80, no. 10, pp. 1878–1893, 2019.arxiv.org/abs/1903.07349
- [11]Anatoli Juditsky, Arkadi Nemirovski, Liyan Xie, and Yao Xie, “Convex parameter recovery for interacting marked processes,” IEEE Journal on Selected Areas in Information Theory, vol. 1, no. 3, pp. 799–813, 2020.arxiv.org/abs/2003.12935
- [12]Gary Lorden, “Procedures for reacting to a change in distribution,” The Annals of Mathematical Statistics, vol. 42, no. 6, pp. 1897–1908, 1971.DOI
- [13]Anatoli Juditsky, Arkadi Nemirovski, Yao Xie, and Chen Xu, “Generalized generalized linear models: Convex estimation and online bounds,” 2023, arXiv:2304.13793.arxiv.org/abs/2304.13793
- [14]Roman Vershynin, “Introduction to the non-asymptotic analysis of random matrices,” in Compressed Sensing: Theory and Applications, Yonina C. Eldar and Gitta Kutyniok, Eds., chapter 5. Cambridge University Press, 2012, Corollary 5.35; arXiv:1011.3027.arxiv.org/abs/1011.3027
- [15]Joel A. Tropp, “User-friendly tail bounds for sums of random matrices,” Foundations of Computational Mathematics, vol. 12, no. 4, pp. 389–434, 2012.
- [16]Cynthia A. Lowry, William H Woodall, Charles W Champ, and Steven E Rigdon, “A multivariate exponentially weighted moving average control chart,” Technometrics, vol. 34, no. 1, pp. 46–53, 1992.DOI
- [17]Kungang Zhang, Anh T Bui, and Daniel W Apley, “Concept drift monitoring and diagnostics of supervised learning models via score vectors,” Technometrics, vol. 65, no. 2, pp. 137–149, 2023.arxiv.org/abs/2012.06916
- [18]Harold Hotelling, “Multivariate quality control illustrated by air testing of sample bombsights,” in Techniques of Statistical Analysis, Churchill Eisenhart, Millard W. Hastay, and W. Allen Wallis, Eds., pp. 111–184. McGraw-Hill, New York, 1947.
- [19]Alexander G Tartakovsky, “Asymptotic performance of a multichart cusum test under false alarm probability constraint,” in Proceedings of the 44th IEEE Conference on Decision and Control. IEEE, 2005, pp. 320–325.DOI
- [20]Alexander G Tartakovsky, “Asymptotic optimality of mixture rules for detecting changes in general stochastic models,” IEEE Transactions on Information Theory, vol. 65, no. 3, pp. 1413–1429, 2019.arxiv.org/abs/1807.08980
- [21]Andrew R Barron, The exponential convergence of posterior probabilities with implications for Bayes estimators of density functions, Department of Statistics, University of Illinois Champaign, IL, 1988.