AIMech AI

Gaussian loss-smoothed mixed-model variational inference

Algorithms AIMech:GaussianLossSmoothedMixedModelVariationalInference DRAFT
Aliases: NCVB-UF
A nonconjugate variational inference procedure for a loss-defined mixed-effects generalized posterior that retains a joint Gaussian over fixed and random coefficients, factors inverse-gamma random-effect variances, and uses one-dimensional Gaussian expected-loss derivatives to alternate exact variance coordinates with a full-Gaussian natural proposal. This record denotes the base NCVB-UF procedure with the precision sign reconciled against its gradient/Hessian derivation.
Identity Notes & Concept Scope No normalized identity match across all 442 pinned AIO IDs, labels and scoped synonyms and 553 maintained IDs, names and aliases. Ignored- and hidden-inclusive fixed-string searches of the recovery, old discovery and original Documents checkouts returned 30, 0 and 0 lines, all 30 read: prior source leads and contextual references, without a matching record. Assessed all 33 semantic AIO rows and 113 native names/definitions, seven complete annotated AIO nodes with incident edges/generated YAML and five complete native context records. Gaussian loss-smoothed mixed-model variational inference is a descriptive local name for the base unconstrained-Gaussian NCVB-UF procedure in Castiglione and Bernardi Algorithm 1, with the precision sign qualified against Proposition 2 and Appendix A2. Its unit-loss generalized target, one-dimensional Gaussian loss smoothing, full fixed/random-effect covariance and inverse-gamma variance coordinates distinguish it from generic NCVMP, BBVI, generic mean-field families and the shared-spectral regression procedure. NCVB-UF is a source-specific algorithm designation, not a claim that all nonconjugate variational Bayes is this method. Older titles of arXiv:2206.09444 are the same source version history. Projected and stochastic extensions are separate pending scope. Absence is bounded to this pin and inspected corpus.

Claims & Grounded Evidence

7 Claims
Scope #generalized-target
For observations y_i and design rows c_i^T, let theta=(beta,u_1,...,u_H) and eta_i=c_i^T*theta. The unit-loss generalized posterior is proportional to exp(-sum_i psi(y_i,eta_i)) times the prior: beta~N(0,sigma_beta^2*R_beta^-1), u_h|s_h~N(0,s_h*R_h^-1) and independent s_h~IG(A_h,B_h). Here sigma_beta^2,A_h,B_h are positive, each R is positive definite, and IG(A,B) has density proportional to s^(-A-1)*exp(-B/s), s>0. These proper-prior and positive-definite assumptions delimit this record; an intrinsic singular Gaussian requires separate constraints. An arbitrary loss defines a generalized target, not automatically a normalized sampling likelihood. Assume its normalizing constant Z is finite and positive; a finite nonnegative loss with these proper priors suffices.
Mechanism #factor-family-objective
Use q(theta)=N(mu,Sigma) with a full positive-definite covariance, independently of q(s_h)=IG(alpha_h,b_h) for each random-effect variance. Dependence among fixed and random coefficients is retained; dependence between theta and the variances, and between the variance factors, is omitted. The variational objective is L=E_q[log unnormalized_target]-E_q[log q], a lower bound on log Z under the proper-target and finite-expectation conditions. It does not assert a normalized-data-likelihood evidence for arbitrary losses. This is the unconstrained Gaussian factorization called NCVB-UF in the source, not its further block-factorized Gaussian projections.
Mechanism #gaussian-loss-smoothing
At current Gaussian moments, xi_i=c_i^T*mu and nu_i^2=c_i^T*Sigma*c_i. For nu_i>0 define Psi0_i=E[psi(y_i,xi_i+nu_i*Z0)] with Z0~N(0,1), and Psi1_i and Psi2_i as its first and second xi derivatives. Under dominated differentiation, for example a measurable loss of at most polynomial growth, these equal E[Z0*psi]/nu_i and E[(Z0^2-1)*psi]/nu_i^2. Thus nondifferentiable losses can give smooth Gaussian expected losses through one-dimensional expectations, with analytic forms for some losses and quadrature for others. These identities concern positive nu and the stated integrability conditions; they are not a blanket global uniform-convergence theorem or a rule for substituting nu=0.
Mechanism #variance-coordinates
Holding current q(theta) fixed, each exact inverse-gamma coordinate has alpha_h=A_h+d_h/2 and b_h=B_h+(mu_h^T*R_h*mu_h+tr(R_h*Sigma_hh))/2, where d_h is the random-effect block size. Therefore E_q[1/s_h]=alpha_h/b_h. The expected prior precision Rbar is block diagonal, with beta block R_beta/sigma_beta^2 and random block (alpha_h/b_h)*R_h. Positive prior parameters and positive-definite R make these factors proper and Rbar positive definite. These exact variance-factor coordinates do not make the coupled full posterior exact.
Mechanism #gaussian-natural-proposal
In the base full-data cycle, compute xi,nu and Psi1,Psi2 from the old mu,Sigma; update the variance factors from those old Gaussian moments; then use their new Rbar. Set W=diag(Psi2), P=Rbar+C^T*W*C and h=C^T*(W*xi-Psi1). If P is positive definite, propose Sigma_new=P^-1 and mu_new=Sigma_new*h, equivalently mu_new=mu+Sigma_new*g with g=-C^T*Psi1-Rbar*mu. This uses the plus curvature sign from Proposition 2 and Appendix A2, correcting the inconsistent minus sign in printed Algorithm 1. For convex losses with nonnegative smoothed curvature, positive-definite Rbar makes P positive definite. The h form avoids dividing by individual zero curvature entries. It is a Gaussian NCVMP fixed-point/natural proposal, not an exact Gaussian-family maximizer or a general bound-ascent guarantee; recompute moments after changing q(theta).
Mechanism #pinball-loss-example
For the unscaled pinball loss psi(y,eta)=(y-eta)*(tau-1[y<eta]), 0<tau<1, set z=(y-xi)/nu with nu>0. With phi and Phi the standard normal density and cumulative distribution, Psi0=nu*(phi(z)+z*(Phi(z)-1+tau)), Psi1=1-tau-Phi(z), and Psi2=phi(z)/nu. This concrete Gaussian convolution supplies the gradient and nonnegative curvature used by the base mixed-model update without differentiating the loss at its kink. The scaling is part of the generalized target; multiplying a loss by a constant generally changes that target relative to its prior.
Limitation #implementation-boundary
In the inspected package psifun SVC method, the expected hinge loss psi0 has the unscaled Gaussian-convolution form, while psi1 and psi2 use twice its corresponding derivatives (apart from numeric clipping). They therefore do not consistently describe derivatives of that same psi0. This is a static source inconsistency, not a measured runtime or benchmark result, and does not alter the unscaled pinball formulas curated here.

⚠️ Curated Limitations & Negative Results

Artificial Intelligence Ontology (AIO) Grounding

Mapped AIO Classes
AIO Target Class Mapping Relation Mapping Rationale
AIO:RandomEffectsModel
Random Effects Model
related_match The procedure performs approximate inference in a hierarchical mixed-effects target containing random-effect blocks and their variance parameters. RandomEffectsModel denotes that modeling context, not this Gaussian loss convolution, factor family or inference schedule. This is an algorithm-to-model-family relationship without equivalence or an is-a assertion.

Evidence Sources & Primary Literature

2 Sources
Source ID Publication / Document Type / Access Reference & Checksum
castiglione2025
Cristian Castiglione, Mauro Bernardi
primary paper
full_text
ID: https://arxiv.org/abs/2206.09444v5
sha256:5213ddc037e5…
bayesglmm-psifun
Cristian Castiglione
official documentation
documentation
ID: https://github.com/CristianCastiglione/BayesGLMM.jl/blob/15ce3551f62b0dfb5a54a6bc455deb1cb6966b34/src/psifun.jl
sha256:708ec333ac71…

Curation Provenance

Curator: Codex
Method: ai_assisted
Model: GPT-6
Created: 2026-10-12T23:42:43Z
Updated: 2026-10-12T23:50:15Z
Source File: data/curated/GaussianLossSmoothedMixedModelVariationalInference.yaml