Shifting the Paradigm: A Diffeomorphism Between Time Series Data Manifolds for Achieving Shift-Invariancy in Deep Learning
Berken Utku Demirel, Christian Holz
TL;DR
This work tackles the lack of shift invariance in time-series deep learning by introducing a differentiable bijective transformation that maps shifted variants of a sample to a single point on a high-dimensional data manifold. Grounded in Fourier-domain phase alignment, the method defines a diffeomorphism \mathcal{T}(\mathbf{x}, \phi) guided by a small network that predicts a phase angle, and it is trained with a cross-entropy loss plus a variance-based regularizer to enforce invariance. The authors provide theoretical guarantees of bijectivity and shift-invariance, and validate the approach on nine datasets spanning six tasks, showing consistent gains in accuracy and dramatically higher shift-consistency than state-of-the-art baselines. The results demonstrate that shift-invariance can be achieved without restricting model topology or shift ranges, making the technique broadly applicable to real-world time-series problems such as HR monitoring, activity recognition, sleep staging, and respiratory analysis.
Abstract
Deep learning models lack shift invariance, making them sensitive to input shifts that cause changes in output. While recent techniques seek to address this for images, our findings show that these approaches fail to provide shift-invariance in time series, where the data generation mechanism is more challenging due to the interaction of low and high frequencies. Worse, they also decrease performance across several tasks. In this paper, we propose a novel differentiable bijective function that maps samples from their high-dimensional data manifold to another manifold of the same dimension, without any dimensional reduction. Our approach guarantees that samples -- when subjected to random shifts -- are mapped to a unique point in the manifold while preserving all task-relevant information without loss. We theoretically and empirically demonstrate that the proposed transformation guarantees shift-invariance in deep learning models without imposing any limits to the shift. Our experiments on six time series tasks with state-of-the-art methods show that our approach consistently improves the performance while enabling models to achieve complete shift-invariance without modifying or imposing restrictions on the model's topology. The source code is available on \href{https://github.com/eth-siplab/Shifting-the-Paradigm}{GitHub}.
