Skip to content

Deep Learning, Predictability, and Optimal Portfolio Returns: Babiak & Barunik (2026)

Distilled by claude-sonnet-4-6 · extracted Jun 25, 2026, verified Jun 25, 2026

JEL (IAR-assigned): C45, C53, E37, G11, G17 · assigned from the abstract, not the journal

Full structured metadata (methods, scope, relatesTo, topics, datasets): raw Markdown (.md)

paper-summaryasset-pricingreturn-predictabilitymachine-learningneural-networksportfolio-optimizationequitiespeer-reviewedunreplicateddata:welch-goyaldata:nber-cycles

What this is. The paper’s core results, the investor model, and the neural network forecasting method with its defining equations: enough to know what was found and how, without reading the full 22 pages. To replicate or extend, read the source at the original.

The paper asks whether deep neural networks can generate economically meaningful portfolio gains for a long-horizon investor allocating between the US stock market (S&P 500) and a risk-free Treasury bill. Using 12 monthly macroeconomic and financial predictor variables from Welch and Goyal (2008), the paper trains feedforward networks (NN1, NN2, NN3) and an LSTM recurrent network and compares their out-of-sample portfolio performance to linear OLS benchmarks and the no-predictability expectations hypothesis (EH), rebalancing quarterly or annually over February 1955 to December 2018. All deep learning architectures achieve positive out-of-sample R-squared statistics where OLS models uniformly fail, and deliver certainty-equivalent returns and Sharpe ratios roughly double and triple those of the EH benchmark. The LSTM’s gated memory cells, which capture long-range temporal dependence in predictor variables, provide additional gains during NBER recessions and with more frequent rebalancing. Earlier empirical papers by Feng et al. (2018) and Gu et al. (2020) established that deep learning improves statistical predictions for stock returns; this paper demonstrates the translation into economically significant portfolio performance gains.

Magnitudes are as reported. Locators point into the source PDF.

#ResultLocatorMagnitude
R1Deep NNs achieve positive OOS R-squared; all OLS models fail to beat the historical meanTable 1, Panel A, p.8LSTM OOS-R2-q = 1.6% (p=0.002); NN1 = 7.1%, NN2 = 5.1%, NN3 = 5.6% (all p<0.01); OLS1 = -2.5%, OLS2 = -3.6%, OLS3 = -8.0%, OLS4 = -2.5%
R2LSTM roughly doubles the investor’s CER and triples the Sharpe ratio vs no-predictability benchmark (quarterly rebalancing, whole sample)Table 2, Panel A, p.10LSTM CER = 10.007% (p=0.000, SR = 0.175); EH CER = 4.737% (SR = 0.049); NN1 CER = 7.295%, NN2 CER = 6.984%
R3Deep NN gains are especially large during NBER recessions: LSTM CER nearly 9x higher than EH in downturnsTable 2, Panel A, p.10LSTM recession CER = 26.770% (p=0.000, SR = 0.358); EH recession CER = 3.311% (SR = -0.193); LSTM expansion CER = 7.998%
R4Annual rebalancing: NNs still outperform but gains are smaller with less frequent portfolio revisionTable 2, Panel B, p.10LSTM CER = 5.622% (p=0.012, SR = 0.118); EH CER = 4.542% (SR = 0.048); NN2 CER = 6.879%
R5Results robust to transaction costs: LSTM CER exceeds 7.9% even at high TCTable 7, p.17Low TC (tau = 0.1%): LSTM CER = 9.592% (p=0.000, SR = 0.169); High TC (tau = 0.5%): LSTM CER = 7.910% (p=0.000, SR = 0.145)
R6Results robust to borrowing and short-selling constraints: NNs maintain large CER advantageTable 8, Panel C, p.18LSTM with both constraints: CER = 7.775% (p=0.000, SR = 0.150) vs EH CER = 4.737% (SR = 0.049)

Overall (paper’s conclusion). Deep neural networks, particularly the LSTM recurrent architecture, deliver economically significant and statistically significant portfolio gains over the full 1955-2018 sample and across business-cycle subperiods. The gains survive transaction costs, borrowing and short-selling constraints, alternative rebalancing horizons, and a post-1969 20-year rolling window robustness check. The non-parametric capture of time-series structure in standard predictor variables from Welch and Goyal (2008) is the primary source of improvement over linear models, without any explicit modeling of conditional volatility.

The paper formulates a standard power utility portfolio choice problem; it proposes no formal asset-pricing model and takes the 12 predictor variables as given. A representative investor with a T-period horizon maximizes expected utility by choosing an allocation ω\omega between the S&P 500 index and a risk-free Treasury bill.

The power utility function is (p.6):

U(rp,t+T)=rp,t+T1γ1γ,γ=4(U)U(r_{p,t+T}) = \frac{r_{p,t+T}^{1-\gamma}}{1-\gamma}, \qquad \gamma = 4 \tag{U}

where rp,t+Tr_{p,t+T} is the cumulative portfolio return and γ\gamma is the coefficient of relative risk aversion, calibrated to 4 following Johannes et al. (2014). The optimization problem is (Eq. 7, p.5):

maxωEt ⁣[U(rp,t+T)](7)\max_\omega \mathbb{E}_t\!\left[U(r_{p,t+T})\right] \tag{7}

subject to the cumulative portfolio return (Eq. 8, p.5):

rp,t+T=τ=1T ⁣[(1ωt+τ1)exp ⁣(rt+τf)+ωt+τ1exp ⁣(rt+τf+rt+τ)](8)r_{p,t+T} = \prod_{\tau=1}^{T}\!\left[(1-\omega_{t+\tau-1})\exp\!\left(r^f_{t+\tau}\right) + \omega_{t+\tau-1}\exp\!\left(r^f_{t+\tau} + r_{t+\tau}\right)\right] \tag{8}

where rt+τfr^f_{t+\tau} is the risk-free rate and rt+τr_{t+\tau} is the excess equity log return. Two horizon settings: T = 6 months with quarterly rebalancing, and T = 24 months with annual rebalancing. Weights are bounded to 1ωt,τ2-1 \leq \omega_{t,\tau} \leq 2.

Each predictor variable xtix^i_t follows an AR(1) process (Eq. 12, p.6):

xt+τi=αxi+βxixt+τ1i+εt+τxi(12)x^i_{t+\tau} = \alpha^{x^i} + \beta^{x^i} x^i_{t+\tau-1} + \varepsilon^{x^i}_{t+\tau} \tag{12}

The joint forecast errors εt=(εtr,εtx)\varepsilon_t = (\varepsilon^r_t, \varepsilon^x_t) are drawn from a multivariate normal with estimated covariance Σ^t\hat{\Sigma}_t, enabling simulation of future return paths for utility evaluation.

Linear benchmark. The standard predictive regression (Eq. 1, p.3):

rt+1=α+βxt+εt+1r(1)r_{t+1} = \alpha + \beta x_t + \varepsilon^r_{t+1} \tag{1}

where xt=(xt1,,xtn)x_t = (x^1_t, \ldots, x^n_t) is the vector of 12 Welch and Goyal (2008) predictors. OLS1-OLS4 vary by predictor set (single dividend yield vs. kitchen-sink) and estimation window (expanding vs. rolling 10-year).

Deep feedforward neural network. The NN approximation replaces the linear link function (Eq. 2-3, p.4):

rt+1=f^W,b(xt)+εt+1r(2)r_{t+1} = \hat{f}_{W,b}(x_t) + \varepsilon^r_{t+1} \tag{2} r^t+1=fW(L),b(L)(L)fW(1),b(1)(1)(xt)(3)\hat{r}_{t+1} = f^{(L)}_{W^{(L)},b^{(L)}} \circ \cdots \circ f^{(1)}_{W^{(1)},b^{(1)}}(x_t) \tag{3}

where each layer f()f^{(\ell)} applies a sigmoid or ReLU activation to an affine transformation. With L = 2 and linear activations, Eq. (3) reduces to OLS. Three feedforward architectures: NN1 (16 neurons, 1 hidden layer), NN2 (32-16, 2 layers), NN3 (32-16-8, 3 layers).

LSTM recurrent network. The LSTM builds on lstm-recurrent-network by adding gated temporal state. A recurrent network introduces serial dependence into Eq. (3) via a lagged hidden state (Eq. 4, p.4):

ht=f(Whht1+Wxxt+b0)(4)h_t = f(W_h h_{t-1} + W_x x_t + b_0) \tag{4}

The LSTM variant extends this with gated memory cells. The hidden state (output gate) is (Eq. 5, p.5):

ht=σ ⁣(Wh(o)ht1+Wx(o)xt+b0(o))tanh(ct)(5)h_t = \sigma\!\left(W_h^{(o)} h_{t-1} + W_x^{(o)} x_t + b_0^{(o)}\right) \circ \tanh(c_t) \tag{5}

The memory cell combines a forget gate and an input gate (Eq. 6, p.5):

ct=σ ⁣(Wh(g)ht1+Wx(g)xt+b0(g))ct1+σ ⁣(Wh(i)ht1+Wx(i)xt+b0(i))tanh(kt)(6)c_t = \sigma\!\left(W_h^{(g)} h_{t-1} + W_x^{(g)} x_t + b_0^{(g)}\right) \circ c_{t-1} + \sigma\!\left(W_h^{(i)} h_{t-1} + W_x^{(i)} x_t + b_0^{(i)}\right) \circ \tanh(k_t) \tag{6}

where σ()\sigma(\cdot) is the sigmoid function and ktk_t is the new information flow. The forget gate term σ()ct1\sigma(\cdot) c_{t-1} enables long-range dependence across many lags, while the input gate σ()tanh(kt)\sigma(\cdot)\tanh(k_t) incorporates new predictor information. The LSTM uses three recurrent layers with 32-16-8 neurons and LSTM cells in the last layer, building on time-series-forecasting by learning nonlinear time-series patterns in the Welch and Goyal (2008) predictors.

Estimation uses the Adam optimizer with weight decay regularization (Kingma and Ba 2014) and dropout (0-60%). Hyperparameters (learning rate, weight decay, dropout, activation) are selected from 100 random combinations on a rolling validation sample each quarter using a combined statistical and economic criterion.

Data and rolling estimation. Predictors and returns span January 1945 to December 2018. Portfolio evaluation starts February 1955 (after an initial 10-year training window). All models are re-estimated on a rolling 10-year window each quarter (annual: each year), matching the investor’s rebalancing timing.

Statistical accuracy: OOS R-squared. Following Campbell and Thompson (2008) (Eq. 14-15, p.7), the OOS R-squared for quarterly rebalancing is:

Rq,oos2=1tTq(rtr^tMs)2tTq(rtrˉt)2(15)R^2_{q,oos} = 1 - \frac{\displaystyle\sum_{t \in \mathcal{T}_q}(r_t - \hat{r}_t^{\mathcal{M}_s})^2}{\displaystyle\sum_{t \in \mathcal{T}_q}(r_t - \bar{r}_t)^2} \tag{15}

where Tq\mathcal{T}_q is the set of end-of-quarter months when the investor reoptimizes and rˉt\bar{r}_t is the historical mean over the same sample. The Clark-West (2007) test evaluates H0:Roos20H_0: R^2_{oos} \leq 0 (Table 1, p.8). All NNs achieve positive OOS R-squared; all OLS models are negative (R1).

Portfolio performance: CER and Sharpe ratio. Expected utility is computed by simulating 1,000,000 draws from (εr,t+τ,εt+τx)N(0,Σ^t)(\varepsilon_{r,t+\tau}, \varepsilon^x_{t+\tau}) \sim N(0, \hat{\Sigma}_t), iterating Eqs. (10)-(13) forward. The annualized certainty-equivalent return CER solves U(1+CER/100)=Et[U(rp,t+T)]U(1 + \text{CER}/100) = \mathbb{E}_t[U(r_{p,t+T})]. Statistical significance for CER differences from EH is assessed by the one-sided Diebold and Mariano (2002) test (Table 2, p.10). Sharpe ratios are computed monthly.

Robustness checks. Transaction costs: r~tMs=rtMsτωtωt1r^t1Ms\tilde{r}^{\mathcal{M}_s}_t = r^{\mathcal{M}_s}_t - \tau|\omega_t - \omega_{t-1} \hat{r}^{\mathcal{M}_s}_{t-1}| with τ{0.1%,0.5%}\tau \in \{0.1\%, 0.5\%\} (Table 7, p.17). Borrowing constraint (non-negative allocation to risk-free) and short-selling constraint (0ωt10 \leq \omega_t \leq 1) imposed separately and jointly (Table 8, p.18). A 20-year rolling window provides out-of-sample evidence from February 1969 onward (Table 9, p.19). A timing strategy (Table 10, p.20) benchmarks monthly Sharpe ratios across specifications and compares to Rossi (2018).

DatasetRole in paperWiki page
Welch-Goyal monthly predictors12 monthly predictor variables (dividend yield, log earnings-price ratio, dividend payout ratio, book-to-market, net equity expansion, treasury bill rate, term spread, default yield spread, default return spread, cross-sectional premium, inflation growth, stock variance) for S&P 500 excess log returns, Jan 1945-Dec 2018; from Amit Goyal’s websiteNo page yet
NBER business cycle reference datesDefine expansion and recession subsamples in Tables 2, 4, and Figure 2NBER cycles

Sample: monthly, January 1945 to December 2018 (888 monthly observations). Portfolio evaluation: February 1955 to December 2018. Estimation run on GPU cluster (2 servers with 2 NVIDIA GeForce RTX 2080 Ti GPUs; rolling window calibration takes approximately 2 days).

Read the original if you are: building a two-asset dynamic portfolio strategy with aggregate return predictors and want the exact hyperparameter grid and GPU estimation setup; comparing LSTM vs. feedforward NN architectures (NN1-NN3) with a consistent utility-based criterion; benchmarking against Rossi (2018) boosted-tree portfolios or the Johannes et al. (2014) Bayesian predictive framework on the Welch and Goyal (2008) predictor set; or studying the subperiod and decade performance in Tables 4 and 9 (where the Gu et al. (2020) cross-section evidence is separately in the literature). Table 2 gives the headline CER and SR by NBER phase; Tables 7-9 contain the robustness evidence.

Source: peer-reviewed, Journal of Empirical Finance 87 (2026) 101705. This distillation was extracted by an LLM on 2026-06-25 and is not human-verified or independently reproduced. The paper is paywalled (Elsevier B.V., all rights reserved, including text and data mining and AI training); only short extracts are reproduced here.

Babiak, Mykola, and Jozef Baruník. “Deep learning, predictability, and optimal portfolio returns.” Journal of Empirical Finance 87 (2026) 101705. DOI: 10.1016/j.jempfin.2026.101705. © 2026 Elsevier B.V. All rights reserved.

Found an error or want a topic covered? Open an issue, use the Edit page link above, or email contact@instituteforautomatedresearch.org. Edits are reviewed before publishing; provenance and accuracy are the point.