# A COMPASS to the Galaxy: Joint nucleosynthetic yield set comparison and parameter inference in Galactic chemical evolution

Günes, Berkay, Viterbo, Giuseppe, Buder, Sven, Buck, Tobias · arXiv · 2026-11-16

- **Problem** Galactic chemical evolution models lack a tractable likelihood, and systematic differences between nucleosynthetic yield sets can rival the effects of changing the IMF slope or the SN Ia normalization.
- **Method** A conditional score-based diffusion transformer, trained on Chempy simulations, switches between posterior and likelihood modes through an attention mask, and ranks 40 yield-set combinations with AIC-based relative weights.
- **Results** Ranks the 40 yield-set combinations and reaches near-unity cumulative weight for NuGrid AGB with TNG CC-SN after all 69 stars; for that set it infers α\_IMF = −2.65±0.02 and log10 NIa = −2.81±0.02.

![Figure 2: Violin plots of model weights. Violin plots show the distribution of single-observation relative model weights (Eq. 10)P(M k\|xi) for three competing…](https://refivu.com/papers/803161fa-b170-404a-8277-1845a3939d87/figures/figure-1461d9077d60dc7274304c379c99591e.png?thumb=512)

**Fig. 2** .Violin plots of model weights. Violin plots show the distribution of single-observation relative model weights (Eq. 10)P(M k\|xi) for three competing CC-SN yield models (Chieffi, Limongi and West; see text for more details), when tested on mockChempydata. Each panel corresponds to a different ground-truth model used to generate the mock observations: (Left) Data generated with Chieffi& Limongi (2004) yields; (Middle) Limongi & Chieffi(2018) yields and (Right) Austin et al. (2017) yields. The framework correctly identifies the true generating model with high probability in most individual observations, even with only 50 diffusion timesteps (see Sec. B.2 for more details).

[Original paper](https://arxiv.org/abs/2611.21175v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Günes, Berkay, Viterbo, Giuseppe, Buder, Sven, Buck, Tobias · A COMPASS to the Galaxy: Joint nucleosynthetic yield set comparison and parameter inference in Galactic chemical evolution · Original paper figure · Extracted the figure area from page 8 of the original PDF.

## Why yield-set choice complicates chemical evolution inference

Chemical evolution models run as forward simulators: given a parameter set they produce abundance patterns, but they do not supply a tractable likelihood. Standard samplers such as MCMC or HMC become expensive when the likelihood has to be re-evaluated for large datasets, and comparing models needs marginal likelihoods or likelihood ratios, which are hard to obtain without an explicit likelihood.

The yield tables add a second layer of uncertainty. Parameter constraints derived under one yield set remain conditional on that choice. Differences between yield sets can rival the effects of varying the IMF slope or the SN Ia normalization, so the question is not only which parameter values fit the data but also which prescriptions are compatible with it.

## Simulation-based inference as the starting point

Simulation-based inference trains a neural density estimator on simulated pairs of parameters and data, so it can work when the likelihood cannot be written down. Depending on the formulation, the estimator approximates the posterior, the likelihood, or the likelihood ratio.

The framework uses a score-based diffusion model as the density estimator. Such a model learns the gradient of the log-density through a denoising process, which lets it represent complex, non-Gaussian distributions. The score is parameterized by a transformer, whose multi-head self-attention captures non-linear dependencies between observables and parameters and exposes an attention structure that can be inspected.

## One conditional network for posterior and likelihood

An attention mask decides which dimensions are conditioned on and which are latent. In posterior mode, the observed abundances are fixed to 1 and the parameters are marked latent with 0. Reverse diffusion starts at t=1 with the parameters drawn from the prior noise distribution and is integrated down to t=0 over a set number of timesteps; the samples at t=0 approximate the posterior of the parameters.

From these samples the Maximum A Posteriori estimate is found by fitting a multivariate Gaussian Kernel Density Estimator and minimizing the negative density with scipy.optimize.

Missing elements are handled by setting their mask entries to 0, so the network infers or marginalizes over them together with the parameters. Inverting the mask turns the same network into a likelihood estimator. At the MAP parameters it generates samples of the abundances, and a Gaussian KDE fitted to those samples is evaluated at the observed data.

## From single-star posteriors to a joint posterior

\\\\\[ P(\\\\theta\|x)\\\\propto P(\\\\theta)\\\\prod\_{i=1}^{N}\\\\tilde P(\\\\theta\|x\_i) \\\\\]

For tractability, each single-star posterior is approximated as a multivariate Gaussian, and the prior on the two global parameters is also Gaussian. The combined posterior then stays Gaussian. Because the combined covariance shrinks as 1/N, a systematic bias shared by all single-star posteriors does not average out, and its size in units of the combined uncertainty grows with N.

Measurement errors are handled by drawing 1000 realizations per observation from the measurement distribution and evaluating the posterior for each one. The training simulations already contain Gaussian noise of 0.05 dex. Adding the star-specific errors enlarges the effective noise by a factor of 1.01 to 1.17, which the authors describe as a small and conservative double counting.

Calibration is checked with Simulation-Based Calibration and with Tests of Accuracy with Random Points.

## Ranking yield sets with AIC-based weights

For each candidate model the likelihood is evaluated at its MAP estimate, and the Akaike Information Criterion is then computed from the maximized log-likelihood and the number of free parameters. \\\\\[ \\\\mathrm{AIC}\_i=-2\\\\ln L\_i+2k\_i \\\\\] Differences in AIC relative to the minimum are converted into weights proportional to exp(−½ Δ\_i(AIC)), and these are normalized over the candidate set.

All candidate yield-set models here have the same number of parameters, so the complexity penalty cancels and the weights reduce to a softmax over the maximized log-likelihoods. \\\\\[ P(M\_i\|x)=\\\\frac{\\\\exp(\\\\ln L\_i)}{\\\\sum\_j \\\\exp(\\\\ln L\_j)} \\\\\] Under this condition the BIC differs from the AIC only by a model-independent constant, so both give the same ranking.

The summed log-likelihood over independent observations is what enters the ranking.

## Yield-set grid and Nissen et al. abundances

Each candidate model pairs one AGB yield set with one CC-SN yield set. Four AGB sets and ten CC-SN sets give 40 combinations, while Type Ia yields are fixed to Seitenzahl et al. (2012). The simulations are generated with Chempy, a one-zone chemical evolution model.

The observational sample is the Nissen et al. (2020) set of 69 nearby solar-type stars observed with HARPS. Quoted 1σ uncertainties for C, O, Mg, Si and Fe are typically about 0.01 dex and always below 0.03 dex. Only these five elements are matched to the model outputs, and the other tracked elements are treated as latent. Stellar ages enter as conditioning variables that fix each star's birth time.

The authors present the 69-star sample as a proof-of-concept benchmark rather than a source of definitive Milky Way constraints.

## Mock tests on whether the generating yield set is recovered

The controlled test uses three CC-SN yield sets, Chieffi, Limongi and West, with AGB yields fixed to Karakas and Lugaro (2016) and Type Ia yields fixed to Seitenzahl et al. (2012). Each CC-SN set generates its own mock dataset in turn, and the task is to recover that generating set among the three.

For each ground-truth set, the correct model receives the highest single-observation weight in the vast majority of mock observations. The violin plots keep this result with only 50 diffusion timesteps.

Combining observations sharpens the result. In the Limongi example, the cumulative weight of the correct model reaches near-unity after only about 10 combined observations. The authors read this as evidence that the likelihood estimator is accurate enough to identify the generating model in this controlled setting and that identification is data-efficient.

## Ranking the Nissen et al. yield sets

All 40 combinations are evaluated. Individual stars give only moderate discrimination, so several combinations receive non-negligible support star by star. Ordering by cumulative posterior, the combination of NuGrid AGB yields (Ritter et al. 2018) and the TNG CC-SN prescription approaches unity when all 69 stars are included, while competitive single-star combinations lose weight.

A neural classifier trained on the same observables, independent of the COMPASS likelihood, also prefers NuGrid with TNG, and its ranking correlates with Table 2 at Spearman ρ=0.89, with 7 of the top 10 in common.

## Inferred IMF slope and SN Ia normalization

The yield-set choice therefore dominates the uncertainty on these parameters, and the inferred values hold conditional on that choice.

For the top set, NuGrid AGB yields with the CC-SN yields used in IllustrisTNG, the result is α\_IMF = −2.65±0.02 and log10 NIa = −2.81±0.02.

## What the attention maps show

In the layer-averaged map, α\_IMF attends mainly to O and Mg, with smaller contributions from C and Fe. log10 NIa attends most strongly to C, which the authors link to delayed iron enrichment shifting ratios such as \[C/Fe\].

Stellar age receives only weak attention, mainly in early layers, which fits the setup where the global parameters are fixed in time. The authors take the agreement with established nucleosynthetic channels as support for the physical consistency of the inference. Attention weights show where the network routes information, so they support this reading without by themselves establishing causal dependence.

## Limitations

The one-zone Chempy model neglects radial migration and time-dependent star-formation efficiencies, which matters for spatially resolved or cosmological data. Yields are treated as discrete table choices rather than as functions of rotation, mass loss, explosion energy or metallicity. The IMF and the SN Ia delay-time distribution are fixed to parametric forms, and alternative shapes were not tested.

Combining single-observation posteriors assumes each is well approximated as a Gaussian, and more robust combination rules such as compositional score modeling were left for future work. The model weights are Akaike weights at the MAP rather than evidence ratios.

## Relation to earlier inference approaches

Earlier GCE inference used Hamiltonian Monte Carlo or likelihood-free neural posterior estimation, and these were described as computationally demanding at the scale of modern surveys. The authors describe the amortized approach as adding negligible cost once trained, which suits large stellar samples. Relative to cosmological SBI studies that use nested sampling of evidences, the joint NPE and NLE design avoids that step at the cost of giving relative predictive weights rather than evidence ratios.

## Paper info

- **Authors**: Günes, Berkay, Viterbo, Giuseppe, Buder, Sven, Buck, Tobias
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-16
- **Added**: 2026-11-17
- **Updated**: 2026-11-16
- **Version**: v1
- **arXiv**: 2611.21175
- **Category**: astro-ph.GA · astro-ph.IM · cs.LG · physics.data-an
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.21175v1) · [PDF ↗](https://arxiv.org/pdf/2611.21175v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Galactic Chemical Evolution (GCE) models connect stellar nucleosynthesis to observed abundance patterns, but their interpretation requires simultaneous parameter inference and comparison between competing stellar yield prescriptions. This remains challenging due to intractable likelihoods and growing dataset complexity. Using compass, a novel simulation-based inference framework, we perform, for the first time, amortized joint Bayesian model comparison and parameter inference for GCE models with intractable likelihoods within a unified architecture. Compass employs a conditional score-based diffusion model with a transformer architecture to learn both the posterior and likelihood directly from forward simulations, enabling efficient inference and likelihood-based ranking of competing nucleosynthetic yield sets. In controlled tests, compass identifies the generating yield set and recovers ground-truth parameters with accuracy comparable to existing simulation-based inference (SBI) methods, while reducing computational cost by orders of magnitude. Applied to Milky Way data, the framework favors a hybrid NuGrid + IllustrisTNG yield prescription, confirmed by an independent classifier, and infers an initial mass function slope of $\\alpha\_{\\rm IMF} = -2.65 \\pm 0.02$ and a SN$\_{\\rm Ia}$ normalization of $\\log(N\_{\\rm Ia}) = -2.81 \\pm 0.02$, with a systematic spread of $\\approx 0.3$ in $\\alpha\_{\\rm IMF}$ between the best-ranked yield sets, consistent with independent constraints. The attention mechanism confirms that the inferred parameters are driven by physically meaningful abundance signatures. By unifying amortized parameter inference, Bayesian model comparison, and interpretability in a single probabilistic framework, compass provides a scalable approach for precision chemical evolution studies with current and forthcoming spectroscopic surveys.

## Quote from the paper

Günes, Berkay, Viterbo, Giuseppe, Buder, Sven, Buck, Tobias (2026). A COMPASS to the Galaxy: Joint nucleosynthetic yield set comparison and parameter inference in Galactic chemical evolution. arXiv:2611.21175v1. https://arxiv.org/abs/2611.21175v1

**BibTeX**

```
@misc{berkay2026compass,
  title = {{A COMPASS to the Galaxy: Joint nucleosynthetic yield set comparison and parameter inference in Galactic chemical evolution}},
  author = {Günes, Berkay and Viterbo, Giuseppe and Buder, Sven and Buck, Tobias},
  year = {2026},
  eprint = {2611.21175},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.21175v1}
}
```

## Related papers

- [Scalable Diffusion Models with Transformers](https://refivu.com/en/papers/20637697-d13d-4af8-bc4d-7f97df178df2-scalable-diffusion-models-with-transformers.md)
- [Learning Deep CNN Denoiser Prior for Image Restoration](https://refivu.com/en/papers/e6af5c0e-57ae-4b96-acf1-3a40058beb53-learning-deep-cnn-denoiser-prior-for-image-restoration.md)
- [Generative AI](https://refivu.com/en/papers/20462cc3-15fd-4b36-8393-33848e90e0dd-generative-ai.md)
- [An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale](https://refivu.com/en/papers/8a112940-90e3-4c6b-8fa0-d576b3ebd5d1-an-image-is-worth-16x16-words-transformers-for.md)
- [BEHRT: Transformer for Electronic Health Records](https://refivu.com/en/papers/cadb146f-6d4d-4255-8058-89ac62ed2dc8-behrt-transformer-for-electronic-health-records.md)
- [Electrocardiographic Imaging via Posterior Sampling under Operator Discrepancy](https://refivu.com/en/papers/d9ef88f1-6d57-4365-ad73-b34a7d0d5ebf-electrocardiographic-imaging-via-posterior-sampling-under.md)

## Other paper commentary

- [Empowering Masked Diffusion Models to Self-Correct with Leave-One-Out Transformers](https://refivu.com/en/papers/aa23c75a-1959-445a-a3e9-da71095ed5a1-empowering-masked-diffusion-models-to-self-correct-with.md)
- [Certify, Then Select: Viability-Aware Runtime Steering of Frozen Diffusion Policies](https://refivu.com/en/papers/34e592c6-b4a7-48dc-bb53-b14507844807-certify-then-select-viability-aware-runtime-steering-of.md)
- [eDMD: Endpoint Distribution Matching for Few-Step Diffusion Distillation](https://refivu.com/en/papers/039e2f7f-dc99-4e6c-b431-a68221cbbfc2-edmd-endpoint-distribution-matching-for-few-step-diffusion.md)
- [Learning to Discover Cross-Domain Relations with Generative Adversarial Networks](https://refivu.com/en/papers/32a2c426-2c8b-4ca8-b0cd-574119f1d851-learning-to-discover-cross-domain-relations-with-generative.md)
- [Semi-Supervised Learning with Deep Generative Models](https://refivu.com/en/papers/e4821cb7-e7f9-4874-ba36-d94522c55bbb-semi-supervised-learning-with-deep-generative-models.md)
- [HunyuanVideo: A Systematic Framework For Large Video Generative Models](https://refivu.com/en/papers/bf878ce4-776a-4af5-9994-66e35572b481-hunyuanvideo-a-systematic-framework-for-large-video.md)
- [Polygraph: Large-Scale Multi-Session Trajectory Optimization using Pose Graphs](https://refivu.com/en/papers/05c4e863-0276-4159-8579-6702d3b03259-polygraph-large-scale-multi-session-trajectory-optimization.md)
- [Scribble Once, Segment the Sequence: Bidirectional Temporal Consistency for Weakly Supervised Segmentation in Echocardiography Sequences](https://refivu.com/en/papers/e9c19c87-b7f0-4967-b6c5-812decf822c3-scribble-once-segment-the-sequence-bidirectional-temporal.md)
- [Region-VAD: Video Anomaly Localization and Detection via Region Selection](https://refivu.com/en/papers/39b14224-60bb-4aba-8504-6534b14203c1-region-vad-video-anomaly-localization-and-detection-via.md)
- [DynLimit: A Simulation Benchmark for Dynamics-Critical Planning and Control](https://refivu.com/en/papers/fb1b43fd-7574-4e27-b704-5ffb06a115fe-dynlimit-a-simulation-benchmark-for-dynamics-critical.md)
- [Edit Recommendation: Can LLMs Anticipate Edit Requests from Users, and When?](https://refivu.com/en/papers/160d80a4-47cc-42cf-b64b-7113657c8378-edit-recommendation-can-llms-anticipate-edit-requests-from.md)
- [Contrastive Activation-Guided Zeroth-Order Preference Optimisation for Memory-Efficient LLM Alignment](https://refivu.com/en/papers/1d7c079e-0590-4e0d-acd8-9dd202cb0b88-contrastive-activation-guided-zeroth-order-preference.md)

## Terms in this paper

- [attention mechanism](https://refivu.com/en/terms/977ee0201459-attention-mechanism)
- [transformer architecture](https://refivu.com/en/terms/30726b29c2c5-transformer-architecture)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/803161fa-b170-404a-8277-1845a3939d87-a-compass-to-the-galaxy-joint-nucleosynthetic-yield)
