GalSBI-SPS: Overview of the model
In this tutorial, we will give an overview of the stellar population synthesis-based galaxy population
model GalSBI-SPS that is used in the galsbi package when using Tortorelli+25 in the model definition.
We will explain how galaxy catalogs are generated and how the model can be customized.
As in the phenomenological model, we assume that galaxies are split into two populations:
star-forming (or blue) galaxies and quiescent (or red) galaxies, with a scatter that allows the two populations
to overlap, reflecting the observed continuum of galaxy properties, in terms of both SEDs and global physical characteristics.
More details for each component can be found in Tortorelli+25.
Galaxy stellar mass function
The first step GalSBI-SPS performs to generate a galaxy catalogue is
to sample logarithmic formed stellar masses \(\log{\mathcal{M}}\) (in solar mass units \(M_{\odot}\)) and redshifts
\(z\) from a redshift-evolving galaxy stellar mass function (GSMF). We model the GSMF as the sum of two Schechter functions,
a low-mass component (l subscript) and a high-mass component (h subscript), with different parameter values for the
populations of blue and red galaxies. The functional form is as follows:
The parameters \(\alpha_{l}\) and \(\alpha_{h}\) are the low and high-mass component faint-end slopes, respectively. \(\log{\mathcal{M}^*(z)}\) is the characteristic stellar mass, assumed to be the same for the low and high-mass components. \(\phi_{\mathrm{l}}^*(z)\) and \(\phi_{\mathrm{h}}^*(z)\) represents the low and high-mass number density of galaxies at the characteristic stellar mass.
\(\alpha_{l}\) and \(\alpha_{h}\) can be modified in GalSBI-SPS with the parameters sm_fct_alpha_*_lowmass and sm_fct_alpha_*_highmass,
where * can be either blue or red depending on the specific galaxy population.
In the current implementation, for \(\log{\mathcal{M}^*(z)}\) and \(\phi^*(z)\), GalSBI-SPS offers only a single parametrization:
- sm_fct_parametrization = “logquadratic_power”:
- \[\begin{split}\log{\mathcal{M^*}}(z) &= \log{\mathcal{M^*}}_0 + \log{\mathcal{M^*}}_1 \times \log{(1+z)} + \log{\mathcal{M^*}}_2 \times \log{(1+z)}^2, \\ \phi^*_{\mathrm{l,h}}(z) &= \phi^*_{\mathrm{amp},\mathrm{l,h}} \times (1 + z)^{\phi^*_{\mathrm{exp},\mathrm{l,h}}}\end{split}\]
Each of the parameters \(\log{\mathcal{M^*}}_0\), \(\log{\mathcal{M^*}}_1\), \(\log{\mathcal{M^*}}_2\) has the same value for the low and high-mass component, but different values for the blue and the red populations. They can be defined as follows:
\(\log{\mathcal{M^*}}_{0}\):
sm_fct_m_star_*_0_lowmass, where*can be eitherblueorred.\(\log{\mathcal{M^*}}_{1}\):
sm_fct_m_star_*_1_lowmass, where*can be eitherblueorred.\(\log{\mathcal{M^*}}_{2}\):
sm_fct_m_star_*_2_lowmass, where*can be eitherblueorred.
\(\phi^*_{\mathrm{amp}}\) and \(\phi^*_{\mathrm{exp}}\) have different values for the low and high-mass components and for the blue and red populations. They can be defined using the following parameters:
\(\phi^*_{\mathrm{amp},\mathrm{l}}\):
sm_fct_phi_star_*_amp_lowmass, where*can be eitherblueorred.\(\phi^*_{\mathrm{amp},\mathrm{h}}\):
sm_fct_phi_star_*_amp_highmass, where*can be eitherblueorred.\(\phi^*_{\mathrm{exp},\mathrm{l}}\):
sm_fct_phi_star_*_exp_lowmass, where*can be eitherblueorred.\(\phi^*_{\mathrm{exp},\mathrm{h}}\):
sm_fct_phi_star_*_exp_highmass, where*can be eitherblueorred.
Sampling galaxies from the GSMF creates a catalogue of galaxies with redshifts and formed stellar masses. Changing the parameters of the GSMF therefore changes the number of galaxies, the redshift distribution and the formed stellar mass distribution. The impact of the different parameters on the GSMF is illustrated in the interactive figure below.
This interactive figure shows the GSMF for blue and red galaxies color-coded by redshifts. The sliders allow you to change the parameters of the GSMF and evaluate their impact on the number density of galaxies as function of formed stellar mass.
Galaxy star formation history
GalSBI-SPS models galaxy star formation histories (SFHs) in units of
\(M_{\odot}\,\mathrm{yr}^{-1}\) using the truncated skewed-normal
massfunc_snorm_trunc family introduced by Robotham+20. Its functional form
is
where
\(\Phi(t;\mu,\sigma)\) is the Normal cumulative distribution function.
\(\mathrm{magemax}\) is the maximum stellar age at the galaxy redshift,
\(\mathrm{mtrunc}\) controls the early-time truncation,
\(\mathrm{mSFR}\) is the untruncated peak amplitude,
\(\mathrm{mpeak}\) is the look-back time of that peak in Gyr,
\(\mathrm{mperiod}\) is the SFH duration in Gyr, and
\(\mathrm{mskew}\) controls its asymmetry. GalSBI-SPS normally fixes
mtrunc=2 and computes
where magemax_z0=13.4 Gyr by default and \(t_{\mathrm{lb}}\) is the
observer-frame look-back time.
The impact of the different parameters on the SFH and the resulting galaxy spectra is illustrated in the interactive figure below.
The sliders allow you to change the parameters of the truncated skewed Normal distribution and evaluate their impact on the predicted star formation history and spectrum of the galaxy. The spectra have been normalized to the median flux in the [5500, 5550] Å range of the \(\mathrm{mSFR}=50\), \(\mathrm{mpeak}=13\), \(\mathrm{mperiod}=1\), and \(\mathrm{mskew}=0\) galaxy.
The SFH is shown for a galaxy at \(z=0\) on the common look-back-time grid used by GalSBI-SPS. Here \(t=0\) denotes the epoch at which the galaxy is observed, not the observer’s present day. The SFH is set to zero for \(t>\mathrm{magemax}(z)\), allowing every galaxy to share one stored time grid without forming stars before its allowed formation epoch.
SFH population models
The SFH shape is described by mpeak, mperiod, and mskew. Its
normalization mSFR is derived rather than independently sampled: GalSBI-SPS
requires the time integral of the complete SFH to equal the formed stellar mass
\(\mathcal{M}_{\mathrm{formed}}\) drawn from the GSMF. Three SFH population
models are defined in galaxy_star_formation_history.py:
tortorelli25_snorm_truncThe published GalSBI-SPS model. It samples the three smooth-shape parameters jointly from a truncated multivariate Normal distribution.
conditional_snorm_truncA galaxy-property-conditioned smooth model in which SFH peak time, duration, and skew depend on formed stellar mass, redshift, galaxy population, and the previously sampled SFH properties.
conditional_snorm_burst_truncThe same smooth model plus stochastic recent-burst occurrence and a conditional burst formed-mass fraction.
The catalogue physical-property workflow selects these models through
sfh_population_model. The published Tortorelli+25 model remains the
default. The conditional models use the fiducial peak, duration, skew, and
burst coefficients in common_sps.py unless they are overridden by a model
configuration or user-supplied keyword arguments. The function
sample_conditional_sfh_parameters reads these coefficients from the GalSBI
parameter object and returns mpeak, mperiod, mskew, has_burst,
and fburst arrays. Selecting the appropriate ProMage and ProSpect model is
handled galaxy by galaxy from has_burst and fburst, as described in
Saving Galaxy Spectra.
A minimal run with the conditional recent-burst SFH, optional two-population diffuse-dust prescription, and Miller+26 size relation is:
from galsbi import GalSBI
model = GalSBI("Tortorelli+25")
model(
file_name="GalSBI_SPS_conditional_burst",
sfh_population_model="conditional_snorm_burst_trunc",
dust_attenuation_population_model="two_population_diffuse_dust",
size_model="miller2026",
)
Use sfh_population_model="conditional_snorm_trunc" for the corresponding
smooth-only population. The dust and size choices are independent of the SFH
choice: use dust_attenuation_population_model="tortorelli25" for the
published dust model and size_model="nedkova21_binned" for the binned
Nedkova+21 relation. These keyword arguments override the published
Tortorelli+25 defaults for this run; all other configuration values are
unchanged.
SFH time grids and formed-mass normalization
The published tortorelli25_snorm_trunc workflow evaluates every SFH on the
common, uniformly spaced time_grid and uses trapezoidal integration. This
path remains unchanged. The conditional models also provide a separate
SSP-grid evaluator, evaluate_sfh_on_ssp_grid, for use by the new
physical-property and photometry calculations. load_ssp_time_grid loads
and caches the Age, AgeBins, and AgeWeights arrays from the
configured ProSpect SSP FITS library. Ages are look-back times from the epoch
at which each galaxy is observed.
When ProSpect is called with intSFR=FALSE, the formed mass represented by a
sampled SFH is
GalSBI-SPS uses this same weighted sum for SSP-grid normalization. For an object with burst fraction \(f_{\mathrm{burst}}\), the requested component masses are
Let \(U_{\mathrm{smooth},i}\) and
\(U_{\mathrm{burst},i}\) denote the SSP-grid responses for unit mSFR
and unit mburst, respectively. The amplitudes passed to ProSpect are
The burst response is constant before truncation for SSP ages younger than
mburstage=0.1 Gyr. The same Normal-CDF early-time truncation is then applied
to the smooth and burst components, exactly as in ProSpect’s
massfunc_snorm_burst_trunc. Consequently, mburst is not generally equal
to \(\mathcal{M}_{\mathrm{burst}}/(10^8\,\mathrm{yr})\).
GalSBI-SPS reports SFRs averaged over both the most recent 10 Myr and 100 Myr
as star_formation_rate_10_myr and star_formation_rate, respectively.
For the conditional models, each is the formed mass in SSP bins with Age
below the corresponding time limit, divided by 10 Myr or 100 Myr. The shorter
average is more sensitive to recent bursts, while the 100 Myr average remains
the quantity used by the gas-metallicity relation. The published model’s
uniform grid has 100 Myr spacing and therefore cannot resolve a 10 Myr average;
its star_formation_rate_10_myr values are NaN.
Metallicity histories use the same weighted formed mass, define the remaining
mass fraction at AgeBins, and interpolate it to Age. This is the
deterministic discrete metallicity prescription used to create the ProMage
training data. Both calculations operate in bounded-memory chunks and are used
by the catalogue physical-property workflow for both conditional SFH models.
The catalogue context records the active look-back-time grid as
ctx.sfh_time_grid. It is equal to par.time_grid for the published
Tortorelli+25 model and to the cached SSP Age array for either conditional
model. The physical catalogue contains has_burst and fburst for every
mode. They are respectively False and zero in the published and
conditional smooth-only models.
By default, star_formation_history and metallicity_history are retained
on that active grid. Setting retain_sfh_histories=False omits these two
two-dimensional columns to reduce memory use when only ProMage magnitudes and
scalar physical properties are required. The active time grid and scalar SFR,
SFH-shape, metallicity, and burst columns remain available.
Surviving stellar mass
The stellar mass drawn from the GSMF is interpreted as total formed stellar mass. The published Tortorelli+25 model retains its original surviving-mass emulator and output definition. The conditional models use versioned TorchScript emulators trained to predict
Galaxies without a recent burst use the massfunc_snorm_trunc emulator.
Galaxies with has_burst=True use the
massfunc_snorm_burst_trunc emulator, whose additional input is
log10(fburst). GalSBI-SPS restores the original galaxy order after this
split and computes the absolute surviving mass as
The model metadata, version, SFH family, physical-property order, and training
support are validated before inference. The default emulator locations are
configured by surviv_stellar_mass_emulator_smooth_directory and
surviv_stellar_mass_emulator_burst_directory.
Published Tortorelli+25 SFH population model
Define the normalized Tortorelli+25 peak coordinate as
The Tortorelli+25 model parametrizes \(\log_{10}q\) for blue and red galaxies as
with slope and intercept linearly evolving with redshift as
The four coefficients have different values for blue and red populations and map to the existing configuration names as follows:
\(a_{0,0}\):
logmpeak_massevo_intcpt_zevo_intcpt_*.\(a_{0,z}\):
logmpeak_massevo_intcpt_zevo_slope_*.\(a_{M,0}\):
logmpeak_massevo_slope_zevo_intcpt_*.\(a_{M,z}\):
logmpeak_massevo_slope_zevo_slope_*.
In each name, * is either blue or red.
\(\mathrm{mperiod}\) and \(\mathrm{mskew}\) are instead parametrised as function of stellar mass as
\(\log{(\mathrm{mperiod})}_{\mathrm{mass,evo,intcpt}}\), \(\log{(\mathrm{mperiod})}_{\mathrm{mass,evo,slope}}\), \(\mathrm{mskew}_{\mathrm{mass,evo,intcpt}}\), and \(\mathrm{mskew}_{\mathrm{mass,evo,slope}}\) have different values for the blue and red populations. They can be defined using the following parameters:
\(\log{(\mathrm{mperiod})}_{\mathrm{mass,evo,intcpt}}\):
logmperiod_massevo_intcpt_*, where*can be eitherblueorred.\(\log{(\mathrm{mperiod})}_{\mathrm{mass,evo,slope}}\):
logmperiod_massevo_slope_*, where*can be eitherblueorred.\(\mathrm{mskew}_{\mathrm{mass,evo,intcpt}}\):
mskew_massevo_intcpt_*, where*can be eitherblueorred.\(\mathrm{mskew}_{\mathrm{mass,evo,slope}}\):
mskew_massevo_slope_*, where*can be eitherblueorred.
The type-specific covariance is stored in sfh_shape_params_cov_* and all
three dimensions are truncated to their configured *_min_* and *_max_*
bounds. The physical peak time is reconstructed from \(q\) and the
galaxy-specific magemax before evaluating the SFH.
Galaxy-property-conditioned smooth SFHs
The new model conditions on
and on galaxy type \(T\in\{\mathrm{blue},\mathrm{red}\}\). First it samples the dimensionless peak coordinate \(p\):
The plus sign in the final expression is part of the model definition. It maps
\(p=0\) to \(\mathrm{mpeak}_{\min}\) and \(p=1\) to the maximum
stellar age. The default lower bound is \(\mathrm{mpeak}_{\min}=-2\) Gyr;
negative mpeak values describe a formal peak after observation and permit a
still-rising SFH.
Next define the log-relative duration \(w=\ln(\mathrm{mperiod}/\mathrm{magemax})\) and sample
The Student-t is sampled directly inside its finite interval; an unbounded draw is never clipped onto an emulator boundary.
Finally, the skew coordinate \(s\) is conditional on both preceding draws:
Peak, duration, and skew are redrawn together in the rare case where their combination produces no representable smooth star formation at the youngest SSP age. This conditions the joint SFH population on having nonzero formed stellar mass before the galaxy is observed; it does not alter the individual parameter limits.
Thus the smooth-shape factorization is
The complete coefficients are attributes of the GalSBI parameter object.
Their default values are direct fits to mass-complete observational samples
and can be overridden by a model configuration or user-supplied keyword
arguments. The same smooth-SFH values are used by both conditional modes.
Peak uses
peak_intercept_*, peak_mass_slope, peak_redshift_slope, and
peak_concentration_*. Duration uses duration_intercept_*,
duration_mass_slope, duration_redshift_slope, duration_peak_slope,
and duration_scale_*. Skew uses skew_intercept_*,
skew_mass_slope, skew_redshift_slope, skew_peak_slope,
skew_duration_slope, and skew_concentration_*. Asterisks denote
separate blue and red values.
Stochastic recent-burst component
The burst model retains the same smooth-shape factorization and adds a binary recent-burst occurrence indicator \(B\):
If \(B=0\), fburst is exactly zero and the smooth SFH and photometry
models must be used. If \(B=1\), a burst-fraction coordinate \(y\) is
sampled:
Here
is the fraction of total formed stellar mass assigned to the burst. It is not
the fraction of mass surviving at observation and not the fraction formed in
the most recent 100 Myr. The burst-probability coefficients are named
burst_intercept_*, burst_mass_slope, and burst_redshift_slope. The
burst-fraction coefficients are fburst_intercept_*,
fburst_mass_slope, fburst_redshift_slope, and
fburst_concentration_*.
The default recent-burst parameters are physically motivated fiducial values, not direct observational constraints from the smooth-SFH catalogues used to fit the peak, duration, and skew relations. At \(\log_{10}(\mathcal{M}_{\mathrm{formed}}/\mathrm{M}_\odot)=10\) and \(z=0\), the defaults give recent-burst probabilities of 0.08 and 0.035 and mean active burst fractions of 0.03 and 0.01 for blue and red galaxies, respectively. No mass or redshift dependence is assumed for these initial burst values.
The structural supports are:
conditional_snorm_trunc:mperiodin [0.3, 100] Gyr.conditional_snorm_burst_trunc:mperiodin [0.3, 10] Gyr for both galaxies with and without a recent burst.Both conditional modes:
mpeakin [-2 Gyr,magemax] andmskewin [-0.5, 1].Galaxies with a recent burst:
fburstin [1e-4, 0.2]; galaxies without one have exactly zero.
Metallicity history
We linearly map the stellar mass evolution of each galaxy on to the shape of the gas-phase metallicity evolution. The metal enrichment is thus following a 1-to-1 relation with the mass-build, such that e.g. when half of the stellar mass of a galaxy has been assembled, half of the metal enrichment has occurred:
\(\mathcal{M}\) is stellar mass in units of $M_{odot}$ drawn from the SMF. \(Z_{\mathrm{gas,init}}\) is the
initial metallicity for the earliest phases of star-formation and can be modified with the parameter Zgas_init.
We also impose a maximum metallicity given by \(Z_{\mathrm{gas,max}}\) governed by the parameter Zgas_max.
\(Z_{\mathrm{gas,final}}\) is the present-day gas-phase metallicity of the object that is sampled, in terms of
gas-phase oxygen abundance \(\log{(O/H)}\), from:
\(\alpha(t_{\mathrm{lb}})\), \(\beta(t_{\mathrm{lb}})\), \(\gamma(t_{\mathrm{lb}})\) and the scatter around this mean relation \(\sigma_{\mathrm{FMR}}(t_{\mathrm{lb}})\) evolve quadratically with lookback time:
\(\alpha_i, \beta_i, \gamma_i\) can be modified in GalSBI-SPS with the parameters gas_metallicity_alphai_*,
gas_metallicity_betai_*, and gas_metallicity_gammai_*, respectively, while \(\sigma_{\mathrm{FMR},i}\) with
gas_metallicity_scatteri_*, where * can be either blue or red.
\(Z_{\mathrm{gas,final}}\) and \(\log{(O/H)}\) are related through:
where \(Z_{\odot}\) and \(\left[ 12 + \log{(O/H)} \right]_{\odot}\) can be varied through the parameters
SOLAR_GAS_METALLICITY and SOLAR_LOG_OH_PLUS12, respectively.
Gas ionisation
We sample the gas ionisation parameter \(logU\) from a truncated Normal distribution with mean given by:
where \(\log{(O/H)}\) and \(\log{(sSFR)}\) are obtained from the physical properties sampled in the SMF, SFH and
metallicity history. The stellar mass for the sSFR computation is the surviving stellar mass. The values of \(\upsilon_i\) can be modified in GalSBI-SPS with the parameters
gas_ionization_upsiloni. The same values hold for the blue and the red population. The scatter around this relation
can be varied with the parameter gas_ionization_scatter. We limit the sampled gas ionisation parameter values
to the range set by the parameters logUmin and logUmax.
Dust component
We model the effect of dust in GalSBI-SPS using the Charlot & Fall (2000) two-phase dust attenuation model. Older stars are solely attenuated by a dust screen, regulated by the \(\tau_{\mathrm{ISM}}\) parameter, which represents the dust in the diffuse ISM. Young stars are instead attenuated by the dust screen and by an additional birth cloud component that adds extra attenuation towards young stars, simulating their embedding in molecular clouds and HII regions. The birth cloud component is regulated by the \(\tau_{\mathrm{BC}}\) parameter.
We sample \(\log{\tau_{\mathrm{BC}}}\) from a Normal distribution with mean
\(\mu_{\log{(\tau_{\mathrm{BC,\{ b,r \}}})}}\) and scatter \(\sigma_{\log{(\tau_{\mathrm{BC,\{b,r\}}})}}\)
governed in GalSBI-SPS by the parameters logtaubirth_mean_* and logtaubirth_scatter_*,
where * can be either blue or red. We limit the sampled \(\log{\tau_{\mathrm{BC}}}\) values
to the range set by the parameters logtaubirth_min and logtaubirth_max.
The diffuse-screen population is selected with
dust_attenuation_population_model. The default value, tortorelli25,
preserves the published model. It samples \(\log_{10}(\tau_\mathrm{ISM})\)
from a Normal distribution around
The values of \(\tau_{\mathrm{ISM},i}\) can be changed in GalSBI-SPS with the parameters logtauscreen_a0_*,
while the scatter around the relation with logtauscreen_scatter_*, where * can be either blue or red.
We limit the sampled \(\log{\tau_{\mathrm{ISM}}}\) values to the range set by the parameters logtauscreen_min
and logtauscreen_max.
The optional two_population_diffuse_dust model describes the
low-attenuation tail and the main dust-rich diffuse-screen population
separately. It uses surviving stellar mass and the star formation rate
averaged over the latest 100 Myr,
Values below dust_logssfr_floor are set to that lower limit. GalSBI-SPS
already generates separate blue and red galaxy populations, so the existing
galaxy type selects the corresponding attenuation coefficients. The sSFR does
not redefine a galaxy’s type. Define
\(s_\mathrm{ref}=\mathtt{dust\_logssfr\_reference}\), whose default is
\(-10.5\). For either population,
The probability of drawing from the diffuse-dust-poor population and the two component means are
The vectors \(\boldsymbol{p}\), \(\boldsymbol{a}\), and
\(\boldsymbol{b}\) are set by
logtauscreen_dustpoor_probability_a0_* through
logtauscreen_dustpoor_probability_a3_*,
logtauscreen_dustpoor_a0_* through logtauscreen_dustpoor_a3_*, and
logtauscreen_dustrich_a0_* through
logtauscreen_dustrich_a3_*. Each population has its own scatter,
logtauscreen_dustpoor_scatter_* or
logtauscreen_dustrich_scatter_*. Both Normal distributions are sampled
directly between logtauscreen_min and logtauscreen_max.
The birth-cloud distribution is unchanged and is sampled independently of the selected diffuse-screen population. Selecting this dust model is independent of selecting a smooth or recent-burst SFH model.
Velocity dispersion
We model the velocity dispersion \(\sigma_{\mathrm{disp}}\) following the stellar mass-velocity dispersion relation:
where \(\mathcal{M}\) is the surviving stellar mass. The values for \(\log{\sigma_b}\), \(\log{M_b}\),
\(s_1\), \(s_2\), and the scatter around the relation can be varied in GalSBI-SPS through the parameters
vel_disp_logsigma_b, vel_disp_logM_b, vel_disp_s_1, vel_disp_s_2 and vel_disp_std, respectively.
The same values hold for the blue and the red population.
Active galactic nuclei
In GalSBI-SPS, the probability of a galaxy hosting an AGN as function of redshift and stellar mass is given by the ration between the redshift-evolving GSMFs of blue and red galaxies and the AGN host galaxy mass function (HGMF) derived in Bongiorno+16. Following López-López+24, we statistically assign an AGN to a host galaxy with a Bernoulli trial proportional to the computed probability. To assign the AGN spectral contribution, we use the Temple+21 templates, which cover u-band to W2-band wavelengths. These parametric templates are governed by a single parameter, namely the AGN bolometric luminosity. In GalSBI-SPS, the AGN luminosity is expressed as a fraction \(f_{\mathrm{AGN}}\) of the galaxy bolometric luminosity, \(f_{\mathrm{AGN}} = L_{\mathrm{bol,AGN}} / L_{\mathrm{bol,galaxy}}\).
We model \(\log{f_{\mathrm{AGN}}}\) as a two component mixture of Normal distributions We then assign AGN flux contributions to all galaxies, regardless of whether they are classified as AGN hosts. However, \(\log{f_{\mathrm{AGN}}}\) is sampled from different distributions depending on the AGN classification. Galaxies hosting AGNs draw from the high \(\log{f_{\mathrm{AGN}}}\) distribution, while non-AGN galaxies draw from the low \(\log{f_{\mathrm{AGN}}}\) one. We adopt a threshold of \(\log{f_{\mathrm{AGN}}} = -1\) to separate these two regimes.
The parameters of the two component mixture of Normal distributions are:
\(\mu_{f_{\mathrm{AGN,1}}}\):
logfagn_mu1_*, where*can be eitherblueorred.\(\sigma_{f_{\mathrm{AGN,1}}}\):
logfagn_sigma1_*, where*can be eitherblueorred.\(\mu_{f_{\mathrm{AGN,2}}}\):
logfagn_mu2_*, where*can be eitherblueorred.\(\sigma_{f_{\mathrm{AGN,2}}}\):
logfagn_sigma2_*, where*can be eitherblueorred.
The user should set the parameter add_agn_component to True in the model definition to enable the spectral contribution of AGNs and define the absolute path to the folder containing the Temple+21 model with the parameter abs_path_temple2021.
Galaxy Morphology
The last step in generating a galaxy catalogue is to assign a morphological parameters to each galaxy. In GalSBI-SPS, we assume that the galaxy light profile is described by a single Sersic component. Therefore, the morphological parameters we sample are those used to describe the Sersic profile, meaning the effective radius, proxy of the galaxy size, the ellipticity and the Sersic index.
Size
In GalSBI-SPS, we sample the effective radius \(r_{50}\) (containing 50% of the total light from the model)
from a lognormal distribution whose mean depends on the surviving stellar mass \(\mathcal{M}\) of the galaxy.
The parameter size_model selects one of three prescriptions:
"tortorelli25"is the original published GalSBI-SPS model and remains the default."nedkova21_binned"interpolates the complete relations measured by Nedkova et al. (2021), rather than extrapolating their individual parameters."miller2026"uses the continuous relations measured by Miller et al. (2026), with local relations supplying the redshift range below their data.
All three prescriptions use surviving stellar mass and return a rest-frame optical, major-axis half-light radius in kpc.
Published Tortorelli+25 model
The published model follows two different functional forms for blue and red galaxies. For blue galaxies, the dependence is a single power law:
where \(\log{A}\) and \(B\) are assumed to evolve linearly with redshift:
\(\log{A}_{\mathrm{intcpt}}\), \(\log{A}_{\mathrm{slope}}\), \(B_{\mathrm{intcpt}}\), and
\(B_{\mathrm{slope}}\) are controlled in GalSBI-SPS by the parameters r50_stellar_mass_logA_blue_intcpt,
r50_stellar_mass_logA_blue_slope, r50_stellar_mass_B_blue_intcpt, and r50_stellar_mass_B_blue_slope,
respectively. The scatter around the log-normal distribution for blue galaxy sizes is instead controlled by the
parameter logr50_stellar_mass_std_blue.
For red galaxies, we model the dependence as a double power-law:
where \(\eta\) and \(\theta\) are the slope at the low and high mass end, \(\zeta\) is the normalisation, while \(10^{\delta}\) is the stellar mass at which the second derivative of the function is at a maximum. All these parameters also evolve linearly with redshift:
\(\eta_{\mathrm{intcpt}},\eta_{\mathrm{slope}},\theta_{\mathrm{intcpt}},\theta_{\mathrm{slope}},\log{\zeta}_{\mathrm{intcpt}},\log{\zeta}_{\mathrm{slope}},\delta_{\mathrm{intcpt}},\delta_{\mathrm{slope}}\)
are controlled in GalSBI-SPS by the parameters r50_stellar_mass_eta_red_intcpt, r50_stellar_mass_eta_red_slope,
r50_stellar_mass_theta_red_intcpt, r50_stellar_mass_theta_red_slope, r50_stellar_mass_logzeta_red_intcpt,
r50_stellar_mass_logzeta_red_slope, r50_stellar_mass_delta_red_intcpt, and r50_stellar_mass_delta_red_slope.
The scatter around the log-normal distribution for red galaxy sizes is instead controlled by the
parameter logr50_stellar_mass_std_red.
This prescription evolves all coefficients linearly with redshift and is retained for exact reproducibility of the published model. It should not be extrapolated physically to high-redshift, low-mass red galaxies. The scatter parameters are standard deviations in natural logarithm, as in the original implementation.
Binned Nedkova+21 model
For size_model="nedkova21_binned", the blue-galaxy relation is
and the red-galaxy relation is
The index \(i\) identifies the four measured intervals \(0.2\leq z\leq0.5\), \(0.5<z\leq1\), \(1<z\leq1.5\), and \(1.5<z\leq2\). GalSBI-SPS evaluates the complete relation in each bin and interpolates \(\log_{10}(r_{50})\) between the bin centres. This retains the covariance between the double-power-law parameters. Below \(z=0.1\), the local rest-frame g-band Lange et al. (2015) relation is used, with blue and red populations defined by their dust-corrected \((u-r)_\mathrm{stars}=1.5\) colour division. The Lange and first Nedkova relations are joined over \(0.1<z<0.2\). Above \(z=2\), the final measured Nedkova relation is held fixed instead of being extrapolated.
The logarithmic scatter is interpolated from the Nedkova measurements and is expressed in dex. The measured values are \([0.22,0.22,0.22,0.23]\) for blue galaxies and \([0.19,0.18,0.20,0.25]\) for red galaxies. Below the first Nedkova bin centre, the corresponding first-bin scatter is retained while the mean relation approaches the Lange relation.
Miller+26 model
For size_model="miller2026", blue galaxies follow
where
Red galaxies follow the pivoted double power law
with
The positive sign of the exponential term in \(\alpha(z)\) follows the redshift trend and symbolic-regression table in Miller et al. (2026); Equation 12 of the first arXiv version contains an inconsistent negative sign. Miller et al. constrain blue galaxies over \(0.5<z<8\) and red galaxies over \(0.5<z<3\). Therefore, the red relation above \(z=3\) is an explicit extrapolation. Below \(z=0.4\), GalSBI-SPS uses the local Lange and binned Nedkova relations described above, and interpolates to Miller over \(0.4<z<0.6\).
The Miller red-galaxy scatter is \(0.20\) dex. For blue galaxies it is
For both new models the final size sampling is
Ellipticity
See phenomenological GalSBI page.
Light Profile
The light profile of galaxies is defined by the Sersic profile:
where \(I_0\) is the intensity at the center, \(R_e\) is the effective radius, \(n\) is the Sersic index, and \(b_n\) is a constant that depends on \(n\).
In GalSBI-SPS, the Sersic index depends on the surviving stellar mass \(\mathcal{M}\). The relation between the two is modelled as follows:
The values for \(n_i\) are controlled by the parameters sersic_n_i_*, where * can be either blue or
red. This relation provides the mean of the truncated Normal distribution from which we sample $n$. The standard
deviation is controlled by the parameter sersic_n_scatter_*. We limit the sampled \(n\) values to the range set
by the parameters sersic_n_min and sersic_n_max.
Do I need to set all these configurations and parameters when using the galsbi package?
No, if a specific model is passed to the GalSBI class, all the configurations and parameter values are set automatically based on the model. For example, the following code snippet will
from galsbi import GalSBI
model = GalSBI(model="Tortorelli+25")
sets all the parametrizations and parameter values to the fiducial model of Tortorelli et al. (2025).
References
GalSBI-SPS is based on the following papers:
Tortorelli et al. (2025): GalSBI-SPS: a stellar population synthesis-based galaxy population model for cosmology and galaxy evolution
Fischbacher et al. (2024): GalSBI: Phenomenological galaxy population model for cosmology using simulation-based inference
Tortorelli et al. (2024): Impact of stellar population synthesis choices on forward modelling-based redshift distribution estimates
Moser et al. (2024): Simulation-based inference of deep fields: galaxy population model and redshift distributions
Tortorelli et al. (2021): The PAU Survey: Measurement of Narrow-band galaxy properties with Approximate Bayesian Computation
Tortorelli et al. (2020): Measurement of the B-band Galaxy Luminosity Function with Approximate Bayesian Computation
Kacprzak et al. (2020): Monte Carlo Control Loops for cosmic shear cosmology with DES Year 1
Tortorelli et al. (2018): The PAU Survey: a forward modeling approach for narrow-band imaging
Herbel et al. (2018): The redshift distribution of cosmological samples: a forward modeling approach
References used for the parametrizations are:
Robotham et al. (2020): ProSpect: generating spectral energy distributions with complex star formation and metallicity histories
Weaver et al. (2023): COSMOS2020: The galaxy stellar mass function. The assembly and star formation cessation of galaxies at 0.2< z ≤ 7.5
Bellstedt et al. (2021): Galaxy and mass assembly (GAMA): the inferred mass-metallicity relation from z = 0 to 3.5 via forensic SED fitting
Kashino & Inoue (2019): Disentangling the physical parameters of gaseous nebulae and galaxies
Charlot & Fall (2000): A Simple Model for the Absorption of Starlight by Dust in Galaxies
Zahid et al. (2016): The Scaling of Stellar Mass and Central Stellar Velocity Dispersion for Quiescent Galaxies at z<0.7
Temple at al. (2021): Modelling type 1 quasar colours in the era of Rubin and Euclid
Lange et al. (2015): Galaxy And Mass Assembly (GAMA): mass-size relations of z < 0.1 galaxies subdivided by Sersic index, colour and morphology
Nedkova et al. (2021): Extending the evolution of the stellar mass-size relation at z ≤ 2 to low stellar mass galaxies from HFF and CANDELS
Miller et al. (2026): Everything Every Band All at Once II: The Relationship Between Optical Size and Stellar Mass Over Eight Billion Years of Cosmic History
Kelvin et al. (2012): Galaxy And Mass Assembly (GAMA): Structural Investigation of Galaxies via Model Analysis