Search arXivSearch

arXiv · 2609.05460

Dynamic Windowing in Transformers via Regime Incorporation for Financial Time Series

Abstract

Financial time series exhibit non-stationary behavior, where the strength and extent of temporal dependencies vary across market regimes. Trending, low-volatility phases typically require long-range contextual information, whereas mean-reverting, high-volatility periods rely more heavily on short-term dynamics. Standard Transformer architectures, with fixed attention windows and static positional encodings, are therefore unable to adapt to such variations. In this work, we propose a regime-aware dynamic windowing framework that incorporates market regime information directly into the Transformer. We construct four generic regime signals from price series: volatility ratio, trend strength, local predictability ratio (LPR), and rolling autocorrelation. We incorporate these signals into the model through two mechanisms: (i) regime-augmented inputs to a standard Transformer architecture, and (ii) a modified attention layer that modulates attention weights using regime embeddings. Experiments on five S&P 500 stocks show consistent improvements across five evaluation metrics, demonstrating that regime-aware dynamic windowing enhances both interpretability and predictive performance in financial forecasting tasks.

Explore related subjects

Keep this discovery

BibTeXRIS

Praveen, Prince Chouhan, Keshav Maheshwari, Aman Verma. 2026-08-11. Dynamic Windowing in Transformers via Regime Incorporation for Financial Time Series. https://arxiv.org/abs/2609.05460

Cite the original work for its findings. Save a collection to share your selection of sources.

Discover connections

Connections use source metadata and explicit phrase matches, not verified experimental comparisons.

KEEP EXPLORING

Related papers

Hemispherical Ray-Casting Analysis for Milling Configuration Classification and Machinability Assessment

Early-stage manufacturability assessment reduces design iterations and costly downstream changes. This paper presents a GPU-accelerated geometric analysis method that evaluates CNC machinability and setup requirements directly from CAD files. A multi-stage pipeline uses hemispherical ray-casting to quantify surface accessibility, followed by directional variability analysis to extract dominant machining axes. Threshold-based classification determines 3-axis versus multi-axis machining. For 3-axis parts, orthogonal ray-casting and reachability optimization compute the minimum setup count and explicitly flag inaccessible surfaces. Validation cases show computation times sufficiently short to support interactive CAD workflows, enabling quantitative manufacturability feedback during the design stage without requiring manufacturing expertise.

cs.CE

Intrinsic Finite Element Methods for Fluids on Riemannian Manifolds Compared with Surface FEM

We present an intrinsic finite element formulation for the incompressible Navier--Stokes equations on Riemannian manifolds. We derive the corresponding weak formulation and prove that the backward Euler discretisation is energy stable. The proposed framework is validated on several representative manifolds, with particular attention paid to the long-time behaviour of the flow and its convergence to steady-state solutions represented by Killing vector fields. Comprehensive comparisons are performed with the surface finite element method and a corresponding eigenvalue formulation for Killing vector fields. The numerical results demonstrate that the intrinsic formulation provides an accurate, computationally efficient, and geometrically transparent alternative to embedded surface finite element formulations, while naturally extending to higher-dimensional Riemannian manifolds.

cs.CE