skip to main content

gaia data release 4 documentation

16.4 Results and Quality Assessment

16.4.4 Products in the ap_rvs table

Author(s): Pedro Alonso Palicio, Camila Navarrete, Alejandra Recio-Blanco, Orlagh L. Creevey, Marco A. Álvarez

16.4.4.1 GSP-Spec products

The atmospheric parameters inferred by GSP-Spec from stacked spectra are available in the ap_rvs table. In total, GSP-Spec has characterised the atmospheres of almost 35.5 million sources during the Gaia DR4 operations. To visualise these results, we show in Figure 16.62 and Figure 16.63 the Kiel diagram (Teff vs. log⁡g) and the Tinsley diagram ([α/Fe] vs. [M/H]), respectively, for the General Sample (GS) defined in Equation 16.27 of Section 16.3.4.7.

In Figure 16.62, we can discern the different parts of the Kiel diagram. We identify the Red Clump structure as an over-density at log⁡g ≈2.5 in all three subsamples. Although the subgiant branch and the lower main sequence are merged due to blurring effects in the GS, their separation becomes more evident in the Medium Quality (MQ, see Equation 16.28) and the High Quality (HQ, see Equation 16.29) samples. Similarly, the Red Giant Branch is more sharply defined once restrictive quality selection criteria are imposed (middle and right panels in Figure 16.62). Finally, the hot dwarf regime is also discernible, though noticeably less populated than other regions in the diagram.

Refer to caption
Figure 16.62: Distribution of sources in the Kiel diagram using calibrated GSP-Spec atmospheric parameters. Each panel shows a sample defined by different quality selection criteria: the GS (left), MQ sample (middle), and HQ sample (right). The number of stars is indicated in each panel. The colour code indicates density.

The two sequences associated to the thin and thick disc structures of the Milky Way can be identified in the [α/Fe] vs. [M/H] diagram presented in Figure 16.63, although the latter is poorly populated when the high quality selection criteria are applied.

Refer to caption
Figure 16.63: Distribution of sources in the Tinsley diagram using calibrated GSP-Spec [M/H] and [α/Fe] values. Each panel shows a sample defined by different quality selection criteria: GS (left), MQ (middle), and HQ (right). The number of stars is indicated in each panel. The colour code indicates density.

In order to evaluate the quality of derived parameters, we compared them with a compilation of literature values, mainly from APOGEE DR17 (Abdurro’uf et al. 2022), GALAH DR4 (Buder et al. 2025), and RAVE DR6 (Steinmetz et al. 2020a). We considered three subsets of this literature data set: cool dwarfs (Teff <6500 K and log⁡g >3.5), cool giants (Teff <6500 K and log⁡g <3.5), and hot dwarfs (Teff ≥6500 K). Figure 16.64 illustrates the distribution of the GSP-Spec biases with respect to the literature values, for the GS.

Refer to caption
Figure 16.64: Distribution of GSP-Spec biases with respect to the literature values for four different subsets of the GS. Rows from 1 to 4: full GS, cool dwarfs, giants, and hot dwarfs. Columns from 1 to 4: Teff, log⁡g, [M/H], and [α/Fe]. The annotation in each panel indicates the median bias, also shown by dashed vertical lines, and the MAD of the bias, for both the calibrated and not-calibrated cases. The units of these statistics match those labelled in the horizontal axis.

As evidenced from upper row in Figure 16.64, corresponding to the full crossmatch of GSP-Spec sample with the reference catalogue, the biases in Teff, log⁡g, and [α/Fe] are small compared to their typical uncertainties. On the contrary, we detected a more significant median bias in [M/H] of ∼−0.13 dex. With the exception of Teff, all these biases decrease to almost zero values once calibration is applied.

For Teff, however, the bias increases from the negligible offset of 9.03 K observed in the not-calibrated values to 18.84 K after calibration. This can be explained by the poor calibration in the hot dwarf regime (leftmost panel of the last row), which distorts the bias distribution of the entire sample. This is due to the lack of sources satisfying the quality selection criteria used to define the calibration. The resulting low number of stars may therefore lead to an unreliable bias correction. Nevertheless, we have verified that applying more restrictive quality selection criteria, such as those of the HQ sample, the agreement with the literature improves.

On the contrary, the calibration reduces the bias and MAD for all four parameters in the cool dwarf and giant regimes (the degradation in the [α/Fe] bias for cool dwarfs is marginal, from −0.01 dex to 0.02 dex). This demonstrates the capability of GSP-Spec to deliver high-quality stellar parameters for scientific exploitation.

To test the improvement in accuracy of the atmospheric parameters derived in DR4, we have cross-matched the GSP-Spec output sample with the three working samples defined in Section 16.3.4.7. In each of them, sources without Teff estimation, either in DR3 or DR4, are excluded; as well as those having the DR3 flag KMgiantPar different from zero. Our final subsamples contain approximately N∼4.8 million, 4.02 million, and 2.00 million common sources for the GS, MQ sample, and HQ sample, respectively.

Figure 16.65 shows the comparisons of calibrated Teff (first row), log⁡g (second row), [M/H] (third row), and [α/Fe] (fourth row) for the GS (left panels), the MQ sample (middle panels), and the HQ sample (right panel) as defined in Gaia DR3. The median offset (defined as the difference Δ⁢X=XDR4−XDR3) and robust standard deviation (∼1.48 times the MAD) are shown at the right corner of each subpanel. For the HQ sample, we found a median offset of Teff, log⁡g, [M/H], and [α/Fe] of 24.6 K, 0.02 dex, -0.06 dex, and 0.05 dex, respectively, with a robust standard deviation of 60.3 K, 0.19 dex, 0.07 dex, and 0.03 dex. As it is expected, the robust standard deviation becomes smaller when the HQ sample is considered, although the bias remains of the same order of magnitude in each subsample for all atmospheric parameters but Teff. At temperatures hotter than Teff ≥ 6500 K, the Gaia DR4 estimations start to deviate considerably with respect to the Gaia DR3 values, producing a larger bias than in the rest of the samples. This is a consequence of the grid extension towards the hot regime (Section 16.3.4.2), as suggested by the border effect at ∼8,000 K on DR3 Teff, clearly seen in the three subsamples. In the case of log⁡g, the distribution is rather smooth, having larger discrepancies only for dwarf stars at log⁡g ≳ 4.0. For [M/H] and [α/Fe], there are no systematics in any of the samples, showing median and MAD offsets of the same order of magnitude (≈ 0.05 dex). This comparison demonstrates that the median offsets in the three subsamples, for all the atmospheric parameters, are rather small and that the quality of the adopted calibrations is, for most of the samples, consistent with the calibrations adopted in Gaia DR3.

Refer to caption
Figure 16.65: Comparison of Gaia DR3 and Gaia DR4 calibrated values for the GS (left column), MQ sample (middle column), and HQ sample (right column) defined in Gaia Collaboration et al. (2023f). The median difference, robust standard deviation, and number of stars N are annotated inside each sub-panel. Blue dashed line denotes the 1:1 relation.

The longer observing baseline of Gaia for DR4 implies an increase in the spectral S/N for those stars already analysed in Gaia DR3. Together with the updates to the GSP-Spec pipeline, this is expected to improve the precision of the derived atmospheric parameters. Figure 16.66 illustrates this improvement by comparing the uncertainties in the GSP-Spec atmospheric parameters derived for DR4 with those from its predecessor for the three quality samples. As can be seen, the precision of Teff, log⁡g, and [M/H] has improved by a factor of ∼1.8 to 2, while the uncertainties in [α/Fe] have been reduced by a factor of ∼3. This improvement is also evident for the GS, for which no selection criteria based on parameter uncertainties have been applied, demonstrating that the gain in precision is not an artefact of our sample selection.

Refer to caption
Figure 16.66: Similar to Figure 16.65, but for the uncertainties in the atmospheric parameters. The blue dashed line denotes the linear fit to the background distribution, with the resulting slope indicated in the inset equation.

We illustrate the reliability of GSP-Spec products through a scientific application as a validation example. The aim of this exercise is neither to present new scientific results nor to discuss them in depth, as both are beyond the scope of this document.

Refer to caption
Figure 16.67: Metallicity profiles for different subsamples of the HQ subset. Coloured lines trace the variation of [M/H] with Galactocentric distance, computed using the running mean of the calibrated metallicities with a bin size of 0.5 kpc and 40% overlap. The standard deviation of the mean is indicated by shaded areas. For the prograde subsets, bins with less than 50 stars were excluded.

As a consequence of the inside-out formation scenario, the inner thin disc of the Milky Way had experienced an earlier, longer, and more intense star formation history compared to the outer regions. Therefore, the former is expected to be more chemically evolved than its external counterpart, since more generations of stars had contributed to the enrichment of the interstellar medium (ISM) with metals. This leads to a gradient in metallicity that encodes information about the evolution of the Milky Way, as extensively reported in the literature (Matteucci and Francois 1989; Anders et al. 2017; Minchev et al. 2018), although the flattening induced by radial migration should also be considered for it interpretation (Kubryk et al. 2015a, b; Schönrich and McMillan 2017). Similarly, stars can experience increasing vertical displacements from the Galactic plane due to multiple heating mechanisms (see Minchev et al. 2012, and references therein), leading to a vertical metallicity gradient (e.g., Kordopatis et al. 2011; Schlesinger et al. 2014).

In Figure 16.67, we represent the radial metallicity gradient for four different subsets of the HQ sample, imposing a maximum error in [M/H] of 0.1 dex. For computing the radial gradient, we removed stars with distance errors larger than 0.5 kpc, and focus on the Galactic region with |Z|<0.5 kpc. With the exception of the retrograde subset, which has been included to verify it is dominated by more metal poor stars, all the subsamples contain stars in prograde orbits. As can be seen, the metallicity profiles for prograde stars clearly display negative gradients (Δ⁢[M/H]/Δ⁢R=−0.011±0.007 dex/kpc for the all-[α/Fe] subset) that extend from R=6 kpc outwards, showing no significant variations when selecting by [α/Fe]. In contrast, in the inner regions, they present positive metallicity gradients for which the slope flattens as [α/Fe] decreases. Such dependence on [α/Fe] can be explained by the contamination from stars of the thick disc, for which the contribution increases towards the Galactic centre. Alternatively, Minchev et al. (2014) demonstrated that the combination of multiple negative gradients from different mono-age populations can result in a total positive gradient, constituting an astrophysical example of Simpson’s paradox (Simpson 1951; Minchev et al. 2019). Furthermore, positive gradients for the thick disc have been extensively reported in the literature (e.g., Recio-Blanco et al. 2014; Hayden et al. 2014; Rahimi et al. 2014; Miranda et al. 2016; Gaia Collaboration et al. 2023f; Sun et al. 2026).

The following figures illustrate the performance of the GSP-Spec ANN module and the characteristics of the derived atmospheric parameters under different quality selections.

Figure 16.68 shows the reference dataset used to train the GSP-Spec ANN model. This dataset was constructed by cross-matching Gaia sources with the APOGEE DR17 and GALAH DR3 (Buder et al. 2021) catalogues and applying the quality criteria described in Section 16.3.4.2. It provides broad coverage of the stellar parameter space; however, both diagrams reveal a marked scarcity of stars at high effective temperatures. This lack of training examples is expected to reduce the reliability of the ANN predictions in this regime and contributes to the systematic trends examined in the following paragraphs.

Refer to caption
Refer to caption
Figure 16.68: Reference dataset used to train the GSP-Spec ANN models. The left/top panel shows the Kiel diagram, while the right/bottom panel shows the Tinsley diagram. The number of stars is indicated in each panel, and the colour bars represent the source density.

Figure 16.69 shows the distribution of sources in the Kiel diagram using the atmospheric parameters estimated by the GSP-Spec ANN module for three different quality samples. The GS ( Equation 16.27) includes all sources for which the four atmospheric parameters (Teff, log⁡g, [M/H], and [α/Fe]) are available. Although the overall distribution exhibits a relatively large dispersion, reflecting both the wide range of spectral qualities and the intrinsic systematic effects expected from a data-driven model trained on real observational data, the main stellar evolutionary sequences are clearly recovered. In particular, the main sequence, the main-sequence turn-off, and the red clump are well defined, demonstrating that the ANN reproduces the expected global structure of the Hertzsprung-Russell diagram despite the increased scatter.

The MQ sample (Equation 16.28) is obtained by applying the quality information encoded in the flags_gspspec_ann field. These flags follow the same quality criteria defined for the MatisseGauguin parameter flags, with the exception that, for the ANN results, only the parameter-related flags are applied, excluding KMgiantPar. Sources containing the value 9 in any flag position are rejected, as this value indicates that the corresponding quality criterion is significantly affected. This filtering substantially reduces the dispersion observed in the GS while preserving the main stellar evolutionary features.

Finally, the HQ sample (Equation 16.29) applies the same flag selection as the MQ sample together with an additional constraint of vbroad<15, km⁢s−1, as discussed in Figure 16.70. Restricting the sample to low values of vbroad further improves the definition of the stellar sequences and provides a high-quality subset in which these systematic effects are largely mitigated.

An additional feature visible in the MQ and HQ samples is a systematic trend at the hot end of the Kiel diagram, where the estimated surface gravity decreases as Teff increases. This behaviour is not expected from stellar evolution alone and is most likely inherited from the reference sample used to train the ANN. As shown in Figure 16.68, the training dataset contains relatively few stars in the high-temperature regime, resulting in an incomplete sampling of this region of the parameter space. Consequently, the ANN has learned a systematic trend that should be regarded as a training-set artefact rather than a physical property of the stars. Atmospheric parameters derived for hot stars should therefore be interpreted with caution. For these sources, the ANN estimates should be compared with those provided by other parameter-estimation algorithms available within the Gaia processing pipeline, particularly those specifically designed for hot stars, to ensure a more robust astrophysical interpretation.

Refer to caption
Figure 16.69: Distribution of sources in the Kiel diagram using the atmospheric parameters estimated by the GSP-Spec ANN module. The three panels correspond to samples defined according to different quality selection criteria: GS (left), MQ (centre), and HQ (right). The number of stars in each sample is indicated in the corresponding panel. The colour bars represent the source density.

Figure 16.70 shows the distribution of the MQ sample in the Tinsley diagram, colour-coded according to the estimated line broadening parameter, vbroad. A clear correlation is observed between vbroad and the distribution of stars in the [M/H]–[α/Fe] plane. In particular, sources with large values of vbroad tend to populate regions that depart from the expected stellar abundance sequences, suggesting that high line broadening is associated with systematic biases in the ANN estimates of both [M/H] and [α/Fe]. Conversely, stars with vbroad<15 km⁢s−1 define a much tighter and astrophysically consistent distribution. Based on this empirical behaviour, an additional selection of vbroad<15  km⁢s−1 is adopted for the HQ sample in order to minimise these systematic effects and provide a subset with more reliable abundance estimates.

Refer to caption
Figure 16.70: Distribution of sources in the Tinsley diagram using GSP-Spec ANN atmospheric parameters. The points are colour-coded by the estimated line broadening parameter, vbroad, highlighting its distribution across the [M/H]–[α/Fe] parameter space.

Figure 16.71 shows the distribution of sources in the Tinsley diagram using the metallicity ([M/H]) and α-element abundance ([α/Fe]) estimated by the GSP-Spec ANN module for the same three quality samples. The GS includes all sources for which the four atmospheric parameters are available. Although the overall distribution is significantly broadened, reflecting both the heterogeneous quality of the input spectra and the systematic effects inherent to a data-driven model trained on real observational data, the dominant Galactic stellar populations are already recognizable. In particular, the metal-rich thin-disc sequence and the more metal-poor, α-enhanced population are visible, although with substantial overlap and increased dispersion.

The MQ sample is obtained by applying the quality criteria encoded in the flags_gspspec_ann field. This selection removes sources with significant quality issues, substantially reducing the overall dispersion observed in the GS. As a result, the characteristic morphology of the Tinsley diagram becomes more apparent, with the main Galactic chemical sequences being recovered more clearly, although a significant degree of overlap between stellar populations remains.

Finally, the HQ sample applies the same flag selection as the MQ sample together with an additional requirement of vbroad<15  km⁢s−1. As discussed in Figure 16.70, increasing values of the line broadening parameter are associated with systematic biases in the ANN abundance estimates. Restricting the sample to low values of vbroad further suppresses the residual broadening observed in the MQ sample, producing the most compact abundance distribution and the clearest representation of the underlying Galactic chemical structure obtained with the ANN model.

Refer to caption
Figure 16.71: Distribution of sources in the Tinsley diagram using the atmospheric parameters estimated by the GSP-Spec ANN module. The three panels correspond to samples defined according to different quality selection criteria: GS (left), MQ sample (centre), HQ sample (right). The number of stars in each sample is indicated in the corresponding panel. The colour bars represent the source density.

16.4.4.2 FLAME products

Results from FLAME are available in the ap_rvs table for a total of 29 485 468  sources. These have been produced by exploiting the spectroscopic data from GSP-Spec in this same table. Validation of the GSP-Spec results (previous section) should also be considered when interpreting the FLAME results. Here we provide a brief quality assessment independent of the GSP-Spec assessment.

The distribution of the FLAME parameters are discussed in Section 16.4.3.2 and are shown in Figure 16.43 by the orange colour (the blue are the distributions for the ap_xp table). The statistics of the main stellar parameters are listed in Table 16.38. As one can note the results from FLAME in ap_rvs contain on average more luminous and more evolved stars compared to those in ap_xp. While here we list the main stellar parameters, we note that there are few instances of very high unrealistic values of gravredshift_flame_spec_upper, evolstage_flame_spec_upper, and lum_flame_model_spec_upper, due to an incoherent combination of parameters for the former, and model interpolation issues with the latter.

Table 16.38: Statistics of the FLAME parameters available in the ap_rvs table.
column heading unit 1% 10% 50% 90% 99%
lum_ flame_ spec [ ℒ⊙ ] 0.08 0.90 16.95 325.28 1647.49
radius_ flame_ spec [ ℛ⊙ ] 0.61 1.19 5.09 37.75 98.29
gravredshift_ flame_ spec [ km⁢s−1 ] 0.00 0.00 0.17 2.02 7.82
mass_ flame_ spec [ ℳ⊙ ] 0.60 0.83 1.06 2.27 3.75
evolstage_ flame_ spec 131 208 418 1207 1282
age_ flame_ spec [Ga] 0.15 0.62 6.21 12.09 13.59
Refer to caption
Figure 16.72: FLAME results in ap_rvs. (a) Completeness of FLAME as a function of G. (b) Number of sources with FLAME results as a function of G.

Figure 16.72 shows the distribution of sources with FLAME results in ap_rvs as a function of apparent magnitude in panel (b). The majority of the sources that are processed have typically G<14.5 and beyond that the number of results available drops off logarithmically. This is not unexpected as we see that the completeness also drops off (panel a) at roughly G=15, where the signal-to-noise ratio in the RVS spectra becomes too low for proper exploitation in terms of astrophysical parameters.

Now we turn to some comparisons with external catalogues. The left panel (a) of Figure 16.73 compares lum_flame_spec with the same quantity as published in Gaia DR3. We obtain an overall median offset of +3% with a MAD of 9%. The median offset is due to a combination of factors, including different input parallax or distance, different spectroscopic parameters which define the bolometric correction, and different photometry. On the right panel we show a direct comparison of the luminosity with that of the Gaia Benchmark Stars, and we obtain a median offset of –2% with a MAD of 3% for the common stars. At very low luminosities, the differences likely stem from the difficulty in deriving very accurate spectroscopic parameters from GSP-Spec in this very low mass, low Teff, regime.

Refer to caption
Figure 16.73: (a) Comparison of FLAME luminosity from ap_rvs with those of Gaia DR3 as a function of the G mag from Gaia DR4. (b) Comparison of FLAME luminosity with those of the Gaia Benchmark Stars (Soubiran et al. 2024), colour-coded by GSP-Spec  Teff from Gaia DR4.

Figure 16.74 panel (a) compares the predicted angular diameters from (Bourges et al. 2017) with those derived using radius_flame_spec and the stellar parallax. The radius from FLAME is obtained by applying the Stefan-Boltzmann law and therefore comes from lum_flame_spec and teff_gspspec_calib. We obtain an overall median difference of +0.4% with a MAD of 7%. The largest scatter is seen for very small angular diameters and the parallax could therefore be partially responsible for the difference (the larger angular diameters generally correspond to stars that are closer). The overall agreement attests to the validity of both the luminosity and GSP-Spec Teff. Panel (b) of Figure 16.74 compares radius_flame_spec with radii derived from asteroseismic analyses of giants from (Pinsonneault et al. 2018). We find an overall satisfactory agreement with a median offset of –1% with a MAD of 4%.

Refer to caption
Figure 16.74: (a) Comparison of FLAME predicted angular diameters from ap_rvs with those from surface brightness relations (Bourges et al. 2017). (b) Comparison of FLAME radii with asteroseismic radii for giants (Pinsonneault et al. 2018). The colour-code represents number of sources in the bins in both panels.
Refer to caption
Figure 16.75: Comparison of FLAME mass (a) and age (b) from ap_rvs with asteroseismic results from Serenelli et al. (2017).

Finally we compare the mass and age of main sequence stars from Serenelli et al. (2017) derived using asteroseismology. The comparison is shown in Figure 16.75. We obtain a median offset in the masses of just under +5% with a MAD of 8%. The difference in mass comes from different input metallicities, Teff, log⁡g, and ℒ, but even with these differences, we obtain an overall satisfactory agreement. By using the similar input data we showed in (Creevey et al. 2026b) that our code returns results with excellent agreement to this catalogue. This therefore indicates that we have differences in either our temperature scales or metallicities, or values of extinction which impact the luminosity. For the ages we show an age – age plot in panel (b). Here we have limited the sample to contain only those stars for which the two mass estimates agree to 10%. The colour-code illustrates the mass difference and one can see for stars with similar masses, we obtain ages in good agreement. The dispersion in age is primarily due to these mass differences.

Further quality assessment is illustrated for ages in the scientific validation paper for Apsis (Heiter 2026), and further quality assessment on other parameters is also provided in Section 16.4.13.