Manuscript Offprint
arXiv:2611.08160Patch Attention Wisely: Understanding Patch Length in Attention-Based Forecasting
Abstract
Attention-based time series forecasters commonly group consecutive observations into patches. Patch length is known to have a substantial impact on forecasting performance, yet its selection remains largely empirical. We develop a theoretical framework that explains why patch length matters for forecasting accuracy and provides a principled basis for its selection. For linear state-space models, we derive an exact factorization of the forecasting coefficient matrix that separates forecast dynamics from filtering dynamics. We show that dominance of a single forecast component at long horizons does not generally imply a rank-one representation. This explains why longer horizons alone need not reduce representational complexity. We combine the factorization with estimation bounds to develop a patch-selection criterion that balances representation and estimation errors under temporal dependence. Our analysis establishes conditions under which balanced patching is justified and clarifies how predictive structure, head count, training sample size, and long-run dependence enter the selection criterion.
1 INTRODUCTION
Patching has become a basic design choice in attention-based time-series forecasting. A history of length can be presented as point tokens or as non-overlapping patches of length . Increasing shortens the token sequence and can make long contexts computationally feasible. Within one attention head, a shared linear value map applies the same within-patch weights to every patch, and the query-key scores only rescale this pattern from patch to patch. Patch length is therefore not only a computational choice: it also determines which forecasts a fixed number of heads can express and how many coefficients must be learned from data. With limited data or long histories, an unsuitable patch length can leave too many coefficients to estimate or too little flexibility to fit the target, even when it reduces attention cost.
Prior work has established that patch tokens can be both accurate and efficient. PatchTST (Nie et al., 2023) showed that patching preserves local temporal structure, reduces the number of tokens, and permits longer look-back windows, and patch tokenization is now used in large pretrained forecasters such as TimesFM (Das et al., 2024). It has also shown that a single temporal resolution need not suffice: MTST (Zhang et al., 2024) uses parallel patch scales, Pathformer (Chen et al., 2024) combines scales through adaptive pathways, and TimeSqueeze (Ankireddy et al., 2026) moves patch boundaries according to local signal complexity. Complementary studies compare point-wise, patch-wise, and variate-wise tokens (Chen et al., 2025), and a controlled analysis finds that adaptive patching should be compared against carefully tuned uniform patches (Zucchi et al., 2026). These works explain how to build effective tokenizers and when they perform well empirically.
Most existing work on patching is algorithmic and empirical: it proposes tokenization schemes and compares their accuracy and computational cost, but it provides no statistical theory for choosing a fixed patch length for a given forecasting model. Prediction errors alone cannot isolate the effect of patch length, because changing also changes the number of tokens, how parameters are shared across time, the number of coefficients to estimate, the optimization problem, and the computational cost. Multiscale and adaptive architectures face the same ambiguity. Moreover, non-overlapping patching does not discard any observation
*Correspondence to: junyu.chen@rug.nl.
but only regroups the observations into patches, so any loss of forecasting power must come from the model applied after this regrouping. A statistical theory of patch selection must therefore first characterize how patch length changes that model and then determine when one patch length should be preferred.
We provide such a characterization for a multi-head linear attention model. Each head applies one set of within-patch weights, and its query-key scores determine how strongly these weights are used in each patch. Summed over heads, these contributions form an coefficient matrix that contains the weight on every observation in the history, and with heads this matrix has rank at most . When the attention weights do not depend on the input and every patch position has its own learnable key, the model can represent exactly the coefficient matrices of rank at most . Choosing therefore reshapes the same length- linear forecast into a different matrix, which can change both the rank needed to represent it and the difficulty of estimating it. This reduction to reduced-rank regression isolates the effect of patch length without claiming to describe every component of a full Transformer.
A central difficulty is that a long horizon does not make the forecast simple to represent. In a partially observed dynamical system, a long-horizon forecast may be dominated by one slowly evolving state component, and it is tempting to conclude that one weighting pattern then suffices. We show that this is not true, because the forecaster must first recover that slow component from observations contaminated by faster latent dynamics and measurement noise. Using a linear state-space model, we factor the optimal forecast coefficients into horizon-dependent weights and horizon-independent filtering patterns. The factorization shows that the component dominating the distant future can still require several filtering patterns to recover. It also identifies patch aliasing, in which a patch length makes two different filtering patterns produce identical weights across patches. Consequently, the best low-rank approximation can keep a positive relative error as the horizon grows.
We relate the infinite-past coefficients to the best forecast from a finite window and bound the error of rank-constrained least squares fitted to overlapping windows of one dependent series. The bound separates approximation error from an estimation term governed by the dimension of the rank-constrained coefficient class. When the rank constraint is active, this dimension is , which is smallest when the patch length and the number of patches are equal. This suggests patch lengths near when approximation errors are comparable, although with enough data a less balanced reshape can be preferable if it
represents the target more accurately.
In summary, we contribute (i) an exact identity linking head count and patch length to the coefficient class of the model, (ii) a state-space factorization and a long-horizon floor on the relative approximation error, which separate the components that drive the forecast from the filtering patterns needed to recover them, (iii) finite-window and dependent-data bounds that expose the approximation-estimation tradeoff in patch selection, and (iv) a mixture setting in which input-dependent attention weights can improve the forecast because the observed history reveals which system generated it. Simulations show that intermediate patch lengths near help most when training data are scarce, and that their advantage narrows as the sample grows.
Related work. Our question differs from showing that attention can implement a Kalman filter or learn an autoregressive rule in context (Goel and Bartlett, 2024; Sander et al., 2024; Lu and Yang, 2025): we study how a specified forecasting model distributes coefficients over a patched history. The non-overlapping coefficient reshape is related to Page-matrix methods, which use low-rank structure for time-series estimation and prediction (Damen et al., 1982; Agarwal et al., 2018), and contrasts with the overlapping Hankel matrices common in realization theory (Glover, 1984). Spectral learning of dynamical systems provides complementary low-dimensional descriptions of long-memory predictors (Hazan et al., 2017; Rashidinejad et al., 2020). We combine these structural ideas with reduced-rank regression (Izenman, 1975; Velu and Reinsel, 1987) and dependent time-series estimation (Basu and Michailidis, 2015). The new link is that the rank constraint is induced directly by attention heads and changes shape with the patch length.
Let be a centered stationary scalar process with finite second moments. We forecast , , from the window . Let denote the patch length, assume that divides , and write for the number of non-overlapping patch tokens. Define
(1)
Thus , with rows ordered from recent to older patches and observations within each row ordered in reverse chronological order. Patching rearranges the window without discarding observations.
To describe the attention mechanism, let contain token embeddings incorporating patch content and position. Head forms the arrays
where and . Standard dot-product attention normalizes query-key similarities through a softmax. To obtain a tractable model, we replace this normalization by unnormalized scores with a fixed factor . The resulting all-token attention operation is
The scores may be signed and need not sum to one, and the factor depends only on the token count.
For forecasting, we specialize this operation to one forecast query per head, and we compute each value by applying the same linear map to the raw patch. Write for the transpose of row of an input . A forecast-token representation , constructed from the observed window and horizon, supplies the query . Let be the column vector corresponding to row of . We take , where the same matrix is used for every patch. A linear patch embedding that is common to all patches can be absorbed into . The analyzed forecast consists solely of these attention outputs combined through bias-free linear output weights . With , it is
Because every patch passes through the same value and output maps, the coefficients on the raw observations have the following structure.
Proposition 1 (Coefficient matrix). Let and . Then
and for every input Z.
Each head supplies one within-patch weighting pattern , whose contribution across patches is determined by . Unlike the query-key score matrix, acts directly on the observations. Its rank bound holds even for input-dependent attention weights, although then varies with Z and the forecast is generally nonlinear.
For tractability, we restrict the model to fixed attention weights: each head uses a constant forecast query and keys that depend only on the patch position, so the weights do not depend on the input and . This restriction suits linear state-space forecasting, whose target is the best linear forecast from the window, and allows representation and estimation errors to be separated explicitly. It is an additional assumption, not a consequence of Proposition 1.
If every patch position has its own learnable key and the value and output maps are unrestricted, every matrix of rank at most m can be represented with m heads (Appendix B.2). Thus the predictor class induced by Equation (4) with fixed attention weights is exactly
Fitting this model by least squares is therefore reduced-rank regression on the reshaped window.
Let denote the coefficient vector of the best linear forecast of from , and let denote its mean squared prediction error. Assume . For each divisor of , let be the corresponding reshape:
Lemma 2 (Reshaping invariance). With column-stacking vectorization, there is a permutation matrix such that . Consequently,
has the same eigenvalues as for every . For every ,
where . In particular, the minimum risk over unrestricted linear forecasts is for every patch length.
Patching does not change the best linear forecast, but it changes the shape of the coefficient matrix that m heads must approximate. Define the target rank and covariance-weighted approximation error by
The approximation error vanishes if and only if . Otherwise, its size depends on both the reshaped coefficients and the covariance of the observations. Patch selection balances this error against the difficulty of estimating a matrix in (Section 4).
3 FORECAST HORIZON AND APPROXIMATION LOSS UNDER A STATE-SPACE MODEL
Section 2 characterizes forecasting loss through the target coefficients and their approximation by attention heads, but leaves the role of horizon implicit. To characterize this loss further, we use a state-space model as a tractable benchmark. Forecasting then involves estimating the current latent state from noisy observations and propagating it to the forecast horizon. This separation makes the horizon dependence of the coefficients explicit, allowing us to study their rank and approximation loss under patching. In particular, recovering a single dominant state component at long horizons can still require several temporal filtering patterns, so its patch representation need not have rank one.
3.1 The State-Space Model and Its Forecast Coefficients
Let
where , , and . The centered noises are mutually independent and independent across time, with finite second moments, process covariance , and measurement variance . Assume , where denotes the spectral radius of a matrix , and stationary initialization.
To expose the filtering structure, first consider prediction from the entire observed past. Let be the steady-state Kalman predictor gain and set . The best linear predictor of based on satisfies
Consequently, the best linear forecast from the infinite past is
(13)
We now split the coefficients in (13) into filtering modes. A mode is a dynamical component associated with an eigenvalue and its eigendirection. Filtering modes are the modes of , whose powers describe how
past observations reveal the current state, and forecast modes are the modes of A, which carries that estimate to the forecast horizon. This separates the effect of the horizon, which changes their weights, from the effect of patch length, which changes how they are arranged. These two roles need not have the same effective dimension.
Keep the latest L coefficients and arrange them like the input:
The matrix keeps the first coefficients of the infinite-past forecast, whereas is the best forecast that uses only the window. We also write when displaying the horizon and window length explicitly. Theorem 22 in Appendix D bounds this difference, so the spectral results for below also describe .
3.2 From Filtering Modes to Patch Patterns
We next express the coefficients in (13) through filtering modes and connect these modes to patch patterns. Assume that and have distinct eigenvalues and are diagonalizable over . Write and , where and are the corresponding spectral projectors. Define
and the geometric patterns
(16)
Theorem 3 (Filtering-mode factorization). For every ,
so . The filtering factors are independent of the forecast horizon.
Each filtering mode contributes one across-patch pattern and one within-patch pattern, since . The horizon changes their weights , rather than their shapes. Complex terms occur in conjugate pairs and sum to a real matrix. Appendix C provides the proof.
3.3 A Relative Filtering Floor
We now show that a low-rank patch representation can keep a non-vanishing relative approximation error, even when one forecast mode dominates as . To see this, suppose one forecast eigenvalue dominates: is simple and , with . Set
(18)
and assume . Let . Rescaling by removes the decay of the dominant forecast mode and reveals the limiting coefficient matrix . For a rank budget , the following theorem shows that the relative approximation error in operator norm converges to that of this matrix. Thus a longer horizon need not remove the relative error caused by using too few heads.
Theorem 4 (Long-horizon filtering floor). For every ,
Let and . If , then
The limit is positive when .
The limiting rank depends on how many filtering modes contribute to the dominant forecast component. If the patch matrix has enough rows and columns, and these modes remain distinct both across patches and within each patch, their patterns are linearly independent. The following corollary identifies the limiting rank with the number of active filtering modes.
Corollary 5 (Active filtering modes and patch aliasing). Let . If and the nodes and are each pairwise distinct, then .
The active modes depend on the system, while patching determines whether their across-patch patterns remain distinct. For example, and produce identical across-patch patterns when p is even. We call this coincidence patch aliasing.
The floor is relative. Writing , for fixed ,
Absolute approximation error therefore vanishes with the horizon, even though its share of the squared coefficient size remains positive when .
4 CHOOSING PATCH LENGTH
Choosing a patch length from finite data also requires accounting for estimation error. We connect the population results to the finite-window target, establish an estimation bound, and derive its implications for patch choice. Throughout, , , and are fixed.
Truncating an infinite-past forecast need not yield the optimal coefficients for a finite observation window. Under the diagonalizability assumption on in Section 3, the finite-window argument underlying Theorem 22 in Appendix D gives, for fixed and any fixed ,
uniformly over admissible patch lengths. Since , the difference becomes geometrically negligible as increases. In particular, when , Theorem 3 gives , without requiring exact low rank of .
4.1 Estimation from Overlapping Windows
To account for estimation, let be a global least-squares estimator over , fitted to the same n consecutive windows for each p in the finite nonempty set of candidate divisors of L. Use the same windows for every candidate. The empirical counterpart of the population approximation problem is
For an independent stationary test window, the conditional prediction risk of this fitted coefficient is , by the projection identity in Section 2. It therefore suffices to control this prediction-norm error.
The estimation bound depends on the dimension of the coefficient class , denoted by
Theorem 6 (Finite-sample prediction bound). Maintain the stationary state-space assumptions of Section 3, and additionally assume Gaussian process and measurement noises. There exist positive constants , depending only on the state-space model, H, and L, such that, for every , if
(25) then, with probability at least , simultaneously for every , any global minimizer in (23) satisfies
(26)
The constants are common to all patch lengths and independent of , , , and . The bound applies whether or not the rank constraint is active.
In (26), n counts the observed training windows. Their overlap and serial dependence are accounted for in the constants and the sample-size requirement. The Gaussian assumption in Theorem 6 can be relaxed under suitable independence and tail conditions on the driving noise. Sub-Gaussian and sub-exponential extensions require adapting the concentration bounds in Appendix E, while retaining the deterministic oracle argument. The constants, rates, and sample-size requirements may change. The result is a prediction-error upper bound, not an exact bias-variance decomposition, and does not require the constrained estimator to be unbiased.
4.2 Patch Selection and the Approximation-Estimation Tradeoff
For fixed , , , and confidence level, the logarithmic term in (26) is common to all candidates. Comparing the stated prediction bounds therefore reduces to minimizing
where and are the constants in Theorem 6. Since the approximation errors and these constants may be unknown, (27) is an oracle comparison of prediction bounds, rather than a feasible selection rule or an exact expression for prediction risk.
When the rank constraint is active, , minimizing for fixed and is equivalent to minimizing , which favors a balanced choice of patch length and patch count, with when admissible. Balanced patches therefore minimize the estimation penalty in (27), but need not minimize the approximation error .
Theorem 7 (Balanced patch lengths). Maintain the conditions of Theorem 6, including (25), and suppose for every . Let minimize . If
for every with , then every minimizer of (27) minimizes over . In particular, if , it uniquely minimizes (27).
Condition (28) allows a less balanced patch to approximate the target better, provided that this improvement is smaller than its additional estimation penalty. If is constant across candidates, as when for every candidate, the criterion and have exactly the same minimizers. If several divisors attain the minimum dimension, differences in approximation error determine their ordering. The margin shrinks as n grows: for two candidates with but , the criterion at p is no larger than that at q precisely when
Equality gives a tie, and the comparison applies only to sample sizes satisfying (25). The smaller class is favored below this threshold and the more accurate representation above it. The square-root rule is therefore not universal: its advantage comes from estimation.
Extreme and intermediate patch lengths. The two extreme patch lengths, point tokens and a single token containing the whole window , lie at one end of the tradeoff in (27). Their coefficient matrix is a single column or row, so its rank is at most one and one head represents every linear forecast: for any target. The price is that the rank constraint is inactive. Nothing is shared across patches, the fitted class is the unrestricted set of linear forecasts on the window, and , the largest possible dimension. Rank one is automatic here and is not a form of compression (Lemma 29). An intermediate patch length with makes the opposite trade. All patches must reuse the same m within-patch weighting patterns, which lowers the dimension to . This sharing can introduce approximation error, since unless . Taking q to be an extreme patch length in (29) shows that the criterion is no larger at the intermediate patch exactly when , that is, when the approximation error it adds is at most the estimation penalty it saves. This favors intermediate patches when data are limited or the reshaped target is close to rank m. Because the saving shrinks with n, an extreme patch length is eventually preferred whenever . Computational cost, which the bound omits, also falls as the token count L/p decreases (Appendix F.6).
5 NONLINEAR DECODING AND SCOPE
Although our guarantees concern a structured attention model, they isolate mechanisms relevant to more general patch-based forecasters. Patch length changes how temporal information is grouped and how representations are shared, affecting both predictive approximation and learning complexity. The distinction between forecasting and filtering also explains why a longer horizon need not simplify extracting predictive information from the past. These insights motivate tuning patch length jointly with model capacity and using balanced patches as a reference when representation errors are comparable. More expressive architectures introduce additional effects, but the underlying representation–estimation tradeoff remains a useful organizing principle.
Proposition 8 (Nonlinear decoding after shared patch encoding). Under the notation of Section 2, suppose is jointly Gaussian. For a shared encoder and any measurable decoder with square-integrable output,
Here is the encoder width, and the decoder receives only the encoded patches .
Thus the population approximation limit also applies to nonlinear attention and multilayer decoders operating only on the encoded patches. This result concerns encoder width. It does not extend the head-count characterization or the estimation bound to arbitrary nonlinear models. The proof is in Appendix B.9.
6 SIMULATIONS
6.1 Design
We generate stationary paths from a three-state model of the form (11), whose parameters are given in Appendix I.1. The forecasting target is , using the latest observations. We use window lengths , horizons , and independent training series.
The fitted model is one-head attention with fixed attention weights: a constant query, a learnable key for each patch position, and the same linear value map for every patch. It can represent every rank-one coefficient matrix, so the experiment isolates how patch length affects learning. Appendix I gives the design details, the population construction, diagnostic definitions, and reporting protocol.
6.2 Forecast Horizon and the Interior Patch Range
Figure 1 reports excess MSE: the held-out mean of , where is the analytic finite-window conditional mean. At the population level,
Table 1: One-step test MSE in units of for the balanced patch and both extremes. Entries are means standard errors over 50 data repetitions, and counts independent training series.
| 64 | 5 | 238.6 2.2 | 184.4 1.3 | 238.9 2.1 |
| 64 | 25 | 182.8 0.8 | 172.0 0.6 | 182.8 0.8 |
| 64 | 200 | 171.6 0.6 | 169.8 0.6 | 172.0 0.6 |
| 144 | 5 | 320.7 3.0 | 194.1 1.7 | 328.4 3.7 |
| 144 | 25 | 200.5 1.0 | 173.5 0.7 | 201.5 1.0 |
| 144 | 200 | 174.7 0.6 | 170.2 0.6 | 175.4 0.6 |
total forecast risk is the sum of this excess risk and the Bayes residual variance. Measuring the distance to the conditional mean removes the unpredictable noise in the target, which would otherwise hide differences between fitted models.
Across the displayed horizons, the curves have a broad interior minimum near , with larger errors at both extremes. The preferred range moves toward larger patches when the window grows, consistent with the dimension balance in (24). However, neighboring patches remain competitive: at the longest horizon, a larger neighboring patch can match or slightly improve on the balanced reference, without a statistically resolved difference. The evidence therefore favors a range of patch lengths rather than a unique optimum.
Fitted excess error also increases across these horizons. A more distant target does not automatically make the one-head forecasting problem easier, even as its predictable signal becomes smaller. Appendix J.4 reports the population diagnostic for the persistent relative filtering error predicted by Theorem 4. The fitted curves additionally reflect finite data and the training procedure.
6.3 Training Size and Interpretation
Figure 2 and Table 1 show that interior patches have their largest advantage when training data are scarce. As more independent series become available, prediction error falls throughout the grid and the absolute gap between interior and extreme patch lengths narrows. This pattern appears at both window lengths. The preferred interior patch also varies across the displayed horizons, so the balanced reference need not minimize every fitted curve.
The results are consistent with the estimation term in (27) and with the extreme-versus-intermediate comparison in Section 4. Here the approximation error of interior patches is negligible (Appendix J.3), so the
Excess MSE over the analytic optimum

Figure 1: Excess MSE across forecast horizons for fixed one-head attention, with independent training series. Curves show means over 50 data repetitions. Shaded bands are pointwise 95% bootstrap intervals. Dashed lines mark . Patch candidates are displayed at equally spaced categorical positions, and panel scales differ.
Test MSE under different training sizes

Figure 2: Total test MSE at for fixed one-head attention as the number of independent training series grows. Means and pointwise 95% bootstrap intervals use 50 repetitions. Other plotting conventions match Figure 1.
disadvantage of the extremes reflects estimation.
The experiment nevertheless does not identify class dimension as the sole explanation: network parameter count is minimized at the same patch length in this architecture, and regularization and optimization can affect the fitted curves. Taken together, the horizon and sample-size comparisons support testing an interior range around , with validation used to choose among nearby candidates. Two window lengths alone cannot establish a square-root scaling law, and Appendix J.7 examines nine.
7 CONCLUSION
This paper makes three contributions. First, we show that multi-head patch attention with shared linear values forecasts through a coefficient matrix of rank at most the head count, even with input-dependent weights; for Gaussian data, no decoder on a width- shared linear patch encoding can do better than the best rank- matrix. Second, for linear state-space models, an exact factorization shows that a dominant long-horizon component need not be rank-one representable. Third, with dependent-data estimation bounds, we derive a patch-selection criterion that balances representation and estimation errors and identifies when balanced patches are justified. Future work includes learned content-dependent attention.
References
Agarwal, A., Amjad, M. J., Shah, D., and Shen, D. (2018). Model agnostic time series analysis via matrix estimation. Proceedings of the ACM on Measurement and Analysis of Computing Systems, 2(3):40:1–40:39.
Ankireddy, S. K., Seleznev, N., Nguyen, N. H., Wu, Y., Kumar, S., Huang, F., and Bruss, C. B. (2026). TimeSqueeze: Dynamic patching for efficient time series forecasting.
Basu, S. and Michailidis, G. (2015). Regularized estimation in sparse high-dimensional time series models. The Annals of Statistics, 43(4):1535–1567.
Candès, E. J. and Plan, Y. (2011). Tight oracle inequalities for low-rank matrix recovery from a minimal number of noisy random measurements. IEEE Transactions on Information Theory, 57(4):2342–2359.
Chen, P., Zhang, Y., Cheng, Y., Shu, Y., Wang, Y., Wen, Q., Yang, B., and Guo, C. (2024). Pathformer: Multi-scale transformers with adaptive pathways for time series forecasting. In International Conference on Learning Representations.
Chen, Y., Céspedes, N., and Barnaghi, P. (2025). A closer look at transformers for time series forecasting: Understanding why they work and where they struggle. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 7763–7780.
Damen, A. A. H., van den Hof, P. M. J., and Hajdasinski, A. K. (1982). Approximate realization based upon an alternative to the Hankel matrix: The Page matrix. Systems & Control Letters, 2(4):202–208.
Das, A., Kong, W., Sen, R., and Zhou, Y. (2024). A decoder-only foundation model for time-series forecasting. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 10148–10167.
Glover, K. (1984). All optimal Hankel-norm approximations of linear multivariable systems and their -error bounds. International Journal of Control, 39(6):1115–1193.
Goel, G. and Bartlett, P. (2024). Can a transformer represent a Kalman filter? In Proceedings of the 6th Annual Learning for Dynamics & Control Conference, volume 242 of Proceedings of Machine Learning Research, pages 1502–1512.
Hazan, E., Singh, K., and Zhang, C. (2017). Learning linear dynamical systems via spectral filtering.
In Advances in Neural Information Processing Systems, volume 30.
Izenman, A. J. (1975). Reduced-rank regression for the multivariate linear model. Journal of Multivariate Analysis, 5(2):248–264.
Krahmer, F., Mendelson, S., and Rauhut, H. (2014). Suprema of chaos processes and the restricted isometry property. Communications on Pure and Applied Mathematics, 67(11):1877–1904.
Lu, J. and Yang, S. (2025). Linear transformers as VAR models: Aligning autoregressive attention mechanisms with autoregressive forecasting. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 40848–40867.
Nie, Y., Nguyen, N. H., Sinthong, P., and Kalagnanam, J. (2023). A time series is worth 64 words: Long-term forecasting with transformers. In International Conference on Learning Representations.
Rashidinejad, P., Jiao, J., and Russell, S. J. (2020). SLIP: Learning to predict in unknown dynamical systems with long-term memory. In Advances in Neural Information Processing Systems, volume 33.
Rudelson, M. and Vershynin, R. (2013). Hanson–Wright inequality and sub-Gaussian concentration. Electronic Communications in Probability, 18(82):1–9.
Sander, M. E., Giryes, R., Suzuki, T., Blondel, M., and Peyré, G. (2024). How do transformers perform in-context autoregressive learning? In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 43235–43254.
Velu, R. P. and Reinsel, G. C. (1987). Reduced rank regression with autoregressive errors. Journal of Econometrics, 35(2–3):317–335.
Zhang, Y., Ma, L., Pal, S., Zhang, Y., and Coates, M. (2024). Multi-resolution time-series transformer for long-term forecasting. In Proceedings of the 27th International Conference on Artificial Intelligence and Statistics, volume 238 of Proceedings of Machine Learning Research, pages 4222–4230.
Zucchi, F., Xie, Y., Zhang, C., Luo, K., Lampert, T., and Li, Z. (2026). Adaptive patching is harder than it looks for time-series forecasting.
Patch Attention Wisely: Understanding Patch Length in Attention-Based Forecasting Supplementary Materials
A GUIDE AND NOTATION
The appendix follows the argument of the main paper: attention representation, state-space approximation, finite-window prediction, estimation from dependent data, and patch selection. Each result is followed by its proof. The remaining sections treat context adaptation, practical implications, and the simulations.
-
Appendix B proves the coefficient-matrix identity and gives explicit fixed positional attention constructions for Section 2.
-
Appendix C proves the filtering-mode factorization, the long-horizon floor, and the shared-horizon extension from Section 3.
-
Appendix D relates the truncated infinite-past coefficients to the optimal finite-window forecast.
-
Appendix E derives the dependent-data rate and proves Theorem 6.
-
Appendix F states a conditional selection criterion, proves the patch-selection results, and collects the dimension and computational-cost calculations.
-
Appendix G studies adaptation across generating systems.
-
Appendix H discusses when context dependence can help and how patch lengths should be compared in practice.
-
Appendix I gives the simulation diagnostics and evaluation protocol.
-
Appendix J reports additional experiments: a second observation design, the population filtering floor, head counts for rank-one and rank-three targets, and nine window lengths.
A.1 Notation and types of results
We keep the notation from the main paper. The context contains observations, each patch contains observations, and is the number of patches. The forecast horizon is , and denotes a rank or head budget. The main paper uses for the fixed head budget. The matrix is obtained by truncating the infinite-past forecast to the latest observations and reshaping its coefficients into rows and columns. The matrix instead denotes the best coefficient matrix when the forecaster is allowed to use only those observations. These matrices are close for a long stable context, but they need not be identical.
For a coefficient error , the prediction norm is the mean squared change in the forecast caused by . It is the relevant error measure because it accounts for correlation among lagged observations. When ordinary Frobenius or operator norms are used instead, the text says so explicitly. All additional symbols are introduced in the section where they are needed.
The supplement distinguishes three kinds of statements. Representation results describe which fixed forecast coefficients an attention model can express. Population results describe the best predictor when the data-generating system is known. Estimation results describe what can be learned from a finite, dependent trajectory. Keeping these levels separate is important: a low-rank coefficient matrix does not by itself guarantee that a trained attention model will find it.
B ATTENTION REPRESENTATION
This section establishes the representation claim used in Section 2. The coefficient-matrix identity gives the rank upper bound. The fixed positional construction gives the converse. The subsequent extensions treat shared horizons, signed softmax pooling, approximation, and input-dependent attention weights.
B.1 Coefficient-matrix identity
Let contain the raw patches as rows. For head , write its score for patch as
Unlike softmax weights, these scores may be negative and need not sum to one. The factor is only a scaling convention. When models with different token counts are compared, the convention should be kept fixed. The shared linear value path reduces to a vector that tells the head how to weight observations within every patch. Thus head contributes , an outer product. Define the resulting coefficient matrix and forecast by
Proof of Proposition 1. With , expand the forecast:
Each summand is an outer product, so its sum has rank at most . Vector-valued values do not change this conclusion for this one scalar linear output, because and are fixed and shared across positions. Nonlinear values, query-dependent output maps, and other paths need separate treatment. No converse head lower bound for adaptive functions follows from this pointwise identity.
B.2 Exact fixed positional pooling
Let a context of length be divided into nonoverlapping patches , and stack as the rows of . For , define
Use N data tokens and one fixed forecast-query token,
where is the jth absolute positional basis vector. A permutation-symmetric hard mask admits all N data positions and excludes the forecast token itself. This is equivalent to assigning the forecast token a softmax logit. A finite mask penalty changes the softmax normalizer and is outside the exact result.
For one scalar unnormalized pooling head, put
For heads, stack . A standard multi-head output projection and scalar output layer have the form
Any desired head-mixing vector is implemented by and , giving .
Theorem 9 (Exact fixed positional linear pooling). Suppose and choose
There is a one-layer fixed positional pooling construction with tokens, width , heads, scalar query/key/value dimensions, a hard mask, standard , and a scalar output layer that equals for every . Head uses
and (37) uses .
Proof. Head returns . The positional key factor exactly cancels the fixed token-count factor. Summing the heads and using (38) gives .
Remark 10 (Positional parameters). The explicit width uses one-hot positional coordinates. A -specific learned positional table may instead store , reducing width to while retaining positional parameters. The smaller width does not eliminate the order information needed to store a general factor.
Proposition 11 (Restricted-architecture head lower bound). Consider one hard-masked layer with a fixed forecast query, scalar values that are fixed linear functionals of , content-independent scalar keys that depend only on position, standard plus a scalar linear output layer, and no residual or feed-forward bypass. Every such m-head unnormalized pooling layer represents a coefficient matrix of rank at most . Thus is necessary within this full restricted architecture.
Proof. After absorbing the scalar query and output coefficient, head contributes some rank-one matrix . The sum of such matrices has rank at most . This fixed-operator lower bound does not extend to arbitrary content-dependent functions, nonlinear values, depth, or another input-to-output path. Vector-valued linear values alone do not remove the rank bound under the shared scalar output weights of Proposition 1.
B.3 Shared pooling across finitely many horizons
Corollary 12 (Finite shared multi-horizon pooling). Let for satisfy
Use data tokens and one-hot horizon-query tokens, all of width . One hard-masked layer with scalar heads and shared key/value projections outputs at query by setting
The construction uses tokens and explicitly stores a table .
Proof. The mask admits exactly the data tokens. At horizon query , head outputs . Summing over heads gives . The factor counts the admitted data tokens, not the total tokens.
Remark 13 (No unseen-horizon extrapolation). The corollary is transductive over the displayed horizons. It provides no coefficient for an unseen horizon. Such an extension requires a specified feature map and a structural rule, for example .
B.4 Signed softmax realization
Theorem 14 (Exact signed fixed positional softmax pooling). Under (38), fix . Let , , and
A hard-masked fixed positional softmax-pooling layer with tokens, width , 2h scalar heads, standard , and a scalar output layer represents exactly. The head uses query 1, positional logit , and value . The head-mixing vector in (37) is .
Proof. The attention probability is
The signed output for pair is therefore
because the two offsets cancel. Summing over proves the claim.
Remark 15 (Architecture and conditioning restrictions). The theorem fixes one query, a permutation-symmetric hard mask, absolute positional keys, scalar patch-linear values, tied values within each sign pair, one layer, no bypass, and signed head mixing through and a scalar output layer. Moreover, its numerical conditioning depends on the chosen factorization and : rescaling and leaves fixed but changes logits, output weights, and perturbation sensitivity.
B.5 Approximation and perturbation bounds
Let be a best rank- Frobenius approximation to .
Theorem 16 (Approximation and covariance-weighted prediction error). Either exact construction applied to gives a fixed positional pooling output such that
If , then
Proof. The first statement is Cauchy–Schwarz and Eckart–Young–Mirsky. Vectorizing the Frobenius inner product gives the covariance-weighted statement.
Lemma 17 (Softmax perturbation). For , . Consequently, if every signed logit in Theorem 14 is approximated within in , the induced coefficient matrix obeys
Proof. Along the segment between and , the softmax Jacobian bounds the -to- derivative norm by 2. Each head coefficient perturbation is an outer product of the changed probability vector and . The triangle inequality over the 2h heads proves (47).
B.6 The role of positional information
Proposition 18 (Order information under permutation-symmetric pooling). Fix a forecast query and a mask that treats all admitted data positions symmetrically. If every token is formed by the same map with no absolute, relative, causal-distance, convolutional, or other order-dependent information, the pooling output is permutation invariant. A linear is permutation invariant for every only if all rows of are equal. Therefore a general coefficient matrix needs some symmetry-breaking order information under these assumptions.
Proof. The pooling operation depends only on the multiset of key-value pairs. Invariance of under arbitrary row permutations forces every pair of rows of to agree. The proposition does not privilege absolute one-hot positions and does not apply to asymmetric masks or content maps that already encode order.
Relation to existing attention theory. Goel and Bartlett study causal softmax Transformers that approximate Kalman filtering (Goel and Bartlett, 2024), Sander et al. study autoregressive learning in context (Sander et al., 2024), and Lu and Yang connect linear attention to dynamic VAR computations (Lu and Yang, 2025). Here the object is a fixed finite-window coefficient matrix obtained by a nonoverlapping reshape. Page-matrix and spectral-LDS methods provide related representations of time-series predictors (Damen et al., 1982; Rashidinejad et al., 2020). The constructions above specify how the positional tokens, mask, query/key/value maps, and scalar output layer realize that matrix. They do not provide recursive filtering or optimization guarantees.
B.7 Input-dependent attention weights and the full Jacobian
All learned parameters are held fixed when taking derivatives or population expectations. The following results distinguish the pointwise coefficient matrix from the derivative of the complete forecast.
Proposition 19 (Attention weights and the full input Jacobian). At differentiability points of , the Frobenius gradient is
Only the first term is the derivative obtained by freezing the attention weights at the current input. The second need not vanish or preserve the rank bound.
Proof. Apply the product rule to each term and sum.
Why the Jacobian rank can be larger. To see the distinction algebraically, use one-based indices, let one head have , take scalar keys , and fix the scalar query. Then
The coefficient matrix has only its first column nonzero and therefore has rank at most one. By contrast, the first two columns of the input Jacobian are and . They are generically linearly independent, so the Jacobian can have rank two. Thus content-dependent keys can increase sensitivity rank even with a fixed query and a rank-one coefficient matrix.
Three different matrices. The unmasked token mixing matrix has shape and rank at most . It is different from the coefficient matrix and the input gradient . A triangular causal mask can invalidate the token-matrix rank bound. None of these statements bounds the number of trainable parameters in an arbitrary context encoder.
B.8 Comparison of adaptive attention weights with a fixed benchmark
Proposition 20 (Comparison with a fixed spectral benchmark). Let be deterministic, let be its rank- truncated SVD, and let . For the payload-linear adaptive model, when the right side is finite,
Proof. Decompose the prediction error into . Use , pointwise Cauchy–Schwarz for the first term, and the deterministic covariance bound for the second.
The second term contains representation and fitting error. The singular tail alone cannot control it. Since depends on Z, replacing this term by an unconditional covariance eigenvalue times its expected squared matrix norm is unjustified without an additional condition. Taking compares to the finite-window oracle. Taking compares to the truncated infinite-past kernel and still requires the finite-window bridge. This proposition supplies no sample-size rate for learned attention.
B.9 Nonlinear decoding after shared patch encoding
Proof of Proposition 8. For fixed , Gaussian conditioning implies that the optimal decoder is linear: for some . Since
and the products range over all matrices of rank at most m, the projection identity (9) yields
The last infimum is .
C STATE-SPACE FILTERING AND APPROXIMATION
The state-space calculation separates two jobs. The transition matrix A propagates the current state toward the forecast horizon, while the filtering matrix F describes how past observations reveal that state. The proofs below show that patching does not create new filtering modes: it only splits each lag pattern into an across-patch part and a within-patch part.
C.1 Filtering-mode factorization
Proof of Theorem 3. The proof has one idea: each exponential lag pattern splits into an across-patch factor and a within-patch factor because . The forecast horizon changes the coefficient of that pattern, not its shape.
By spectral decomposition,
Substituting into (13) gives
With ,
which is exactly (17). For nonreal modes this identity is over , with conjugate terms summing to the real matrix . Each summand is rank one over , which proves the stated rank bound. Because is real, its real and complex matrix ranks agree.
C.2 Long-horizon filtering floor
Proof of Theorem 4. Since is real, nonreal eigenvalues occur in conjugate pairs with equal modulus. The uniquely dominant is therefore real. Consequently and the rescaled matrices below are real, even when individual filtering factors are complex.
Theorem 3 gives
The triangle inequality and prove (19). Weyl's inequality implies
Let , , and . If , then and
By Eckart–Young, is the relative best rank-h operator-norm error, and (20) follows. If , then .
C.3 Active modes and patch aliasing
Proof of Corollary 5. Let be the filtering modes coupled to the dominant forecast component. Restrict the two modal factor matrices to the active set , and write
The columns of form a Vandermonde matrix with nodes , and the columns of form a Vandermonde matrix with nodes . The distinct-node assumptions and make both matrices full column rank. The diagonal middle factor is nonsingular, so Sylvester's rank inequality, applied twice, gives . The limiting rank- operator error is whenever .
C.4 Absolute approximation risk
Write and assume . The operator-norm bound from Theorem 4 then implies
The rest of the argument converts this matrix bound into a bound on the best rank-h approximation error.
Let be the closed cone of matrices of rank at most , and let . Distance to any nonempty set is 1-Lipschitz in the ambient seminorm, hence
The covariance upper bound, the inequality , and Theorem 4 bound the right-hand side by . This proves the root-risk bound. Since and , the squared-risk bound follows. Finally, is a cone, so for every nonzero scalar , . Taking proves the displayed absolute expansion.
C.5 Two-mode closed form
For , write , where , , and . Let and . The nonzero squared singular values are the eigenvalues of
Define
Then
Here . For real modes it equals , recovering the simpler real formula. The Gram entries are finite geometric sums. Replacing by gives the exact two-mode floor. For rank-one approximation with , the two-mode floor is positive exactly when the limiting matrix has rank two. Under two active modes this is equivalent to , and .
C.6 Filtering patterns shared across horizons
For a positive integer of consecutive horizons, define
The factorization gives
The same filtering patterns can therefore be reused across horizons, with different weights . Formally, the tensor's canonical polyadic rank, the minimum number of separable three-factor terms, is at most over . The real bound requires real factors. Reusing patterns suggests a joint model, but does not prove that learning horizons together reduces error. Any weights used to combine horizon-specific risks should be fixed before testing.
Derivation of (64). Using the spectral decompositions of and ,
For each , the dependence on , , and separates into three factors. The tensor is therefore a sum of at most rank-one CP components over . If all factors are real, this is also a real CP-rank bound. With nonreal conjugate modes, no unqualified equality between real and complex CP rank is asserted.
D FINITE-WINDOW PREDICTION AND APPROXIMATION
This section supplies the population bridge needed for patch selection. It first records how the covariance geometry changes low-rank approximation, then bounds the effect of replacing the infinite past by a finite observation window. The final result expresses that bound in the notation of Section 4.
D.1 Covariance-weighted approximation
The coefficient matrix is judged in prediction norm, not in ordinary Frobenius norm. The next proposition explains when the familiar singular-value picture remains exact and, more generally, how covariance eigenvalue bounds translate between the two norms.
Proposition 21 (Approximation risk under structured designs). If with positive-definite factors, then equals the squared singular-value tail of . In particular, under isotropy it equals . More generally, if , then
Proof. Under column-major vectorization and a Kronecker covariance,
Because the two covariance factors are positive definite, the map is bijective and preserves rank. The weighted rank- problem is therefore exactly the ordinary Frobenius rank- approximation of , proving the singular-value-tail formula by Eckart-Young.
For any error matrix ,
Taking the infimum over with proves the lower bound in (66). Evaluating the upper quadratic form at the ordinary truncated-SVD optimizer gives the upper bound. Under isotropy both inequalities are equalities.
D.2 The finite-window bridge
Truncating an infinite-past forecast leaves its retained weights unchanged. A predictor restricted to the window can do better by refitting those weights. Define and let be its patch reshape. The superscript distinguishes this finite-window target from .
Let be the essential upper bound of the observation spectral density, normalized so that . Stability and imply positive lower and finite upper spectral bounds, hence a unique finite-window target. Choose and with , and set .
Theorem 22 (Finite-window approximation bound). Uniformly over divisors p of L,
If , the squared Frobenius difference is at most .
Proof. The omitted old observations contribute a tail to the infinite-past forecast. Refitting the retained window can recover only the part of that tail predictable from the retained observations. Orthogonal projection cannot increase its mean squared size. This is why the same tail bound controls the change in coefficients measured by prediction error.
Let , ordered consistently with , and write the full-past forecast as
Let be orthogonal projection in onto the span of . Since the full-past forecast error is orthogonal to the observed past,
Projection contraction and the spectral-density upper bound give
The middle inequality follows directly from the stated Fourier convention and Parseval's identity: for every square-summable scalar filter , . Moreover,
and projection contraction gives
This proves (69) after the fixed permutation from lag order to patch order. Positive definiteness of makes the finite-window coefficient unique. The square root of approximation risk is distance to the closed rank-at-most-h set in the norm, hence is 1-Lipschitz. This proves (70). The spectral lower bound gives the Frobenius conclusion.
Because the bound decreases geometrically with , the spectrum of the truncated coefficient matrix describes the finite-window approximation problem increasingly well. Exact low rank of one target, however, does not imply exact low rank of the other.
D.3 Transfer to the patch-selection approximation error
Theorem 23 (Finite-window approximation). Under the state-space and stable-filter assumptions of Section 3, for every divisor of ,
The squared discrepancy admits a geometrically decreasing bound in , uniformly over patch lengths, as quantified in Theorem 22.
Proof. For any , the triangle inequality gives
Taking the infimum over , and then interchanging and in the same argument, proves (76).
Theorem 22 gives the stated geometric bound on , uniformly in . Finally, Theorem 3 gives . If , is feasible in the minimization defining , which yields (77).
E ESTIMATION FROM ONE DEPENDENT TRAJECTORY
The estimation argument has three stages. A deterministic oracle inequality reduces prediction error to curvature, score, and comparator bounds. Gaussian concentration then establishes these bounds simultaneously over the candidate patches, ranks, and horizons. Combining the two gives the uniform rate and the finite-sample theorem in the main paper. Universal constants are denoted by and may change from line to line. Readers interested in the final bounds can go directly to Corollary 27 and the proof of Theorem 6 below.
E.1 Deterministic oracle inequality
The proof compares the fitted coefficients with the best allowed population coefficients. It bounds how much the training loss can favor an incorrect coefficient difference because of noise. The three assumed events are proved for the dependent Gaussian data in the subsections below.
Fix a candidate patch length , rank bound , and horizon . Let and define
Write for a global rank-constrained empirical least-squares minimizer and for its population residual. The regression score matrix is . Let be a population rank-h optimizer and . Assume constants such that, for every rank-at-most-2h coefficient difference , and . Also assume . These are the restricted-curvature, population-upper-bound, and oracle-residual conditions used below.
Theorem 24 (Oracle inequality on dependent-data events). On the restricted-curvature, population-upper-bound, and oracle-residual events stated above and verified in Appendix E,
(80)
Proof. Let be a population rank- optimizer, set and . Then . The empirical basic inequality is
Using in the empirical prediction norm,
Nuclear/operator duality and imply
Restricted curvature, the assumed oracle-residual concentration , and Young's inequality give
Finally,
and .
For completeness, makes the population objective coercive on the closed rank-at-most- variety, so exists. On the stated restricted-curvature event, for every rank-at-most- matrix . Hence the empirical loss is also coercive on that closed variety and a global empirical minimizer exists. The result concerns such a global minimizer and does not assert that a particular nonconvex algorithm finds it.
E.2 Gaussian model and spectral bounds
Assume the scalar stationary process is generated by
where , , , , and the two noise sequences are mutually independent. With the convention
the spectral density is
Define
These quantities are finite and strictly positive. Indeed, with
stability and give the explicit bounds
Thus , unlike alone, records both persistence and nonnormal resolvent amplification.
E.3 Lag filters and candidate classes
Fix a context length . For every patch , put , and let be the fixed permutation/reshape of . For any matrix , let be its coefficient vector in lag order and define
Because patching is a permutation,
Consequently,
For the consecutive training set , define
Let be a nonempty finite set of admissible divisors, let be a nonempty finite set of horizons, and, for every , let be a nonempty finite set of positive candidate ranks. Assume . Put
There are curvature classes, signed score-polarization classes, and fixed-oracle classes. Nonemptiness implies that their total is at most . This is the union-class count used with . For , define
E.4 Forecast residuals and spectral scales
For each , let be the population least-squares coefficient for predicting from . Its residual
is jointly Gaussian with the lag vector and is independent of that lag vector at the same time because population orthogonality and joint Gaussianity imply independence. Define the residual transfer polynomial, variance, and spectral maximum by
All of these are finite deterministic functionals of the SSM and the finite-window projection.
The one-sided sufficient restricted-curvature scale used below is
It is only a conservative sufficient scale for the curvature proof. The factor L is the exact Fourier-envelope penalty in (93), not an independence-blocking assumption.
E.5 Gaussian concentration tools
For a metric space , define , where , , and . This is the generic-chaining functional used in the following Gaussian chaos bound. It is the Gaussian specialization obtained from Theorem 3.5 and Proposition 2.6 of Krahmer et al. (2014).
Lemma 25 (Gaussian chaos supremum). Let and let be a bounded set of deterministic real matrices with a common number of columns. Define
There are universal constants such that, for every , with probability at least ,
(106)
The assumptions of this imported result are met below because the entire finite observation vector is Gaussian and can be written as a deterministic covariance square root times a standard Gaussian vector. All indexing matrices are deterministic population objects. The proof also uses the fixed-matrix Hanson–Wright inequality, Theorem 1.1 of Rudelson and Vershynin (2013).
Let denote the smallest number of radius- balls in metric covering . The rank-class entropy bound is
for . This is Lemma 3.1 of Candès and Plan (2011) and also follows directly by covering the two Stiefel factors and singular values in an SVD. Dudley's entropy integral applied to (107) is finite and contributes the square root of the exponent in (97).
E.6 Simultaneous dependent-data events
Use the consecutive training targets . All variables needed by every horizon and lag lie in the single Gaussian vector
Thus the following result accounts for the full overlap among the training examples, whose context-to-target spans have lengths .
Theorem 26 (Uniform dependent-data events). There is a universal constant such that, with probability at least , the following statements hold simultaneously for every , , and .
First, for every with ,
Second, for
Third, let be the patch reshape of , let
Then
If , the left side is identically zero.
Proof. Step 1: restricted curvature. Represent with . For a lag coefficient , let and define . Stationarity and the spectral integral give
The second line follows because the covariance matrix of a length- sample from a process with spectral density has operator norm at most its spectral supremum, followed by (93).
Apply Lemma 25 to . Equations (107)–(114) and Dudley's integral give
With proportional to , the six terms in (106) are bounded, respectively, by universal multiples of
Using shows term by term that their sum is bounded by the right side of (109) for . Both quadratic forms are homogeneous of degree two, so rescaling gives the claim for every nonzero . It is trivial for . The stated union-class count then proves the simultaneous curvature event.
Step 2: score concentration. For the score, let and put . The residual spectral density and contemporaneous projection orthogonality give
(117)
The last equality is the trace orthogonality needed for centered polarization. It follows because is the population projection onto the full L-lag span. Operator/nuclear duality gives
For every such , polarization yields
Apply Lemma 25 to the two matrix classes . Their parameters satisfy
(120)
Write , so . Term by term, the six quantities in (106) satisfy
(121)
Here we used , , and . This proves (111). The two signs and the stated union-class count give simultaneity over .
Step 3: the fixed population comparator. Finally, for a fixed nonzero , the same convolution representation has
The fixed-matrix Hanson–Wright inequality applied to , followed by a union bound over the finite triples, proves (113).
E.7 Uniform rank-constrained regression rate
For every triple, let a global empirical rank-constrained estimator satisfy
and define the approximation error
Corollary 27 (Uniform one-trajectory oracle rate). Suppose
Then, after increasing the universal constant if necessary, with probability at least , simultaneously for all ,
(126)
If additionally
then the last display simplifies to
Proof. Condition (125) makes the right side of (109) at most . Hence the restricted-curvature event holds with . The same condition implies the fixed-oracle event . Theorem 24, with , gives
Substitute (111) and use to obtain (126). Condition (127) absorbs the quadratic score term into the linear term.
Interpretation. The sample-size condition can be written as the one-sided implication
This is only a sufficient curvature scale. It is not an information-equivalent sample size and no reverse implication is claimed. The score bound separately contains the factor . The overlap cost is not asserted to be minimax sharp. It arises from the worst-case Fourier concentration of an arbitrary low-rank reshaped lag filter. A sharper theorem would replace the envelope by a localized Fourier-width functional of the rank class.
E.8 Proof of the main finite-sample bound
Proof of Theorem 6. For each candidate , apply Corollary 27 with rank and horizon . This rank gives exactly the same coefficient class as , including when the original rank constraint is inactive. Thus its approximation term is , and its population quadratic form is the squared prediction norm used here. There is one candidate rank per patch length, so its confidence term is .
In this proof, the dimension formula can be written as . Since , both and . Consequently,
Also . These inequalities, together with , show that (25) implies both (125) and (127) when is sufficiently large. The spectral factors entering these conditions depend only on the model, , and : reshaping preserves the population forecast residual and the eigenvalues of the context covariance.
The estimation term in (128) is a fixed spectral prefactor times
Since , this expression is bounded by
Absorb the factor three and the spectral prefactor into , and take to be the approximation coefficient in that corollary. This proves (26) simultaneously over all candidates with probability at least . The constants are independent of , and . The underlying concentration result accounts for overlap and serial dependence among training windows.
For an independent stationary test window, the projection identity (9), conditional on the fitted coefficient, adds the common residual risk to this squared prediction-norm error. This proves the stated interpretation as a bound on prediction risk.
E.9 Squared and root risk under exact coefficient rank
We combine the finite-window bridge with the uniform estimation bound. Here and is the observation spectral upper bound.
Corollary 28 (Squared and root risk under exact coefficient rank). Assume the finite-window bridge conditions of Theorem 22, the conditions of Corollary 27, and the linear-score regime (127). Fix a candidate for which the reshaped infinite-past kernel satisfies . Then, on the simultaneous event of Corollary 27,
Consequently,
In particular, the finite-window contribution to root risk is , while the displayed estimation contribution is on the square root of the prediction-risk scale.
Proof. Because itself is an admissible rank- matrix, . The root-risk bridge (70) therefore gives
and hence . Substitution into (128) proves (134). Apply to obtain (135). Finally, by Theorem 22.
E.10 Scope and possible refinements
The logical chain is
The concentration tools in Appendix E establish the stated uniform prediction bound for global rank-constrained least-squares minimizers. The analysis does not provide a localized improvement of the worst-case envelope, data-driven estimates of the spectral constants, an optimization guarantee for finding the global minimizer, or an oracle theorem for selecting from the same trajectory.
A possible localized refinement. A sharper patch-dependent bound would require upper and lower bounds for
on a localized secant or tangent class around the population optimizer. Establishing that this width is smaller than the global bound under verifiable spectral conditions on the coefficient matrix remains outside the present analysis. Neither Theorem 26 nor Corollary 27 depends on such an improvement.
F PATCH SELECTION AND COMPUTATIONAL TRADEOFFS
The results below combine the approximation and estimation terms from the preceding sections. We first state a conditional selection criterion that allows a declared dependence adjustment and calculate the dimension of the admissible coefficient class, including the extreme cases. We then prove the selection statements from Section 4, give a margin condition for the conditional criterion, and account for computational cost.
F.1 When balanced patches are a useful reference
To state a heuristic that allows a user-specified dependence adjustment, we now write for a generic rank budget and for a declared effective-sample proxy. For fixed rank bound , the largest-dimensional part of the coefficient class has dimension
In the unsaturated case this is , minimized over continuous at . At either extreme, or , every coefficient vector has a rank-one reshape, but the class still has free coefficients. Low rank alone therefore does not imply low complexity.
A simple fixed-regression comparison is
where is a penalty scale and is a declared dependence proxy. The estimation theorem does not supply a universal choice of these quantities. When approximation error and the proxy are constant across patches, divisors near minimize this criterion. Appendix F.5 gives a margin condition allowing small approximation differences. When representation error changes substantially with , it can outweigh the dimension advantage.
Nor is the parameter count of an attention network. The simulation control has separate query, positional-key, and value parameters, and two parameterizations of the same coefficient class can have different initialization, regularization, and optimization behavior. This distinction is not resolved by the fixed-regression bound and must be assessed empirically for the implemented architecture.
F.2 Dimension and extreme patch lengths
The manifold of real matrices of exact rank has dimension : write and subtract the -dimensional change-of-basis indeterminacy. The top attainable rank is , proving (139). In the interior,
Thus minimizing dimension is equivalent to minimizing , whose continuous minimizer is by differentiation or the arithmetic-geometric mean inequality. For saturated candidates with , the dimension is . For interior candidates it is . Thus a divisor minimizing is always dimension-minimizing. If every candidate is saturated, all dimensions equal , so no unique preference follows.
Lemma 29 (Rank one at extreme patch lengths is not compression). For a scalar series with context length and any , both extreme reshapes and have matrix rank at most one. Their rank-one approximation error is therefore zero, but the corresponding rank class has dimension at both extremes. Under dense token mixing, the analytic cost proxy is at and at .
Proof. At , the coefficient matrix is . At , it is . Each has rank at most one. With attainable rank , the rank-class dimension is in either case. The dense nonoverlapping token-mixing proxy is , which gives the two stated values.
F.3 A sufficient condition from the forecast kernel
The filtering analysis provides a structural sufficient condition for the theorem. By Theorem 3, makes the truncated infinite-past kernel representable at every patch length. This does not imply that the optimal finite-window coefficient has rank at most m. The relevant question is instead whether the discrepancy between these two coefficients is small enough to preserve the estimation advantage of balance.
Corollary 30 (A sufficient condition from the forecast kernel). Maintain the conditions of Theorems 6, 3, and 22. Suppose for every , and let minimize . If
for every with , then every minimizer of (27) minimizes over .
The corollary follows because the representable kernel is an admissible approximation to the finite-window target:
Its condition therefore requires the cost of using this approximation to be smaller than the estimation saving, even relative to a higher-dimensional candidate with no approximation error. Theorem 22 bounds the discrepancy geometrically in . The displayed condition specifies how small it must be for the comparison at hand. Exact low rank of the finite-window target is unnecessary.
Theorem 7 does not require . With fewer heads, however, the preceding sufficient argument is unavailable, and patch choice must account for the approximation errors described by the filtering spectrum and (70). A single dominant forecast component does not by itself remove the filtering patterns needed to recover that component from past observations. Nor does having fewer heads imply that patch length is immaterial: its effect depends on how well the reshaped target can be approximated.
F.4 Proofs of the main patch-selection results
Proof of Theorem 7. On the stated candidate set, minimizing is equivalent to minimizing . To prove the theorem, the difference between the criterion at and at a dimension-minimizing is
Under (28), every candidate of higher dimension has a strictly larger criterion than . Moreover, , with equality only at . Hence , when admissible, is the unique dimension minimizer. Rearranging the inequality between the criteria at and gives (29), with equality corresponding to a tie.
Proof of Corollary 30. By Theorem 3, when . Feasibility and nonnegativity of approximation error therefore give . The stated condition therefore implies (28).
F.5 A margin condition for balanced patches
Fix and abbreviate . Let minimize over the candidate set. Assume and a patch-independent proxy . If every candidate has the same dimension, the margin below is unnecessary. Otherwise the minimum positive dimension gap in the statement is well-defined.
Lemma 31 (Patch-selection margin). Let minimize over a finite candidate set with at least two distinct dimensions. If
then every minimizer of over belongs to the dimension-minimizing set.
Proof. Let be any dimension minimizer. For every with ,
Thus no candidate outside the dimension-minimizing set can minimize .
F.6 Computational-cost tradeoffs
Let collect the statistical penalty scale and let price dense token mixing. Suppressing approximation error gives
Its positive continuous minimizer solves
For fixed , the dot-product attention contraction instead costs . For , a corresponding linear-mixing proxy is
Its continuous minimizer is . These formulas show why the computational part of patch selection must match the architecture. Evaluate the admissible patch lengths directly, since not every integer divides . The formulas omit projection and encoder costs. They do not predict total running time or neural-network test error. Softmax attention with a single query also has mixing cost linear in . The rank-based penalty is a fixed-regression heuristic, not a count of learned attention capacity. For learned attention, use the validation procedure in Appendix H and report the full prediction-error versus cost comparison, not only the selected patch.
Derivation of the cost minimizers. For the compute proxy (147), differentiation yields
Multiplying by gives (148). When , the cubic is negative at and has a unique positive zero above it. If dominates , balancing with gives the regime.
For the linear-mixing proxy (149), the derivative vanishes at and the second derivative is . Restricting to clips the continuous optimum. A divisor constraint requires evaluating the discrete candidates. This calculation includes neither a learned query/key complexity term nor an approximation curve.
F.7 Interpretation and validation
The theory does not say that a longer patch is always a stronger token, or that is universally optimal. A patch token is the vector . Its length determines how much local temporal structure is packaged together, while determines how many tokens must interact. Table 2 summarizes the competing forces. Here denotes a declared dependence-adjustment proxy used only in the conditional selector. It is not asserted to equal the one-sided sufficient curvature scale proved in Appendix E.
Table 2: Approximation, estimation, and computational considerations in patch selection.
| Force | Quantity represented in the theory | Typical pressure on |
|---|---|---|
| Predictive approximation | or its multi-horizon aggregate | Depends on the coefficient reshape under a rank constraint. Patching alone is lossless. No monotone direction is proved. |
| Statistical complexity | , with when | Toward a balanced factorization near only when approximation and the dependence proxy vary little. |
| Serial dependence | Patch-dependent score concentration and restricted curvature | Smaller magnifies complexity control. The direction is not universally larger because can change with tokenization. |
| Token mixing | for dense all-token mixing, and for fixed-width linear attention | Larger patches reduce mixing. The scale belongs only to the dense quadratic proxy. |
| Multiple horizons | Weighted-average or worst-case approximation over | One shared patch only if horizon-specific curves share a near-minimizer. Otherwise multiresolution or horizon-specific tokens. |
At , each scalar observation is a token and . The matrix is necessarily rank one because it has one column, so a zero rank-one approximation error carries no compression content. These facts identify two costs of pointwise tokenization: it leaves all coefficients free and maximizes dense token mixing. The separate weak-token hypothesis concerns the local structure that learned attention scores must recover. It is an architectural consideration, not a theorem that scalar tokens are intrinsically uninformative.
For implementation, use the candidate divisors of , estimate forecast loss with chronological validation and guard gaps, and prespecify how computational cost enters the comparison. Report the entire patch-risk curve as well as the selected value. The curve is scientifically more informative than a single optimizer because it reveals whether the choice is driven by approximation, statistical uncertainty, or compute. For multiple horizons, prespecify the horizon weights or worst-case criterion rather than choosing them after observing test performance.
G CONTEXT ADAPTATION ACROSS SYSTEMS
For one known Gaussian system, the optimal finite-window forecast is already linear, so input-dependent attention weights cannot lower the population Bayes risk. One setting in which adaptation can be useful is when the observed context reveals which forecasting rule should be used. A mixture of systems provides a simple example: the history updates the posterior probability of each system, and those posterior probabilities mix the corresponding linear forecasts.
Let be the forecast target. For any square-integrable forecast , conditional expectation gives
Here in the model under consideration. Thus adaptation has a strict population advantage over the best fixed linear predictor exactly when that linear predictor differs from with positive probability. Merely varying the weights does not establish this advantage.
G.1 Mixture model and posterior weights
Let be the number of generating systems and draw a latent index once per independent episode, with prior probabilities summing to one. Conditional on , generate a stationary episode from a specified stable mean-zero Gaussian system. There is no switching within an episode. Let have conditional covariance , and let be the optimal finite-window coefficient matrix in system . These coefficients need not have the same rank as the truncated infinite-past kernels. Writing for the centered Gaussian density with covariance , the posterior is
This probability uses observed inputs only, not the future target. Identical past covariances give constant posteriors, so context adaptation is not guaranteed for arbitrary choices of the systems.
G.2 Oracle forecast and rank truncation
Theorem 32 (Finite-mixture oracle and spectral truncation). Under the preceding assumptions, the Bayes forecast is . Choose deterministic best rank-h Frobenius approximations and define . Writing ,
(153)
Proof. Conditional Gaussian regression gives . The tower property gives . Orthogonality of to any square-integrable function of gives the excess-risk identity. Set . Conditional Jensen yields
For any integrable , . Apply this identity, then bound the conditional quadratic form by and use truncated SVD.
G.3 Implications for adaptive attention
This is an oracle mixture approximation result, not a claim that one dot-product attention layer exactly implements Gaussian posterior inference. The here are posterior probabilities over systems. They are not the signed patch coefficients . The effective mixture coefficient has rank at most , which can exceed . Shared right-factor subspaces can reduce this upper bound. For a learned , its squared error to is at most twice the right side of (153) plus . Controlling the latter requires an approximation and learning analysis of the actual architecture. The single-system, one-trajectory rate in Appendix E is not a theorem for the non-Gaussian marginal mixture or for neural training.
H DISCUSSION AND IMPLICATIONS
This section collects practical implications of the results: when context-dependent attention weights can help, and how patch lengths and head counts should be compared in practice.
H.1 When context dependence can help
For a known Gaussian system, the optimal finite-window forecast is linear. Context dependence can become useful when each episode is generated by an unknown system and the observed window contains information about its identity. For a fixed patch length, let index the generating system, let be its optimal finite-window coefficient matrix, and write . If each system is centered and Gaussian, the Bayes forecast under squared loss is
The posterior weights generally vary with , so this forecast can be nonlinear even though the forecast within each system is linear. Theorem 32 in Appendix G bounds the approximation error when these posterior weights are available. Learning the weights and representing the resulting forecast require a separate analysis of the attention architecture. Fixed-system experiments alone cannot establish this potential benefit of adaptation across systems.
H.2 Computational cost and validation
Computational cost introduces a separate consideration. At fixed widths and head count, dense all-token mixing costs , whereas associative unnormalized attention and single-query attention have mixing costs of order , where . Larger patches reduce these mixing costs, but the total cost also includes patch projections and any context encoder. A computational penalty that varies with changes the objective in (27) and may change its minimizer. Appendix F.6 gives illustrative mixing-cost calculations. Runtime and memory should also be measured for the implemented model.
In practice, compare patch lengths and head counts using common training and validation splits, comparable tuning budgets, and a fixed linear or positional-pooling control. For a single trajectory, use chronological splits with a gap that prevents training and validation windows and targets from overlapping. For independent series or episodes, hold out entire series or episodes. Select patch length, head count, checkpoints, and other tuning parameters using validation data. Prespecify how prediction error is traded against computational cost and how results are aggregated across horizons, and reserve the test set for final evaluation.
Pointwise tokenization () can produce weak tokens for learned attention: queries and keys formed from individual observations do not directly encode local temporal patterns. Empirical ablations demonstrate benefits from replacing such tokens with patches (Nie et al., 2023). This is compatible with , which concerns the representational capacity of the fixed linear class, rather than the learning of informative attention scores. Weak-token effects thus provide an additional architectural motivation for patching that is not captured by the present fixed-weight estimation bound.
I SIMULATION DIAGNOSTICS AND REPRODUCIBILITY
This section separates calculations that depend only on the known state-space model from errors introduced by finite samples and model fitting. All population quantities use the same lag ordering as the main paper. Random seeds, candidate grids, optimizer settings, stopping rules, the number of windows per series, and the computing environment are listed in Appendix J.1.
I.1 Design of the main simulations
The simulations in Section 6 use the three-state model (11) with
The latent components have different persistence levels, and each observation combines all three states with measurement noise. Process and measurement noises are independent Gaussian draws. Starting from process covariance and measurement variance 0.3, we rescale both so that the stationary observation variance is one (Appendix I.2), and we initialize each independent path from its stationary distribution.
We consider window lengths , horizons , and training sets of independent series. Unlike the theoretical , which counts consecutive windows from one trajectory, this counts independent series. Each series supplies overlapping input–target windows, and entire series are kept separate across the training, validation, and test sets. For each window length, the patch grid contains the balanced reference , nearby divisors, and the extremes and . Appendix J.1 lists the training protocol.
I.2 Population construction
Begin with the transition and observation matrices in (156), process covariance , and measurement variance 0.3. If solves
then the unscaled stationary observation variance is . Dividing both noise covariances by gives
Thus . This common rescaling of the process and measurement noise does not change the steady-state Kalman gain. The predictor gain and are obtained from the stabilizing discrete Riccati solution under the predictor convention in Equation (12).
For an independent check that does not rely on the Kalman recursion, let . The exact finite-window coefficient solves
for . Reshaping this vector gives for every candidate . The population rank- approximation error is then
These calculations distinguish approximation error from the error of a trained network.
I.3 Population filtering-floor diagnostic
For each and horizon , form the truncated infinite-past matrix from Equation (14). For a one-head model, report both the absolute prediction-norm error and the relative spectral diagnostic
whenever . The first quantity can shrink with as the predictable signal decays, whereas Theorem 4 allows the second to converge to a positive limit. Plotting both prevents a relative filtering floor from being mistaken for a nonvanishing absolute forecast error. The finite-window analogue replaces by computed from (159).
I.4 Fitted-model protocol and robustness sweeps
Each repetition begins with newly simulated stationary series. Entire series, rather than overlapping windows, are assigned to training, validation, or test sets. All patch candidates within a repetition use the same simulated series, splits, initialization schedule, tuning budget, and checkpoint rule. Any standardization beyond the population scaling above is computed from the training split and then held fixed. Validation data select the checkpoint and any optimization hyperparameters. Test data are used once for the reported comparison.
The horizon sweep holds the number of training series fixed and evaluates every . The training-size sweep holds the data-generating model, window length, horizon, and per-series window construction fixed while varying the number of independent training series. For each setting, report all admissible patch candidates, not only , and . Excess MSE is evaluated against the analytic conditional mean obtained from (159). Total MSE is evaluated against the realized future observation. Pointwise bootstrap intervals resample complete data repetitions, not individual overlapping windows, and table standard errors are computed across those repetitions.
Because in these simulations counts independent series while in the one-trajectory bound counts consecutive windows, the experiments test the qualitative approximation–estimation tradeoff rather than calibrating the constants in Theorem 6. The exact settings are listed in Appendix J.1.
J ADDITIONAL EXPERIMENTS
This section reports further simulations with the fixed attention model of Section 6. Appendix J.1 lists the training protocol shared by all runs. Appendices J.2–J.4 complement the main simulations. Appendices J.5–J.7 vary the head count, the rank of the target, and the window length. Unless stated otherwise, population excess risk is , computed exactly from the true model for each trained coefficient matrix, and intervals are pointwise 95% bootstrap intervals that resample complete data repetitions.
J.1 Training protocol and computing environment
All runs train the fixed model of Section 6: an input-independent query, free positional keys, shared linear values and output weights without bias, and key and value width 8 per head. Training uses AdamW with batch size 64 and weight decay , at most 4,000 updates, validation every 100 updates, and early stopping with patience 10. The learning rate is chosen from and the checkpoint by validation MSE. Every patch length receives the same search and update budget, and test data are never used for selection.
For the simulations of Section 6 and Appendices J.2–J.3, each data repetition draws stationary series of length 576 with 32 forecast windows per series, holds out 50 validation and 100 test series, and uses nested training sets of series. There are 50 data repetitions (seeds 10, 20, ..., 500) and one optimization seed. The patch grids are for and for . These runs used PyTorch 2.5.1 in single precision on a CPU (Apple silicon, six threads).
The studies in Appendices J.5–J.7 use the same model, optimizer, and selection rules with 100 training, 50 validation, and 100 test series of length 6,400 per repetition, 32 forecast origins per series shared across all settings, 20 data repetitions (seeds 3010, 3020, ..., 3200), and every divisor of as a candidate patch length.
J.2 A second observation design
Section 6 uses the dense observation vector , which mixes all three latent states. We repeat the complete experiment with the near-aligned vector , keeping and rescaling the noises so that . The observation is then dominated by the most persistent state, and the one-step Bayes MSE is 0.144, against 0.170 for the dense design.
Figure 3 and Table 3 reproduce the pattern of Section 6. With , the patch length with the lowest population excess risk is or the next larger divisor at every horizon and both window lengths, and both extremes have 2.1 to 4.8 times the excess risk at . The interior advantage is largest when data are scarce: at and , the one-step test MSE is at against and at the extremes, and the gap narrows as grows.
Excess MSE over the analytic optimum

Test MSE under different training sizes

Figure 3: Near-aligned observation design, fixed one-head attention, 50 data repetitions. Top: excess MSE across forecast horizons with training series. Bottom: total test MSE at as the number of training series grows. Conventions match Figures 1 and 2.
Table 3: Near-aligned observation design: one-step test MSE in units of for the balanced patch and both extremes (means standard errors over 50 data repetitions). The one-step Bayes MSE is 144 in these units. Compare Table 1.
| 64 | 5 | 195.6 1.4 | 155.1 0.8 | 196.4 1.5 |
| 64 | 25 | 155.3 0.5 | 145.9 0.4 | 155.5 0.6 |
| 64 | 200 | 146.0 0.4 | 144.3 0.4 | 146.1 0.5 |
| 144 | 5 | 265.0 3.0 | 165.6 1.2 | 270.1 3.3 |
| 144 | 25 | 169.5 0.7 | 147.4 0.5 | 170.9 0.7 |
| 144 | 200 | 148.3 0.5 | 144.6 0.4 | 148.8 0.5 |
J.3 Representation versus estimation in the main simulations
The population quantities of Appendix I separate the two error sources directly. Table 4 compares an upper bound on the one-head approximation error, obtained from the truncated singular value decomposition of and evaluated in the prediction norm, with the population excess risk of the trained model at . Even with training series the approximation bound is at most 7% of the trained excess risk for the dense design, and it is negligible for the near-aligned design. At the extremes the approximation error is exactly zero. The differences between patch lengths in Figures 1, 2 and 3 are therefore driven by estimation rather than representation, as the dimension term in (27) predicts.
Figure 4 shows the scarce-data case for the dense design. With five training series, the extremes have 1.4 to 6.3 times the excess risk at . The lowest risk is at for short horizons and at the next larger divisor for longer horizons, again consistent with a broad interior range rather than a unique optimum.
Table 4: One-head approximation error versus trained excess risk. “Approx. bound” is an upper bound on at , and “max over ” its largest value over the patch grid. “Trained” is the mean population excess risk of the fitted model at (50 repetitions).
| Design | Signal | Approx. bound | Max over | Trained, | Trained, | ||
|---|---|---|---|---|---|---|---|
| Dense | 64 | 1 | 0.830 | ||||
| Dense | 64 | 12 | 0.206 | ||||
| Dense | 144 | 1 | 0.830 | ||||
| Dense | 144 | 12 | 0.206 | ||||
| Near-aligned | 64 | 1 | 0.856 | ||||
| Near-aligned | 64 | 12 | 0.277 | ||||
| Near-aligned | 144 | 1 | 0.856 | ||||
| Near-aligned | 144 | 12 | 0.277 |
Excess MSE over the analytic optimum

Figure 4: Dense observation design with training series: excess MSE across forecast horizons for fixed one-head attention (50 repetitions). Conventions match Figure 1.
J.4 The long-horizon filtering floor
Figure 5 reports the population diagnostic (161) for both observation designs at , patch lengths , a rank-one budget, and horizons up to . Nothing is trained. For every patch length the ratio increases with the horizon and converges to the positive limit of Theorem 4, essentially reached by . The operator-norm bound (19) holds in all 72 (design, patch, horizon) cases.
The floor is modest in these systems, at most 0.038 for the dense design and for the near-aligned design, while the predictable signal decays from 0.83 at to about at . This illustrates the distinction in (21): a positive relative floor accompanies a vanishing absolute approximation error.

p = 2 p = 3 p = 6 p = 12
Figure 5: Population ratio of the truncated infinite-past coefficient matrix against the horizon, , logarithmic axes. Left: near-aligned design. Right: dense design. Dashed lines: the analytic long-horizon limits of Theorem 4.
J.5 Head count when the target is nearly rank one
We train heads on the dense design of Section 6 with and (36 settings), using the protocol of Appendix J.1. Here the finite-window target is close to rank one: at , an upper bound on the one-head approximation error is at most 12% of the trained one-head excess risk in every setting.
Additional heads enlarge the coefficient class, and its dimension in (24), without a meaningful representation gain, so the estimation term dominates. With the patch chosen by validation, adding heads raises the mean excess risk relative to one head in almost every setting (34, 35, and 36 of the 36 settings for two, three, and four heads). The paired 95% interval for this change lies entirely above zero in most settings (28, 32, and 30 of 36) and never lies entirely below zero (Figure 6). The patch with the lowest mean risk stays close to for every head count: is within 5% of the best mean risk in 115 of the 144 (head count, L, H) settings.
J.6 Head count when the target has rank three
To create a target that one head cannot represent, we use the delayed autoregression
written as a state-space model with the last 59 observations as the state and no measurement noise. The latter is a boundary case of the assumption , chosen to test the head-count restriction rather than the filtering results. The innovation variance is set so that . For and , the finite-window optimal forecast places weights on the lags , and . At these three entries fall in distinct rows and columns of , which therefore has rank three with singular values . Since , one and two heads face a positive approximation floor that three heads remove. We consider equal weights and unequal weights , with , , and horizons up to (equal) or (unequal).
Table 5 and Figure 7 show the approximation–estimation tradeoff in the head count. Up to the target rank, each additional head lowers the excess risk. At , , and , the mean excess risk with equal weights is 0.134, 0.068, 0.010, and 0.011 for one to four heads. A fourth head, which adds no representation, never lowers the mean risk and raises it significantly in 10 of 12 settings. With unequal weights the third singular value is small, and the third head helps in 9 of 12 settings but is significantly worse than two heads in one (, ).

Figure 6: Nearly rank-one target (dense design): population excess risk against the number of heads, with the patch selected by validation in each repetition. Panels show horizons, colors show window lengths, and shading shows pointwise 95% bootstrap intervals over 20 repetitions.
Table 5: Rank-three targets: effect of adding one head at , over 12 settings (4 windows, ) and 20 repetitions. “Lower mean” counts settings where the larger model has lower mean population excess risk. The interval columns count paired 95% intervals entirely favoring the larger or the smaller model.
| Weights | Heads | Lower mean | Favors more heads | Favors fewer heads |
|---|---|---|---|---|
| (0.30, 0.30, 0.30) | 1 to 2 | 12/12 | 12/12 | 0/12 |
| 2 to 3 | 12/12 | 12/12 | 0/12 | |
| 3 to 4 | 0/12 | 0/12 | 10/12 | |
| (0.45, 0.30, 0.15) | 1 to 2 | 12/12 | 12/12 | 0/12 |
| 2 to 3 | 9/12 | 9/12 | 1/12 | |
| 3 to 4 | 0/12 | 0/12 | 10/12 |

Figure 7: Rank-three target with equal weights, , : population excess risk of the trained model (blue) and the rank lower bound (orange) against the number of heads , for four window lengths.
J.7 Patch length across window lengths
Section 6 uses two window lengths. To examine how the preferred patch length grows with , we train one head at nine window lengths , all perfect squares, and six horizons , for four designs. These are the dense design of Section 6 (baseline), with the same (changed ), with the same (changed ), and both changes together. For each design, window, and horizon, minimizes the mean population excess risk over all divisors of , and we fit through the origin, , with intervals from 2,000 paired bootstrap resamples that reselect in each draw.
Across the 216 (design, , ) conditions, in 98, is within 5% of the best mean risk in 137, and an extreme patch length is best only once. For the baseline, tracks closely (Figure 8): rises from 1.04 at to 1.58 at , with centered (Table 6). The changed- and changed- designs behave similarly, except for a poor fit for changed at . With both changes, the square-root relation fails at : the preferred patches are much shorter () and the fit is worse than a constant. The square-root scale is therefore a useful reference whose constant depends on the system and the horizon, not a universal law, in line with the conditional statements of Section 4.
Table 6: Fitted constants in over nine window lengths, with centered in parentheses (one head, 100 training series, 20 repetitions). Negative means that the fit is worse than a constant.
| H | Baseline | Changed A | Changed C | Changed A and C |
|---|---|---|---|---|
| 1 | 1.04 (0.94) | 0.96 (0.83) | 1.06 (0.94) | 1.33 (0.64) |
| 2 | 1.08 (0.93) | 1.00 (0.99) | 1.15 (0.94) | 1.06 (0.87) |
| 4 | 1.13 (0.90) | 1.14 (0.94) | 0.98 (0.96) | 1.36 (0.75) |
| 8 | 1.43 (0.89) | 1.41 (0.76) | 1.32 (0.85) | 0.13 (-0.74) |
| 12 | 1.33 (0.84) | 1.66 (0.94) | 1.55 (0.78) | 0.13 (-0.73) |
| 16 | 1.58 (0.85) | 1.60 (0.92) | 1.41 (0.34) | 0.14 (-0.66) |

Figure 8: Baseline (dense) design: the patch length with the lowest mean population excess risk (blue) against for nine window lengths, with the through-origin fit and its 95% bootstrap band (orange). Panels: horizons, with centered .