We begin the proof of Proposition 4.5 by integrating out the final layer weights W^{(L+1)} and introducing a dual variable t\in \mathbb R^{P}, as in the following.
Lemma. Write
X^L:=W^{(L)}\cdots W^{(1)} X,\qquad x^L =W^{(L)}\cdots W^{(1)} x.
We have
Z_\beta(x) =\det(X^TX)^{1/2}\int_{\mathbb R^P} \mathbb E_{\mathrm{prior}}\left[\exp\left[-\frac{\left|\left|t\right|\right|_2^2}{2\beta}+i\theta_*^TXt-\frac{\sigma^2}{2N_L}\left|\left|X^Lt + x^L\right|\right|^2\right] \right]dt,
Proof. From the following identity
\begin{aligned}
1= \int_{\mathbb R^P} \frac{dt}{(2\pi \beta)^{P/2}} \exp\left[-\frac{1}{2\beta} \left|\left|t^T- i\beta\left(\theta_*^TX-W^{(L+1)}X^L\right)\right|\right|^2\right]
\end{aligned}
we conclude
\begin{aligned}
& \exp\left[-\frac{\beta}{2}\left|\left|\theta_*^TX-W^{(L+1)}X^L\right|\right|^2\right]\\
&\quad = \int \frac{d t}{(2\pi \beta)^{P/2}} \exp\left[-\frac{1}{2\beta} \left|\left|t^T- i\beta\left(\theta_*^TX-W^{(L+1)} X^L\right)\right|\right|^2-\frac{\beta}{2}\left|\left|\theta_*^TX-W^{(L+1)} X^L\right|\right|^2\right] \\
&\quad =\int \frac{d t}{(2\pi \beta)^{P/2}} \exp\left[-\frac{1}{2\beta} \left|\left|t\right|\right|^2 +it\left(\theta_*^TX-W^{(L+1)} X^L\right)\right].
\end{aligned}
Substituting this into (?) we find
\begin{aligned}
Z_\beta(x)&= \frac{A_{\beta}}{(2\pi \beta)^{P/2}} \int_{\mathbb R^P}\mathbb E_{\mathrm{prior}}\left[ \exp\left[i\left(\theta_*^TXt-W^{(L+1)}\left(X^Lt +x^L\right)\right) -\frac{\left|\left|t\right|\right|^2}{2\beta}\right]\right] dt
\end{aligned}
Now we compute the expectation over the final layer weights W^{(L+1)} by completing the square:
\begin{aligned}
-\frac{N_L}{2\sigma^2}\left|\left|W^{(L+1)}\right|\right|_2^2 - iW^{(L+1)}\left(X^Lt + x^L\right)= &-\frac{N_L}{2\sigma^2}\left[\left|\left|W^{(L+1)}-i\frac{\sigma^2}{N_L}(X^Lt+x^L)\right|\right|_2^2\right]\\
&- \frac{\sigma^2}{2N_L}\left|\left|X^Lt + x^L\right|\right|_2^2.
\end{aligned}
This yields
Z_\beta (x) =\frac{A_{\beta}}{(2\pi \beta)^{P/2}}\int_{\mathbb R^P}\mathbb E_{\mathrm{prior}}\left[ \exp\left[ -\frac{\left|\left|t\right|\right|^2}{2\beta}+i\theta_*^TXt-\frac{\sigma^2}{2N_L}\left|\left|X^Lt + x^L\right|\right|^2\right]\right]dt,
completing the proof.
For each fixed t, note that
X^Lt + x^L = W^{(L)}\cdots W^{(1)}\left(Xt + x\right).
Hence, the expectation
\mathbb E_{\mathrm{prior}}\left[ \exp\left[-\frac{\sigma^2}{2N_L}\left|\left|X^Lt + x^L\right|\right|^2\right]\right]
equals the Laplace transform
\mathcal L_{Q_{N,L}}\left(M'\left|\left|Xt+x\right|\right|^2\right)
of the random variable
Q_{N,L} = \left|\left| \left\{\prod_{\ell=1}^L \widehat{W}^{(\ell)}\right\} u\right|\right|^2,\qquad \widehat{W}^{(\ell)} \sim \mathcal N\left(0,I_{N_{\ell}\times N_{\ell-1}}\right)\text{ independent},
where u is any unit vector (the distribution is the same for any u since W^1 is rotationally invariant) evaluated at \left|\left|Xt+x\right|\right|^2 times
M' :=\frac{1}{2} \left(\prod_{\ell=1}^L \frac{\sigma^2}{N_\ell}\right)
Thus, we obtain
Z_\beta(x) =\det(X^TX)^{1/2} \int dt \exp\left[-\frac{\left|\left|t\right|\right|^2}{2\beta}+i\theta_*^TXt\right] \mathcal L_{Q_{N,L}}\left(M'\left|\left|Xt+x\right|\right|^2\right),
To proceed we rewrite the Laplace transform in the preceding line in terms of a Meijer-G function.
Lemma. Let Q_{N,L} be defined as in (?). Then,
\begin{aligned}
\mathcal L_{Q_{N,L}}\left(\tau\right)= \left(\prod_{\ell=1}^L \Gamma \left(\frac{N_\ell}{2}\right)\right)^{-1}~\ensuremath{G_{L,1}^{1,L}\left( 2^L\tau ~\bigg| \begin{array}{c}
1-\frac{N_L}{2},\dots,1-\frac{N_1}{2} \\
0
\end{array} \right)}.
\end{aligned}
Proof. The density of Q_{N,L}^{1/2} is known from [zavatone2021exact]:
p_{Q_{N,L}^{1/2}}(\rho) = \frac{2^{1-L/2}}{\Gamma\left(\frac{N_1}{2}\right)\cdots \Gamma\left(\frac{N_{L}}{2}\right)} \ensuremath{G_{0,L}^{L,0}\left( \frac{\rho^2}{2^L } ~\bigg| \begin{array}{c}
- \\
\frac{N_L-1}{2},\cdots, \frac{N_1-1}{2}
\end{array} \right)}.
Hence, the density of \widehat{Q}_{N,L} is
\begin{aligned}
p_{Q_{N,L}}(\rho) &= \frac{1}{2\rho^{1/2}} p_{Q_{N,L}}(\rho^{1/2})\\
&=\frac{2^{-L}}{\Gamma\left(\frac{N_1}{2}\right)\cdots \Gamma\left(\frac{N_{L}}{2}\right)} \left(\frac{2^L}{\rho}\right)^{1/2}\ensuremath{G_{0,L}^{L,0}\left( \frac{\rho}{2^L } ~\bigg| \begin{array}{c}
- \\
\frac{N_L-1}{2},\cdots, \frac{N_1-1}{2}
\end{array} \right)}\\
&=\frac{2^{-L}}{\Gamma\left(\frac{N_1}{2}\right)\cdots \Gamma\left(\frac{N_{L}}{2}\right)} \ensuremath{G_{0,L}^{L,0}\left( \frac{\rho}{2^L } ~\bigg| \begin{array}{c}
- \\
\frac{N_L}{2}-1,\cdots, \frac{N_1}{2}-1
\end{array} \right)},
\end{aligned}
where in the last step we’ve used (4.3). Hence,
\begin{aligned}
\mathcal L_{Q_{N,L}}(\tau) &= \int_0^\infty e^{-\tau \rho} \ensuremath{G_{0,L}^{L,0}\left( \frac{\rho}{2^L } ~\bigg| \begin{array}{c}
- \\
\frac{N_L}{2}-1,\cdots, \frac{N_1}{2}-1
\end{array} \right)} d\rho\\
&=\left(\Gamma\left(\frac{N_1}{2}\right)\cdots \Gamma\left(\frac{N_{L}}{2}\right)\right)^{-1} \frac{1}{2^L\tau} \ensuremath{G_{1,L}^{L,1}\left( \frac{1}{2^L \tau } ~\bigg| \begin{array}{c}
0 \\
\frac{N_L}{2}-1,\cdots, \frac{N_1}{2}-1
\end{array} \right)}\\
&=\left(\Gamma\left(\frac{N_1}{2}\right)\cdots \Gamma\left(\frac{N_{L}}{2}\right)\right)^{-1} \ensuremath{G_{1,L}^{L,1}\left( \frac{1}{2^L \tau } ~\bigg| \begin{array}{c}
0 \\
\frac{N_L}{2},\cdots, \frac{N_1}{2}
\end{array} \right)}\\
&=\left(\Gamma\left(\frac{N_1}{2}\right)\cdots \Gamma\left(\frac{N_{L}}{2}\right)\right)^{-1} \ensuremath{G_{L,1}^{1,L}\left( 2^L \tau ~\bigg| \begin{array}{c}
1-\frac{N_L}{2},\cdots, 1-\frac{N_1}{2} \\
0
\end{array} \right)}
\end{aligned}
where we’ve used (4.3) and (4.3).
Combining the preceding Lemma with (?) gives
\begin{aligned}
Z(x) &= \frac{\det(X^TX)^{1/2}}{\prod_{\ell=1}^L\Gamma\left(\frac{N_\ell}{2}\right)} \int_{\mathbb R^{P}} dt \exp\left[-\frac{\left|\left|t\right|\right|^2}{2\beta}+i\theta_*^TXt\right]~ \ensuremath{G_{L,1}^{1,L}\left( M\|Xt + x\|^2 ~\bigg| \begin{array}{c}
1-\frac{N_L}{2},\dots,1-\frac{N_1}{2} \\
0
\end{array} \right)},
\end{aligned}
where
4M = \prod_{\ell=0}^L \frac{2\sigma^2}{N_\ell}.
To complete the proof of Proposition 4.5, we write
x = x_{||}+x_{\perp},\qquad x_{||}\in \mathrm{col}(X),\quad x_{\perp}\in \mathrm{col}(X)^\perp.
Note that X gives an isomorphism from \mathbb R^P to \mathrm{im}{(X)}. Thus, we may change variables to write Z_\beta(x) as
\begin{aligned}
\prod_{\ell=1}^L\Gamma\left(\frac{N_\ell}{2}\right)^{-1} \int_{\mathbb R^{P}} d\zeta\exp\left[-\frac{\left|\left|X^{\dagger}\zeta\right|\right|^2}{2\beta}+i\theta_*^T\zeta\right]~ \ensuremath{G_{L,1}^{1,L}\left( M\|\zeta + x\|^2 ~\bigg| \begin{array}{c}
1-\frac{{\bf N}}{2} \\
0
\end{array} \right)},
\end{aligned}
where X^{\dagger} the pseudo-inverse of X. Finally, note that
\left|\left|\zeta+x\right|\right|^2 = \left|\left|\zeta + x_{||}\right|\right|^2 + \left|\left|x_\perp\right|\right|^2 .
Hence, changing variables to \tau = \zeta + x_{||} yields the following expression for Z_\beta(x):
\begin{aligned}
&\prod_{\ell=1}^L\Gamma\left(\frac{N_\ell}{2}\right)^{-1} \exp\left[-i\theta_*^Tx_{||}\right]\times \int_{\mathrm{col}{(X)}} d\zeta\exp\left[-\frac{\left|\left|X^{\dagger}(\tau - x_{||})\right|\right|^2}{2\beta}+i\theta_*^T\zeta\right]~ \ensuremath{G_{L,1}^{1,L}\left( M\left|\left|\zeta\right|\right|^2 +M\left|\left|x_\perp\right|\right|^2 ~\bigg| \begin{array}{c}
1-\frac{{\bf N}}{2} \\
0
\end{array} \right)}.
\end{aligned}
This is precisely the statement of Proposition 4.5.