Bilinear Input Normalization for Neural Networks in Financial Forecasting

Dat Thanh Tran, Juho Kanniainen, Moncef Gabbouj, Alexandros IosifidisarXiv 2021

TL;DR

The authors introduce Bilinear Input Normalization (BiN), a novel, end-to-end trainable neural network layer designed specifically for financial time-series. By jointly normalizing data across both temporal and feature dimensions, BiN significantly outperforms standard methods like z-score and Batch Normalization, particularly in high-frequency stock price forecasting.

What Problem Does This Paper Address?

Deep neural networks are notoriously sensitive to input scaling. In most fields, simple techniques like z-score or min-max normalization suffice. However, financial time-series are a different beast: they are highly volatile, non-stationary (the "rules" of the market change over time), and exhibit multi-modality.

Standard normalization relies on global statistics (mean/variance of the whole dataset), which fails when a "regime shift" occurs in the market. While adaptive methods like Deep Adaptive Input Normalization (DAIN) exist, they are often computationally heavy, require complex tuning of multiple learning rates, and typically only focus on the temporal dimension. The authors argue that multivariate financial data is bimodal: a single data point's meaning is defined both by its relationship to its own history (temporal) and its relationship to other assets in the basket (feature).

Methods

The core contribution is the BiN layer, which acts as the very first layer of a neural network. It processes an input matrix $X$ (where rows are features and columns are time steps) through two parallel paths:

  1. Temporal Normalization: It standardizes each "temporal slice" (column) using sample-level statistics. It then applies learnable scaling ($\gamma_2$) and shifting ($\beta_2$) parameters shared across the dataset. This helps the model handle shifts in the absolute price levels over time.
  2. Feature Normalization: Simultaneously, it standardizes each "feature series" (row) across the time window. This uses learnable parameters ($\gamma_1, \beta_1$) to align the distribution of different features (e.g., comparing the bid price of Stock A to the volume of Stock B).
  3. Bilinear Combination: The final output is a weighted linear combination of these two normalized views: $T = \lambda_a A + \lambda_b B$. The scalars $\lambda_a$ and $\lambda_b$ are learned during training, allowing the model to decide which dimension of normalization is more important for the specific forecasting task.

Unlike previous adaptive methods, BiN uses only linear operations, making it robust to standard learning rates and easy to integrate into existing architectures like CNNs or LSTMs.

Datasets

The researchers evaluated BiN using two large-scale Limit Order Book (LOB) datasets:

  • FI-2010: A benchmark dataset containing 10 days of LOB data from five Finnish stocks traded on the NASDAQ Nordic exchange.
  • US Market Data: A much larger, raw dataset (13 million order events) for Amazon and Google stocks from the NASDAQ TotalView-ITCH feed, representing a more liquid and volatile environment.

Key Insights and Ideas

  • The Bimodal Advantage: The most significant "aha moment" is that normalizing across features is just as important as normalizing across time. By treating the input as a set of points in both a D-dimensional space (features) and an H-dimensional space (time), the model can better capture structural patterns that are invariant to market shifts.
  • Simplicity Wins: BiN outperforms the more complex DAIN method while being easier to train. DAIN requires three different learning rates for its internal components; BiN works out-of-the-box with standard optimizers like Adam.
  • Model Efficiency: The authors found that adding a BiN layer to a small, simple model (B-TABL) allowed it to perform as well as a much larger, more complex model (C-TABL). This suggests that proper normalization can drastically reduce the number of parameters needed for high performance.

Key Results

The experiments compared BiN against z-score, min-max, Batch Normalization (BN), and DAIN across various prediction horizons ($H=10, 20, 50$ events).

  • Performance Boost: On the FI-2010 dataset, BiN improved the F1 score of the state-of-the-art C(TABL) model from 78.44% to 88.06% for the longest prediction horizon.
  • Robustness: In the US market experiments, BiN consistently provided the best results, whereas standard Batch Normalization often deteriorated performance when used as an input layer.
  • Regression Accuracy: In tasks predicting when a price movement would happen (regression), BiN achieved the lowest Root Mean Squared Error (RMSE) compared to all other normalization techniques.

Limitations and Future Work

  • Domain Specificity: While highly effective for LOB data, the paper does not explore how BiN performs on lower-frequency data (e.g., daily or weekly charts) where non-stationarity might manifest differently.
  • Heuristic Constraints: The non-negativity constraint on the combination weights ($\lambda$) is implemented by simply clipping negative values to zero during optimization. More sophisticated gating mechanisms could be explored.
  • Future Directions: The authors suggest that the bilinear approach could be extended to other domains that handle multi-dimensional sensor data, such as video processing or multi-modal robotics.

For more details, see the full paper: "Bilinear Input Normalization for Neural Networks in Financial Forecasting" by Tran et al. (2021).

Summary updated

BibTeX
@misc{tran2021bilinear,
  author = {Dat Thanh Tran and Juho Kanniainen and Moncef Gabbouj and Alexandros Iosifidis},
  title = {{Bilinear Input Normalization for Neural Networks in Financial Forecasting}},
  year = {2021},
  eprint = {2109.00983},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.00983},
}
Figure