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 million sources during the Gaia DR4 operations. To visualise these results, we show in Figure 16.62 and Figure 16.63 the Kiel diagram ( vs. ) and the Tinsley diagram ( vs. ), 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 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.
The two sequences associated to the thin and thick disc structures of the Milky Way can be identified in the vs. diagram presented in Figure 16.63, although the latter is poorly populated when the high quality selection criteria are applied.
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 ( K and ), cool giants ( K and ), and hot dwarfs ( K). Figure 16.64 illustrates the distribution of the GSP-Spec biases with respect to the literature values, for the GS.
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 , , and are small compared to their typical uncertainties. On the contrary, we detected a more significant median bias in of dex. With the exception of , all these biases decrease to almost zero values once calibration is applied.
For , however, the bias increases from the negligible offset of K observed in the not-calibrated values to 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 bias for cool dwarfs is marginal, from dex to 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 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 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 (first row), (second row), (third row), and (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 ) 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 , , , and 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 . At temperatures hotter than 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 , clearly seen in the three subsamples. In the case of , the distribution is rather smooth, having larger discrepancies only for dwarf stars at 4.0. For and , 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.
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 , , and has improved by a factor of to 2, while the uncertainties in have been reduced by a factor of . 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.
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.
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 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 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 ( dex/kpc for the all- subset) that extend from kpc outwards, showing no significant variations when selecting by . In contrast, in the inner regions, they present positive metallicity gradients for which the slope flattens as decreases. Such dependence on 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.


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 (, , , and ) 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 , , as discussed in Figure 16.70. Restricting the sample to low values of 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 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.
Figure 16.70 shows the distribution of the MQ sample in the Tinsley diagram, colour-coded according to the estimated line broadening parameter, . A clear correlation is observed between and the distribution of stars in the – plane. In particular, sources with large values of 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 and . Conversely, stars with define a much tighter and astrophysically consistent distribution. Based on this empirical behaviour, an additional selection of is adopted for the HQ sample in order to minimise these systematic effects and provide a subset with more reliable abundance estimates.
Figure 16.71 shows the distribution of sources in the Tinsley diagram using the metallicity () and -element abundance () 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 . 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 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.
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.
| 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 | [ ] | 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 |
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 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 , 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 , regime.
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 . 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%.
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, , , 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.