TL;DR
Continuous sequence-to-sequence prediction (CSP) from raw, noisy sensory data is crucial for robotics and medical devices but is frequently bottlenecked by long sequence lengths and data drift. This paper introduces Hierarchical State-Space Models (HiSS), an architecture that stacks structured state-space models to capture multi-scale temporal structures efficiently. Evaluated on CSP-Bench, a newly introduced 6-dataset benchmark, HiSS outperforms state-of-the-art models like Transformers, LSTMs, and Mamba by at least 23% in median Mean Squared Error (MSE).
What Problem Does This Paper Address?
Real-world sensors—such as magnetometers, piezoresistors, and inertial measurement units (IMUs)—generate high-frequency, noisy, and non-linear data streams that often exhibit data-dependent drift over time. Translating these raw sensory streams into physical quantities (like force, velocity, or joint angles) is a continuous sequence-to-sequence prediction (CSP) problem.
Traditional filtering methods (like Kalman filters) require complex, hard-to-engineer analytical models of system dynamics. Modern deep learning sequence models offer an alternative, but they hit significant computational walls: Transformers scale quadratically ($O(N^2)$) with sequence length, making them memory-prohibitive for high-frequency sensor data, while LSTMs struggle to maintain long-range dependencies. Furthermore, progress has been slowed by the lack of a unified benchmark to evaluate general-purpose CSP algorithms across different sensor modalities.
Methods
The authors propose Hierarchical State-Space Models (HiSS) to exploit the inherent temporal redundancies in high-frequency sensor data. Instead of processing the entire sequence flatly, HiSS establishes a two-level temporal hierarchy:
- Low-level SSM: The raw input sequence is divided into equally-sized chunks (e.g., a chunk size of $k=10$). A shared, flat State-Space Model (such as S4 or Mamba) processes each chunk to extract local, temporally compact features.
- High-level SSM: A second sequence model operates on the sequence of these local chunk features to make global predictions at the lower target frequency.
By chunking the input, HiSS maintains linear computational complexity ($O(N)$), making it far more efficient than Transformers while explicitly structuring the network to handle multi-frequency phenomena (e.g., high-frequency vibration noise vs. low-frequency sensor drift).
Datasets
To rigorously evaluate CSP models, the authors introduce CSP-Bench, a comprehensive benchmark consisting of six real-world datasets totaling 40 hours of data:
- Three In-House Tactile Datasets: ReSkin Marker Writing (predicting end-effector velocity from magnetic tactile skins), ReSkin Intrinsic Slip (predicting slip velocity across various boxes), and XELA Joystick Control (predicting joystick state from a 16-DOF robot hand).
- Three Curated Public Datasets: RoNIN (smartphone IMU data for inertial navigation), VECtor (event-centric SLAM dataset), and TotalCapture (3D human pose estimation using IMUs).
Key Insights and Ideas
- Temporal Hierarchies Match Sensor Physics: Sensory data naturally contains multi-frequency components (e.g., high-frequency vibration noise vs. slow sensor drift). Flat models treat all timesteps equally, whereas HiSS's chunking mechanism allows the low-level model to filter local noise while the high-level model tracks long-term global trends.
- SSMs Beat Transformers on Continuous Data: Even before applying the hierarchical structure, flat structured state-space models (S4, Mamba) inherently handle long contexts better and scale more efficiently than Transformers and LSTMs, outperforming them by 10–14% median MSE.
- Smart Compression Over Naive Downsampling: Instead of throwing away data via naive downsampling to match the output frequency, the low-level SSM distills and preserves critical high-frequency information into the chunk features.
Key Results
- State-of-the-Art Performance: HiSS achieved a 23% median MSE improvement over the best flat sequence models across the benchmark tasks.
- Data Efficiency: In low-data regimes (training on only 30–50% of the dataset), HiSS consistently outperformed flat baselines, demonstrating superior sample efficiency because its low-level chunk processor operates identically across all chunks.
- End-to-End Filtering: HiSS works exceptionally well on raw data, often outperforming models trained on manually low-pass filtered data. This indicates that the architecture successfully learns to filter out noise end-to-end without relying on handcrafted preprocessing.
Limitations and Future Work
- Failure on High-Dimensional Data: HiSS and flat SSMs underperformed compared to a flat LSTM on the TotalCapture dataset. The authors hypothesize that SSMs struggle to learn expressive representations to filter out noise when both the input and output spaces are highly dimensional (e.g., 60-dimensional joint velocities).
- Hyperparameter Tuning: HiSS introduces an extra hyperparameter—chunk size ($k$). While setting the chunk size to match the sensor-to-output frequency ratio works well, dynamically optimizing or learning this chunk size remains an open direction for future research.
Summary updated