arXiv:2611.04893cs.LGNov 2026

Manuscript Offprint

arXiv:2611.04893

Fault-tolerant shallow recurrent decoders for sparse sensing with missing sensor measurements

Matteo Romilio Pasqual, Matteo Tomasetto, J. Nathan Kutz, Andrea Manzoni

Matteo Romilio Pasqual*, Matteo Tomasetto**, J. Nathan Kutz†, and Andrea Manzoni‡

  • Department of Electronics, Information and Bioengineering, Politecnico di Milano, Milano, Italy

** Department of Mechanical Engineering, Politecnico di Milano, Milano, Italy

† Autodesk Research, London, UK and

‡ MOX - Department of Mathematics, Politecnico di Milano, Milano, Italy

Real-world sensing systems are inherently imperfect: sensors may fail, intermittently disconnect, operate with asynchronous sampling rates, and be subject to noise, leading to measurement streams that are irregular, incomplete, and heterogeneous. Nevertheless, sensing strategies for real-time state reconstruction typically assume synchronous and continuously active sensors, a constraint that substantially limits their applicability in operational environments. In this work, we introduce fault-tolerant sparse sensing strategies in the context of shallow recurrent decoders (SHRED) to enable high-dimensional state estimation from sparse, asynchronous, and missing sensor measurements. Specifically, we consider naive imputation strategies, fault-tolerant recurrent temporal encoders, and we introduce four different transformer-based masking mechanisms to make SHRED explicitly aware of sensor availability through the binary data-availability mask. Moreover, we further introduce a multi-step decoding training objective for SHRED, resulting in smoother latent trajectories and more robust predictions. Throughout a synthetic benchmark and three real-world problems in hydrodynamic and ocean modeling, we show that (i) transformer-based masking mechanisms outperform standard imputation techniques and fault-tolerant recurrent architectures, (ii) the multi-step decoding training objective enhances reconstruction fidelity and robustness in the presence of heterogeneous missing-data patterns, while (iii) the computational efficiency of SHRED is preserved, with no additional inference-time overhead.

I. INTRODUCTION

Many real-world dynamical systems evolve in high-dimensional state spaces that cannot be directly observed in their entirety [1, 26]. This challenge arises across a wide range of scientific and engineering applications, including fluid and solid mechanics, weather and climate modeling, plasma physics, and structural health monitoring. In these systems, sensors provide the primary interface between theory and reality, yet their deployment is inevitably limited by cost, reliability, physical inaccessibility, and operational constraints. However, being able to access local measurements is crucial to, e.g., inferring full state dynamics, designing feedback control strategies, or predicting quantities of interest.

Recovering the state of a dynamical system from partial observations enables downstream tasks such as monitoring, forecasting, anomaly detection, and control, while avoiding expensive and impractical full-field measurements. Traditional approaches to state reconstruction are grounded in linear algebra frameworks. The singular value decomposition (SVD) – also known as proper orthogonal decomposition (POD) [4, 6, 31, 35] – provides an optimal low-rank approximation of high-dimensional state data through a linear projection onto a low-dimensional basis of spatial functions capturing most of the data variability. After computing the dominant POD modes from the training data, the coefficients of the low-rank representation can be estimated from a limited number of point measurements by solving a linear inverse problem, provided that the sensing matrix is well-conditioned [22, 49]. However, the requirement for

a well-conditioned sensing matrix imposes constraints on both the number and placement of sensors, leading to an NP-hard optimization problem for identifying the optimal configuration [12, 29, 30] and potentially limiting its applicability in real-world settings [11, 36]. Moreover, the reconstruction accuracy of this method is bounded by the expressiveness of the POD modes used, so that fine-scales or nonlinear features of the field cannot be recovered entirely when only a few modes are retained.

The advent of scientific machine learning has introduced new data-driven methods for addressing limitations of traditional linear methods [5, 23, 40]. Neural networks and, in particular, shallow decoder networks (SDNs), leverage the universal approximation theorem of feedforward architectures [14] to learn an end-to-end nonlinear mapping from sensor measurements directly to the corresponding high-dimensional state [8, 19, 34, 42], without requiring an explicit basis representation as in POD-based methods. Similarly, the Senseiver [43] employs an attention-based architecture inspired by the Perceiver IO [28] to reconstruct spatio-temporal fields at arbitrary query locations from sparse observations. Once trained on a set of snapshots, these strategies can capture nonlinear spatial correlations in the data that are inaccessible to linear methods and have been shown to outperform linear POD-based architectures in field reconstruction, particularly in ill-posed settings, i.e., with few or poorly placed sensors. Nevertheless, POD-based methods, SDNs, and the Senseiver all share an intrinsic limitation: they operate on static snapshots, treating each time instant independently and discarding the temporal dynamics of the measurement signal. The tempo-

Figure

FIG. 1. Overview of fault-tolerant shallow recurrent decoders for state reconstruction from sparse sensors under missing sensor measurements. Sensor measurements {sk−L,…,sk}\{\mathbf{s}_{k-L}, \ldots, \mathbf{s}_k\} with possibly missing entries are padded, lagged, and processed by a fault-tolerant encoder E\mathcal{E} to produce a latent embedding zk\mathbf{z}_k, which is subsequently decoded into the POD coefficients a^k\hat{\mathbf{a}}_k via the shallow decoder D\mathcal{D}. The state reconstruction at time tkt_k is then given by u^k=Ψra^k\hat{\mathbf{u}}_k = \boldsymbol{\Psi}_r \hat{\mathbf{a}}_k, where Ψr\boldsymbol{\Psi}_r denotes the (possibly field-specific) rr dominant POD modes. The upper panel illustrates the four Transformer-based masking strategies proposed where the binary data-availability mask Mk\mathbf{M}_k is injected at different levels of the encoder architecture, namely channel-wise masking, hidden-space masking, MHSA masking, and learned MHSA masking. The training box reports the standard last-step SHRED loss function and the multi-step decoding objective, where the decoder is supervised at intermediate time steps to encourage temporally consistent latent representations across the observation window.

ral history of observations, naturally available whenever sensors operate continuously over time, is essential for capturing intrinsic dynamical features, such as temporal correlations between consecutive measurements.

The shallow recurrent decoder (SHRED) framework proposed by Williams et al. [51] addresses this limitation by combining a recurrent temporal encoder with a shallow spatial decoder. The encoder, which is typically modeled via recurrent neural networks such as, e.g., long short-term memory (LSTM) [25, 33] or gated recurrent unit (GRU) [10] networks, processes a sliding window of lagged sensor measurements, compressing their temporal history into a latent representation, which is subsequently mapped to the full field by a SDN. Thanks to the temporal history of sensor readings, SHRED achieves dramatically lower reconstruction errors than classical techniques, even with a very limited number of randomly placed sensors. Different SHRED extensions have recently been proposed in the literature. For instance,

Riva et al. [41] take into account an ensemble of SHRED models to cope with noisy measurements. Moreover, the SHRED framework has been extended to parametric systems [46, 47], demonstrating that the temporal history of a handful of sensors suffices to reconstruct and control high-dimensional fields across varying physical and geometrical parameters. Gao et al. [24], instead, introduce a regularization based on sparse identification of nonlinear dynamics (SINDy) [7] to promote interpretable latent dynamics, further improving forecasting performance and explainability in challenging scenarios. More recently, Yermakov et al. employ a Transformer [48] as temporal encoder in the so-called T-SHRED framework [52], thus exploiting the multi-head self-attention mechanism to capture long-range temporal dependencies among lagged sensor measurements.

SHRED has been successfully employed in a wide range of applications, while typically considering only simulated data, synchronous sensors with uninterrupted op-eration throughout the observation period, and point-wise field evaluations as synthetic sensor readings. The deployment of SHRED in real-world environments must account for challenging sensing conditions, including incomplete, noisy, and asynchronous data streams [44]. This results in time-series that are irregular, with different sampling rates, and may contain gaps and missing values [37]. Moreover, in practical settings, sensor measurements do not exactly match direct pointwise evaluations of the underlying state, but rather provide (possibly indirect) observations that are correlated with the system state through an observation process. Note that discarding all sensors that are not jointly available over the entire observation period severely degrades reconstruction quality, particularly in the ultra-sparse-sensor regime. Moreover, this naive strategy becomes infeasible when sensor observation windows do not overlap, as naturally occurs under fully asynchronous sampling. To overcome this limitation, CS-SHRED [15] and LAPIS-SHRED [3] employ, respectively, (possibly expensive) convex minimization problems and latent-space inference to recover missing sensor values and reconstruct spatio-temporal dynamics from corrupted or incomplete observations.

In this work, we consider different efficient fault-tolerant sparse sensing strategies in the context of SHRED. First, naive imputation strategies are taken into account to infer missing sensor values, at the price of introducing additional estimation errors and potentially biasing the reconstructed field. In particular, standard baselines include mean, median, or last observation carried forward (LOCF) imputation. Rather than imputing missing sensor measurements before feeding the resulting sequence to the SHRED temporal encoder, we take into account recurrent models specifically designed to handle missing data in the context of time-series forecasting, such as GRU-D [9] and its attention-augmented variant attnGRU-D [53]. Finally, we introduce four different transformer-based masking mechanisms to conveniently handle missing and asynchronous sensor values in the SHRED temporal encoder. Specifically, we explore both fixed and learnable masking mechanisms applied at the channel level (channel-wise masking), at the hidden space level (hidden-space masking), or at the multi-head self-attention level (fixed or learned MHSA masking). Naive missing-data imputation strategies, fault-tolerant recurrent temporal encoders and the proposed masked shallow recurrent decoders are then compared on a synthetic benchmark and on three real-world problems in hydrodynamic and ocean modeling, where sensor data are not always available or synchronous. This work thus aims at providing practical guidance for the deployment of fault-tolerant SHRED models in operational settings characterized by heterogeneous and incomplete sensor coverage.

A further contribution of this work concerns the training objective considered to fit SHRED. The temporal encoders within the original SHRED architecture and its extensions, such as T-SHRED, entail a hidden state for every time step received as input. However, only the

last latent representation is passed to the decoder both during training and deployment, leaving the intermediate temporal representations entirely unexploited. This limitation is particularly consequential in the context of heterogeneous missing data: when sensor observations are irregular or partially absent, it is beneficial to leverage the temporal context accumulated across the lookback window to compensate for the missing information. Therefore, rather than relying on a SINDy regularization [24, 52], which requires careful dictionary selection and dedicated optimization routines, we propose a multi-step decoding training strategy. This approach is inspired by the auxiliary classifiers in GoogLeNet [45], which enforce representational regularity at intermediate layers of a deep convolutional neural network by attaching additional supervision at multiple depths. Under the proposed framework, we decode intermediate hidden states of the temporal encoder using the same spatial decoder, and combine the corresponding reconstruction losses into a weighted objective, thus providing supervision across multiple temporal depths. The multi-step decoding training strategy acts as a powerful regularizer, forcing the temporal encoder to build informative latent representations throughout the entire temporal window. By ensuring that the latent trajectory remains well-structured at every step, this strategy leads to improved reconstruction accuracy and enhances the model robustness to missing data. Finally, during inference, the additional decoding heads are discarded, allowing the architecture to reduce to the standard, computationally-efficient SHRED pipeline. An overview of fault-tolerant SHRED architectures, with particular emphasis on the Transformer-based masking strategies proposed, is available in Figure 1.

This work is organized as follows. Section II introduces the sparse sensing problem and reviews different state-of-the-art sensing methods, such as gappy POD, SDNs, and SHRED. Section III presents different fault-tolerant sparse sensing strategies in the context of SHRED. Specifically, it presents standard imputation techniques, fault-tolerant recurrent temporal encoders, and introduces four different Transformer-based masking mechanisms, namely channel-wise, hidden-space, MHSA, and learned MHSA masking. Moreover, it presents the multi-step decoding training objective, detailing its motivation and formulation within the SHRED training pipeline. Section IV shows the numerical results of the different fault-tolerant sensing strategies on a synthetic benchmark and three real-world problems in the context of hydrodynamic and ocean modeling. Finally, Section V summarizes the main findings, discusses the practical implications of the proposed contributions, and outlines directions for future work.