arXiv:2610.07430cs.LGOct 2026

Manuscript Offprint

arXiv:2610.07430

StaFIR: Convex Learning of Stationarity-Aware Causal Filters

Lorena Egger, Mathis Linger

Abstract

Reducing nonstationarity in a persistent time series entails deciding how much of its temporal dependence to remove. In finance, fractional differencing is often tuned using the Augmented Dickey–Fuller (ADF) test, limiting the search to a one-parameter family of lag profiles and addressing input preservation only indirectly. We propose StaFIR, a causal finite-impulse-response filter with a learned nonnegative mixture of exponential lag profiles. Its convex learning objective balances empirical stationarity with similarity to the input. We evaluate StaFIR on ARFIMA–GARCH controlled settings and rolling financial series, including a realized-volatility forecasting task. The experiments show that StaFIR adjusts its filtering strength to persistence while limiting unnecessary transformation in stationary regimes. In downstream forecasting, there is no clear accuracy difference from fixed half-order differencing, while StaFIR achieves higher measured similarity to the raw signal. A complementary direct forecasting experiment finds that greater input similarity is associated with smaller forecasting penalties, although the raw representation remains stronger.

1 Introduction

Financial time series are commonly transformed before model training to reduce nonstationarity and improve out-of-sample performance [Hassler and Pohle, 2023, Lopez de Prado, 2018]. However, financial markets are subject to distribution shifts and regime changes, causing the statistical properties of a time series to evolve over time. Hence, a transformation calibrated in one period can become unsuitable in another.

The choice of transformation must balance reducing nonstationarity against preserving temporal dependence that may remain useful for prediction. Forecasting methods that restore instance statistics or temporal information after stationarization highlight the value of retaining access to information altered by preprocessing [Kim et al., 2022, Liu et al., 2022]. This motivates examining input preservation alongside empirical stationarity. First-order differencing can remove stochastic trends, but may also discard persistent, low-frequency structure [Hosking, 1981]. Fractional differencing generalizes conventional differencing to non-integer orders, allowing non-stationary processes to be transformed while preserving long-term dependence [Granger and Joyeux, 1980]. A common financial application selects the smallest fractional-differencing order for which the transformed series rejects the Augmented Dickey–Fuller (ADF) unit-root null, thereby limiting the loss of temporal dependence relative to first differencing [Lopez de Prado, 2018]. However, this rule controls the balance between persistence reduction and preservation of temporal structure only indirectly, by minimizing the differencing order subject to a binary test decision. Explicitly assessing both properties would allow selection according to a continuous trade-off.

We propose StaFIR, a stationarity-aware finite-impulse-response (FIR) filter learned directly from calibration data. StaFIR is causal and preserves the sign structure of a differencing operator. The filter

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: TS-LIMITS.

represents its lag profile using a nonnegative mixture of normalized exponential decays. Unlike a one-parameter fractional kernel, this representation separates the total weight placed on past observations from its allocation across short and long decay scales. The learning objective balances input fidelity with empirical stationarity penalties and reduces to a small convex second-order cone program (SOCP) that can be solved efficiently using standard convex solvers. The StaFIR implementation and experimental scripts are publicly available at https://github.com/LorenaEgger/StaFIR.

Contributions. We make two main contributions. First, we introduce StaFIR, a causal filter that learns filtering strength and its allocation across time scales through a convex objective balancing input fidelity with empirical stationarity penalties. A contextual validation rule selects the trade-off between empirical stationarity and input similarity. Second, we evaluate StaFIR against fixed and adaptive preprocessing baselines on synthetic and financial data. In realized-volatility forecasting with recursive reintegration, StaFIR retains higher measured input similarity than fixed fractional differencing of order 0.5, with no clear difference in forecast loss across the tested horizons. We further examine sensitivity to the forecasting model and quantify recalibration costs.

References (27)