Bayesian inference of vector autoregressions with tensor decompositions

Yiyong Luo, Jim E. GriffinJournal of Business and Economic Statistics 2022

TL;DR

This paper introduces a more efficient way to handle the "curse of dimensionality" in large-scale economic forecasting. By treating the massive coefficient matrices of Vector Autoregressions (VARs) as three-dimensional tensors and applying a novel Bayesian sampling strategy, the authors achieve better forecasting accuracy and faster computation while making the complex relationships between economic variables actually interpretable.

What Problem Does This Paper Address?

Vector Autoregressions (VARs) are the workhorses of multivariate time-series analysis, especially in macroeconomics. They help us understand how variables like GDP, inflation, and interest rates interact over time. However, they suffer from a major flaw: over-parameterization.

As you add more variables ($N$) or more time lags ($P$), the number of parameters to estimate grows quadratically ($N^2P$). In a typical macroeconomic setting where data is collected only quarterly, you quickly run out of data points to estimate these thousands of parameters reliably. This leads to "overfitting," where the model tracks noise rather than signal. While researchers often use "shrinkage" (like Lasso) to solve this, recent evidence suggests economic data might not be truly sparse—instead, many variables might have small, collective effects. This paper tackles how to model these "dense" but parsimonious relationships without the model exploding in complexity.

Methods

The authors employ Tensor VARs, which treat the coefficient matrix as a third-order tensor (Variables $\times$ Variables $\times$ Lags). To make this manageable, they use a CANDECOMP/PARAFAC (CP) decomposition, which breaks the giant tensor into a sum of a small number of rank-1 components (called "margins").

The paper’s technical "secret sauce" consists of three main innovations:

  1. Adaptive Rank Selection: They use a Multiplicative Gamma Prior (MGP). This is an "increasing shrinkage" prior that automatically penalizes higher-rank components. Combined with an adaptive inferential scheme, the model "learns" the optimal rank on the fly, discarding unnecessary complexity.
  2. Interweaving Gibbs Sampler: Standard Markov chain Monte Carlo (MCMC) methods often struggle with tensor models because the parameters are highly dependent, leading to "poor mixing" (the simulation gets stuck). The authors implement a variant of the Ancillarity-Sufficiency Interweaving Strategy (ASIS), which samples the data through multiple different parameterizations to ensure the simulation explores the space efficiently.
  3. Own-lag Extension: They propose a hybrid structure that adds a separate diagonal matrix for a variable's own lags. This incorporates the classic "Minnesota prior" intuition—that a variable's own past is usually its most important predictor—while letting the tensor focus on complex cross-variable interactions.

Datasets

The models were evaluated using:

  • Simulated Data: Three scenarios with varying dimensions (up to $N=50, R=10$) to test rank recovery and computational speed.
  • US Macroeconomic Data (FRED-QD): A quarterly database containing 124 variables from 1959Q1 to 2019Q4. The authors constructed "medium-scale" (20 variables) and "large-scale" (40 variables) datasets, categorized into groups like output, labor, and prices.

Key Insights and Ideas

  • The "Illusion of Sparsity": The authors lean into the idea that macroeconomic data is better represented by low-rank structures (dense but structured) rather than sparse structures (most effects are zero).
  • Tensors as Factor Models: A fascinating "aha moment" is that a Tensor VAR can be interpreted as a factor model. The "margins" of the tensor decomposition act like factor loadings, allowing researchers to see which groups of variables drive specific economic "themes" (e.g., a "Price Factor" or a "Labor Factor").
  • Computational Efficiency: By using the adaptive MGP approach, the model is significantly faster than previous state-of-the-art Bayesian tensor priors. For the largest dataset ($N=50$), their method was five times faster than the competing M-DGDP prior.

Key Results

  • Forecasting Superiority: In both point and density forecasting, the Tensor MGP models (especially the "Own-lag" version) outperformed standard VARs using popular priors like the Horseshoe or Hierarchical Minnesota priors.
  • Parameter Reduction: For a large-scale model ($N=40, P=5$), the Tensor VAR reduced the number of parameters from 8,000 down to just 455, without losing predictive power.
  • Economic Interpretation: When applied to US data, the model identified three primary factors that align with historical recession periods. These factors were highly correlated with specific economic sectors: Money/Credit, Labor/Production, and Financial Markets (S&P 500).

Limitations and Future Work

While powerful, the authors note a few areas for growth:

  • Static Structure: The current model assumes the margins and the rank are constant over time. In reality, economic relationships often shift (e.g., before and after the 2008 financial crisis).
  • Decomposition Choices: The paper focuses on CP decomposition. Future work could explore Tucker decomposition, which offers a more flexible (though more complex) core structure.
  • Ordering Sensitivity: Like many VAR models, the results can be sensitive to the order in which variables are entered into the system. While the authors tested an "ordering-invariant" version, it struggled with MCMC mixing, suggesting a need for better sampling algorithms in that specific space.

Summary updated

Abstract

Vector autoregressions (VARs) are popular model for analyzing multivariate economic time series. However, VARs can be over-parameterized if the numbers of variables and lags are moderately large. Tensor VAR, a recent solution to over-parameterization, treats the coefficient matrix as a third-order tensor and estimates the corresponding tensor decomposition to achieve parsimony. In this paper, we employ the Tensor VAR structure with a CANDECOMP/PARAFAC (CP) decomposition and conduct Bayesian inference to estimate parameters. Firstly, we determine the rank by imposing the Multiplicative Gamma Prior to the tensor margins, i.e. elements in the decomposition, and accelerate the computation with an adaptive inferential scheme. Secondly, to obtain interpretable margins, we propose an interweaving algorithm to improve the mixing of margins and identify the margins using a post-processing procedure. In an application to the US macroeconomic data, our models outperform standard VARs in point and density forecasting and yield a summary of the dynamic of the US economy.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
US macroeconomic data, large-scale data setTensor MGP Own-LagALPL (Joint)-34.596+4.82 vs baselinedataset-scale=large-scale · forecast-horizon=1
Source quote
L780: -34.596 │ -1.224 │ -1.153 │ -0.971 │ -0.300 │ -0.899 │ -1.063 │ -1.323
US macroeconomic data, large-scale data setTensor MGPALPL (Joint)-36.809+2.61 vs baselinedataset-scale=large-scale · forecast-horizon=1
Source quote
L761: -36.809 │ -1.195 │ -1.183 │ -1.022 │ -0.370 │ -0.995 │ -1.172 │ -1.310
US macroeconomic data, large-scale data set (N=40)Tensor MGP Own-LagNumber of parameters in the coefficient matrix455 parameters-7545 vs baselineobservations=N=40 · inferred-rank=3
Source quote
L851: 455 (Tensor MGP Own-Lag) and 255 (Tensor MGP). Implemented with the same processor mentioned in Section \ref{sec5}, the runtime of Tensor MGP Own-Lag and Tensor MGP is around 2.9 hours and 1.8 hours, respectively, compared to 11 hours by using a standard VAR with NG.
US macroeconomic data, large-scale data set (N=40)Tensor MGPNumber of parameters in the coefficient matrix255 parameters-7745 vs baselineobservations=N=40 · inferred-rank=3
Source quote
L851: 455 (Tensor MGP Own-Lag) and 255 (Tensor MGP). Implemented with the same processor mentioned in Section \ref{sec5}, the runtime of Tensor MGP Own-Lag and Tensor MGP is around 2.9 hours and 1.8 hours, respectively, compared to 11 hours by using a standard VAR with NG.
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
US macroeconomic data, large-scale data setMinnesota baselineALPL (Joint)-39.416dataset-scale=large-scale · forecast-horizon=1
Source quote
L799: -39.416 │ -1.254 │ -1.176 │ -0.984 │ -0.487 │ -0.919 │ -1.126 │ -1.482
US macroeconomic data, large-scale data set (N=40)Standard VAR(5) baselineNumber of parameters in the coefficient matrix8,000 parametersVAR-order=5 · observations=N=40
Source quote
L850: We demonstrate how to interpret Tensor VARs by fitting Tensor MGP Own-Lag and Tensor MGP with the whole large-scale data set (N=40). Both models infer the rank as 3, which means the Tensor VAR structure reduces the number of parameters in the coefficient matrix from 8,000 (standard VAR(5)) to
BibTeX
@article{luo2022bayesian,
  author = {Yiyong Luo and Jim E. Griffin},
  title = {{Bayesian inference of vector autoregressions with tensor decompositions}},
  journal = {Journal of Business and Economic Statistics},
  year = {2022},
}
Figure