Generalized Factor Neural Network Model for High-dimensional Regression

Zichuan Guo, Mihai Cucuringu, Alexander Y. ShestopaloffarXiv 2025 · DOI

Abstract

In high-dimensional regression settings where the number of features ($p$) significantly exceeds the number of observations ($n$), standard neural networks often suffer from overfitting and numerical instability. This paper introduces the Generalized Factor Neural Network (GFANN) and its additive variant (GFADNN), architectures that integrate differentiable Principal Component Analysis (PCA) and additive structures directly into the deep learning framework. By embedding low-rank factor structures as an inductive bias, these models achieve superior predictive performance and stability in data-scarce environments, such as finance and macroeconomics. Experimental results demonstrate significant improvements in Mean Squared Error (MSE) and financial metrics like the Sharpe ratio compared to state-of-the-art benchmarks.

Introduction

The "curse of dimensionality" presents a fundamental challenge in modern data science: researchers frequently encounter datasets with thousands of variables but relatively few observations. While deep learning has revolutionized fields with abundant data, standard neural networks (NNs) are notoriously data-hungry. When $p > \log(n)$, these models often fail to generalize, capturing noise rather than underlying signals.

Classical statistical approaches, such as Linear Factor Models and Generalized Additive Models (GAMs), offer robustness by assuming data is driven by a few latent factors or univariate functions. However, these models often lack the capacity to capture the complex, non-linear relationships present in real-world systems. This research bridges the gap between the structural discipline of classical statistics and the flexibility of deep learning by proposing a neural network architecture that explicitly models latent factor structures.

Methodology

The authors propose three primary architectural innovations designed to enforce structural constraints within a neural network:

1. Differentiable PCA Layer

Unlike traditional PCA, which is typically a static preprocessing step, the authors introduce a differentiable PCA layer that can be embedded at any stage of a network. A significant challenge with end-to-end PCA training is the "unstable factor axes" problem, where minor fluctuations in data batches cause PCA directions to flip, leading to training divergence. To mitigate this, the authors implement a predetermined operating schedule. This schedule allows for frequent PCA updates during the early stages of training to capture global structure, gradually reducing update frequency as the model stabilizes.

2. Soft PCA Layer

As an alternative to the rigid scheduling of the standard PCA layer, the Soft PCA layer utilizes a custom loss function. This function encourages the model to maximize variance and maintain orthogonality (uncorrelated features) through the backpropagation process itself. This allows the model to dynamically adapt its dimensionality reduction strategy based on the evolving representations learned by the network.

3. Additive Layers

Inspired by GAMs, these layers segregate information flow into independent sub-networks. By preventing "neuron interaction" between unrelated factors, the model is forced to learn a hierarchical compositional structure. This not only improves interpretability but also enhances efficiency in high-dimensional spaces by reducing the parameter space the model must navigate.

These components are integrated into two main architectures: the GFANN (Factor Augmented Neural Network) and the GFADNN (Factor Additive Neural Network).

Experimental Evaluation

The proposed models were evaluated across three distinct environments to test their robustness and predictive power:

  • Simulated Data: Controlled environments were used to test both linear and non-linear relationships (e.g., exponential transformations) between latent factors and observed outputs.
  • Financial Markets (S&P 500 ETF): A dataset spanning 2014–2024 was used to predict next-day returns for 11 sector ETFs using moving averages as features.
  • Macroeconomic Nowcasting (FRED-MD): The models were applied to the FRED-MD database, containing 134 monthly U.S. economic variables, to predict key indicators like unemployment and interest rates.

Key Results and Insights

The integration of factor structures as an inductive bias proved highly effective across all benchmarks:

  • Simulation Performance: In linear scenarios, the GFADNN model improved the test MSE of the previous state-of-the-art (FAR-NN) by 57.3%. In non-linear scenarios, it achieved a 36.9% improvement, demonstrating its ability to handle complex functional forms that traditional factor models cannot.
  • Financial Alpha: In trading simulations, the Soft PCA-based model (SPCA_NN_SPCA_ADD) achieved a Sharpe ratio of 1.244. This significantly outperformed vanilla NNs (0.284) and Lasso regression (0.436), suggesting that the factor structure helps the model ignore the high levels of noise inherent in financial time series.
  • Macroeconomic Robustness: On the FRED-MD dataset, the GFANN model achieved the lowest average rank across 127 different regression tasks. This indicates that the model is more robust than both Lasso and standard "Fast" neural networks in complex, real-world macroeconomic settings.

Discussion and Limitations

The research highlights that structural constraints are a feature, not a bug, in high-dimensional settings. By providing the network with a "hint" to look for low-dimensional factors, the authors effectively regularize the model against noise.

However, several challenges remain. Differentiating through eigenvectors can become numerically unstable if eigenvalues are nearly identical, requiring specific perturbation methods that increase computational overhead. Additionally, the models exhibit sensitivity to hyperparameters, particularly the learning rate in Soft PCA variants. To maintain the integrity of the factor structure, the authors often found it necessary to "freeze" certain weights after initial epochs, suggesting that keeping these weights "live" without losing the factor structure remains an open area for research.

Conclusion

The Generalized Factor Neural Network provides a powerful framework for high-dimensional regression by combining the interpretability and robustness of factor models with the representational power of deep learning. By treating PCA as a trainable, differentiable layer and enforcing additivity, the model overcomes the limitations of standard NNs in data-scarce environments. Future work may extend these hierarchical structures to other domains where compositional data is prevalent, such as genomics or natural language processing.

Summary updated

BibTeX
@misc{guo2025generalized,
  author = {Zichuan Guo and Mihai Cucuringu and Alexander Y. Shestopaloff},
  title = {{Generalized Factor Neural Network Model for High-dimensional Regression}},
  year = {2025},
  eprint = {2502.11310},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.11310},
}
Figure