arXiv:2611.09217cs.LGNov 2026

Manuscript Offprint

arXiv:2611.09217

Provable State Estimation with Recurrent Models

Vincent Andrieu, Pauline Bernard, Lucas Brivadis, Laurent Praly, Christian Wolf

Abstract

Estimating the state of a dynamical system from observations is a crucial task in robotics and control. Despite their empirical success, recurrent models often lack formal guarantees on convergence and robustness. We bridge this gap by analyzing these architectures from the perspective of nonlinear observer theory. By framing RNNs as a time-discretization of continuous latent dynamical systems (Neural ODEs), we demonstrate that enforcing a contraction condition on the latent flow guarantees the existence of a smooth, injective map of the true physical state into the latent space. We prove that this architecture acts as a tunable observer: by increasing a single scalar gain that scales the latent vector field, the estimation error can be driven to an arbitrarily small neighborhood of zero at an exponentially fast rate. We further establish quantitative bounds on the MLP complexity required to decode this latent state, and extend our formal guarantees to the discrete-time residual RNN implementation. We validate the theory on a real mobile robotic task, where a provably contracting model outperforms a vanilla GRU with substantially more stable training. We also report that unconstrained GRUs converge to contracting dynamics on this task, suggesting that contraction is an emergent property of well-trained sequence models.

Keywords: State estimation, RNNs, Contracting systems, Nonlinear KKL observers.

1 Introduction

We consider the classical problem of estimating the state of a dynamical system, given some online measurements of the observations o(t)o(t). This is motivated by applications in robotics control, system monitoring, fault diagnosis, and data assimilation and has been addressed independently in different fields, related to Observer Design [6] in control theory and to State Representation Learning [29] in ML and embodied AI. In many methods, the quality of the latent state representation is determined by the downstream application building on it, and in this case, it is often learned together (“end-to-end”) with the downstream task with RL [24] or imitation learning [14]; alternatively through pre-training, i.e. through next token prediction [43], with contrastive learning [47, 49] or recently with joint embedding predictive architectures [3].

In this work, we suppose the existence of a target variable s(t)s(t) of interest linked to the state of the system (e.g. the pose of a robot or a hidden quantity of a biological reactor) and are interested in its estimation. A data-driven model for this task is required to learn, both, a latent state representation and a mapping from the latent state to the variable of interest. Natural questions then arise: Under which conditions does this neural architecture guarantee that the estimate s^(t)\hat{s}(t) asymptotically converges to the true target s(t)s(t)? Is it possible to establish formal guarantees regarding the performance and tunability of a trained model?

To answer these questions, we suppose that the relation between the observations and the target variable is generated by a deterministic dynamical system. More precisely, we assume the existence

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

Figure 1: Provable state estimation: a contracting Neural ODE with latent dynamics z˙=κgΩ(z,o)\dot{z} = \kappa g_{\Omega}(z, o) processes observations o(t)o(t) from the physical system with unobserved x(t)x(t), of which elements s(t)s(t) are of interest. A decoder γΩ\gamma_{\Omega} maps the latent state to an estimate s^(t)\hat{s}(t). The existence of an injective state-to-latent map Tκ:X→Z\mathbf{T}_{\kappa} : \mathcal{X} \to \mathcal{Z} is guaranteed (Theorems 3.4-3.7). A contraction property ensures that two latent trajectories za,zbz_a, z_b initialized anywhere in Z\mathcal{Z} exponentially forgets initial conditions. The estimate s^(t)\hat{s}(t) reaches an ϵ\epsilon-neighborhood of the true s(t)s(t) after a finite observation time, and increasing κ\kappa accelerates convergence at the cost of larger network capacity (Theorem 4.2).

of a physical 1^1 state x(t)∈Rnx(t) \in \mathbb{R}^n, governed by an unknown ODE, that determines both o(t)o(t) and s(t)s(t):

dxdt(t)=f(x(t)),o(t)=h(x(t)),s(t)=ς(x(t)),(1)\frac{d x}{d t}(t)=f(x(t)),\quad o(t)=h(x(t)),\quad s(t)=\varsigma(x(t)), \tag{1}

where ff, hh, and ς\varsigma are continuous functions. Moreover, we assume this state is somehow minimal, in the sense that it can be dynamically reconstructed from the knowledge of oo – it is observable in the control theory sense [6]. Our method thus relies on reconstructing the full physical state itself, looking for an estimate x^(t)≈x(t)\hat{x}(t) \approx x(t), from which an estimate s^(t)\hat{s}(t) of s(t)s(t) can then be recovered. Without loss of generality, we thus set s(t)=x(t)s(t) = x(t) in this paper2^2. When the dependence on the initial condition is required, we denote the unique solution at time tt starting from x0x_0 as x(t)=Φf(x0,t)x(t) = \Phi_f(x_0, t). This point of view formulates the machine learning problem as an observer design problem.

From RNNs to Neural ODEs — Recurrent Neural Networks (RNNs) and their variants (LSTM [20], GRU [10]) have been shown to be powerful architectures for solving machine learning problems on sequential data. They process sequential observations ok∈Rpo_k \in \mathbb{R}^p according to the following recurrence relation:

zk+1=φΩ(zk,ok+1),(2)z_{k+1}=\varphi_{\Omega}(z_{k},o_{k+1}), \tag{2}

where zk∈Rmz_k \in \mathbb{R}^m denotes the hidden (or latent) state of the network, φΩ\varphi_\Omega denotes the non-linear update map, and Ω\Omega is a vector of trainable weights. The output of the network, which gives an estimate of a target variable sks_k, is usually computed by a readout map, often a Multi-Layer Perceptron (MLP):

s^k=γΩ(zk).(3)\hat{s}_{k}=\gamma_{\Omega}(z_{k}). \tag{3}

Reformulated with residual connection, relation (2) can be rewritten as:

zk+1=zk+δ⋅gΩ(zk,ok+1),(4)z_{k+1}=z_{k}+\delta\cdot g_{\Omega}(z_{k},o_{k+1}), \tag{4}

where δ>0\delta > 0 is a step-size parameter. This formulation highlights the incremental nature of the state update. When the sampling period of the observations tends to zero ( δ→0\delta \to 0), this recurrence converges to a continuous-time differential equation. This point of view naturally leads to Neural ODEs 3^{3} [9], where the latent state and the output evolve continuously in time:

dzdt(t)=gΩ(z(t),o(t)),s^(t)=γΩ(z(t)).(5)\frac{d z}{d t}(t)=g_{\Omega}(z(t),o(t)),\quad\hat{s}(t)=\gamma_{\Omega}(z(t)). \tag{5}

1^{1}We call this state physical as it is usually obtained through the application of physics laws (e.g. motion laws giving x as positions and velocities, electromagnetic laws giving x as fluxes and currents, chemical laws giving x as concentrations, etc.), as opposed to the latent state (later introduced in this paper) that is purely abstract. Note, though, that the knowledge of f, h, σ\sigma is not necessary in this paper, so those maps could also have an abstract nature. What is important is that s and o are linked via a state that has a kind of markovian property, namely, its instantaneous evolution only depends on its current value.

2^{2}Reconstructing only ς(x)\varsigma(x) when x itself is not observable is the object of functional observability [11, 15, 36], also addressed with KKL observers [48]; we leave it for future work (see Section 7).

3^{3}In the original work [9] the ODE was not necessarily applied to problems involving dynamical systems but rather built an internal dynamical system running over the layers of a ResNet-like neural network.

Analyzing the continuous-time limit allows one to use classical tools from dynamical systems and control theory to study stability and convergence properties. As we will show, these properties remain true for practical discrete implementations if the sampling step is small enough.

Contributions — While classical observer theory usually needs explicit knowledge of the functions ff and hh, this paper develops a theoretical framework to certify the representational capabilities of data-driven RNN-MLP estimators. We prove that, under mild assumptions, there exists a choice of the trainable weights Ω\Omega that solves the estimation task with guaranteed exponential convergence.

To obtain these guarantees, we explicitly isolate a tunable scalar gain parameter κ>0\kappa > 0 in the latent dynamics that acts as a global time-scale separation gain. More precisely, we write the estimator as

dzdt(t)=κgΩ(z(t),o(t)),s^(t)=γΩ(z(t))(6)\frac{dz}{dt}(t) = \kappa g_{\Omega}(z(t), o(t)), \quad \hat{s}(t) = \gamma_{\Omega}(z(t)) \tag{6}

where gΩ:Rm×Rp→Rmg_{\Omega} : \mathbb{R}^m \times \mathbb{R}^p \to \mathbb{R}^m represents the normalized base latent dynamics parameterized by Ω\Omega. The following contributions are obtained in this paper.

  1. Existence of the State-to-Latent Map: We establish a structural result linking deep learning and the Kazantzis-Kravaris-Luenberger (KKL) theory [2]. We prove that if (i) the latent base dynamics generates a contraction, (ii) the latent gain is large enough, (iii) the physical state is differentially observable from oo, (iv) the latent dimension is large enough4^4, then there exists a smooth injective map x↦Tκ(x)x \mapsto T_{\kappa}(x) which gives a representation of the physical state in the latent space. Contrary to previous existence results with nonlinear latent dynamics [40], the latent vector field may be coupled across latent coordinates, as in GRUs and LSTMs, rather than diagonal; the price is a rank condition on the latent dynamics, which is generic (Appendix K).

  2. Convergence and Tunability: In an ideal setting where γΩ\gamma_{\Omega} is a left-inverse of TκT_{\kappa}, we prove that the estimation error provided by the estimator (6) converges exponentially fast to zero whatever the initial condition of the latent dynamics. Moreover, the architecture is formally tunable, which means the error can be made arbitrarily small in finite time.

  3. MLP Complexity Bounds: When the decoder Tκ−1T_{\kappa}^{-1} is approximated by a neural network γΩ\gamma_{\Omega}, we show that the tunability property is preserved and give a quantitative link between the latent gain κ\kappa and the required MLP complexity. We show that while a high gain gives a faster convergence, it may increase the Lipschitz constant of the mapping, which requires a larger network.

  4. Guarantees for Discrete Implementation: We explicitly extend our continuous-time analysis to the practical case of discrete-time RNNs. We prove that the tunability property is preserved and we give a formal condition linking the required gain κ\kappa and the maximum sampling step δ\delta.

  5. Experimental Results: We showcase the effect of the contracting property on a state estimation problem in robotics with real data and provide evidence for the tunability result in simulation.

References (52)