arXiv:2611.06612cs.LGNov 2026

Manuscript Offprint

arXiv:2611.06612

From Reconstruction to Imputation: Test-Time Optimization for Missing Time-Series Channels

Björn Ludwig, Alexander Windmann, René Heesch, Oliver Niggemann

Abstract

Complete sensor-channel failures create a difficult form of time-series missingness: local interpolation is unavailable, and deploying a separately trained imputer for every failure pattern may be impractical. We ask whether a sequence reconstructor trained without artificial mask augmentation and then frozen can be converted into an imputer at inference time. Our method treats the missing entries of each test window as optimization variables, clamps all observations, and backpropagates through the frozen model to minimize reconstruction error only on observed coordinates. The resulting observed-self-consistency objective requires neither artificial mask augmentation nor full-channel dropout during reconstructor training. We characterize when this refinement is informative through the cross-Jacobian from missing inputs to observed residuals, and use an optional temporal-smoothness prior when that coupling is weak. Across five real-world datasets with exactly one channel synthetically masked per test window and four reconstruction architectures, no-prior test-time refinement reduces MAE relative to one-pass reconstruction in 19 of 20 dataset-backbone combinations. Compared with mask-aware imputers trained under either standard structured masks or matched full-channel dropout, the best refined reconstructor achieves the lowest MAE on two datasets and trails the strongest baseline on three. These gains require substantially more inference time and are sensitive to cross-channel coupling. Our results establish test-time self-consistency as a conditional inference-time adapter for frozen reconstruction models that complements mask-aware imputation without retraining the reconstructor.

1 Introduction

Missing values are common in multivariate time series from environmental monitoring, energy systems, and traffic sensing (De Vito et al. 2008; Zhang et al. 2017; Trindade 2015; Liu et al. 2023a). An especially hard case arises when one complete channel is unavailable. Unlike isolated points or short gaps, the missing channel provides no local observations within the affected window, so recovery must rely on temporal structure learned elsewhere and on dependencies with the remaining channels (Khayati et al. 2020; Cini, Marisca, and Alippi 2021; Mitra et al. 2023).

This paper asks a specific operational question: Given a frozen sequence reconstructor, can it be turned into an imputer for a previously unseen full-channel mask without retraining its weights?

*Corresponding author.

Figure

Figure 1: High-level overview. Left: train a reconstructor on baseline-filled windows using observed-entry loss. Right: TTO updates missing inputs using frozen model to reduce fit-observed residuals and yield the imputation.

Deep recurrent, attention-based, and diffusion-based imputers learn conditional completions or sampling procedures during training (Cao et al. 2018; Du, Côté, and Liu 2023; Tashiro et al. 2021). Mask-aware methods can explicitly condition on the observation mask and enforce consistency with available values. Instead of learning or amortizing the completion for the target mask, we optimize the missing coordinates of each test window by differentiating through a fixed reconstructor. A useful reconstructor must couple the missing coordinates to observed outputs through a bottleneck or another learned dependency, since an identity-like model whose observed outputs are independent of the missing inputs provides no gradient with which to recover the missing channel.

Figure 1 summarizes the two phases. We first train a sequence reconstructor with a reconstruction loss on observed entries and without artificial mask augmentation, then freeze its parameters. At inference time, Test-Time Optimization (TTO) treats missing entries as free variables, clamps observations, and minimizes the frozen model residual only on observed coordinates. The resulting observed-self-consistency objective can incorporate simple priors or feasibility constraints when the data term alone is underconstrained. Its informativeness is governed locally by the cross-Jacobian from optimized missing inputs to residuals on observed outputs: if this coupling is weak or rank-deficient, multiple completions can be similarly self-consistent.

Contributions. We make four contributions. (1) We formulate observed-self-consistency TTO as an inference-time adapter that turns a frozen differentiable reconstructor into a point-estimate imputer while clamping observations and fixing model parameters. (2) We characterize its local infor-mativeness through the missing-to-observed cross-Jacobian and explain how temporal smoothness regularizes weakly constrained directions. (3) Across five real-world datasets, four architectures, and synthetic one-channel masks, TTO improves over forward-only reconstruction in 19 of 20 dataset-backbone combinations. (4) Against mask-aware imputers trained with structured masks or matched full-channel dropout, the best TTO result wins on ETTh1 and Electricity but trails on BeijingAir, ItalyAir, and PeMS, while requiring substantially more inference time.

Together, these results support TTO as a conditional adapter when a frozen reconstructor provides informative missing-to-observed coupling, not as a blanket replacement for mask-aware imputation models.

References (44)