Deep Normalizing Flows for State Estimation

Harrison Delecki, Liam A. Kruse, Marc R. Schlichting, Mykel J. Kochenderfer · DOI

Abstract

Accurate state estimation is fundamental to autonomous robotics, yet traditional methods often rely on Gaussian assumptions that fail to capture the multi-modal complexities of real-world environments. This paper presents a novel framework utilizing Deep Normalizing Flows (NFs) to model non-linear and multi-modal probability distributions. By integrating a Transformer-based architecture to condition these flows on observation history, the proposed method significantly outperforms classical filters and alternative deep generative models in both accuracy and density estimation.

Introduction

State estimation—the process of inferring a robot's internal state from noisy sensor measurements—is a cornerstone of autonomous navigation. For decades, the Kalman Filter and its variants (e.g., the Unscented Kalman Filter) have served as the industry standard. These methods typically assume that uncertainty follows a Gaussian distribution (a symmetric bell curve).

While computationally efficient, this assumption is often violated in practice. When a robot encounters a junction or a branching path, its belief distribution should ideally reflect multiple distinct possibilities—known as multi-modality—rather than a single averaged position. Classical filters struggle with these scenarios, often producing estimates that cover empty space between actual paths.

Methodology: Deep Normalizing Flows

To address the limitations of Gaussian filters, this research proposes the use of Normalizing Flows (NFs). An NF transforms a simple base distribution (such as a standard Gaussian) into a complex target distribution through a sequence of invertible and differentiable mappings.

Unlike Variational Autoencoders (VAEs), which optimize a lower bound, or Generative Adversarial Networks (GANs), which are primarily designed for sampling, NFs allow for exact probability density calculation. This mathematical precision makes them particularly well-suited for state estimation tasks where understanding the exact likelihood of a robot's position is critical.

The Conditioner Scheme

A critical component of state estimation is temporal context; the state at time $t$ depends on the sequence of past observations $o_{1:t}$. To incorporate this, the authors developed a "Conditioner Scheme" where the flow is conditioned on historical data. The study compared four deep learning architectures for this role:

  1. Recurrent Neural Networks (RNN)
  2. Gated Recurrent Units (GRU)
  3. Long Short-Term Memory (LSTM)
  4. Transformers

The Transformer architecture, utilizing self-attention mechanisms to weigh the importance of different past observations, was hypothesized to better capture long-range dependencies within the observation history compared to standard recurrent models.

Experimental Evaluation

The framework was tested on two simulated robotic driving datasets involving a nonholonomic vehicle (a standard model for vehicles with restricted lateral movement):

  • Unimodal Dataset: A standard trajectory where the robot follows a single path with noise.
  • Bimodal Dataset: A "traffic circle" scenario where the robot can choose different branching paths, inducing multi-modality specifically designed to challenge classical filters.

Each dataset contained over 1.5 million data points to ensure robust training and evaluation.

Key Results

The performance was measured using KL Divergence (how much the predicted distribution differs from the ground truth) and Mean Log Likelihood.

Quantitative Performance

In the temporal estimation task, the Normalizing Flow achieved a KL divergence of 0.0684, a substantial improvement over the Unscented Kalman Filter (0.7578), Mixture Density Networks (0.2612), and VAEs (0.7978).

When evaluating the conditioning architectures, the Transformer-based conditioner emerged as the superior model, achieving a Mean Log Likelihood of 1.5736, compared to the LSTM (1.5057), GRU (1.4818), and RNN (1.4255).

Qualitative Insights

Visual analysis revealed that the NF accurately "hugs" the complex, curved shapes of the actual trajectory distribution. In contrast, the UKF produces a broad, inaccurate ellipse. In the bimodal task, the Transformer was uniquely capable of "remembering" initial intent to predict specific exit paths in the traffic circle, whereas recurrent models often became indecisive or biased toward a single branch.

Conclusion and Future Work

Deep Normalizing Flows, particularly when paired with Transformer-based conditioners, provide a powerful alternative to traditional state estimation techniques. By providing exact density estimation and handling multi-modality, they offer a more nuanced understanding of robotic uncertainty.

Future research will focus on moving beyond simulations to handle real-world sensor noise and integrating high-dimensional inputs, such as LIDAR or camera data, directly into the conditioning operator. Additionally, the authors suggest exploring alternative flow architectures, such as unconstrained monotonic neural networks, to further refine density estimation.

Summary updated

BibTeX
@inproceedings{delecki2023deep,
  author = {Harrison Delecki and Liam A. Kruse and Marc R. Schlichting and Mykel J. Kochenderfer},
  title = {{Deep Normalizing Flows for State Estimation}},
  booktitle = {FUSION},
  year = {2023},
  doi = {10.23919/fusion52260.2023.10224196},
}
Figure