Table of Contents
Fetching ...

A Nonlinear Target-Factor Model with Attention Mechanism for Mixed-Frequency Data

Alessio Brini, Ekaterina Seregina

TL;DR

This work develops MPTE, a Transformer-based framework for estimating latent factors from mixed-frequency panel data with nonlinear signals. It unifies target and auxiliary information through cross-sectional and temporal attention, generalizing Target PCA and enabling transfer-learning gains without resampling. The authors establish consistency and asymptotic normality in the linear case, extend the model to nonlinear signal extraction via a Transformer encoder, and demonstrate superior performance in simulations and macroeconomic forecasting with interpretable attention patterns. The approach provides a flexible, data-driven method for leveraging heterogeneous information sources in high-dimensional time series, with practical relevance for policy analysis and forecasting due to its transparency and adaptability.

Abstract

We propose Mixed-Panels-Transformer Encoder (MPTE), a novel framework for estimating factor models in panel datasets with mixed frequencies and nonlinear signals. Traditional factor models rely on linear signal extraction and require homogeneous sampling frequencies, limiting their applicability to modern high-dimensional datasets where variables are observed at different temporal resolutions. Our approach leverages Transformer-style attention mechanisms to enable context-aware signal construction through flexible, data-dependent weighting schemes that replace fixed linear combinations with adaptive reweighting based on similarity and relevance. We extend classical principal component analysis (PCA) to accommodate general temporal and cross-sectional attention matrices, allowing the model to learn how to aggregate information across frequencies without manual alignment or pre-specified weights. For linear activation functions, we establish consistency and asymptotic normality of factor and loading estimators, showing that our framework nests Target PCA as a special case while providing efficiency gains through transfer learning across auxiliary datasets. The nonlinear extension uses a Transformer architecture to capture complex hierarchical interactions while preserving the theoretical foundations. In simulations, MPTE demonstrates superior performance in nonlinear environments, and in an empirical application to 13 macroeconomic forecasting targets using a selected set of 48 monthly and quarterly series from the FRED-MD and FRED-QD databases, our method achieves competitive performance against established benchmarks. We further analyze attention patterns and systematically ablate model components to assess variable importance and temporal dependence. The resulting patterns highlight which indicators and horizons are most influential for forecasting.

A Nonlinear Target-Factor Model with Attention Mechanism for Mixed-Frequency Data

TL;DR

This work develops MPTE, a Transformer-based framework for estimating latent factors from mixed-frequency panel data with nonlinear signals. It unifies target and auxiliary information through cross-sectional and temporal attention, generalizing Target PCA and enabling transfer-learning gains without resampling. The authors establish consistency and asymptotic normality in the linear case, extend the model to nonlinear signal extraction via a Transformer encoder, and demonstrate superior performance in simulations and macroeconomic forecasting with interpretable attention patterns. The approach provides a flexible, data-driven method for leveraging heterogeneous information sources in high-dimensional time series, with practical relevance for policy analysis and forecasting due to its transparency and adaptability.

Abstract

We propose Mixed-Panels-Transformer Encoder (MPTE), a novel framework for estimating factor models in panel datasets with mixed frequencies and nonlinear signals. Traditional factor models rely on linear signal extraction and require homogeneous sampling frequencies, limiting their applicability to modern high-dimensional datasets where variables are observed at different temporal resolutions. Our approach leverages Transformer-style attention mechanisms to enable context-aware signal construction through flexible, data-dependent weighting schemes that replace fixed linear combinations with adaptive reweighting based on similarity and relevance. We extend classical principal component analysis (PCA) to accommodate general temporal and cross-sectional attention matrices, allowing the model to learn how to aggregate information across frequencies without manual alignment or pre-specified weights. For linear activation functions, we establish consistency and asymptotic normality of factor and loading estimators, showing that our framework nests Target PCA as a special case while providing efficiency gains through transfer learning across auxiliary datasets. The nonlinear extension uses a Transformer architecture to capture complex hierarchical interactions while preserving the theoretical foundations. In simulations, MPTE demonstrates superior performance in nonlinear environments, and in an empirical application to 13 macroeconomic forecasting targets using a selected set of 48 monthly and quarterly series from the FRED-MD and FRED-QD databases, our method achieves competitive performance against established benchmarks. We further analyze attention patterns and systematically ablate model components to assess variable importance and temporal dependence. The resulting patterns highlight which indicators and horizons are most influential for forecasting.
Paper Structure (26 sections, 7 theorems, 159 equations, 7 figures, 14 tables)

This paper contains 26 sections, 7 theorems, 159 equations, 7 figures, 14 tables.

Key Result

Theorem 1

Let $\bar{\alpha} = \frac{\mathrm{tr}(A_z^\top A_z)\,\|A_z^\top A_z\|_F^2}{N_x+N_y}$. Under Assumptions A.1-A.7, as $T,N_x,N_y\to\infty$, the population matrix is positive definite. Moreover, there exists an invertible $r\times r$ rotation matrix $H^{(A)}$ such that and Hence both the estimated loadings and the estimated common components are consistent.

Figures (7)

  • Figure 1: Schematic unifying linear and nonlinear signal extraction. Both specifications operate on the attended panel $\widetilde{Z}=B[X\ \ Y]A_z$. The object of interest is the $k$-dimensional embedding $\mathcal{E}_{\theta}(\widetilde{Z}_t)$: in the linear case $\mathcal{E}_{\theta}$ is affine (PCA/SVD up to rotation), while in the nonlinear case $\mathcal{E}_{\theta}$ is defined by compositions of $g(\cdot)$ as in \ref{['layer_l']}.
  • Figure 2: Wide-panel representation used in the theoretical analysis versus long sequence representation used in implementation for mixed-frequency data. Panel (a) assumes $T_x=T_y=T$ and forms $Z=[X\ \ Y]$. Panel (b) constructs an ordered sequence of observed variable--time pairs $\{(v_\ell,t_\ell)\}_{\ell=1}^L$, embeds each entry, and stacks the resulting tokens into $Z\in\mathbb{R}^{L\times d_{\mathrm{model}}}$ for attention-based aggregation.
  • Figure 3: Out-of-sample forecasts for GDPC1 (top row) and OUTNFB (bottom row). Left panels report forecasts over the pre-COVID evaluation window, while right panels show forecasts over the full out-of-sample period.
  • Figure 4: Cross-sectional attention ($A_z$) heatmaps. The top row shows GDPC1 and the bottom row OUTNFB. For each target, the left panel reports MPTE and the right panel reports the AB1 ablation. The horizontal axis indexes attending variables, while the vertical axis indexes attended variables.
  • Figure 5: Cross-sectional attention ($A_z$) heatmaps for CPILFESL. The left panel reports MPTE and the right panel reports the AB1 ablation. The horizontal axis indexes attending variables, while the vertical axis indexes attended variables.
  • ...and 2 more figures

Theorems & Definitions (15)

  • Theorem 1
  • Theorem 2: Consistency under general cross-sectional attention
  • Lemma 1
  • Theorem 3: Asymptotic distribution of loadings and factors under general cross-sectional attention
  • Theorem 4: Asymptotic distribution of the common component for the $Y$-strong block under general cross-sectional attention
  • Remark 1: Efficiency gains from transfer learning
  • Proposition 5: Linear autoencoder--PCA equivalence
  • proof
  • Remark 2
  • Lemma A.1
  • ...and 5 more