Search arXiv⌕ Search

arXiv · 2611.13760

Recursive memory for prediction and generation

Abstract

Recurrent and state-space language models compress the past into a state of fixed size. The state must answer questions about the future now, and it must remain useful as new tokens arrive, including tokens the model samples itself. We show that the second requirement can cost far more memory than the first. For a known hidden Markov source with positive transition probabilities, a state of $O(\log(1/\varepsilon))$ bits answers every question about the future to accuracy $\varepsilon$, however far ahead it looks, because the Bayesian filter forgets its rounding errors. Generating the future is different. When a model feeds each sampled token back into its state, the small errors in its next-token distributions add up, and $T$ tokens can require a state of order $\log(T/\varepsilon)$ bits. The lower bound comes from the KL chain rule: at every step, a model with $K$ states pays for approximating the true next-token distribution by one of only $K$ distributions. The argument applies to any source, including a language model continuing a prompt, and a small-ball estimate makes it tight for two-state sources. The extra $\log T$ disappears if the model keeps private randomness, or if error is budgeted per token, as in perplexity. Statistics of the recent past show the same gap between describing and maintaining. The number of ones among the last $n$ bits takes $\log n$ bits to write down. But if each bit is a noisy copy of the one $n$ steps earlier, tracking that count to a mean-square error $E^2$ well below its variance costs order $n/(1+E^2)+\log n$ bits. Information about each bit must be kept until the bit leaves the window, and a queue holding the counts of recent blocks keeps just enough of it.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Pengbin Feng, Chunlei Meng. 2026-11-10. Recursive memory for prediction and generation. https://searcharxiv.org/abs/2611.13760

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

An interpretable semiparametric Bayesian machine learning model for high-dimensional circulating epigenetic signatures of multiple myeloma

Genome-wide 5-hydroxymethylcytosine (5hmC) profiles of circulating cell-free DNA (cfDNA) can reveal epigenetic changes associated with multiple myeloma (MM), but their analysis requires adjusting for known risk factors while selecting a few informative genes from thousands. We propose semiparametric probit Bayesian Additive Regression Tree (spBART), in which the covariates enter a linear component with interpretable coefficients and the genes enter a sparse tree ensemble whose posterior inclusion probabilities select genes conditional on the covariates. The analysis selects eight candidate loci, \textit{IL1RAP}, \textit{ST5}, \textit{HERC6}, \textit{KL}, \textit{MYO1E}, \textit{ELK3}, \textit{CAPN2} and \textit{UBR4}. Selection of \textit{IL1RAP} connects the circulating signature to the \textit{IL-1/IL-6} signaling axis implicated in MM. The final model achieves an area under the receiver operating characteristic curve of 0.96 and a Brier score of 0.09 in the held-out validation set. Our simulation studies support the modeling strategy when adjustment variables act approximately linearly, but false discoveries exceed the nominal target in application-sized settings with correlated features. Overall, the proposed model identifies a compact set of circulating epigenetic signatures that are highly associated with MM.

stat.AP↗

Hybrid Time Series Models for Short-Term Sea-Level Forecasting

Accurate tide forecasts are essential for coastal management, navigation, flood-risk reduction, and infrastructure protection. Observed sea level can be decomposed into astronomical and non-astronomical components, the latter mainly driven by meteorological effects. This study investigates a hybrid framework for hourly sea-level forecasting that combines harmonic analysis (HA) for the astronomical component with data-driven models for the non-astronomical contribution. The approach is evaluated at six tide-gauge stations with different tidal regimes: Venice, Trieste, Saint-Malo, Vardø, Nikiski, and Nagasaki. Four data-driven model classes are considered: (i) autoregressive and (ii) functional autoregressive models with exogenous variables; (iii) generalized additive models and autoregressive neural networks; and (iv) a novel semi-functional k-nearest-neighbours approach that combines similarity in recent non-astronomical trajectories and meteorological conditions. Point forecasts are complemented by upper quantile forecasts, obtained by historical simulation of out-of-sample errors, targeting the right tail of the sea-level distribution. At the 24-hour horizon, hybrid models reduce the mean absolute and root mean squared errors of HA by 54.9% and 52.9% on average, while the best hybrid model reduces the HA quantile score by 40--60%. HA systematically underestimates the right tail. No hybrid specification dominates across locations, although the generalized additive model is the most competitive overall. For Venice, replacing observed meteorological covariates with operational Global Forecast System weather forecasts leaves 24- and 48-hour accuracy virtually unchanged. A cost--loss analysis of the MoSE flood-barrier system, based on these real-time forecasts, shows that hybrid forecasts substantially reduce decision losses relative to HA.

stat.AP↗

Networked wealth and mortality in the Agincourt Health and Demographic Surveillance System, 2009--2018

Background. Though resources embedded in social networks appear to shape health, past studies have not assessed this relationship directly. Using data from Agincourt Health and Demographic Surveillance System in South Africa, we examined the spillover effect of household wealth on mortality in the family network. Methods. We analysed cohort data from 2009 to 2018 to estimate the Average Total Effect (ATE) of household wealth on deaths, decomposing this into an Average Direct Effect (ADE) and Average Spillover Effect (ASE). We estimated these quantities separately for all deaths, deaths among children (<5 years old), premature deaths (among ages 15-59), and deaths among elders (60+). Results. Over the study period, 8750 individuals died. Overall, a one standard deviation increase in household wealth led to an ATE of -0.61% (95% CI: -0.74 to -0.48, P<0.001), an ADE of -0.53% (95% CI: -0.63 to -0.42, P<0.001) and an ASE of -0.08% (95% CI: -0.18 to 0.01, P=0.075). For premature mortality, these effect estimates were -0.37% (95% CI: -0.47 to -0.26, P<0.001), -0.29% (95% CI: -0.37 to -0.21, P<0.001), and -0.08% (95% CI: -0.15 to 0.00, P=0.038), respectively. Conclusions. Results provide evidence for the protective effect of household wealth on premature mortality across family relationships.

stat.AP↗