Inference Machines for Nonparametric Filter Learning

Arun Venkatraman, Wen Sun, Martial Hebert, Byron Boots, J. Andrew Bagnell

Abstract

Data-driven approaches for learning dynamic models for Bayesian filtering often try to maximize the data likelihood given parametric forms for the transition and observation models. However, this objective is usually nonconvex in the parametrization and can only be locally optimized. Furthermore, learning algorithms typically do not provide performance guarantees on the desired Bayesian filtering task. In this work, we propose using inference machines to directly optimize the filtering performance. Our procedure is capable of learning partially-observable systems when the state space is either unknown or known in advance. To accomplish this, we adapt PREDICTIVE STATE INFERENCE MACHINES (PSIMS) by introducing the concept of hints, which incorporate prior knowledge of the state space to accompany the predictive state representation. This allows PSIM to be applied to the larger class of filtering problems which require prediction of a specific parameter or partial component of state. Our PSIM+HINTS adaptation enjoys theoretical advantages similar to the original PSIM algorithm, and we showcase its performance on a variety of robotics filtering problems.

Introduction

Bayesian filtering is a fundamental component of state estimation in robotics, enabling systems like drones to estimate orientation from noisy sensors or robot arms to determine the mass of a grasped object. Traditional approaches typically decouple the problem by learning separate dynamics and observation models. However, this methodology suffers from several critical issues: non-convexity leading to local optima, compounding errors that cause drift, and model mismatch when real-world physics deviates from simple analytic assumptions.

This paper introduces PSIM+HINTS, a discriminative approach that learns to perform inference directly. Instead of learning individual components and then performing mathematical integration, this framework learns a function that maps the previous belief and current observation directly to the next belief state, providing stronger theoretical guarantees against compounding errors.

Methodology

The proposed framework builds upon Predictive State Inference Machines (PSIM). The core innovation is replacing the traditional hidden state with a "predictive state" derived from features of future observations.

PSIM+HINTS and the Inference Machine Filter

While standard PSIM excels at predicting future observations, it often fails to estimate specific physical quantities. The authors introduce "Hints"—prior knowledge or partial state information provided during training—to align abstract predictive states with interpretable physical parameters. For scenarios where the full state is known during training, a simplified Inference Machine Filter (IMF) is utilized.

The Inference Machine architecture directly learns the mapping from previous belief and current observation to the next belief.

Robust Training with DAgger

To mitigate the "cascading error" problem common in sequential prediction, the authors employ Dataset Aggregation (DAgger). During training, the filter "rolls out" its current policy, identifies failure modes, and incorporates these difficult scenarios back into the training set. This iterative process ensures the filter is robust to its own inaccuracies. Furthermore, the nonparametric nature of the learner (e.g., Random Forests or Kernel Regression) allows the system to handle non-linear dynamics and non-Gaussian noise without explicit modeling.

Experimental Evaluation

The approach was evaluated on three benchmarks: a simulated pendulum, quadrotor attitude estimation, and a Kinova Mico grasping task. In the quadrotor task, PSIM+HINTS achieved a mean L2 error of 0.0136, significantly outperforming a hand-tuned Complementary Filter (0.0167) and a standard Linear Kalman Filter (0.0853).

Kinova Mico robot arm grasping an object and the corresponding joint torque data used for mass estimation.

On the robot arm task, the goal was to estimate object mass from joint angles and motor torques. PSIM+HINTS demonstrated approximately 50% higher accuracy at the end of a trajectory compared to an Autoregressive (AR) baseline. Notably, the error remained stable over long horizons (up to 600 timesteps), validating the effectiveness of DAgger training in preventing drift.

Discussion and Conclusion

The results suggest that direct optimization of end-to-end filtering performance is superior to optimizing intermediate model likelihoods. By focusing on the final estimate, the system naturally ignores modeling errors that do not impact performance. Surprisingly, the learned models outperformed an Unscented Kalman Filter (UKF) even when the UKF was provided with exact physics equations, likely due to the inference machine's robustness to belief state initialization.

While powerful, the framework currently relies on manual feature engineering for the "messages" passed between timesteps. Future work may explore automated feature discovery via deep learning. Nevertheless, this work represents a significant step toward robust, goal-directed machine learning for robotics in complex, real-world environments.

Summary updated

BibTeX
@inproceedings{venkatraman2016inference,
  author = {Arun Venkatraman and Wen Sun and Martial Hebert and Byron Boots and J. Andrew Bagnell},
  title = {{Inference Machines for Nonparametric Filter Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2016},
  url = {https://openreview.net/forum?id=B14zDEzuZB},
}
Figure