Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    Maximum Entropy and Positive Reconstructions

    A positive reconstruction can fit every measured Euclidean time and still place spectral weight in the wrong energy region. Maximum entropy makes the choice among such spectra explicit: it favors a specified default distribution while penalizing disagreement with the data. The resulting estimate is unique under useful finite-dimensional assumptions, but uniqueness is not the same as spectral resolution.

    We derive an estimator in bin-mass coordinates, solve it through a sixteen-variable convex dual, and examine default, regularization and bin-width dependence. Numerical stopping failures remain part of the example. An independent optimizer also reports success while remaining far from a stationary point.

    Preparation. Correlated Gaussian least squares and the ill-conditioned Laplace inverse problem. The Bayesian page treats posterior probabilities in a specified spectral family; here we compute an entropy-regularized point estimate.

    Positive spectra and the observation model

    For a connected zero-temperature diagonal channel of a Hermitian operator, use

    C(t)=∫04s(E)e−tE dE,s(E)≥0,∫04s(E) dE=1.(1)C(t)=\int_0^4s(E)e^{-tE}\,dE,\qquad s(E)\geq0,\qquad \int_0^4s(E)\,dE=1. \tag{1}

    Positivity follows from squared matrix elements in this channel. The benchmark supplies compact support and unit normalization. Signed cross-correlators require a different reconstruction domain. The site's positive-frequency spectral convention is ρ(E)=2πs(E)\rho(E)=2\pi s(E).

    The continuous truth is a two-triangle mixture,

    pb(E;μ)=(1−∣E−μ∣/b)+b,s(E;d,w)=w p0.2(E;2−d/2)+(1−w) p0.2(E;2+d/2),(2)\begin{aligned} p_b(E;\mu)&=\frac{(1-|E-\mu|/b)_+}{b},\\ s(E;d,w)&=w\,p_{0.2}(E;2-d/2) +(1-w)\,p_{0.2}(E;2+d/2), \end{aligned} \tag{2}

    with primary parameters (d,w)=(1.2,0.6)(d,w)=(1.2,0.6). Sixteen times are ti=0.15it_i=0.15i. One observation is y=C+εy=C+\varepsilon, with known covariance

    Σij=δ2Cref,iCref,j(12e−∣i−j∣/2+12δij),ε∼N(0,Σ).(3)\Sigma_{ij}=\delta^2 C_{{\rm ref},i}C_{{\rm ref},j} \left(\frac12e^{-|i-j|/2}+\frac12\delta_{ij}\right), \qquad \varepsilon\sim\mathcal N(0,\Sigma). \tag{3}

    CrefC_{\rm ref} is fixed at the primary truth and is not updated during fitting. The noise scales are 0.003,0.01,0.030.003,0.01,0.03; no hidden configuration count appears in (3). The exact continuous triangle transform generates the data independently of the reconstruction bins.

    For Monte Carlo correlators, the covariance of the estimated mean must instead be constructed appropriately. The correlated likelihood and that distinction are developed in Asakawa, Hatsuda and Nakahara, §3.1, Eqs. (3.5)–(3.10) (PDF). Here the supplied covariance separates covariance estimation from spectral regularization.

    Entropy belongs to masses

    Divide [0,4][0,4] into NN equal bins of width h=4/Nh=4/N. Let aja_j denote bin mass:

    aj≥0,∑jaj=1,sN(E)=aj/h(E in bin j).(4)a_j\geq0,\qquad \sum_j a_j=1,\qquad s_N(E)=a_j/h\quad(E\text{ in bin }j). \tag{4}

    The exact bin-averaged kernel is

    Kij=1h∫EjEj+he−tiE dE=e−tiEj1−e−tihtih,CN=Ka.(5)K_{ij}=\frac1h\int_{E_j}^{E_j+h}e^{-t_iE}\,dE =e^{-t_iE_j}\frac{1-e^{-t_i h}}{t_i h}, \qquad C_N=Ka. \tag{5}

    The implementation evaluates the numerator with expm1⁡\operatorname{expm1} to avoid cancellation. No midpoint approximation enters this forward kernel.

    A default density supplies strictly positive normalized masses mjm_j. Define

    S(a,m)=∑j[aj−mj−ajlog⁡ajmj]=−∑jajlog⁡ajmj=−DKL(a∥m).(6)S(a,m)=\sum_j\left[a_j-m_j-a_j\log\frac{a_j}{m_j}\right] =-\sum_j a_j\log\frac{a_j}{m_j} =-D_{\rm KL}(a\Vert m). \tag{6}

    Normalization gives the second equality. Mass coordinates make the logarithm dimensionless and preserve entropy when a constant-density bin is split. Forgetting the bin width in a density-sample formula changes the regularizer under refinement. The measure and mass discretization are explicit in Asakawa et al., §3.2, Eqs. (3.11)–(3.14) (PDF).

    For fixed α>0\alpha>0, minimize

    P(a)=12(Ka−y)TΣ−1(Ka−y)+αDKL(a∥m),a≥0,1Ta=1.(7)P(a)=\frac12(Ka-y)^T\Sigma^{-1}(Ka-y) +\alpha D_{\rm KL}(a\Vert m), \qquad a\geq0,\quad \mathbf1^Ta=1. \tag{7}

    Increasing α\alpha makes departures from the default more expensive. We compare a uniform default, normalized e−Ee^{-E}, and a Gaussian centered at 22 with width 0.80.8, restricted and normalized on [0,4][0,4]. Their integrated bin masses enter (6).

    In the interior,

    ∇a2P=KTΣ−1K+α diag⁡(1/aj).(8)\nabla_a^2P=K^T\Sigma^{-1}K+ \alpha\,\operatorname{diag}(1/a_j). \tag{8}

    This is positive on every nonzero normalization-preserving direction. The simplex is compact and alog⁡aa\log a extends continuously to zero, so a minimizer exists. Transferring infinitesimal mass into an empty bin has entropy derivative tending to −∞-\infty, while the finite quadratic term has finite derivative. The minimum is therefore interior and strictly unique.

    This proves uniqueness for the specified finite estimator, not identification of a continuum spectrum from finite data. The related curvature argument appears in Asakawa et al., §3.5 (PDF); our normalization constraint and bin model are explicit.

    A dual with sixteen variables

    Write Σ=LLT\Sigma=LL^T, A=L−1KA=L^{-1}K and z=L−1yz=L^{-1}y. Introduce a dual variable through

    12∥Aa−z∥2=max⁡u[uT(Aa−z)−12∥u∥2].(9)\frac12\|Aa-z\|^2 =\max_u\left[u^T(Aa-z)-\frac12\|u\|^2\right]. \tag{9}

    At fixed uu, the remaining linear-plus-entropy minimization over the simplex gives

    Z(u)=∑jmjexp⁡[−(ATu)j/α],aj(u)=mjexp⁡[−(ATu)j/α]Z(u),D(u)=−12∥u∥2−uTz−αlog⁡Z(u).(10)\begin{aligned} Z(u)&=\sum_jm_j\exp[-(A^Tu)_j/\alpha],\\ a_j(u)&=\frac{m_j\exp[-(A^Tu)_j/\alpha]}{Z(u)},\\ D(u)&=-\frac12\|u\|^2-u^Tz-\alpha\log Z(u). \end{aligned} \tag{10}

    There is one uu component per observed time, regardless of the bin count. The implementation uses log-sum-exp and retains logarithmic masses if exponentiation underflows. It introduces no arbitrary mass floor.

    Maximize DD, or minimize Φ=−D\Phi=-D, with derivatives

    ∇Φ=u+z−Aa,∇2Φ=I+1αA[diag⁡(a)−aaT]AT.(11)\begin{aligned} \nabla\Phi&=u+z-Aa,\\ \nabla^2\Phi&=I+\frac1\alpha A[\operatorname{diag}(a)-aa^T]A^T. \end{aligned} \tag{11}

    The bracket is a categorical covariance matrix. Thus the Hessian is at least II. Centering the columns of AA before assembling its covariance avoids subtracting two nearly equal positive matrices.

    Every retained solve starts at u=0u=0. It uses a Cholesky Newton solve and an Armijo line search with coefficient 10−410^{-4} and step halvings. The fixed limits are 100 Newton steps and 60 halvings per step; the stopping target is ∥∇Φ∥∞≤10−8\|\nabla\Phi\|_\infty\leq10^{-8}.

    A useful exact diagnostic is

    P(a(u))−D(u)=12∥Aa(u)−z−u∥2.(12)P(a(u))-D(u)=\frac12\|Aa(u)-z-u\|^2. \tag{12}

    Indeed, substitute αlog⁡(aj/mj)=−(ATu)j−αlog⁡Z\alpha\log(a_j/m_j)=-(A^Tu)_j-\alpha\log Z into P−DP-D and complete the square. A small dual gradient therefore gives a small primal–dual gap in exact arithmetic. The unscaled primal residual can be larger: with equality multiplier λ=α(log⁡Z−1)\lambda=\alpha(\log Z-1),

    ∇aP+λ1=AT(Aa−z−u).(13)\nabla_aP+\lambda\mathbf1=A^T(Aa-z-u). \tag{13}

    Large columns of the whitened kernel amplify the residual. Direct subtraction of nearly equal objective values has a separate rounding error. The companion records the dual gradient, KKT residual, stable gap and direct-subtraction discrepancy separately.

    Good forward fits can miss narrow features

    The representative observation is replica zero at δ=0.01\delta=0.01, fixed before fitting. The scan includes N=40,80,160N=40,80,160, all three defaults, and α=0.01,0.1,1,10,100\alpha=0.01,0.1,1,10,100. No choice is selected afterward by its distance from the truth.

    Use the normalized Gaussian windows Δσ,E∗\Delta_{\sigma,E_*} on [0,4][0,4] defined on the smearing page. Their estimates are

    Sσ,E∗[sN]=∑jaj 1h∫EjEj+hΔσ,E∗(E) dE.(14)S_{\sigma,E_*}[s_N] =\sum_j a_j\,\frac1h\int_{E_j}^{E_j+h} \Delta_{\sigma,E_*}(E)\,dE. \tag{14}

    These are average spectral densities, not bin probabilities. At N=80N=80 with uniform default, the narrow central target illustrates the tradeoff:

    α\alphaForward χ2\chi^2−S-SS0.2,2S_{0.2,2}
    0.018.21921.60670.1521
    0.18.26280.89380.3464
    18.39480.68620.4122
    109.06210.60700.4373
    10016.88160.51480.4796

    The true central window is small because it lies between the separated peaks. A modest forward residual does not validate the reconstructed valley. At primary α=1\alpha=1, changing the default gives 0.41020.4102 for the exponential and 0.39600.3960 for the Gaussian, versus 0.41220.4122 for the uniform default. Agreement among these smooth defaults would not itself bound reconstruction error.

    Two-peak continuous truth and entropy estimates at fixed regularization strengths, alongside repeated-data errors for narrow and broad Gaussian spectral averages.

    All curves use the same representative observation and uniform default. Repeated-data errors use fixed N=80N=80, α=1\alpha=1 and include flagged stopping failures. Regularization bias remains visible despite modest forward residuals.

    The repeated-data study uses 128 independent observations per noise/default pair. For uniform default at δ=0.01\delta=0.01, the three narrow-target RMSEs are (0.1721,0.4124,0.4633)(0.1721,0.4124,0.4633); the broad targets give (0.0493,0.0764,0.0984)(0.0493,0.0764,0.0984). Repetition-based standard errors are retained in the output. These are errors of a point estimator, not posterior credible intervals. Restricting the spectrum to the correct two-triangle family can yield much smaller errors, but supplies additional information.

    For the first sixteen observations of each noise/default pair, increasing NN from 80 to 160 changes any target by at most 0.001270.00127. This is small compared with the narrow-target biases. Bin convergence supports the finite estimator; it does not remove its default dependence or demonstrate recovery of an unknown spectrum.

    Numerical success needs a defining test

    Of the 45 representative scan cells, 40 meet the gradient target and five stagnate. Across all 1,476 unique dual solves, 1,306 meet it, 169 stagnate, and one exhausts its iteration budget. All outputs and statuses remain available; the RMSE summaries include the failed cells. Some small masses underflow in binary64 while their logarithms remain finite.

    For the primary representative estimate, the dual-gradient maximum is about 1.3×10−101.3\times10^{-10} and the stable gap is 4.2×10−204.2\times10^{-20}, whereas the unscaled KKT maximum is about 1.5×10−61.5\times10^{-6}. Equation (13) explains the amplification. Direct objective-gap subtraction is separately limited by rounding.

    Mathematical controls check entropy derivatives on simplex directions, the dual gradient and Hessian by finite differences, entropy invariance under bin splitting, and the exact optimum a=ma=m for y=Kmy=Km. The derivative errors decrease quadratically over the retained step scan.

    A separately specified primal SLSQP solve is useful as a failure. It uses 40 bins, the representative observation, uniform default, α=1\alpha=1, an equality constraint and a numerical lower bound 10−1510^{-15}. It returns success after five reported iterations but only one objective evaluation. Its objective is about 1.1060×1051.1060\times10^5, versus 4.88704.8870 for the dual solution; its normalization-tangent KKT residual is about 2.08×1062.08\times10^6. The artificial bounds are inactive. It does not independently reproduce the optimum. The preset run is retained without a favorable rescaling or larger-budget retry. The SciPy 1.13.1 SLSQP documentation describes its objective tolerance and iteration options; a success message is not a substitute for the defining stationarity test.

    An entropy mode is not a complete posterior

    A formal prior proportional to exp⁡(αS)\exp(\alpha S) still needs a measure, normalization and treatment of α\alpha. A density with respect to bin masses differs from one with respect to their logarithms. Posterior modes are not invariant under coordinate changes without the appropriate Jacobian.

    Evidence integration, averaging over α\alpha, posterior uncertainty and the singular-space algorithm often associated with MEM are further constructions; see Asakawa et al., §3.3, Eqs. (3.15)–(3.19) (PDF). Our small dual solves the stated finite optimization problem. The default and α\alpha scans are sensitivity studies, not calibrated uncertainty bands or a full Bayesian reconstruction.

    Summary

    Bin-mass entropy reconstruction has a precise default, a strictly convex objective and a small convex dual. Its gap is computable, but rounding and kernel scaling require separate diagnostics. The example shows that bin refinement and satisfactory forward fits can coexist with large narrow-feature errors. Interpretation depends on both the estimator's assumptions and the observable resolution.

    Exercises

    1. Derive the dual and its gap

    Starting from (7), use (9) and a multiplier for ∑jaj=1\sum_j a_j=1 to derive (10). Prove (12), and explain why the dual Hessian has no negative eigenvalue.

    Solution

    At fixed uu, differentiate uTAa+α∑jajlog⁡(aj/mj)+λ(∑jaj−1)u^TAa+\alpha\sum_j a_j\log(a_j/m_j)+\lambda(\sum_j a_j-1):

    (ATu)j+α[log⁡(aj/mj)+1]+λ=0.(A^Tu)_j+\alpha[\log(a_j/m_j)+1]+\lambda=0.

    Thus aj=mjexp⁡[−(ATu)j/α]exp⁡[−1−λ/α]a_j=m_j\exp[-(A^Tu)_j/\alpha]\exp[-1-\lambda/\alpha]. Normalization fixes the last factor to 1/Z1/Z and gives λ=α(log⁡Z−1)\lambda=\alpha(\log Z-1). Substitution gives the minimum −αlog⁡Z-\alpha\log Z, leading to DD in (10).

    Let r=Aa−zr=Aa-z. Since αDKL=−uTAa−αlog⁡Z\alpha D_{\rm KL}=-u^TAa-\alpha\log Z,

    P−D=12rTr−uT(Aa−z)+12uTu=12∥r−u∥2.P-D=\frac12r^Tr-u^T(Aa-z)+\frac12u^Tu =\frac12\|r-u\|^2.

    For any vector vv, the covariance term in (11) has quadratic form ∑jaj(vTAj)2−[∑jajvTAj]2≥0\sum_j a_j(v^TA_j)^2-[\sum_j a_jv^TA_j]^2\geq0. Therefore vT∇2Φ v≥∥v∥2v^T\nabla^2\Phi\,v\geq\|v\|^2. A numerical Cholesky failure would call for investigation, not a physical interpretation as nonconvexity.

    2. Split a bin without changing the density

    A bin of width hh has mass aa and default mass mm. Split it into widths θh\theta h and (1−θ)h(1-\theta)h, keeping both densities constant. Show entropy invariance. What goes wrong if density entropy values are summed without bin widths?

    Solution

    The new masses are (θa,(1−θ)a)(\theta a,(1-\theta)a) and (θm,(1−θ)m)(\theta m,(1-\theta)m). Their contribution is

    θ(a−m)−θalog⁡θaθm+(1−θ)(a−m)−(1−θ)alog⁡(1−θ)a(1−θ)m=a−m−alog⁡(a/m).\begin{aligned} &\theta(a-m)-\theta a\log\frac{\theta a}{\theta m}\\ &\quad +(1-\theta)(a-m) -(1-\theta)a\log\frac{(1-\theta)a}{(1-\theta)m}\\ &=a-m-a\log(a/m). \end{aligned}

    Equivalently, the correct density expression is h[ρ−mρ−ρlog⁡(ρ/mρ)]h[\rho-m_\rho-\rho\log(\rho/m_\rho)], with ρ=a/h\rho=a/h and mρ=m/hm_\rho=m/h. The split widths sum to hh. Without those widths, splitting a constant bin doubles its contribution, changing the effective regularization despite leaving the continuous spectrum unchanged.

    For the constant density on this bin, exact kernel integration also preserves its forward contribution. A midpoint approximation would introduce an additional quadrature error.

    References

    • M. Asakawa, T. Hatsuda and Y. Nakahara, “Maximum Entropy Analysis of the Spectral Functions in Lattice QCD,” Progress in Particle and Nuclear Physics 46 (2001), 459–508, arXiv:hep-lat/0011040v2 (PDF). §§3.1–3.3: likelihood, entropy, measure and hyperparameters; §3.5: strict curvature.
    • SciPy developers, SLSQP minimization, SciPy 1.13.1. Documented interface and stopping options for the independent diagnostic.

    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.