Filtering with State-Observation Examples via Kernel Monte Carlo Filter

Motonobu Kanagawa, Yu Nishiyama, Arthur Gretton, Kenji Fukumizu · DOI

TL;DR

The Kernel Monte Carlo Filter (KMCF) allows for Bayesian filtering in state-space models where the observation model is unknown and only provided as a set of training examples. By leveraging kernel mean embeddings and a novel resampling technique called "Kernel Herding," KMCF performs nonparametric inference that excels in complex, high-dimensional tasks like vision-based robot localization.

What Problem Does This Paper Address?

In classical robotics and signal processing, we use state-space models to track hidden variables (like a robot's position) based on noisy observations (like camera images). Standard tools like the Kalman Filter or Particle Filter require an explicit mathematical formula—an observation model $p(y_t|x_t)$—that describes exactly how a state produces an observation.

However, in the real world, writing down a formula for "what an image looks like at coordinate (x,y)" is nearly impossible. While we can easily collect data—pairs of locations and the images recorded there—standard filters struggle to use this raw data directly. Nonparametric methods like Kernel Density Estimation (KDE) often fail in high dimensions (the "curse of dimensionality"), and parametric models are often too rigid to capture complex environments.

Methods

The authors introduce the Kernel Monte Carlo Filter (KMCF), a "likelihood-free" approach that replaces explicit probability densities with Kernel Mean Embeddings.

The Core Pipeline:

  1. Prediction: Like a particle filter, it propagates state estimates forward using a known transition model.
  2. Correction (The "Aha" Moment): Instead of using a likelihood function, it uses Kernel Bayes’ Rule (KBR). This technique performs a Bayesian update using the similarity (defined by a kernel function) between the current observation and the training examples.
  3. Resampling: Because KBR can produce negative weights (a quirk of working in Reproducing Kernel Hilbert Spaces), standard resampling fails. The authors use Kernel Herding, a greedy optimization algorithm that selects a new set of unweighted samples to represent the distribution, effectively "resetting" the filter's quality.

The paper also provides a rigorous theoretical analysis, proving that this resampling step increases the Effective Sample Size (ESS), which prevents the filter from "dying out" over time—a common problem in sequential Monte Carlo methods.

Datasets

The authors evaluated KMCF on two fronts:

  • Synthetic State-Space Models: Eight different models ranging from simple linear Gaussian systems to complex "stochastic volatility" models with multiplicative noise and strong nonlinearities.
  • COLD Database (COsy Localization Database): A real-world robotics dataset. Specifically, they used the Freiburg subset, which contains trajectories of a robot moving through an indoor environment, providing pairs of (x, y, orientation) coordinates and camera images.

Key Insights and Ideas

  • Representing Distributions as Points: By treating probability distributions as single points in a high-dimensional feature space (RKHS), the authors turn complex integration problems into simple linear algebra.
  • Handling Structured Data: Because the method is kernel-based, it isn't limited to vectors. By using a "Spatial Pyramid Matching" kernel, the filter can process raw images directly without needing a separate feature extraction pipeline.
  • The Necessity of Herding: The paper reveals that even in the "elegant" world of kernels, sample impoverishment is a major hurdle. Resampling isn't just a trick to save memory; it is theoretically shown to be essential for maintaining the accuracy of the sampling procedure in subsequent time steps.

Key Results

  • Superior Accuracy: In synthetic tests with high nonlinearity, KMCF consistently outperformed k-Nearest Neighbor Particle Filters (kNN-PF) and baseline Kernel Bayes filters.
  • Robust Robot Localization: On the COLD dataset, KMCF significantly outperformed kNN-PF, especially as the time interval between observations increased. This suggests KMCF is better at maintaining a "memory" of the state when data is sparse.
  • Efficiency: While the naive algorithm is $O(n^3)$, the authors successfully demonstrated that low-rank approximations and data reduction (reducing the training set size via herding) can make the filter fast enough for real-time applications without significant loss in accuracy.

Limitations and Future Work

  • Known Transitions: The current model assumes the transition model $p(x_t|x_{t-1})$ is known. In many scenarios, this might also need to be learned from data.
  • Distribution Shift: The filter assumes the environment doesn't change between training and testing. If you train a robot in the morning and run it at night, the "observation model" changes due to lighting. The authors suggest transfer learning as a vital next step to make the filter robust to these shifts.
  • Hyperparameter Sensitivity: Like most kernel methods, KMCF relies on choosing the right kernel bandwidth and regularization constants, which currently requires cross-validation on a separate dataset.

Summary updated

BibTeX
@article{kanagawa2016filtering,
  author = {Motonobu Kanagawa and Yu Nishiyama and Arthur Gretton and Kenji Fukumizu},
  title = {{Filtering with State-Observation Examples via Kernel Monte Carlo Filter}},
  journal = {Neural Computation},
  year = {2016},
  doi = {10.1162/neco\_a\_00806},
}
Figure