arXiv:2608.26515cs.ITAug 2026

Manuscript Offprint

arXiv:2608.26515

Sharp Minimax Regret for Infinite-Memory Logistic Prediction

Vaneet Aggarwal

Abstract

We study online prediction for a specific finite-alphabet, exogenously driven source with infinite input memory. Independent Rademacher inputs (Ut)(U_t) are observed sequentially, and the next binary mark has logit ∑j=1tθjUt+1−j\sum_{j=1}^t \theta_j U_{t+1-j}, where ∣θj∣≤rj|\theta_j| \leq r_j and ∑jrj≤B\sum_j r_j \leq B. Regret is expected cumulative excess log loss. Lag jj can affect prediction by scale rjr_j and enters only nT,j=T−j+1n_{T,j} = T - j + 1 prediction rounds, leading to the lag-resolved spectrum ΓT(r)=∑j=1Tlog⁡(1+nT,jrj2)\Gamma_T(r) = \sum_{j=1}^T \log\left(1 + n_{T,j} r_j^2\right). For every summable envelope, a localized Bayesian mixture proves RT(r)≤CΓT(r)\mathcal{R}_T(r) \leq C \Gamma_T(r). For exponential and polynomial envelopes, under the stated finite-sample dimension condition, a Toeplitz-design converse proves RT(r)≥cΓT(r)\mathcal{R}_T(r) \geq c \Gamma_T(r), with constants allowed to depend on the fixed decay parameters and the logit bound. Thus ΓT(r)\Gamma_T(r) is the minimax cumulative-regret scale for this source class in these canonical regimes, giving Θ(α−1log⁡2T)\Theta(\alpha^{-1} \log^2 T) for rj=Ae−αjr_j = A e^{-\alpha j} and Θ(T1/(2s))\Theta(T^{1/(2s)}) for rj=Aj−sr_j = A j^{-s}, s>1s > 1. The converse is specific to the exogenous lagged model and is not a profile-only theorem for arbitrary stationary infinite-memory sources. Retaining only the most recent hh inputs costs order ∑j>hnT,jθj2\sum_{j > h} n_{T,j} \theta_j^2, yet the same worst-case truncation profile can correspond to polynomially different regret. A scaled online Newton predictor attains the spectrum upper bound.

1 Introduction

Many sequence predictors use a finite context even when the data-generating mechanism has no finite Markov order. This occurs in event streams, categorical time series with covariates, and recurrent filters: recent observations are retained explicitly, while older observations are discarded or compressed. The statistical question is not only how accurately a finite context approximates the full conditional law, but also how difficult it is to learn the unknown law acting on that context. These two costs need not have the same scale.

We study this question under logarithmic loss. At round tt, a causal predictor observes X1:tX_{1:t} and assigns a conditional distribution qt(⋅∣X1:t)q_t(\cdot \mid X_{1:t}) to Xt+1X_{t+1}. If the true source law is PP, with conditional distribution ptP(⋅∣X1:t)p_t^P(\cdot \mid X_{1:t}), its expected cumulative regret is

RegT(Q;P)=∑t=1TEPKL(ptP(⋅∣X1:t)∥qt(⋅∣X1:t)∥.(1)\mathrm{Reg}_{T}(Q;P)=\sum_{t=1}^{T}\mathbb{E}_{P}\mathrm{KL}\Big(p_{t}^{P}(\cdot\mid X_{1:t})\left\|q_{t}(\cdot\mid X_{1:t})\right\|. \tag{1}

Thus regret is the excess log loss relative to a predictor that knows the source parameter, not relative to the best constant or finite-window rule fitted in hindsight. By the chain rule for relative entropy, (1) equals KL(P∥Q)\text{KL}(P\|Q) for the joint law induced by the sequential predictor. Minimizing its worst-case value over a source class is therefore the average minimax redundancy of that class; see Clarke and Barron (1990), Merhav and Feder (1998), and Rissanen (1996). We state this identity formally in Proposition 3.1.

Markov order alone cannot determine this regret. An unrestricted binary order-h Markov model has a separate transition parameter for every context, whereas a logistic model may use only h coefficients shared across all contexts. Both condition on a length-h binary history and therefore encounter 2h2^{h} possible contexts, but their effective dimensions differ exponentially. This distinction is already visible in classical Markov redundancy and context-tree prediction (Willems, Shtarkov, and Tjalkens 1995; Atteson 1999), and becomes more consequential for unbounded-memory classes (Wu, Hosseini, and Santhanam 2018). Predictive-state and predictive rate–distortion theories likewise emphasize that useful memory is determined by conditional future laws rather than by literal lag length (Crutchfield and Young 1989; Shalizi and Crutchfield 2001; Marzen and Crutchfield 2016). Our aim is to quantify the additional cost of learning those laws online.