Mean-Preserving Diversity Regularizer
Implementation & benchmark of arXiv:2608.25145 — Barycentric Weak Inner-Product Gromov-Wasserstein
Source paper: Barycentric Weak Inner-Product Gromov-Wasserstein arXiv:2608.25145 ⓘ · analyzed Aug 29, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Train a conditional generator or set-valued predictor so that stochastic target refinements preserve the barycentric representation required by the source while allowing valid target-side diversity. The regularizer discourages collapse of multiple legitimate outcomes to one point without treating mean-preserving spread as semantic misalignment.
Formulas
Mathematical statement
Let X be a source representation and let Y|X=x be a conditional target distribution rho_x. Its barycenter is b(rho_x)=int y d rho_x(y), and the paper's barycentric relation is D_bar(rho,rho')=<b(rho),b(rho')>. The weak objective therefore uses m(x)=E[Y|X=x] when comparing source relations. The convex-order interpretation is eta <=_cx nu: eta is below nu in convex order when both distributions have the same mean and E[phi(Z)]<=E[phi(Y)] for every convex function phi; equivalently, there is a martingale coupling with E[Y|Z]=Z. For a conditional sampler producing K samples y_ik=g_theta(x_i,xi_k), define z_i=K^{-1} sum_k y_ik. Align source Gram relations with barycentric target Gram relations, while separately matching spread through finite convex test functions phi_q(y)=softplus(u_q^T y+c_q). The hinge penalty max(0,E[phi_q(Z)]-E[phi_q(Y)]) approximates the requirement that Y be a mean-preserving refinement of Z.
Implementation notes
1. Integration point: use the loss for a conditional VAE, diffusion model with multiple noise draws, mixture-density head, or stochastic graph-neural-network predictor. For each minibatch source x_i, draw K independent noises and produce target samples y_ik; retain the ordinary task likelihood or diffusion denoising loss. 2. Pseudocode: for each x_i, generate y_i1,...,y_iK and set z_i=mean_k(y_ik). Compute source Gram matrix Gx_ii'=dot(x_i,x_i') and barycentric target Gram matrix Gz_ii'=dot(z_i,z_i'); set L_bar=mean_{i,i'}(Gx_ii'-Gz_ii')^2. Draw Q random vectors u_q and biases c_q, define convex phi_q(y)=softplus(u_q^T y+c_q), and compute L_cx=mean_{i,q} relu(mean_k phi_q(y_ik)-phi_q(z_i)). Optimize L_task+lambda_bar*L_bar+lambda_cx*L_cx. Use stop-gradient on z_i in L_cx only if the model inflates variance by moving the mean. 3. The barycentric relation and convex-order condition come from the paper; the finite softplus family is an empirical approximation to the all-convex-functions definition. Monitor mean preservation with mean_k(y_ik)-z_i and tune lambda values on validation likelihood. 4. First cheap experiment: train a conditional VAE on MNIST or CIFAR-10 where each input is paired with several valid augmentations, or use synthetic data y=x+s with zero-mean multimodal s. Compare standard reconstruction/KL training against the added loss using K=8 and Q=16. Evaluate conditional sample diversity, squared error of the generated sample mean, pairwise relation error, and mode coverage. Success is higher diversity and mode coverage at nearly unchanged mean error and task likelihood; failure is variance inflation, detected by calibration and off-support sample metrics.
Verification
Stage 1 · Toy mechanism gate: Failed ✗
Stage 2 · Mechanism transferred to benchmark: Not tested
Stage 2 · Practical benchmark result: Not run
Methodology: Toy-system gate first; the benchmark stage runs only after a pass. How verification works
Stage 1 — Mechanism check agent confidence 9/10
Built and ran a fixed-seed CUDA MVP comparing ordinary stochastic regression against the proposed barycentric Gram plus finite-convex regularizer on a synthetic two-mode conditional target. The Jensen check confirmed E[phi(Y)]-phi(E[Y])=0.4273 for a genuine mean-preserving spread, but also exposed that the stated hinge penalizes this valid spread; both trained models collapsed with essentially zero diversity and zero mode coverage. The idea therefore did not produce the promised diversity effect in this test.
- Agent confidence
- 9/10
- Baseline
- mean RMSE 0.11596; relation RMSE 0.14066; pairwise diversity 0.000879; conditional variance 0.000393; mode coverage 0.0; task proxy MSE 0.00694
- Idea
- mean RMSE 0.03186; relation RMSE 0.03583; pairwise diversity 0.000909; conditional variance 0.000404; mode coverage 0.0; task proxy MSE 0.000712; stated convex penalty 0.0000501
Limitations: Only a small synthetic two-mode regression task was tested, not a VAE, diffusion model, image dataset, likelihood objective, or broader convex-function family. The experiment followed the supplied hinge direction; correcting it to relu(phi(z)-mean_k phi(y)) would be a separate variant and was not used for the baseline-versus-idea verdict.
How to run: python3 experiment.py
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Artifacts
- experiment.py 5.6 KB View Raw
- report.md 1.5 KB View
- results.json 1.1 KB View Raw