Abstract
This paper introduces a novel PAC-Bayesian generalization bound for discrete-time non-linear dynamical systems, specifically targeting stable Recurrent Neural Networks (RNNs). Unlike traditional bounds that often explode as sequence length increases or rely on i.i.d. assumptions, this bound remains stable over infinite time horizons. By utilizing Uniformly Exponentially Convergent (UEC) properties and $\theta$-mixing coefficients, we derive a bound that converges at a rate of $O(1/\sqrt{N})$ and remains non-vacuous even for small sample sizes.
Introduction
In machine learning theory, generalization bounds quantify the performance gap between training data and unseen test data. However, standard frameworks like PAC-Bayes typically assume that data points are Independent and Identically Distributed (i.i.d.). This assumption is fundamentally violated in dynamical systems and RNNs, where data points in a sequence are temporally dependent. Furthermore, many existing bounds for RNNs are "vacuous" because they grow with the sequence length $T$, providing no useful information for long-term predictions. This work addresses these challenges by developing a bound that handles temporal dependence and stays finite as $T \to \infty$.
Theoretical Framework
The core of the proposed approach is the restriction to Class $\mathcal{S}$ Systems, which are defined as Uniformly Exponentially Convergent (UEC). In these systems, the influence of initial states and past perturbations decays exponentially over time. This stability prevents error accumulation over long horizons.
To handle non-i.i.d. data, the authors employ $\theta$-mixing coefficients, which mathematically quantify the decay of dependence between distant points in a time-series. The framework also assumes Lipschitz continuity for both system transition functions and loss functions, ensuring that small input perturbations do not lead to divergent outputs.
As shown in the table above, common RNN architectures using ReLU or tanh activations can be categorized as Class $\mathcal{S}$ systems provided their weights satisfy specific spectral constraints (e.g., $\text{Lip}(\sigma_f)\|A\|_2 < 1$).
Key Results
The derived PAC-Bayesian bound achieves a convergence rate of $O(1/\sqrt{N})$, where $N$ is the number of data points. Crucially, the bound is decoupled from the sequence length $T$, making it applicable to infinite-horizon problems. The paper also demonstrates that the "Gibbs posterior" can be used to minimize this new bound, providing a theoretically grounded training objective.
The authors validated the theory using a synthetic dynamical system with hidden states and truncated Gaussian noise. The experiments demonstrate that the theoretical bound is non-vacuous—meaning it provides a meaningful upper limit on the true error—even with a very small number of training samples.
As illustrated in Figure 1, the bound (dashed blue line) consistently upper-bounds the empirical loss (red lines) and tightens as $N$ increases. In this specific synthetic setup, the bound became non-vacuous at $N=9$.
Discussion and Conclusion
The primary insight of this work is that dynamical stability is the key to generalization. If an RNN is stable (UEC), its "memory" of the distant past fades, allowing it to be analyzed similarly to weakly dependent static data. This provides a theoretical justification for training RNNs within stable regimes.
While the bound is powerful, it currently requires the system to be stable. Future work involves extending these results to chaotic or marginally stable systems and developing automated methods, such as Linear Matrix Inequalities (LMIs), to calculate tighter stability constants for complex neural architectures.
Summary updated