Non-Linear Dynamic Factor Analysis With a Transformer Network

35 Pages Posted: 21 Nov 2024 Last revised: 8 Feb 2025

See all articles by Oliver Snellman

Oliver Snellman

University of Helsinki - Helsinki Graduate School of Economics; University of Helsinki - Department of Political and Economic Studies; University of Pennsylvania - Department of Economics

Date Written: October 26, 2024

Abstract

The article proposes a new machine learning Transformer algorithm, which can estimate dynamic factors from multivariate time series datasets. The performance is improved substantially on small datasets by using conventional factor models as prior information to guide the training. The Transformer consists of two Encoders. The first Encoder distills information from data into a factor estimate. The second Encoder has to rely on this factor estimate to minimize the prediction error. The Transformer learns through training to construct the factor estimate from data with minimal identifying assumptions. Monte Carlo experiment finds that the Transformer is more accurate than the Kalman filter, when the data deviates from linear-Gaussian.

Keywords: Transformer Network, Dynamic Factor, State Space

Suggested Citation

Snellman, Oliver, Non-Linear Dynamic Factor Analysis With a Transformer Network (October 26, 2024). Available at SSRN: https://ssrn.com/abstract=5000165 or http://dx.doi.org/10.2139/ssrn.5000165

Oliver Snellman (Contact Author)

University of Helsinki - Helsinki Graduate School of Economics ( email )

P.O. Box 17 (Arkadiankatu 7)
Helsinki, FI00014
Finland

University of Helsinki - Department of Political and Economic Studies ( email )

P.O. Box 54
FIN-00014 Helsinki
Finland

University of Pennsylvania - Department of Economics ( email )

Philadelphia
United States

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
120
Abstract Views
358
Rank
488,447
PlumX Metrics