Sailing Towards Zero-Shot State Estimation using Foundation Models Combined with a UKF

Tobin Holtmann, David Stenger, Andres Felipe Posada-Moreno, Friedrich Solowjow, Sebastian Trimpe

Abstract

Traditional state estimation relies heavily on precise mathematical models of system dynamics, which are often difficult to derive and lack flexibility across different hardware configurations. This paper introduces FM-UKF, a hybrid state estimator that integrates transformer-based foundation models with the Unscented Kalman Filter (UKF). By leveraging the in-context learning capabilities of transformers to model complex dynamics and the structural reliability of the UKF to handle sensor physics, FM-UKF achieves "zero-shot" generalization. The system demonstrates the ability to estimate states for entirely new vehicle dynamics and sensor suites without retraining, outperforming classical baselines and maintaining robustness where end-to-end models fail.

Introduction

State estimation—the process of inferring internal system variables (such as velocity or orientation) from noisy external measurements (such as GPS or IMU data)—is a cornerstone of robotics and autonomous systems. Historically, this task has required a precise mathematical model of the system's dynamics. However, developing these models is a labor-intensive process, often requiring manual system identification for every new vehicle or environment.

While deep learning and foundation models (e.g., GPT-style architectures for time-series) offer a path toward learning these dynamics from data, existing end-to-end (E2E) approaches are often brittle. In an E2E model, the relationship between specific sensor inputs and state outputs is "baked in." Consequently, if a sensor fails or the hardware configuration changes, the model typically requires complete retraining. There is a clear need for a modular approach that combines the predictive power of AI with the physical consistency of classical filtering.

Methodology: The FM-UKF Framework

The Foundation Model Unscented Kalman Filter (FM-UKF) addresses these challenges by decoupling the system's dynamics from its sensor models.

1. Dynamics as a Foundation Model

The core of the FM-UKF is a decoder-only transformer, inspired by the TimesFM architecture. This model acts as the state transition function. During inference, the transformer processes a "context window" of previous states and control inputs to predict the subsequent state. This allows the model to utilize In-Context Learning (ICL) to implicitly identify the specific characteristics of the system it is observing—such as the mass or hydrodynamic coefficients of a ship—without explicit parameterization.

2. UKF Integration and Sigma Points

Rather than relying on a standard linear or non-linear equation, the UKF utilizes the transformer to propagate "sigma points." These points represent statistical samples of the system's state distribution. By passing these points through the transformer, the filter can accurately map the mean and covariance of the state through complex, learned dynamics.

3. Analytical Sensor Models

A key innovation of FM-UKF is the retention of analytical sensor models. Because the physics of most sensors (e.g., "a GPS provides a position measurement") are well-understood, they do not need to be learned. By keeping the sensor model as a standard analytical function within the UKF framework, users can swap or modify sensor configurations instantly. This modularity ensures the system remains functional even if the underlying hardware changes.

4. The Kinematic Integrator

The authors observed that transformers often struggle with "indefinite integration"—the mathematical accumulation of values over time (e.g., deriving position from velocity). To mitigate this, FM-UKF employs a first-order midpoint integrator to handle the kinematic relationships between predicted velocities and positions, ensuring physical consistency over long trajectories.

The Container Ship Dataset

To validate the approach, the authors developed a new open-source benchmark focused on maritime navigation. The dataset features a 10-dimensional state space model of a container ship governed by 70 distinct parameters.

  • Scale: 400,000 trajectories across 1,000 unique ship parameterizations.
  • Diversity: Data covers variations in mass, dimensions, and hydrodynamics.
  • Complexity: Trajectories were generated using "pink noise" control inputs to simulate a wide variety of realistic maneuvers.

Results and Discussion

The FM-UKF was evaluated against end-to-end transformers and classical baselines, such as a UKF using a "Constant Velocity" (CV) model.

Zero-Shot Generalization

FM-UKF demonstrated remarkable zero-shot capabilities, successfully estimating the states of 100 previously unseen ship types. By observing how a ship reacted to control inputs in the recent history, the transformer implicitly identified the ship's specific dynamics, allowing for high-accuracy estimation without any fine-tuning.

Sensor Flexibility

In tests involving "challenging" sensor configurations—such as the absence of direct velocity measurements—FM-UKF significantly outperformed classical baselines. While E2E transformers can achieve high accuracy when the sensor suite matches their training data, they fail when sensors are removed or changed. FM-UKF, by contrast, maintains competitive performance across diverse sensor configurations by simply updating the analytical sensor model.

Limitations and Future Directions

Despite its success, the FM-UKF presents several areas for improvement:

  • Uncertainty Quantification: Currently, the process noise covariance ($Q$ matrix) is manually tuned. Future iterations could involve the foundation model predicting its own uncertainty, allowing the UKF to dynamically adjust its trust in the model's predictions.
  • Computational Complexity: Running multiple forward passes of a transformer to propagate sigma points is computationally more intensive than traditional mathematical filters, which may limit real-time applications on low-power hardware.
  • Non-Gaussian Noise: The current framework assumes Gaussian noise distributions. Extending the model to handle more complex, non-Gaussian uncertainty remains an open research challenge.

Conclusion

FM-UKF represents a significant step toward universal state estimators. By combining the flexibility of foundation models with the modularity of the Unscented Kalman Filter, the authors have created a system that is both powerful and adaptable. This hybrid approach paves the way for autonomous systems that can generalize to new platforms and sensor configurations with minimal human intervention.

Summary updated

BibTeX
@inproceedings{holtmann2025sailing,
  author = {Tobin Holtmann and David Stenger and Andres Felipe Posada-Moreno and Friedrich Solowjow and Sebastian Trimpe},
  title = {{Sailing Towards Zero-Shot State Estimation using Foundation Models Combined with a UKF}},
  booktitle = {CDC},
  year = {2025},
  doi = {10.1109/cdc57313.2025.11313025},
}
Figure