Combining Slow and Fast: Complementary Filtering for Dynamics Learning

Katharina Ensinger, Sebastian Ziesche, Barbara Rakitsch, Michael Tiemann, Sebastian Trimpe

Abstract

Predicting the long-term behavior of dynamical systems is a fundamental challenge in robotics and control. While Recurrent Neural Networks (RNNs) excel at capturing short-term details, they often suffer from error accumulation and "drift" over long horizons. Conversely, physics-based simulators provide stability but may lack fine-grained accuracy. This paper introduces a novel framework that leverages complementary filtering to fuse these contrasting strengths. By decomposing system trajectories into high-frequency and low-frequency components, the proposed method maintains long-term stability without sacrificing short-term precision.

Introduction

Accurate dynamics modeling is essential for effective control and planning. Currently, researchers typically choose between two paradigms:

  1. Learning-Based Models (e.g., GRUs): These models are highly expressive and can capture complex, data-driven nuances. However, small per-step errors compound during iterative rollouts, leading to significant long-term divergence from the ground truth.
  2. Physics-Based Simulators: Grounded in fundamental laws, these models are inherently stable over long periods. However, they often rely on simplifications that ignore complex phenomena like high-frequency vibrations or non-linear friction.

This research addresses this trade-off by asking if the long-term stability of a "slow" model can be combined with the "fast" details of a learning-based model.

Methodology: Complementary Filtering for Dynamics

The core innovation is the application of complementary filtering—a classic signal processing technique—to dynamics learning. The framework decomposes the target signal into high-pass and low-pass components, which are then modeled separately.

Purely Learning-Based Architecture

In this approach, the training signal is split into two paths:

  • Low-Pass Path: The low-frequency component is downsampled. According to the Nyquist theorem, this preserves the essential slow-moving dynamics while allowing the model to use larger integration steps. This naturally limits the number of steps over a given horizon, drastically reducing error accumulation.
  • High-Pass Path: A separate RNN is trained to capture the high-frequency residuals.
  • Inference: The predictions from both paths are recombined to produce a stable and detailed rollout.
The purely learning-based architecture splits the signal into high-pass and low-pass components for separate RNN training.

Hybrid Architecture

Alternatively, the low-pass RNN can be replaced by a physics-based simulator. The simulator provides a stable "skeleton" of the motion, while a neural network learns to predict the high-frequency "flesh" that the simulator misses. These components are fused using an Infinite Impulse Response (IIR) filter framework.

Experimental Results

The proposed "Split GRU" and hybrid models were evaluated on four systems: a double-mass spring system, a double torsion pendulum, a Van-der-Pol oscillator, and a real-world drill-string system.

Performance Analysis

The frequency-domain decomposition allows the model to "divide and conquer" the complex dynamics. As shown in the analysis of the double-mass spring system, the standard GRU's error grows significantly over time, whereas the Split GRU maintains a near-flat error curve.

Frequency spectrum analysis (left) and accumulated RMSE (right) demonstrate the stability and accuracy gains of the Split GRU.

Quantitatively, for the double-mass spring system, the Split GRU achieved a Total RMSE of 0.127, a substantial improvement over the standard GRU's 0.587. On real-world data from a double torsion pendulum, the method reduced RMSE from 1.124 to 0.331.

Discussion and Future Work

The success of this approach highlights the value of frequency-domain insights in temporal modeling. By decoupling latent states, the authors prevent a single network from struggling with the conflicting demands of short-term accuracy and long-term stability.

However, several areas for future research remain:

  • Filter Optimization: Currently, cutoff frequencies are manually selected. Future iterations could learn these parameters end-to-end.
  • Causality and Phase Delay: While forward-backward filtering mitigates phase shifts during training, this is non-causal. Real-time applications may require causal filter adjustments.
  • Model Complexity: Training two networks increases computational overhead, though the efficiency gains from downsampling the low-pass path partially offset this.

Summary updated

BibTeX
@inproceedings{ensinger2023combining,
  author = {Katharina Ensinger and Sebastian Ziesche and Barbara Rakitsch and Michael Tiemann and Sebastian Trimpe},
  title = {{Combining Slow and Fast: Complementary Filtering for Dynamics Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i6.25909},
}
Figure