Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    When Does a Random Network Define a Field Theory?

    A distribution over network parameters induces a distribution over functions. Its two-point function can resemble a field propagator, and its connected higher moments can be organized as interactions. This is a useful calculational correspondence, but it leaves an important question: which properties of a quantum field theory have actually been constructed?

    We answer a finite version of that question explicitly. A random cosine-feature ensemble is chosen to reproduce the covariance of a regulated massive scalar. Its connected fourth cumulant is derived, tested against sampled weights, and converted into a finite-dimensional one-particle-irreducible vertex. A separate reflection-positivity counterexample then shows why a positive covariance and translation symmetry do not suffice for a Lorentzian quantum interpretation.

    Preparation. Gaussian fields, connected generating functions and Legendre transforms. No network training is used here. The width NN counts random features; it is distinct from the number of lattice sites and from a sample count.

    The random weights now define a probability law for field configurations. The physical questions become the covariance, its higher connected moments and whether the measure permits a positive Hilbert-space reconstruction. The earlier two-site susceptibility benchmark used fitted weights to interpolate an independently defined observable.

    Start from a precisely normalized regulated field

    Take M=8M=8 periodic sites, spacing a=0.5a=0.5, length L=Ma=4L=Ma=4, and mass m=1m=1. Define

    K=m2−Δa,(Δaϕ)j=ϕj+1−2ϕj+ϕj−1a2,S0(ϕ)=a2ϕTKϕ.(1)K=m^2-\Delta_a,\qquad (\Delta_a\phi)_j=\frac{\phi_{j+1}-2\phi_j+\phi_{j-1}}{a^2}, \qquad S_0(\phi)=\frac a2\phi^TK\phi. \tag{1}

    This is a positive Euclidean quadratic action. The normalized Gaussian measure has covariance C=(aK)−1C=(aK)^{-1}, not K−1K^{-1}: the lattice integration weight aa matters. In Fourier coordinates,

    λr=m2+[2asin⁡πrM]2,C(j−l)=1aM∑r=0M−1cos⁡[2πr(j−l)/M]λr.(2)\lambda_r=m^2+\left[\frac2a\sin\frac{\pi r}{M}\right]^2, \qquad C(j-l)=\frac1{aM}\sum_{r=0}^{M-1} \frac{\cos[2\pi r(j-l)/M]}{\lambda_r}. \tag{2}

    All indices below are understood modulo MM. The positive mass makes CC strictly positive definite. Write C0=C(0)C_0=C(0); here C0=0.5039349073C_0=0.5039349073.

    Choose a random mode and phase with

    pr=λr−1∑sλs−1,b∼Uniform⁡[0,2π),fj(r,b)=2C0cos⁡(2πrj/M+b).(3)p_r=\frac{\lambda_r^{-1}}{\sum_s\lambda_s^{-1}},\qquad b\sim\operatorname{Uniform}[0,2\pi),\qquad f_j(r,b)=\sqrt{2C_0}\cos(2\pi rj/M+b). \tag{3}

    Then construct the width-NN field

    ϕj=1N∑α=1NAαfj(rα,bα),Aα∼N(0,1),(4)\phi_j=\frac1{\sqrt N}\sum_{\alpha=1}^N A_\alpha f_j(r_\alpha,b_\alpha), \qquad A_\alpha\sim\mathcal N(0,1), \tag{4}

    with all amplitudes, modes and phases independent. This is a completely specified probability law. It can be sampled without evaluating a field-space density.

    Derive the covariance before taking a width limit

    The phase average gives

    Eb[fjfl]=C0cos⁡[2πr(j−l)/M],Ef[fjfl]=C(j−l).(5)\mathbb E_b[f_jf_l] =C_0\cos[2\pi r(j-l)/M], \qquad \mathbb E_f[f_jf_l]=C(j-l). \tag{5}

    Only equal feature labels survive the amplitude average in (4). Thus

    Eϕj=0,E[ϕjϕl]=C(j−l)(6)\mathbb E\phi_j=0,\qquad \mathbb E[\phi_j\phi_l]=C(j-l) \tag{6}

    for every positive integer NN. The covariance was engineered by the mode probabilities; it is not inferred from a fit.

    Translating the lattice by ss shifts each phase by 2πrαs/M2\pi r_\alpha s/M, preserving its uniform law. Reflection also preserves the ensemble because pr=pM−rp_r=p_{M-r}. These are symmetries of the full finite-width law. They do not yet establish reflection positivity, which is a different inequality discussed below.

    At fixed M,a,mM,a,m, the multivariate central limit theorem gives a Gaussian vector with covariance CC as N→∞N\to\infty. That limit recovers the particular regulated free measure (1). It is a width limit at a fixed regulator, not a continuum limit or a statement about an interacting relativistic theory. Exact covariance and connected-cumulant width counting are developed more generally in Halverson, Maiti and Stoner, §2.5, Eqs. (2.39)–(2.43).

    The connected fourth cumulant is a finite-width effect

    Use labels 1,2,3,41,2,3,4 for arbitrary site indices j1,j2,j3,j4j_1,j_2,j_3,j_4, and write C12=C(j1−j2)C_{12}=C(j_1-j_2). Define the feature fourth moment D1234=Ef[fj1fj2fj3fj4]D_{1234}=\mathbb E_f[f_{j_1}f_{j_2}f_{j_3}f_{j_4}]. Expanding four cosines leaves three pairs of opposite total phase. Averaging the mode then gives

    D1234=C02[C(j1+j2−j3−j4)+C(j1+j3−j2−j4)+C(j1+j4−j2−j3)].(7)\begin{aligned} D_{1234}=\frac{C_0}{2}\big[&C(j_1+j_2-j_3-j_4) +C(j_1+j_3-j_2-j_4)\\ &+C(j_1+j_4-j_2-j_3)\big]. \end{aligned} \tag{7}

    For one summand Xj=AfjX_j=A f_j, Gaussian amplitude averaging gives E[X1X2X3X4]=3D1234\mathbb E[X_1X_2X_3X_4]=3D_{1234}. Independent-sum cumulants add, while the four factors N−1/2N^{-1/2} give N−2N^{-2}. Consequently

    κ1234=3D1234−C12C34−C13C24−C14C23N.(8)\kappa_{1234} =\frac{3D_{1234}-C_{12}C_{34}-C_{13}C_{24}-C_{14}C_{23}}{N}. \tag{8}

    This identity is exact at finite NN. At a single site D0000=3C02/2D_{0000}=3C_0^2/2, hence

    κ0000=3C022N.(9)\kappa_{0000}=\frac{3C_0^2}{2N}. \tag{9}

    The positive excess fourth moment reflects fluctuations in the conditional variance supplied by the random features. More generally, the connected 2k2k-point cumulant scales as N1−kN^{1-k} for these independent, identically distributed summands. This follows from cumulant additivity, not from a slope fitted to a noisy plot. See Demirtas et al., §2.1 and §2.3.1, Eqs. (2.33)–(2.38) for the generating-function organization of this expansion.

    Construct the generating function and the 1PI vertex

    Let j∈RMj\in\mathbb R^M be the coordinate source in jTϕj^T\phi. A sampled physical source JJ in a∑lJlϕla\sum_lJ_l\phi_l therefore corresponds to j=aJj=aJ. Integrating the Gaussian amplitudes in (4) exactly gives

    ZN(j)=EejTϕ=[Efexp⁡ ⁣((jTf)22N)]N,WN(j)=log⁡ZN(j).(10)Z_N(j)=\mathbb E e^{j^T\phi} =\left[\mathbb E_f\exp\!\left(\frac{(j^Tf)^2}{2N}\right)\right]^N, \qquad W_N(j)=\log Z_N(j). \tag{10}

    The features are bounded, so this expression is finite for every finite real source. Its local expansion is

    WN(j)=12jTCj+14!κabcdjajbjcjd+⋯ ,(11)W_N(j)=\frac12j^TCj +\frac1{4!}\kappa_{abcd}j_aj_bj_cj_d+\cdots, \tag{11}

    with repeated site indices summed. All odd cumulants vanish by amplitude symmetry.

    Define ϕˉ=∇jWN\bar\phi=\nabla_jW_N and the Legendre transform

    ΓN(ϕˉ)=jTϕˉ−WN(j).(12)\Gamma_N(\bar\phi)=j^T\bar\phi-W_N(j). \tag{12}

    Strictly positive C=WN′′(0)C=W_N''(0) makes the source-to-mean map locally invertible at zero. Let B=C−1=aKB=C^{-1}=aK. Solving the mean equation through cubic order gives

    ji=Biaϕˉa−13!Biaκabcd(Bϕˉ)b(Bϕˉ)c(Bϕˉ)d+O(∣ϕˉ∣5).(13)j_i=B_{ia}\bar\phi_a -\frac1{3!}B_{ia}\kappa_{abcd} (B\bar\phi)_b(B\bar\phi)_c(B\bar\phi)_d+O(|\bar\phi|^5). \tag{13}

    Since ∇ϕˉΓ=j\nabla_{\bar\phi}\Gamma=j, differentiating once more yields

    Γab(2)(0)=Bab,Γabcd(4)(0)=−BaiBbjBckBdlκijkl.(14)\Gamma^{(2)}_{ab}(0)=B_{ab},\qquad \Gamma^{(4)}_{abcd}(0) =-B_{ai}B_{bj}B_{ck}B_{dl}\kappa_{ijkl}. \tag{14}

    Equation (14) is an exact finite-NN derivative identity here: the cubic connected function vanishes, so no cubic-vertex terms enter the fourth derivative. This is the finite-dimensional amputation of four external propagators. The tensor is generally nonlocal, despite the local quadratic inverse covariance aKaK.

    One may write a local-in-field expansion

    ΓN(ϕˉ)=12ϕˉTBϕˉ−14!κijkl(Bϕˉ)i(Bϕˉ)j(Bϕˉ)k(Bϕˉ)l+⋯ .(15)\Gamma_N(\bar\phi)=\frac12\bar\phi^TB\bar\phi -\frac1{4!}\kappa_{ijkl}(B\bar\phi)_i(B\bar\phi)_j (B\bar\phi)_k(B\bar\phi)_l+\cdots. \tag{15}

    The quartic coefficient is of order 1/N1/N. Truncating the whole function at that term is an approximation: sixth derivatives contain both sixth cumulants and products of fourth cumulants, of order N−2N^{-2}. A negative quartic coefficient in (15) does not make the full Legendre transform unbounded; it warns against treating its low-field polynomial as a global action.

    There is another distinction. A Legendre effective action is not the negative logarithm of a field-space probability density. The latter is the object treated by an Edgeworth density expansion in Demirtas et al., §3.1, Eqs. (3.7)–(3.15). Our finite law need not even have a density on all of RM\mathbb R^M: the event that all modes in (4) equal zero has positive probability p0Np_0^N and produces a constant field, a singular component supported on a lower-dimensional subspace. Equations (10)–(14) require no assumption of a smooth global density.

    An independent one-source check

    For a source at site zero, f0=2C0cos⁡bf_0=\sqrt{2C_0}\cos b does not depend on the random mode. Using cos⁡2b=(1+cos⁡2b)/2\cos^2b=(1+\cos2b)/2 in (10),

    WN(te0)=C0t22+Nlog⁡I0 ⁣(C0t22N),(16)W_N(t e_0)=\frac{C_0t^2}{2} +N\log I_0\!\left(\frac{C_0t^2}{2N}\right), \tag{16}

    where I0I_0 is the modified Bessel function. Since log⁡I0(z)=z2/4+O(z4)\log I_0(z)=z^2/4+O(z^4), the fourth derivative is 3C02/(2N)3C_0^2/(2N), agreeing with (9).

    The one-variable Legendre transform of (16), denoted γN(ϕˉ0)\gamma_N(\bar\phi_0), obeys

    γN(4)(0)=−κ0000C04=−32NC02.(17)\gamma_N^{(4)}(0)=-\frac{\kappa_{0000}}{C_0^4} =-\frac3{2NC_0^2}. \tag{17}

    This is a marginal one-coordinate transform. It is not obtained by assuming that the full-field ΓN\Gamma_N along the coordinate axis has the same fourth derivative: other mean coordinates also respond to a source at site zero.

    The companion independently integrates the phase at orders 128 and 256 for t=0.1,0.2,0.4t=0.1,0.2,0.4 and N=1,4,16,64N=1,4,16,64, agreeing with (16) to below 10−1210^{-12}. It also solves the one-dimensional source-to-mean equation and uses the centered fourth difference

    2γN(2h)−8γN(h)h4(18)\frac{2\gamma_N(2h)-8\gamma_N(h)}{h^4} \tag{18}

    at h=0.1,0.05,0.025,0.0125h=0.1,0.05,0.025,0.0125. The constant term is zero and the quadratic term cancels. At N=1N=1, the errors decrease from 0.2770.277 to 0.004570.00457; at N=64N=64, from 7.15×10−57.15\times10^{-5} to 9.66×10−79.66\times10^{-7}.

    Dense inversion and the independent Fourier covariance agree within 2.3×10−162.3\times10^{-16}. A sixteen-phase quadrature independently checks every feature fourth-moment component to 5.0×10−165.0\times10^{-16}. The full 848^4 vertex tensor is formed and multiplied back by four covariances; the normalized discrepancy from the original cumulant is below 10−1410^{-14}. Permutation and translation tests are retained as well.

    Sample the weights without hiding subtraction noise

    The experiment draws 65,536 independent fields at each width N=1,4,16,64N=1,4,16,64, divided into 256 independent blocks of 256 for uncertainty estimates. Modes, phases and Gaussian amplitudes have separate fixed seed streams. There is no training, selected width range or resampling after inspecting the outcome.

    Directly estimating a connected fourth moment involves cancellation. Because CC is known exactly in this example, use the Wick-centered statistics

    H0000=ϕ04−6C0ϕ02+3C02,(19)H_{0000}=\phi_0^4-6C_0\phi_0^2+3C_0^2, \tag{19}

    and

    H0011=ϕ02ϕ12−C00ϕ12−C11ϕ02−4C01ϕ0ϕ1+C00C11+2C012.(20)\begin{aligned} H_{0011}={}&\phi_0^2\phi_1^2-C_{00}\phi_1^2-C_{11}\phi_0^2 -4C_{01}\phi_0\phi_1\\ &+C_{00}C_{11}+2C_{01}^2. \end{aligned} \tag{20}

    Their expectations are the indicated cumulants. Using the exact CC avoids bias from products of a noisy sample covariance; it should not be silently replaced by such products in a different application.

    There is a useful conditional estimator from the same random features. Given them, ϕ\phi is Gaussian with covariance

    C^=1N∑αfαfαT,ΔC=C^−C.(21)\widehat C=\frac1N\sum_\alpha f_\alpha f_\alpha^T, \qquad \Delta C=\widehat C-C. \tag{21}

    Conditional Wick contraction in (19)–(20) gives

    EA[H0000∣f]=3(ΔC00)2,EA[H0011∣f]=ΔC00ΔC11+2(ΔC01)2.(22)\mathbb E_A[H_{0000}\mid f]=3(\Delta C_{00})^2, \qquad \mathbb E_A[H_{0011}\mid f] =\Delta C_{00}\Delta C_{11}+2(\Delta C_{01})^2. \tag{22}

    This integrates over the Gaussian amplitudes rather than drawing additional fields. The law of total variance proves that conditioning cannot increase the population variance. Raw and conditional estimates share features and are correlated; the retained driver also reports their paired difference and its uncertainty.

    Width NNExact κ0000\kappa_{0000}Raw estimate ±\pm SEConditional estimate ±\pm SE
    10.3809260.3809260.37591±0.015520.37591\pm0.015520.37970±0.001020.37970\pm0.00102
    40.09523140.09523140.09663±0.007100.09663\pm0.007100.095604±0.0004900.095604\pm0.000490
    160.02380780.02380780.02076±0.005520.02076\pm0.005520.023972±0.0001280.023972\pm0.000128
    640.005951960.005951960.00656±0.005540.00656\pm0.005540.0059393±0.00003160.0059393\pm0.0000316

    Each SE is the sample standard deviation of 256 block means divided by 256\sqrt{256}. At the largest width, the raw error is almost as large as the signal. A visually suggestive line through these raw points would be weak evidence for an exponent. The 1/N1/N law is instead the exact result (8), and the sampled-weight comparison tests it with its actual precision.

    Raw and conditional estimates of two connected fourth cumulants at four widths, scaled by width so the exact predictions are horizontal; the raw uncertainty grows relative to the finite-width signal.

    Both panels use the same fixed 65,536 realizations per width. The vertical coordinate is NκN\kappa, so exact width scaling is horizontal without fitting a slope. Error bars are one block-based SE. Conditional amplitude integration reduces the uncertainty of the same observable; it does not supply independent extra samples.

    The fixed model, full tensors, block summaries and selected outcomes are retained in random_feature_field.py, random_feature_checks.py and random-feature-results.json under examples/computational-qft/machine-learning/.

    A positive covariance can still fail reflection positivity

    Ordinary covariance positivity tests C(ti−tj)C(t_i-t_j). A necessary two-point reflection-positivity condition for a translation-invariant Euclidean theory instead tests

    ∑i,jci‾cjC(ti+tj)≥0,ti,tj>0.(23)\sum_{i,j}\overline{c_i}c_j C(t_i+t_j)\geq0, \qquad t_i,t_j>0. \tag{23}

    Time reflection changes the difference into a sum. For smooth test functions, the corresponding sum is a double integral over positive times. This condition is part of the additional structure needed for a unitary Lorentzian reconstruction; see the distinction between statistical field ensembles and QFT in Demirtas et al., §1.2.

    Consider two separate continuum-time kernels,

    Cfree(t)=e−m∣t∣2m,CG(t)=e−t2/(2ℓ2),m,ℓ>0.(24)C_{\rm free}(t)=\frac{e^{-m|t|}}{2m},\qquad C_{\rm G}(t)=e^{-t^2/(2\ell^2)},\qquad m,\ell>0. \tag{24}

    The first is the massive free oscillator covariance. Its reflected matrix is an outer product, Cfree(ti+tj)=e−mtie−mtj/(2m)C_{\rm free}(t_i+t_j)=e^{-mt_i}e^{-mt_j}/(2m), and is positive semidefinite for any positive-time test points. The second is a positive ordinary covariance with a positive Gaussian Fourier transform. But for two distinct positive times,

    det⁡[CG(ti+tj)]i,j=12=e−2(t12+t22)/ℓ2−e−(t1+t2)2/ℓ2<0.(25)\det\big[C_{\rm G}(t_i+t_j)\big]_{i,j=1}^2 =e^{-2(t_1^2+t_2^2)/\ell^2} -e^{-(t_1+t_2)^2/\ell^2}<0. \tag{25}

    At m=ℓ=1m=\ell=1 and (t1,t2)=(0.5,1)(t_1,t_2)=(0.5,1), the Gaussian reflected matrix has eigenvalues approximately −0.0301973-0.0301973 and 0.77206320.7720632. Its ordinary covariance matrix has positive eigenvalues 0.11750310.1175031 and 1.88249691.8824969. There is no contradiction: the tested matrices differ.

    Continuity allows the negative point-test combination to be replaced by sufficiently narrow smooth bumps supported near these positive times, retaining the negative sign. Thus the failure is not an artifact of using delta functions as test functions. Conversely, passing a two-point test alone would not verify the higher-point inequalities of a non-Gaussian theory. This separate kernel comparison neither proves nor disproves full reflection positivity of the finite-width lattice ensemble (4).

    Keep the three limits and the claims separate

    At fixed regulator, increasing NN in (4) suppresses connected non-Gaussian cumulants and approaches the specified Gaussian law. Training would change the parameter distribution and could destroy independence, so the same counting would need to be rederived. A continuum limit would change M,aM,a and possibly couplings while matching physical quantities. None of those operations is interchangeable with increasing the number of Monte Carlo draws used to measure a fixed ensemble.

    The present construction proves finite probability, exact covariance, lattice symmetries, the connected fourth tensor and its amputated 1PI vertex. It does not prove locality of that vertex, a continuum interacting measure, clustering in an infinite-volume limit or all reflection-positivity conditions. Those are substantive field-theory requirements, not consequences of naming the random function a network.

    Summary

    A specified network ensemble gives a genuine probability law and hence computable correlation functions. Here it reproduces a regulated free covariance at every width and has an exact connected fourth correction proportional to 1/N1/N. The finite-dimensional Legendre transform supplies a corresponding exact fourth derivative, while its quartic truncation and any density-action interpretation require separate care. Translation symmetry and positive covariance still leave reflection positivity and continuum locality unresolved.

    Exercises

    1. Change the amplitude distribution

    Replace the Gaussian amplitudes by independent symmetric variables with mean zero, variance one and finite fourth moment β\beta. Keep the feature distribution unchanged. Derive the one-site connected fourth cumulant and compare Gaussian and Rademacher amplitudes. How does the result enter the 1PI fourth vertex?

    Solution

    The covariance is unchanged because it uses only EA2=1\mathbb E A^2=1. For one summand X0=Af0X_0=Af_0,

    EX04=βEf04=32βC02.\mathbb E X_0^4=\beta\mathbb E f_0^4 =\frac32\beta C_0^2.

    Its fourth cumulant is therefore (3β/2−3)C02(3\beta/2-3)C_0^2. Additivity and the N−1/2N^{-1/2} normalization give

    κ0000=(32β−3)C02N.\kappa_{0000}=\left(\frac32\beta-3\right)\frac{C_0^2}{N}.

    Gaussian amplitudes have β=3\beta=3, producing the positive value (9). Rademacher amplitudes A=±1A=\pm1 have β=1\beta=1, producing −3C02/(2N)-3C_0^2/(2N). Finite width by itself does not fix the sign of the non-Gaussian correction.

    For all site labels the numerator in (8) becomes βD1234\beta D_{1234} minus the three covariance products. If the moment-generating function exists near zero, the symmetric law still has no odd vertices and (14) applies with that new cumulant. A finite fourth moment alone need not guarantee such a moment-generating function; the Gaussian and Rademacher cases do have one. The marginal one-site 1PI derivative is −κ0000/C04-\kappa_{0000}/C_0^4, with the opposite sign from its connected fourth cumulant.

    2. Test reflection rather than ordinary covariance

    Derive the two reflected determinants for (24). Show that the Gaussian kernel's ordinary two-point covariance remains positive for distinct times, and explain the consequence for a proposed Euclidean QFT.

    Solution

    For the free kernel, Hij=vivj/(2m)H_{ij}=v_iv_j/(2m) with vi=e−mtiv_i=e^{-mt_i}. Hence c†Hc=∣∑icivi∣2/(2m)≥0c^\dagger Hc=|\sum_i c_iv_i|^2/(2m)\geq0 and the two-by-two determinant is zero.

    For the Gaussian kernel, the reflected diagonal entries are e−2ti2/ℓ2e^{-2t_i^2/\ell^2} and the off-diagonal square is e−(t1+t2)2/ℓ2e^{-(t_1+t_2)^2/\ell^2}. Their determinant is (25). Since

    2(t12+t22)−(t1+t2)2=(t1−t2)2>0,2(t_1^2+t_2^2)-(t_1+t_2)^2=(t_1-t_2)^2>0,

    the first exponential is smaller, giving a negative eigenvalue. Ordinary covariance instead gives diagonal entries one and off-diagonal entry c=e−(t1−t2)2/(2ℓ2)c=e^{-(t_1-t_2)^2/(2\ell^2)}. Its eigenvalues are 1±c>01\pm c>0 for distinct times.

    Thus a legitimate stationary Gaussian process can fail a necessary reflection-positivity condition. The network representation or positive ordinary covariance does not remove that obstruction to a positive-norm Lorentzian reconstruction. Passing the displayed free two-point test is consistent with the free theory; extending a claim to interacting higher correlators requires their corresponding positivity conditions as well.

    References

    • M. Demirtas, J. Halverson, A. Maiti, M. D. Schwartz and K. Stoner, “Neural Network Field Theories: Non-Gaussianity, Actions, and Locality,” arXiv:2307.03223v2. See §1.2 for the statistical-field/QFT distinction, §2.1 and §2.3.1 for connected cumulants and width counting, and §3.1 for the density Edgeworth expansion. The density expansion is distinct from the Legendre construction used here.
    • J. Halverson, A. Maiti and K. Stoner, “Neural Networks and Quantum Field Theory,” arXiv:2008.08601v2. See §2.5, Eqs. (2.39)–(2.43), for covariance and connected-fourth scaling. The finite Fourier law, inverse-covariance normalization and conditional estimators above are explicitly specified examples.

    Further reading

    Scrollable formula. Use Left and Right arrow keys to reveal hidden content.

    Scrollable table. Use Left and Right arrow keys to reveal hidden columns.

    Scrollable figure. Use Left and Right arrow keys to reveal hidden content.