e-mail: [email protected] 22institutetext: Technical University of Munich, TUM School of Natural Sciences, Physics Department, James-Franck Str. 1, 85748 Garching, Germany 33institutetext: Pyörrekuja 5 A, 04300 Tuusula, Finland 44institutetext: Sub-Department of Astrophysics, Department of Physics, University of Oxford, Denys Wilkinson Building, Keble Road, Oxford, OX1 3RH, UK 55institutetext: Department of Astronomy & Astrophysics, University of Chicago, Chicago, IL 60637, USA 66institutetext: Kavli Institute for Cosmological Physics, University of Chicago, Chicago, IL 60637, USA 77institutetext: Center for Astronomy, Space Science and Astrophysics, Independent University, Bangladesh, Dhaka 1229, Bangladesh
GPU-Accelerated Gravitational Lensing Dynamical (GLaD) Modeling for Cosmology and Galaxies
Time-delay distance measurements from strongly lensed quasars provide a robust and independent method for determining the Hubble constant (). This approach offers a crucial cross-check against measurements obtained from the standard distance ladder in the late universe and the cosmic microwave background in the early universe. However, the mass-sheet degeneracy in strong lensing models may introduce significant systematic uncertainty, limiting the precision of estimates. Dynamical modeling highly complements strong lensing to break the mass-sheet degeneracy, as both methods model the mass distribution of galaxies but rely on different sets of observational constraints. In this study, we develop a methodology and software framework for efficient joint modeling of stellar kinematic and lensing data. Using simulated lensing and kinematic data of the lensed quasar system RXJ11311131 as a test case, we demonstrate that approximately 4% precision on is achievable with high-quality and signal-to-noise data. Through extensive modeling, we examine the impact of the presence of a supermassive black hole in the lens galaxy and potential systematic biases in kinematic data on measurements. Our results demonstrate that either using a prior range for black hole mass and orbital anisotropy, as motivated by studies of nearby galaxies, or excluding the central bins in the kinematic data, can both effectively mitigate potential biases on induced by the black hole. By testing on mock kinematic data with values that are systematically biased, we emphasize the importance of using kinematic data with systematic errors under sub-percent control, which is currently achievable. Additionally, we leverage GPU parallelization to accelerate Bayesian inference, reducing a previously month-long process by an order of magnitude. This pipeline offers significant potential for advancing cosmological and galaxy evolution studies with large datasets.
Key Words.:
gravitational lensing: strong–stellar dynamics–cosmological parameters–galaxies: elliptical – data analysis: methods1 Introduction
The Hubble constant, , sets the local expansion rate of the universe and plays a crucial role in understanding its age and size. Previous studies have reported a significant tension between measurements from the cosmic microwave background (CMB), which gives (e.g., Planck Collaboration et al. 2020), and local distance indicators, such as supernovae (SNe) and Cepheid variables, which yield (e.g., Riess et al. 2022). However, recent measurements from the Chicago-Carnegie Hubble Program (e.g., Freedman et al. 2024), which are also based on the SN distance ladder, show no significant tension with the CMB, leaving the true discrepancy uncertain. Riess et al. (2024) highlighted that the measurement in Freedman et al. (2024) was based on a subsample selection. Whether the tension is real, or merely a result of systematic uncertainties that were not known and not incorporated in the measurements, remains a topic of debate (Efstathiou & Gratton 2020; Abdalla et al. 2022; Yeung & Chu 2022; Freedman & Madore 2023), but if confirmed, it would indicate the need for new physics beyond the standard cosmological model.
Time-delay cosmography offers a distinct approach, separate from the previously mentioned methods, to measure by analyzing the brightness variations of sources like quasars or supernovae. It constrains cosmological parameters by measuring the time delay between multiple lensed images of the source (Refsdal 1964; Meylan et al. 2006; Treu & Marshall 2016; Treu et al. 2022; Treu & Shajib 2023; Birrer et al. 2024; Oguri 2019; Liao et al. 2022; Suyu et al. 2024). By determining the time-delay distance to the lens system, it is possible to infer the value of . However, this approach is affected by the mass-sheet degeneracy (MSD) in strong lensing (SL) (e.g., Falco et al. 1985; Gorenstein et al. 1988; Birrer et al. 2016; Chen et al. 2021a). We categorize MSD into two types: external and internal. Both can potentially bias estimates of . The external MSD, which arises from line-of-sight (LoS) effects, can be controlled by studying the environments of the lens galaxies (e.g., Wells et al. 2024). The internal MSD arises from the unknown radial profile of the lens galaxies’ mass distribution (e.g., Schneider & Sluse 2013). This degeneracy allows for equally well-fitting models of the observed lensing data while introducing a linear bias in the inferred value of .
A common strategy to address the internal MSD is to incorporate independent datasets, such as kinematic or weak lensing data (e.g., Treu & Koopmans 2002; Shajib et al. 2020; Birrer et al. 2020; Birrer & Treu 2021; Yıldırım et al. 2023; Shajib et al. 2023; Khadka et al. 2024). These additional observations help detect changes in the mass density slope induced by the internal MSD in SL at the inner region within the Einstein radius and the outer region from the lens galaxy’s centroid, allowing for a more robust constraint on the mass distribution and, consequently, on .
With high-resolution kinematic maps provided by the James Webb Space Telescope (JWST) Near-Infrared Spectrograph integrated field unit (NIRSpec IFU) (Jakobsen et al. 2022), we can obtain more precise stellar velocity dispersion measurements over 2D space compared to previous facilities. Yıldırım et al. (2020) developed a pipeline that enables self-consistent joint modeling by simultaneously fitting lensing and dynamical data to infer value. This code combines lensing mass modeling through pixelated source reconstruction (Suyu & Halkola 2010) with dynamical mass models based on the Jeans equations in an axisymmetric geometry (Cappellari 2008). Yıldırım et al. (2023) applied this joint modeling approach to simulated JWST-like kinematic datasets for the lensed quasar system (hereafter referred to as RXJ1131 for simplicity). They explicitly modeled the internal MSD using an isothermal profile with an extended core. Their results demonstrated the power of combining SL with kinematics, showing that the internal MSD can be effectively broken. They successfully recovered the mock input value of with a precision of for a single-lensed quasar system.
The H0LiCOW collaboration reported an measurement with precision by combining six lensed quasar systems (Wong et al. 2020). These analyses tested two specific mass models, the composite model (baryonic component + dark matter) and the elliptical power-law model, while performing lens modeling without explicitly accounting for the internal MSD. Intuitively, explicitly modeling the internal MSD makes the adopted mass model more flexible, allowing for a broader range of mass distributions. High-resolution spatial kinematics can help distinguish between these more flexible models. However, H0LiCOW used slit kinematics, which primarily served to validate the best-fit mass models rather than to differentiate between them, as slit kinematics alone is insufficient to break the MSD and measure distances with a few-percent uncertainty on an individual lens basis. If mass model assumptions are relaxed and an internal mass sheet—maximally degenerate with —is incorporated, the precision of the constraint from the six lensed quasar systems degrades to or , depending on whether external priors from non-time-delay lenses are used for orbital anisotropy (Birrer et al. 2020). The TDCOSMO collaboration continues to investigate potential degeneracies and biases in the measurement of caused by the internal MSD in lens modeling (e.g., Millon et al. 2020; Birrer & Treu 2021; Chen et al. 2021a; Van de Vyvere et al. 2022; Gomer et al. 2022), previously studied by the H0LiCOW collaboration. As part of TDCOSMO, Shajib et al. (2023) conducted a joint modeling analysis to explicitly break the internal MSD using spatially resolved kinematics from KCWI (an integral field spectrograph at Keck (Morrissey et al. 2018)). Their study yielded a value of , achieving a precision of approximately , from a single time-delay lens system. This analysis was constrained by the kinematic resolution of KCWI.111The kinematic data exhibit a signal-to-noise ratio of in the rest-frame wavelength range across 41 bins, with a seeing effect of in full width at half maximum (FWHM). The diffraction-limited resolution of JWST will offer significantly greater precision, further enhancing kinematic constraints.
The TDCOSMO collaboration aims to constrain to within 2% by combining spatially resolved kinematics data obtained from the JWST NIRSpec IFU for seven gravitational lenses. In order to achieve this level of precision and accuracy, extensive tests have been conducted, including examining the impact of the field of view (FoV) on kinematics, comparing different mass models, such as the composite and power-law models and evaluating various dark matter profiles, including the standard NFW profile and its generalized form (e.g., Yıldırım et al. 2020, 2023). Additionally, the influence of the deprojected 3D shape of lens galaxies has been investigated (Shajib et al. 2023; Huang et al. 2025). Exploring these effects requires substantial computational resources, making joint modeling highly demanding. For a single lensed-quasar system such as RXJ1131, Bayesian inference using the Markov chain Monte Carlo (MCMC) method takes a month to complete using traditional CPU-based methods.
In this paper, we present GLaD (Gravitational Lensing and Dynamics), a GPU-accelerated joint modeling code for time-delay cosmography and galaxy studies, built upon Yıldırım et al. (2020), and the GLEE software (Suyu & Halkola 2010; Suyu et al. 2012), for lensing modeling, along with JamPy222https://pypi.org/project/jampy/ (Cappellari 2008, 2020) for dynamical modeling.333GLaD can be performed on the lens galaxy or the lensed background source galaxy. The GLaD modeling presented here focuses on the lens galaxy, in contrast to the GLaD modeling of the lensed source in Chirivì et al. (2020). GLaD significantly reduces the Bayesian inference runtime from several months to just a few days. Furthermore, we probe two additional effects, the mass of the black hole (BH) in the lens galaxy and the possible systematic error in the kinematics measurement from the IFU data, which may bias inference. On the one hand, since lens galaxies are typically massive elliptical galaxies with high velocity dispersions (Knabel et al. 2024), with corresponding BH mass (Kormendy & Ho 2013; McConnell & Ma 2013), the presence of a massive BH may be detectable in high-resolution kinematic data. On the other hand, kinematic measurements are susceptible to systematic errors, especially when different methods are used to derive velocities from IFU data. For example, using stellar population synthesis models can introduce errors based on assumptions about star formation history and metallicity. Additionally, inferred velocities can vary depending on the chosen stellar libraries. These factors must be mitigated to attain the precision and accuracy required for cosmography. Knabel et al. (2025) recently conducted a detailed study on the accuracy of kinematic measurements, demonstrating that percent-level precision is achievable using cleaned stellar libraries—stellar libraries refined to exclude spectra affected by artefacts or poor data quality. Previously, kinematic accuracy was limited to the few-percent level. In this work, we assess the impact of systematic errors by analyzing a worst-case hypothetical scenario, assuming a 5% uncertainty in kinematic measurements of , even though the actual effect is expected to be much smaller, around 1%. We highlight the importance of the current developments for kinematic measurements.
We perform all the tests described above using GLaD on simulated lensing and kinematic data for the RXJ1131 system. This system has the most precise time-delay measurements, with an accuracy of approximately , among the six systems in the H0LiCOW sample. Additionally, the lens galaxy in RXJ1131, with a redshift of , is the closest among these systems and will provide the most accurate kinematic measurements. Furthermore, the galaxy’s central velocity dispersion of (Suyu et al. 2014; Shajib et al. 2023) strongly suggests the presence of a supermassive BH.
This paper is organized as follows. In Sect. 2, we provide an overview of lensing theory and introduce the MSD in lens modeling. We also present the dynamical modeling approach. In Sect. 3, we describe the GPU-accelerated components of the joint modeling and provide a detailed overview of the modeling workflow. In Sect. 4, we describe the simulated lensing and kinematic datasets for the lensed quasar system RXJ1131. In Sect. 5, we present the results of the joint modeling and discuss the effects of BH mass and potential systematic errors in the kinematic map. In Sect. 6, we summarize our work and present concluding remarks and an outlook. Throughout this paper, we adopt a standard cosmological model with , a matter density parameter of , and a dark energy density of . Our choice of cosmology is motivated by the time-delay distance measurements of RXJ1131 from Suyu et al. (2014). Note that our conclusions are independent of the choice of cosmological model. Additionally, all runtime comparisons across different modeling approaches are conducted using 64-bit floating-point precision. All tests are performed on a 2.10 GHz, 16-core Intel(R) Xeon(R) Silver 4110 CPU and an NVIDIA A100 GPU.
2 Overview of the lens and dynamical modeling
In Sect. 2.1, we provide a brief overview of the SL formalism in the context of time-delay cosmography. In Sect. 2.2, we introduce the MSD, a major source of systematic uncertainty in SL modeling that limits the precision of measurements. The internal MSD arises from the unknown size and brightness of source galaxies, as well as the uncertain mass distribution of lens galaxies. These uncertainties impact the measurement of the time-delay distance , which is directly proportional to . Similarly, the external MSD, caused by unknown mass distributions along the LoS, introduces an additional uncertainty in measurement, as discussed in Sect. 2.3. In this section, we also demonstrate that the external MSD does not affect dynamical modeling at the galaxy scale, where both lensing and kinematic data are available. In Sect. 2.4, we provide a brief overview of stellar dynamical modeling, assuming an axisymmetric mass distribution and employing the Jeans Anisotropic Modeling (JAM) approach (Cappellari 2008, 2020).
2.1 Strong lensing
In the SL scenario, massive foreground galaxies act as gravitational lenses, warping spacetime and bending light from background sources. This causes each light beam to follow a slightly different path, resulting in multiple images of the background sources. Image arrives at the observer with a time delay compared to the unlensed case:
(1) |
where is the angular image position, the background source position, the lens redshift, , and the angular diameter distance to the lens, the source and the distance between the lens and source. The Fermat potential is written in terms of
(2) |
The difference in light travel time at an image position , relative to another observed image position , arises from two components of . The first component in Eq. 2 represents the geometric excess path length, while the second accounts for the gravitational time delay caused by the 2D lens potential . Thus, the time delay between the observed multiple images and can be derived as:
(3) |
We define the normalization factor in Eq. 3 as the time-delay distance (Suyu et al. 2010), which is proportional to :
(4) |
By measuring the time delays and the positions of the lensed images , we can reconstruct and infer using Eq. 3.
2.2 Internal mass sheet degeneracy
The source position is not directly observable, and it can undergo an arbitrary affine transformation:
(5) |
where and affect the scaling and position of the source. These undetectable changes in can be induced by an affine transformation of the projected dimensionless surface mass density of the lens galaxy:
(6) |
leaving observables such as image positions and the morphology of lensed image invariant under this transformation, which is known as the internal MSD (Falco et al. 1985). In other words, suppose we model the surface mass density of the lens galaxy as (e.g., using a power-law profile), then that accounts for the internal mass sheet would fit lensed image positions and morphology equally well. This transformation propagates to the lens potential via Poisson’s equation:
(7) |
where the transformed lens potential is given by
(8) |
where is an arbitrary constant. Substituting into Eqs. 1 and 3 cancels out the arbitrary additive constant and yields the rescaled time-delay distance:
(9) |
where is associated with and with . The internal MSD alters the mass density slope of lens galaxies. This occurs because, aside from the renormalization factor in the second term of Eq. 6, the first term results in the addition of a constant sheet to the initial . Therefore, if the intrinsic radial profile of the mass distribution in lens galaxies were known, the internal MSD would cease to be a degeneracy. However, in practice, the underlying mass distribution may not be known to sufficient precision, making the class of mass models indistinguishable from when relying solely on lensing data. In time-delay cosmography, this means that yields a linearly scaled .
Dynamical modeling provides an independent measurement of the mass distribution in lens galaxies, as its constraints come from kinematic data, which are entirely different observables from those in lensing analyses. Moreover, galaxy dynamics measures the intrinsic density distribution in 3D rather than the projected mass surface density. Combining dynamical modeling with lensing modeling allows us to constrain the scaling factor , meaning we can determine which models within the internal MSD framework are favored. This approach helps break the internal MSD degeneracy (see Sect. 2.4).
2.3 External mass sheet degeneracy
Unlike internal MSD, which has relatively strong effects on small scales, such as altering mass density slopes of lens galaxies, external MSD merely performs the renormalisation of the underlying mass convergence distribution. We use a class of to represent the mass distributions of lens galaxies, as they are all viable choices until distinguished by kinematic data. In the external MSD regime, scales as:
(10) |
where indicates the mass perturbations along the LoS that do not dynamically affect the mass distribution of lens galaxies at the primary lens plane.
Taking into account the influence of the external MSD, is rescaled by
(11) |
The external convergence can be estimated by examining the lens environment using photometric and spectroscopic surveys, as well as through ray-tracing methods in cosmological simulations (e.g., Suyu et al. 2010; Greene et al. 2013; Suyu et al. 2014; Rusu et al. 2017). We investigate whether the renormalization factor from the external MSD affects the dynamical modeling. We derive the 2D surface mass density as
(12) |
where is the critical density. In the framework of external MSD, we express in terms of 444 represents the actual distance, i,e, the distance that can be directly compared to the predictions from cosmological models. as
(13) |
where 555 The value of remains also unchanged by internal MSD as it is exclusively derived from the dynamical modeling. remains fully invariant under external MSD (Jee et al. 2015):
(14) |
By substituting Eqs. 13 and 14 into Eq. 12, we find that the factor cancels out in the first term of Eq. 12. As a result, the 2D surface mass density simplifies to
(15) |
In the lensing and dynamical modeling, we focus on modeling the first term in Eq. 15, which remains unaffected by . The second term in the Eq. 15 is essentially a constant accounting for all the perturbations along LoS that do not affect the dynamics of the lens galaxy. As a result, constraining the internal MSD parameter is independent of the external convergence.
2.4 Stellar dynamics
Here we briefly revisit the theoretical framework for the dynamical modeling. Stars within a galaxy can be characterized by the collisionless Boltzmann equation (e.g., Binney & Tremaine 1987, eq. 4-13b) which is a differential equation of the phase-space density at the position with velocity ,
(16) |
This equation describes stars embedded in a 3D gravitational field of the lens galaxy, with being the deprojection of the 2D lensing potential (up to a constant factor), ensuring phase-space density conservation. The phase-space density is not accessible for galaxies, and we can only measure the velocities along the LoS, and velocity dispersions using the spectroscopy for distant galaxies . To solve the Eq. 16, we reduce the number of the degree freedom by assuming an axisymmetric mass distribution (, with being the polar angle in the spherical coordinate system) and the spherically-aligned velocity ellipsoids. The choice of spherically-aligned velocity ellipsoids is due to the fact that lens galaxies are generally massive slow rotators. These galaxies exhibit a near-spherical mass distribution in their central regions, as opposed to a flat mass distribution characterized by cylindrically-aligned velocity ellipsoids. We multiply velocities along radial , polar and azimuthal direction with Eq. 16 and integrate over all velocity space, obtaining two Jeans equations (e.g., Bacon et al. 1983, eqs. 1, 2)
(17) |
(18) |
with the following notations
(19) |
(20) |
where represents an estimate of the luminosity density of the stellar tracer from which the observed kinematics are derived, represents the second intrinsic velocity moment in the spherical coordinate, and denotes the orbital anisotropy. The anisotropy presents stellar motion preference regarding the direction. The anisotropy indicates most stars inside the galaxies move along the radial direction. In contrast, indicates the tangential motions dominate the galaxies.
To derive the LoS velocities from Jeans equations (see Eqs. 17 and 18), it is essential to reconstruct the intrinsic luminosity and mass density of the lens galaxy in 3D. It is a common strategy to first apply multiple gaussian expansion (MGE Emsellem et al. 1994; Cappellari 2002) to the observed 2D surface brightness (SB) and mass convergence then deproject them later using inclination angle. The observed 2D SB of the lens galaxies, 666Note that we present the general case here. In this paper, we perform 1D MGE fitting (see Sect. 3.2) to model the profile along the radial direction with a fixed axis ratio , i.e., ., is expressed through multiple Gaussians:
(21) |
where is the peak SB, the dispersion along the projected major axis, and the apparent flattening of each Gaussian. The Cartesian coordinates , represent the position on the plane of the sky. The major axis of the lens galaxy is aligned with the -axis, the minor axis with the -axis.
The deprojection process depends on the assumption of the galaxies’ shapes. For the commonly found elliptical galaxies with oblate shape, the deprojection requires:
(22) |
where is the inclination angle and is the axial ratio of the flattest Gaussian in the fit. The deprojected 3D luminosity density is (e.g., Cappellari 2020, eq. 38)
(23) |
where is the 3D radial distance to the galaxy centroid, is the polar angle (see definition in Cappellari 2020, Fig. 1), and denote the dispersion and axis ratio of Gaussians after deprojection. The potential in Eqs. 17 and 18 is derived by integrating the MGE of the 3D mass density . Following the approach used to infer the light tracer , the 3D density profile is obtained by deprojecting (see Eq. 15). The surface mass density is expressed as a sum of multiple Gaussian components,
(24) |
Note we use index to denote the MGE components of the mass density, and for the luminosity components. The set of Gaussians describing the SB of lens galaxies (see Eqs. 21, 24) are not necessary identical to the MGEs of their mass densities. Therefore, meaning that , and unless mass follows light. The deprojected is
(25) |
The MGEs of and are then substituted into the Jeans equations (17) and (18) to derive the intrinsic second velocity moments , , and . These moments correspond to the diagonal elements of the second velocity moment tensor, indicating a spherically aligned velocity ellipsoid, as all off-diagonal elements vanish.
The next step is to convert the intrinsic second velocity moments from spherical coordinates to Cartesian coordinates (, , ), with the -axis aligned along the LoS direction (see Sect.3.1 in Cappellari (2020)). We then derive in terms of , , and . In real observations, we measure integrated light from stars at various positions along the LoS. Therefore, we compute the luminosity-weighted at the spaxel located at as follows:
(26) |
In the end, we convolve values (see Eq. 26) with the kinematic point spread function to account for the atmosphere and instrument effect, weighted by the SB of lens galaxies , and integrated over the region associated in each of the Voronoi bins (Cappellari & Copin 2003), yielding the predicted to compare with the observed kinematic data at bin
(27) |
and
(28) |
Note that the value of is related to the distance to the lens galaxy:
(29) |
This relationship arises because, for a given angular size, the physical size of the lens galaxy increases with distance:
(30) |
In dynamical equilibrium, a larger system with the same total mass exhibits lower , following the relation:
(31) |
Since increases with , decreases accordingly, leading to the inverse square-root dependence in Eq. 29. The distance can thus be constrained from the dynamical modeling, together with the time-delay distance .
The goodness of the dynamical modeling is evaluated by
(32) |
where is the covariance matrix of the measured uncertainties of the kinematic data. We refer readers to Cappellari (2020) for the detailed construction of the 3D gravitational potential from MGEs and the calculation process of .
3 Method
In this section, we highlight the aspects of joint modeling that benefit from GPU parallelization. Given the large-scale matrix computations inherent in the modeling process, GPUs outperform CPUs by efficiently handling repetitive, computationally intensive operations. Our joint modeling code GLaD, is implemented in JAX (e.g., Bradbury et al. 2018), a high-performance numerical computing library for Python that enables automatic differentiation and Just-In-Time compilation for accelerated computations on GPUs. In Sect. 3.1, we briefly introduce SL modeling and demonstrate the speed improvements achieved with GPU on extended image modeling. Additionally, we present a newly implemented NFW profile following Oguri (2021) that directly incorporates ellipticity into the surface mass density. In Sect. 3.2, we describe a fast 1D MGE implementation optimized for GPUs following Shajib (2019) and a non-adaptive integral solver on a fixed grid to compute the intrinsic second velocity moments in the spherical-aligned JAM. In Sect. 3.3, we provide a detailed overview of the joint modeling code structure and discuss the use of Bayesian inference to obtain best-fit models. In Sect. 3.4, we introduce the Bayesian Information Criterion (BIC) to adjust the weighting of the posterior distribution in joint modeling, since the number of stellar kinematics data points is significantly smaller than that of the lensing data. Without BIC reweighting, the lensing and dynamical (LD) likelihood would be dominated by the lensing information.
3.1 GPU acceleration in lensing modeling
3.1.1 Lensing modeling
We start our joint formalism with the SL part. The observables in the lensed quasar scenario are: i) images positions of the lensed quasar , ii) the time delay between images , and iii) the extended images of the host galaxy, which are adopted as constraints to construct the mass models of the lens galaxies.
For modeling i), we use the observed image position to constrain the lens surface mass density . We determine the deflection angle via the lens equation in SL,
(33) |
and is related to by
(34) |
Adopting Eq. 33, we map the observed multiple image positions to the source plane, compute the magnification-weighted average as the modeled source position, and then map it back to the image plane, obtaining . Magnification weighting improves the accuracy of source position estimation in SL by giving greater importance to highly magnified images, which provide more precise constraints on the lens model. The goodness of the image position modeling is evaluated by
(35) |
where is the positional uncertainty of image .
In modeling (ii), we derive the lens potential from the mass density using Eq. 1. This allows us to model the time delay (tmd) between the observed images. With lensed image as the reference image, the fit quality for is assessed by
(36) |
where is the time-delay uncertainty. Galaxy-scale lenses typically form either quadruple or double image systems with . In such cases, models (i) and (ii) can be calculated in under 0.1 seconds on a 2.10 GHz CPU, achieving the best-fit model within several minutes. Consequently, GPU acceleration is not necessary for these computations, and we continue to perform image position and time-delay modeling using the CPU with GLEE.
Extended image modeling is the bottleneck in SL analysis, as it involves handling approximately data points across the magnified arcs. We represent the source intensity distribution on a grid of pixels using the vector , which has a dimension of , corresponding to the number of source pixels. Based on the assumed and the PSF introduced by the telescope, we construct an operator , following Suyu et al. (2006). This operator utilizes Eq. 33 to map the light intensity of the extended source from the source plane to the image plane, followed by convolution with the PSF, producing the predicted lensed extended source with a dimension of (i.e., predicted intensity values of the pixels on the image plane),
(37) |
with
(38) |
where the blurring matrix accounting for the PSF effect and presenting the mapping process from source plane to image plane, is the noise of the observed data and characterized by the covariance matrix .
The pixelated source is reconstructed by maximising the posterior probability of , given the data
(39) |
where the regularization operator and constant define the method used to enforce smoothness in the reconstructed source and the strength of the smoothness. The most frequently applied regularization in the SL is curvature which minimizes the second derivatives of the source intensity distribution. The analytical form of the most probable source reconstruction is
(40) |
with
(41) |
and
(42) |
(Suyu et al. 2006). We substitute the Eq. 40 into Eq. 37, inferring and then compare it with the intensity of the observed extended arcs in the image plane. The goodness of the extended image modeling is evaluated by the Bayesian evidence, which marginalizes over all possible values of the regularization constant and the pixel values on the source grid ,
(43) |
The distribution of possible values is approximated by a delta function centered at the optimal regularization constant , which justifies the validity of the approximation in Eq. 43 (Suyu et al. 2006). The explicit expression of is given in Suyu et al. (2006), see Eq. (19).
The steps outlined above represent the core processes of extended image modeling, which involve extensive manipulation of large matrices. This is why the use of GPUs can provide considerable advantages. The matrix sizes are displayed in Tab. 7. Since the source plane is unobservable, the different source grid resolutions yield the best-fit model in slightly different regions of the parameter space. To account for this degeneracy, the modeling with a series of different source grid resolutions is performed in the SL cosmography analysis and the impact of the grid resolution is marginalized over.
We present the runtime comparison of extended image modeling in GLEE, implemented in C on a CPU, and our implementation in JAX on a GPU, across various source grid resolutions, as shown in Fig. 1. We achieve greater acceleration with higher grid resolutions due to larger matrix sizes being more effective at fully saturating the massive parallel computing capability of the GPU.
Matrix | size |
---|---|

3.1.2 Dark matter profile
We implement a dark matter profile following Oguri (2021) on the GPU, directly introducing ellipticity into the density mass profile , in contrast to the classical approach, which incorporates ellipticity in the potential. Since all lensing properties of have analytical expressions, computing and on a large grid of approximately takes a negligible amount of time, approximately on a GPU. In contrast, performing the same computation on a CPU, following the approach of Golse & Kneib (2002), takes approximately 7 seconds. The detailed expressions for and are provided in Appendix A.
3.2 GPU acceleration in dynamical modeling
As discussed in Sect. 2.4, the MGE is commonly used in dynamical modeling as a prerequisite for JAM. Without accounting for the internal MSD, the surface brightness (SB) and mass density of the lens galaxies are sufficient for decomposition up to in dynamic modeling. However, when considering the internal MSD, which represents a constant mass sheet added to the galaxy mass distribution, this additional mass can extend over a significantly larger region. To accurately account for the internal MSD, the mass profile must be decomposed over a larger area, approximately for lens system RXJ1131 (Yıldırım et al. 2023; Shajib et al. 2023).
In Yıldırım et al. (2023), the authors applied the 2D MGE fitting method (Cappellari 2002)888The adopted approach is the function mge_fit_sectors from the MgeFit package (https://pypi.org/project/mgefit/). to model the light and mass convergence map of the lens galaxy. In both cases, the maps are characterized by smooth profiles such as Sérsic, power-law, and NFW profiles, without any subtle angular structures. Since the maps primarily describe variations with radius, applying the 2D MGE fitting method is unnecessary in this case. The 2D MGE fitting method requires solving a non-linear least-squares minimization problem, which becomes computationally expensive when performed over a broad region extending from the lens galaxy center. Moreover, producing the light and mass convergence maps in 2D across a wide area with pixels is rather time-consuming, In total, it takes s per sampling step. The MGE 2D fit is primarily used to capture more detailed structures in galaxies from optical imaging directly, rather than relying on maps derived from profiles.
In this work, we instead adopt the 1D MGE fitting method. We implement a fast Gaussians decomposition to 1D profile following Shajib (2019) on GPU. In this approach, an integral transform with a Gaussian kernel is introduced:
(44) |
where represents any mass or light profiles that need to be decomposed using Gaussians. The transformed integral can be approximated using the Euler algorithm:
(45) |
where and can be complex-valued and are independent of . These values can be precomputed at the start. The standard deviations are chosen to be logarithmically spaced within the fitting region, resulting in:
(46) |
where the amplitude , with representing fixed weighting factors and . This MGE approach fits each mass or light density profile using 21 Gaussians to recover the profile within accuracy and runs in approximately on a single GPU.
We present the runtime of the 1D MGE fitting implemented in JAX in Tab. 2 and compare it with the NumPy version from Shajib (2019). In this case, GPU acceleration does not provide a significant speedup, achieving a runtime comparable to that of a single mass profile. However, performance gains are realized when the models contain multiple 1D profiles of the same type. By leveraging the Just-in-Time (@jit) compiler and the vmap function in JAX, MGE fitting can be applied simultaneously to these profiles, improving efficiency. For readers interested in the speed comparison with the commonly used MgeFit package, we also provide a runtime comparison. In general, switching to the MGE 1D fit results in negligible computation time on both CPU and GPU.
We reimplement part of the jam.axi.proj function from the JamPy package999https://pypi.org/project/jampy/ to compute , the second velocity moment along the -axis on the plane of the sky. The main computational bottleneck lies in solving the Jeans equations (Eqs. 17 and 18) to derive , , and (see Sect. 5.1 in Cappellari (2020)). These computations involve numerical integrals, which is evaluated using adaptive quadrature methods in Shampine (2008). The integration region is initially divided into four subrectangles, and the integral in each subregion is computed using Gauss-Kronrod quadrature. If the estimated error in any subregion exceeds a predefined threshold, that subregion is further subdivided into four smaller subrectangles, and the process is repeated iteratively until the desired accuracy is achieved.
To enhance computational efficiency with the Just-in-Time (JIT) compiler, we modified the algorithm to use a fixed fine mesh. Specifically, the entire integration region is pre-divided into 64 subregions, with each subregion further subdivided into four smaller subrectangles, where Gauss-Kronrod quadrature is applied to compute the integral. The fractional error of compared to the results from the JamPy package is, on average, , well within the relative error tolerance of 0.01 set by JamPy. This level of accuracy is sufficient given the relatively simple mass and light profiles used in this paper to compute . However, for more complex mass potentials and luminosity density tracers, a finer integration grid may be required to achieve the same level of precision.
Switching to the non-adaptive integral solver enables the simultaneous computation of , , and at the required positions, significantly reducing the computation time from approximately to for over 200 points in polar coordinates on an A100 GPU, assuming a composite mass model. This model consists of baryonic and dark matter components, a black hole, and a mass sheet to account for internal MSD (see Tab. 2).
3.3 Joint modeling
In this section, we provide a detailed description of the joint modeling approach for time-delay cosmography. The input data consist of both lensing and kinematic observations. The lensing data include the lens light, quasar image positions, the extended image of the host galaxy and the time delays between multiple observed images. The kinematic data comprise the spatially resolved kinematics map of the lens galaxy.
We use two Chameleon profiles to model the lens light in the optical image, which consists of two isothermal profiles with different core radii and ,
(47) |
The goodness of the lens light fitting is evaluated by
(48) |
where is the surface brightness in the pixel of the lens galaxy, and the PSF is the point spread function. The number of pixels used for lensing light modeling in Eq. 48 excludes those used for modeling extended arcs (which already account for the lens light).
We adopt parameterised mass profiles in the joint modeling. There are two mass classes
-
•
-
•
.
In the first scenario, we model the baryonic component and dark matter of the lens galaxies separately. The baryonic component is represented by scaling the lens light profile , with a constant factor , while the dark matter is modeled using (see Eq. 62). consists of two Chameleon profiles. The BH mass is included as a point mass . In the second scenario, we use an elliptical power-law (EPL) profile to represent the total mass (see Appendix B). Because the EPL profile has a softening scale that is set to a small value, the mass distribution diverges in the center, eliminating the need to add a separate point mass to represent the BH. In addition, we adopt an external shear to account for the tidal stretch from neighboring galaxies with external potential, expressed in polar coordinates as
(49) |
where represents the strength of the external shear, and the shear angle represents the stretching orientation of the images. We do not list the external shear in the above set-up because it adds zero contribution to the mass density with .
In order to explicitly characterize the internal MSD, we adopt a dual pseudo-isothermal elliptical density (dPIE) profile (Elíasdóttir et al. 2007; Suyu & Halkola 2010), with a substantial core radius and truncated at . This profile mimics a flat mass sheet up to a radius of before tapering down to zero. The extended arc observed at from the galaxy center implies that the lensing-only modeling remains unaffected by this additional mass sheet, rendering the distance completely degenerate with (Yıldırım et al. 2023). The expression for is:
(50) | ||||
where is a normalisation parameter and . In the region where , we obtain an approximate constant mass sheet
(51) |
In the region where , we have , indicating that the added mass sheet effectively vanishes at large scales. We emphasize that the values of and are carefully selected based on extensive testing to represent the worst-case scenario. While the internal MSD remains unaffected from a lensing perspective, its impact on the kinematic data is significant enough to impose constraints on . In addition, the dPIE profile, which has a well-defined truncation radius, declines more rapidly than the mass-sheet profile used in Blum et al. (2020). This makes it a more suitable choice, as it may help prevent negative densities in the outermost regions.

Using the chosen mass density model, either a composite or power-law model, along with , we perform lensing and dynamical modeling simultaneously (see Fig. 2). Both the light and mass density profile of the lens galaxy must have the same position angle , to maintain the axisymmetric assumption. In our joint modeling, we fix this position angle to the mock input value. On the lensing side, we model the extended arc, lensing light, image positions, and time delays. For dynamical modeling, we decompose and into multiple Gaussian components. The MGE is carried out up to from the lensing centroid, corresponding to approximately 200 kpc, ensuring that the mass density , transformed by the internal mass sheet, remains physically meaningful at large distances. We focus on scenarios where the total mass density remains positive everywhere, ensuring physically valid predictions for , as negative densities would lead to unphysical results. To compute the predicted kinematic map, we incorporate the MGEs of and into the JAM modeling framework (see Sect. 2.4) to calculate . In practice, the light near the spectral absorption lines in the IFU data should be provided to JAM to trace the stellar population responsible for these lines. In this paper, we work on the simulated kinematic data. However, we instead use the best-fit lens light model from the F814W filter in the infrared band. Since the lens galaxy in RXJ1131 is an early-type elliptical galaxy, the infrared band effectively characterizes the dominant stellar populations.
The best-fit model is determined through joint modeling within a Bayesian framework. We sample the posterior distribution of parameters (see Eq. 52) using the Metropolis-Hastings Markov Chain Monte Carlo (MCMC) method,
(52) |
where presents the lensing data, the kinematic data and the prior for the lensing and dynamical parameters. The goodness-of-fit for a model is defined as
(53) |
The MCMC sampling is conducted on the CPU, where , involving approximately 10 parameters, is drawn and then transferred to the GPU for extended image, lens light and dynamical modeling. Since the image-position and time-delay modeling involves processing a relatively small dataset, it is kept on the CPU. Although data transfer between the CPU and GPU incurs some latency, the number of transferred data points in our case is on the order of , resulting in a negligible transfer time.
We achieve a 20× speedup per sampling step using JAX on a single A100 GPU. Tab. 2 presents the runtime for each step using a composite mass model. Additionally, we include the runtime of the JAX code on a CPU for readers interested in evaluating the parallelization performance gains of JAX in different hardware. We note that the JAX is primarily optimized for GPU. On CPUs, its compilation overhead, lack of CPU-specific optimizations, and execution graph transformations can make it slower than NumPy.
Process | Type of Implementation | Runtime (CPU) | Runtime (GPU) | |
Previous | Extended Image | Suyu et al. (2006) in C | – | |
work | MGE 1D fit (1 profile; total) | Shajib (2019) in NumPy | ; | – |
MGE 1D fit (1 profile; total) | mge.fit_1D(linear = True) in NumPy 11footnotemark: 1 | ; | – | |
, , calculations | Integral solver (adaptive) in NumPy 22footnotemark: 2 | – | ||
calculation | jam.axi.proj in NumPy 22footnotemark: 2 | – | ||
This paper | Extended Image | Follows Suyu et al. (2006) in JAX | ||
MGE 1D fit (1 profile; total) | Follows Shajib (2019) in JAX | ; | ; | |
, , calculations | Integral solver (non-adaptive) in JAX | |||
calculation | jam.axi.proj in JAX |
3.4 Bayesian information criterion (BIC)
In this section, we introduce a BIC method to distinguish the goodness of mass models of lens galaxies with different . The BIC is an approximation to the Bayesian evidence
(54) |
where is the constructed mass model with parameters . The BIC is defined as
(55) |
where is the number of parameters in the model, is the number of data points, and is the maximum likelihood of the model. The BIC penalizes models with a higher number of parameters, effectively balancing goodness of fit with model simplicity. The likelihood in our case is the product of the lensing modeling and dynamical modeling . The likelihood is easily overwhelmed by the lensing data due to the large amount of pixels on the extended arcs. In this work, we focus on using spatially resolved kinematics data to break the internal MSD and constrain . The lensing-only modeling cannot constrain . Thus, we discard and only make use of the difference of from the joint modeling to weight the posterior distribution.
We identify as the model with the lowest , which corresponds to the minimal from the dynamical modeling (since and remain the same). The probability ratio of a model to the model given the data is
(56) |
After normalizing for models, we obtain the weighting factor for each model ,
(57) |
with . As discussed in Sect. 3.1, the preferred lensing mass parameters vary across different parameter spaces depending on the source resolution. The choice of source pixelization introduces uncertainties in the BIC for a given lens mass parametrization (see Appendix. C). To quantify this uncertainty, we compare the BIC values across different source grids and measure the root-mean-square scatter . Following Birrer et al. (2019) and Yıldırım et al. (2020), we incorporate this uncertainty into the model weighting by convolving in Eq. 56 with a Gaussian distribution of variance , thereby obtaining the updated model weights:
(58) |
where
(59) |
4 Simulated mock datasets
RXJ1131 was discovered by Sluse et al. (2003). The lens galaxy is located at a redshift of , while the lensed source galaxy is at a redshift of , both confirmed through spectroscopy (e.g., Sluse et al. 2007). The lens is accompanied by a faint satellite galaxy S (see Fig. 3), which JWST NIRSpec has confirmed to be at the same redshift as the lens (see Shajib et al., in prep). Imaging data was collected from the Hubble Space Telescope (HST) Advanced Camera for Surveys (ACS) with an exposure time of 1980 seconds. Time-delay measurements for RXJ1131 were made through a dedicated optical monitoring campaign under the COSMOGRAIL program (e.g., Tewes et al. 2013). These measurements, based on frequent observations (every 3 days) over more than 9 years and involving over 700 epochs using meter-class telescopes and new curve-shifting techniques, reported an approximately precision time delay by Tewes et al. (2013); Liao et al. (2015); Bonvin et al. (2017). Microlensing-induced time-delay shifts, as analyzed by Tie & Kochanek (2018), have been found to be negligible within the context of the extended delay, as discussed by Chen et al. (2018).
To generate the mock HST imaging of RXJ1131, we use the best-fit mass model obtained from lensing-only modeling of the HST F814W-band imaging, with a source grid resolution of . The mass model consists of a composite profile, where the baryonic component is represented by two Chameleon profiles (see Eq. 47) scaled by a constant and the dark matter halo is characterized by . Additionally, the model includes an external shear and a fixed BH mass. The lens galaxy in RXJ1131 exhibits a high central velocity dispersion with (Suyu et al. 2014; Shajib et al. 2023). By applying the scaling relation between and (e.g., Kormendy & Ho 2013; McConnell & Ma 2013), we estimate the BH mass to be between and . Kormendy (2013) predicts , while the version by McConnell & Ma (2013) gives . We set a higher BH mass of in the simulated kinematic data to explore its effects in cosmography inference. This value remains a reasonable estimate, as suggested by Fig. 16 of Kormendy & Ho (2013) and Fig. 1 of McConnell & Ma (2013). We do not add any mass sheet to the best-fit model, ensuring that , indicating no MSD in the simulated data. We randomly select an external convergence value of as the ground truth based on the probability distribution function obtained from ray tracing through the Millennium Simulation for the composite mass model (e.g., Suyu et al. 2014).
To simulate the kinematics map, we follow the approach presented in Yıldırım et al. (2020). We use the best-fit lensing light map for the kinematic mock data and assume a Poisson noise-dominated region. The relative pixel intensities are then converted into a relative 2D signal-to-noise map. We adopt VorBin101010https://pypi.org/project/vorbin/ package (Cappellari & Copin 2003) to apply the adaptive spatial binning to the signal-to-noise ratio map, with a target signal-to-noise ratio of 50 per bin. We simulate the data with a high signal-to-noise ratio to ensure that by combining high-quality kinematic data, the internal MSD can be effectively broken. Considering the light contamination from nearby quasar images and the extended host galaxy at the Einstein radius of , the simulated binned map covers a small field of view (FoV) ranging from to relative to the lens centroid (see Fig. 3). For simplicity, we neglect the satellite when mocking up the IFU map as well as during the modeling of the SL and stellar kinematic data. We assume a single Gaussian kinematic with a FWHM of , which corresponds approximately to the PSF measured from JWST NIRSpec data of RXJ1131 (see Shajib et al., in prep). We generate the noiseless kinematic map with JamPy111111https://pypi.org/project/jampy/ package based on the mass and light distribution from the best-fit lens model (refer to the best-fit parameters in Tab. 3) and the simulated binned map.
We simulate two kinematic data sets. The first is an ideal kinematic dataset where only statistical errors are added to the noiseless kinematic map:
(60) |
where . We assume a statistical error of approximately of the bin values for each Voronoi bin . In the second kinematic dataset, we introduce a 5% systematic bias to test the impact of potential misfits in the kinematic data:
(61) |
Systematic errors can arise during the kinematics extraction process, as the measured kinematics may be biased by different methods, such as stellar population synthesis and the use of various stellar libraries such as, X-Shooter (Verro et al. 2022b, a), MILES (Vazdekis et al. 2016), and Indo-US (Valdes et al. 2004). However, by carefully cleaning the stellar libraries before measuring the kinematics, these systematic errors can be controlled within a sub-percent level (see Knabel et al. 2025). We test here an overly high level of systematics of 5% in order to illustrate the impact of a systematic shift in kinematics on the distance inference, even though we anticipate sub-percent level kinematic shifts in reality.
Description | Parameters | Mock input | prior | prior range |
---|---|---|---|---|
Flat CDM | ||||
Hubble constant [] | 82.5 | Flat | [50, 120] | |
Matter density parameter | 0.27 | Flat | [0.05, 0.5] | |
Distances | ||||
Model time-delay distance [Mpc] | 1823 | Flat | [1000, 4000] | |
Model lens distance [Mpc] | 775 | Flat | [600, 1000] | |
Composite | ||||
Position Angle [∘] | 30 | - | - | |
Stellar M/L | 1.95 | Flat | [0.5, 3.5] | |
Axis ratio | 0.56 | Flat | [0.2,1.0] | |
Einstein radius [] | 0.24 | Flat | [0.,1.] | |
Scale radius [] | 23.0 | Gaussian | [23.0, 2.6] | |
External shear strength | 0.09 | Flat | [0.0,0.2] | |
External shear position angle | 1.42 | Flat | [0.0, ] | |
BH mass [] | Discrete | |||
Mass Sheet | 1 | Flat | [0.5, 1.5] | |
External convergence | 0.079 | - | - | |
Dynamics | ||||
Anisotropy | 0.15 | Flat | ||
Inclination [∘] | 84.3 | Flat | [80, 90] |



5 Analysis and discussion of the joint modeling results
In this section, we present the results of the joint modeling using mock lensing and kinematic data. In Sect. 5.1, we discuss the fitting results of the joint modeling and demonstrate how it breaks the internal MSD, given ideal kinematic data. In Sect. 5.2, we examine the impact of black hole mass on inference, given ideal kinematic data. In Sect. 5.3, we present the joint modeling, given the ideal kinematic excluding the central region to probe if the impact of an unknown BH mass can be mitigated. In Sect. 4, we analyze the effect of systematic errors in the kinematic map on .
5.1 Breaking the MSD using joint modeling
We perform joint modeling using ideal kinematic data (see Eq. 60). Based on the velocity dispersion of the lens galaxy in RXJ1131, measured as km/s in Suyu et al. (2014), and the relation, we explore the full range of possible BH masses of to be conservative.
We adopt the composite mass model and perform joint modeling over the same black hole mass range. In joint modeling, we fix the BH mass in a given model setup and increment it in steps of of within the range across multiple model setups. Additionally, we perform joint modeling by replacing the composite mass model with a single EPL mass profile, . Throughout the modeling process, we do not allow to vary. Each run is performed with a fixed on a source grid ranging from to pixels, increasing in steps of 2 to account for the degeneracy caused by source-grid resolutions. These source resolutions are sufficient to address parameter degeneracies while achieving a good fit for the extended arcs (see details in Appendix C). From the equal-weighted probability density of , we observe that is broadly distributed across the prior range. Models with the same but different source grid resolutions form tightly clustered distributions of . When considering different values, the distribution accounting for degeneracy from source grid resolution variations, spans a wide range from 650 Mpc to 850 Mpc. In contrast, is more tightly clustered around the input value and remains almost unaffected by (see Fig. 4). This behavior is expected since is primarily constrained by dynamical modeling, making it more sensitive to . Fig. 5 illustrates more clearly the relation between and that was shown in Fig. 4.





The time-delay distance is entirely degenerate with over the prior range of when considering lensing-only modeling. The kinematic data aid in constraining and in identifying the uniquely preferred model within the range . Consequently, we can break the internal MSD and firmly constrain (see the red box in Fig. 6). We combine all joint modelings across different mass model assumptions, values of , and source-grid resolutions, weighting them using within the BIC framework (see Sect. 3.4). Models where deviates significantly from the mock input in the simulated kinematic data obtain lower weights. Additionally, the EPL model exhibits a higher scatter in the probability density distribution for across the different source resolutions. As a result, is not well constrained in this case, since the kinematic data struggle to differentiate the scaled . However, model is disfavored by BIC weighting, as it fails to accurately reproducing the ideal kinematic data, with compared to the best-fit composite mass model (see Fig. 7). Ultimately, the recovered time-delay distance is Mpc, which deviates from the mock input by , within the 1-sigma uncertainty range. Similarly, the recovered lens distance Mpc shows a deviation of .
The uncertainty in is asymmetric, exhibiting a longer tail on the positive side and a shorter tail on the negative side (see Figs. 4 and 6). This occurs because, as approaches the upper bound of 1.5 in the prior, it implies that is being modified by the addition of a negative constant sheet on top of (see Eq. 6). At regions far from the lensing centroid, becomes negative, which is disallowed by dynamical modeling in the framework of JAM.
A perfect mass profile for to characterize internal MSD would ideally remain constant up to a distance of to the lens centroid, where it is largely insensitive to lensing data of RXJ1131 but can still capture changes in the mass density slope induced by internal MSD through kinematic data. Beyond this distance, it should immediately drop to zero. Therefore, if the sheet is perfect, the modeled will remain non-negative up to in our setup and will not be rejected by JAM (see Sect. 3.3). To approximate the internal MSD, we use a dPIE profile, which declines rapidly to zero beyond the truncation radius but does not exhibit a strict cut-off. This relatively gradual decline in the range of to results in a region where becomes negative, leading to an asymmetric probability distribution for . Consequently, the lower bound of 78 Mpc may be underestimated compared to the true interval, assuming behaves as an idealized sheet with an abrupt cut-off beyond , as described above.
The probability distribution of is also slightly asymmetric, but it is less pronounced than that of . The asymmetry of arises from the influence of . As becomes heavier, tends to shift towards lower values and extends down to 650 Mpc to accommodate the kinematic data. Since we use for BIC weighting in joint models with varying , some models with larger can achieve a similarly good fit to the kinematic data as the model corresponding to the true by appropriately rescaling the distances and the anisotropy parameter . These models contribute to the tails of the inferred distribution (see Fig. 5 and the upper panels in Fig. 4).
With the posterior probability distribution , we infer and in a flat universe. We adopt uniform priors on between [50, 120] and on the matter density parameter121212The inferred cosmological parameter in joint modeling can also be expressed in terms of the dark energy density, , instead of since in flat CDM cosmology. However, a single quasar system with quad images is not sensitive to cosmological parameters other than . between [0.05, 0.5]. We generate samples for the parameters and calculate the corresponding 131313 is the angular diameter distance calculated from the assumed cosmology. and values using the lens and source redshifts under a flat CDM cosmology. For each sample, we randomly draw a value from the external convergence distribution inferred by Suyu et al. (2014) and scale the distance using Eq. 11 to obtain . Subsequently, we weight the samples using . From the weighted sample distribution, we obtain constraints on (see. Tab. 4). We also present values derived from the posterior probability distribution, marginalized over all parameters, including and separately. The value , obtained from , reflects asymmetrical uncertainties inherited from distribution. However, these skewed uncertainties of the inferred are mitigated by incorporating both distances (see Tab. 4 and Fig. 8). This demonstrates the advantage of joint modeling, where using two distances improves the constraint on . The value of inferred by joint modeling is poorly constrained from a single lens system; therefore, it is not included in the table.






5.2 The impact of degeneracy on measurement in time-delay cosmography
The BH in lensing-only modeling is often neglected since SL only provides constraints at Einstein radius, which is far from the galaxy’s center. Only in some rare cases, the lensed source image appears close to the galaxy center within (e.g., Nightingale et al. 2023; Melo-Carneiro et al. 2025). Kinematic data can provide some constraints, but its effectiveness is highly limited by the instrument’s resolution, particularly for galaxies at galaxies at . The lens galaxy RXJ1131 at might hold a supermassive BH with in the range of [ which corresponding to a sphere of influence for the BH in the range of . The simulated kinematic data has the spaxel size with convolved with of . For near , the influence of the BH dynamics can be imprinted on the central Voronoi bins.
As discussed in Section 3.3, we conduct joint modeling for a sequence of values. The time-delay distance is almost unaffected by . Therefore, we concentrate on the scatter in and , which are constrained exclusively by the kinematic data. In our experiment, the values of are distributed across the full prior range of [0.3, 0.3] (see Fig. 9), given . This prior range is motivated by studies of nearby massive elliptical galaxies (see review in Cappellari 2025, figs. 8, 10), and is quite conservative in its broad range compared to the typical scatter of anisotropies of galaxies shown in Cappellari (2025). The anisotropy is constrained by the spatial pattern in the kinematic data. However, and similarly affect stellar motions in the galaxy centroid, resulting in a trade-off between them. In Fig. 9, we observe that a heavier leads to a smaller , and vice versa. A higher deepens the central gravitational potential, allowing more tangential orbits in the dynamial model when reproducing the same observed line-of-sight velocity dispersion, corresponding to . Conversely, a lower can produce similar velocity dispersions if the stellar orbits are more radial, with , as radial orbits allow stars to reach higher line-of-sight velocity dispersion near the galaxy center. Both BH mass and contribute to accelerating stellar motion, but in different directions.
In addition to its degeneracy with , is also positively correlated with (see Fig. 6). An increase in compensates for the influence of a more massive BH by mimicking its effect on stellar motion in the central region. Since we assume a constant across all radii in the joint modeling, this means that even in the outer regions where velocity adjustments are unnecessary, stellar velocities are still affected by . To match the observed kinematics beyond the central region, increases to counterbalance the effect introduced by changes in . This is because acts as a normalization factor for scaling , following the relation (see Sect. 2.4). If the BH mass in the joint modeling is heavier than the mock input, the entire trend reverses. This explains the observed correlations in the values of , and (see Figs. 4, 5, and 9). In Fig. 5, we observe a negative correlation between the adopted in the joint modeling and . Black hole masses in the range of to are difficult to distinguish based on kinematic data and all contribute to the inference of distances in the BIC framework, given the in the mock input.
By combining all joint models weighted by the BIC (i.e., , where represents model , either a composite mass model with BH mass or an EPL model), we obtain Mpc and (see Tab. 4). The recovered distance closely matches the input value, whereas the orbital anisotropy remains poorly constrained. This is because models with tend to cluster near the upper bound of the prior (see Fig. 9). Some of these models provide a good fit to the kinematic data and are only slightly downweighted by the BIC, leading to a significant contribution to the final probability density distribution of .

We investigate the impact of an incorrect BH mass in the joint modeling. First, we test the scenario where we assume no BH in the composite mass model. The inferred value of successfully recovers the input value (see Fig. 10 and Table 4). However, the best-fit kinematic map exhibits a significantly different pattern compared to the one obtained when the BH is included in the modeling (see Fig. 7). The difference of for the dynamical fit indicates a poorer fit compared to the best-fit model that accounts for the BH. The fitted value of reaches the upper bound of the prior range, yet it remains insufficient to fully compensate for the absence of the BH, leading to a suboptimal fit to the kinematic data. The high value leads to an excessive increase in velocity dispersions in the outer regions. As a result, this imbalance starts to affect the probability density distribution of . To compensate for the effect induced by , decreases slightly.
A possible explanation is that the high requires a significantly different mass model than initially assumed to fit the kinematic data, which in turn affects and . We obtain a lower value of Mpc, with a median value that is 3% lower than the input value. The reason can still be recovered in this case is that is recovered to within 1% of its input value. However, if the prior range of is extended beyond 0.3, its inferred value continues to increase until it adequately fits the kinematic data. As a result, increases accordingly to counterbalance the effect of in the outer regions. This will ultimately introduce additional bias in that exceeds the value reported in Tab. 4, thereby biasing the inferred value.
In the second case, we probe the scenario where an incorrect BH mass of was assumed. In contrast to the first case, the orbital anisotropy shifts toward the lower bound, and the value of Mpc is lower than the obtained using the true (see Fig. 5). In this case, the best-fit kinematic map can reach almost the same quality as the model that uses the true BH mass. However, due to the lower value of , the inferred value of is 3% higher than the mock input value of (see Fig. 10).

The above tests indicate that a severely misfitted can strongly bias and mildly influence in the extreme case, thereby affecting inference, even when the kinematic data appears to be well-fitted. The value of can be accurately recovered when the BH mass is known and vice versa. We find that the fitted value of is well constrained when the true is used in the joint modeling (see Table 4). However, in nearly all cases of lens galaxies, the precise BH mass is unknown. The bias in caused by a misfitted can be mitigated by performing joint modeling over a range of possible BH masses and using the BIC to downweight models that are disfavored by the kinematic data. It naturally follows that the prior range of should be carefully chosen. Expanding the prior range allows adjustments to and to always effectively compensate for the presence of the BH. While this results in a well-fitted kinematic model, it significantly biases the inferred .
5.3 Mitigating the impact of the - degeneracy on measurements

We set the BH mass in our simulated datasets to , corresponding to a sphere of influence radius of . As a result, the BH primarily affects the inner region. To account for this, we exclude the nine central bins in the ideal simulated kinematic map within the FoV range of to . We then examine whether the joint modeling becomes insensitive to the BH mass, thereby mitigating the bias in the measurement caused by the - degeneracy.
We perform joint modeling using the ideal kinematic map while excluding the central regions. We reassess the recovery of the value and evaluate the quality of the kinematic fit for both cases of no BH and a BH with . In both cases, we observe that and shifted closer to the mock input values, allowing for an accurate recovery of within uncertainties (see Tab. 4 and more details in Appendix. D). As anticipated, the uncertainties are broader than the full ideal kinematic dataset because we adopt 43 bins instead of the complete dataset with 52 bins. Additionally, the kinematic data excluding the central region is effectively recovered through joint modeling with no BH and (see Fig. 11). This suggests that excluding the central kinematic region can help mitigate the effects of the presence of the BH with highly uncertain mass.
5.4 The impact of high systematic bias in kinematics data on measurement
In this section, we perform joint modeling of the kinematic data, incorporating a 5% systematic bias (see Eq. 61) to account for measurement-related systematic errors in the kinematic map. We emphasize that this adopted error represents a worst-case scenario, in which the kinematic measurements are not optimally performed. Furthermore, we highlight the importance of achieving sub-percent systematic errors in the kinematic map to ensure the robustness of cosmographic modeling, using the method presented in Knabel et al. (2025).
As described in Sect. 5.1, we run all modelings using the systematically biased kinematic data. We adopt the composite mass model, , across the black hole mass range, and a single EPL profile, , for the joint modeling. To account for degeneracies induced by the source grid resolution, we perform each mass model analysis on source grids ranging from to pixels. We perform the BIC weighting to combine all 55 joint models. The biased kinematic data helps break the internal MSD, yielding consistent results for and Mpc, which agree with values inferred from the joint modeling using ideal kinematic data. This demonstrates that the overall systematic bias does not affect the constraints on and (see Fig. 6). This is because is constrained by the 2D kinematic map, where the shape of the profile breaks the internal MSD and constrains . The 5% bias does not alter the shape of the profile, which is why neither nor is biased. Following the same reason, the inference of remains unaffected. We obtain , which is consistent with the value inferred using ideal kinematic data.
The systematic bias primarily impacts because it changes the amplitude of the overall. Given the relation , a bias in results in an expected bias in . We obtain Mpc, which is lower than the mock input value of Mpc, as expected. If the combined kinematics are obtained from a single aperture rather than an IFU, the impact on distances will not be cleanly isolated to alone, as the single aperture lacks information on the shape of . We anticipate a more severe effect on both and
The inferred value of from is biased by 13% compared to the mock input. However, since the inferred remains unbiased, we obtain using , which carries a 6% bias relative to the mock input (see Fig. 6).
Any systematic error affecting the overall kinematic map will be amplified in inference (Chen et al. 2021b). Although the bias does not impact inference, the joint modeling of remains highly susceptible to bias. This crucially highlights the importance of accurately measuring kinematics and controlling systematic uncertainties to the sub-percent level, which is achieved by Knabel et al. (2025), in order to measure and to the percent level.
Model |
[Mpc] |
[Mpc] |
||||||
---|---|---|---|---|---|---|---|---|
Full FoV (52 bins) | ||||||||
Ideal Kinematics with
in [ |
50 | |||||||
Ideal Kinematics with
* |
51 | |||||||
Ideal Kinematics with
no BH |
64 | |||||||
Ideal Kinematics with
|
53 | |||||||
Kinematics with a 5% bias with
in [ |
50 | |||||||
Full FoV exclude inner region (43 bins) | ||||||||
Ideal Kinematics with
no BH |
34 | |||||||
Ideal Kinematics with
|
42 |
6 Summary and outlook
In this paper, we present a GPU-accelerated code (GLaD) for self-consistent lensing and dynamical modeling, based on Yıldırım et al. (2020) for the lensing part and on Cappellari (2020) for the dynamics part. This method combines lensing and dynamical models by solving the Jeans equations in an axisymmetric geometry. The primary purpose of this code is for time-delay cosmography, but it can also be naturally applied to galaxy evolution studies (Shajib et al. 2021; Tan et al. 2024; Sheu et al. 2024; Sahu et al. 2024).
In time-delay cosmography, accounting for parameter uncertainties is essential. The most time-consuming part of joint modeling is running analyses across a range of source grids to account for parameter uncertainties associated with source grid resolutions. Another computational challenge is solving the Jeans equation to determine the intrinsic second velocity moments. The first issue is naturally optimized using GPU architecture, which excels at accelerating large matrix calculations, while the second is handled with a non-adaptive integral solver. In both cases, we achieve at least an order-of-magnitude speedup.
We simulate the lensing and kinematic data for the lensed quasar system RXJ1131 to test whether GLaD can recover the mock input value. Since the lens galaxy in RXJ1131 exhibits a central velocity dispersion , we add a in the mock mass profile. For the kinematic map, we generate one ideal kinematic map with the statistical error and a biased kinematic map with a systematic bias (as a worst-case scenario) in all the velocities. We use GLaD to perform the joint modeling on the simulated data to test the influence of the BH and the systematic error in the kinematic map. We found as follows:
- •
-
•
We perform joint modeling using two types of mass models and combine 55 models based on the BIC weighing. As expected, the kinematic data helps break the internal MSD. Using ideal kinematic data, we achieve uncertainty in the inference of .
-
•
The BH mass does not influence the breaking of the internal MSD. Therefore, the measurement of and remains independent of the adopted in the joint modeling, provided that the kinematic data is well fitted.
-
•
Given the high BH mass of adopted in our mock data, the BH mass plays a crucial role in constraining and . By adjusting , one can mimic the effect of a massive BH, making it difficult to constrain anisotropy without precise knowledge of the BH mass. Additionally, is positively correlated with , meaning any bias in the inferred leads to a corresponding bias in . As shown in Sect. 5.2, modeling with an incorrect BH mass results in an inferred that is 3% higher than the mock input value.
-
•
In Sect. 5.2, we present two approaches to mitigate the impact of the BH on measurements. The first approach involves using insights from nearby galaxies to determine the most probable range for the BH mass. We then perform a series of models with BH mass variations within this range, combining the results using the BIC weights to obtain an unbiased distance and measurement. The advantage of this approach is that it leverages the full kinematic dataset and a well-motivated prior. However, the disadvantage is the need to run multiple models. In the second approach, we bypass the sensitivity of the kinematic data to the BH mass by excluding the central kinematic bins, allowing us to retrieve the value with just one model, without significant reliance on prior knowledge.
-
•
The systematic bias in spatially resolved kinematic data does not impact the constraints on and , as these parameters are influenced by the shape of the 2D distribution. However, an overall bias in the kinematic data does not alter the shape of ; it only affects its amplitude.
-
•
The bias in the amplitude of primarily affects the inference of . A 5% bias leads to an approximately 10% bias in , which in turn results in a 10% bias in the measurement, given . However, as we emphasized earlier, a 5% bias in the kinematic data does not bias . Consequently, when considering given both distances, , the bias is reduced to approximately 6%. We have demonstrated that systematic bias in the kinematic data doubles the error as it propagates to (as also shown by Chen et al. 2021b, see Eqs. 20 and 21). This highlights the importance of measuring kinematics with sub-percent systematic uncertainty, as recently achieved by Knabel et al. (2025).
GLaD will be applied to the NIRSpec IFU observations of the lens galaxy in RXJ1131. Using simulated data, we identified a trade-off between the BH mass and the anisotropy parameter , as well as the influence of BH mass on in this paper. In our simulated kinematic dataset, we used a higher BH mass compared to the value from the relation. We aim to determine whether these effects are also present in real observations. If confirmed, we can further explore strategies to mitigate potential biases in .
As for the second test in this paper on systematic bias in the kinematic data, its impact on future measurements is expected to be minor, given the recent work by Knabel et al. (2025) who demonstrated that systematics errors of kinematic measurements can be controlled at the sub-percent level.
Another test we will explore in the future is the adopted mass sheet and how it interacts with the system. In this paper, we set the mass sheet with a fixed core and truncation radius. We ensure that, with this setup, the lensing data is completely degenerate with respect to different values of while the kinematic data are sensitive to . Future studies could further explore the parameter space for the mass sheet that satisfies the above requirements and marginalize over them to assess the impact on the BH mass and .
Our study highlights the speed gains achieved by using a single GPU, and in the future, parallelizing computations across multiple GPUs could further improve efficiency. Our developments will enable more efficient lensing and dynamical modeling of galaxies with high quality data for future cosmological and galaxy studies.
Acknowledgements
We thank Tommaso Treu, Shawn Knabel, Simon Birrer and Xiang-Yu Huang for helpful discussions and feedback on this work. HW and SHS thank the Max Planck Society for support through the Max Planck Fellowship for SHS. This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (LENSNOVA: grant agreement No 771776). This work is supported in part by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy – EXC-2094 – 390783311. AG acknowledges the Swiss National Science Foundation (SNSF) for supporting this work.
References
- Abdalla et al. (2022) Abdalla, E., Abellán, G. F., Aboubrahim, A., et al. 2022, Journal of High Energy Astrophysics, 34, 49
- Bacon et al. (1983) Bacon, R., Simien, F., & Monnet, G. 1983, A&A, 128, 405
- Binney & Tremaine (1987) Binney, J. & Tremaine, S. 1987, Galactic dynamics (Princeton University Press)
- Birrer et al. (2016) Birrer, S., Amara, A., & Refregier, A. 2016, J. Cosmology Astropart. Phys., 2016, 020
- Birrer et al. (2024) Birrer, S., Millon, M., Sluse, D., et al. 2024, Space Sci. Rev., 220, 48
- Birrer et al. (2020) Birrer, S., Shajib, A. J., Galan, A., et al. 2020, A&A, 643, A165
- Birrer & Treu (2021) Birrer, S. & Treu, T. 2021, Astronomy & Astrophysics, 649, A61
- Birrer & Treu (2021) Birrer, S. & Treu, T. 2021, A&A, 649, A61
- Birrer et al. (2019) Birrer, S., Treu, T., Rusu, C. E., et al. 2019, MNRAS, 484, 4726
- Blum et al. (2020) Blum, K., Castorina, E., & Simonović, M. 2020, The Astrophysical Journal Letters, 892, L27
- Bonvin et al. (2017) Bonvin, V., Courbin, F., Suyu, S. H., et al. 2017, MNRAS, 465, 4914
- Bradbury et al. (2018) Bradbury, J., Frostig, R., Hawkins, P., et al. 2018, JAX: composable transformations of Python+NumPy programs
- Cappellari (2002) Cappellari, M. 2002, MNRAS, 333, 400
- Cappellari (2002) Cappellari, M. 2002, MNRAS, 333, 400
- Cappellari (2008) Cappellari, M. 2008, MNRAS, 390, 71
- Cappellari (2020) Cappellari, M. 2020, MNRAS, 494, 4819
- Cappellari (2025) Cappellari, M. 2025, arXiv e-prints, arXiv:2503.02746
- Cappellari & Copin (2003) Cappellari, M. & Copin, Y. 2003, MNRAS, 342, 345
- Chen et al. (2018) Chen, G. C. F., Chan, J. H. H., Bonvin, V., et al. 2018, MNRAS, 481, 1115
- Chen et al. (2021a) Chen, G. C. F., Fassnacht, C. D., Suyu, S. H., et al. 2021a, A&A, 652, A7
- Chen et al. (2021b) Chen, G. C. F., Fassnacht, C. D., Suyu, S. H., et al. 2021b, A&A, 652, A7
- Chirivì et al. (2020) Chirivì, G., Yıldırım, A., Suyu, S. H., & Halkola, A. 2020, A&A, 643, A135
- Efstathiou & Gratton (2020) Efstathiou, G. & Gratton, S. 2020, Monthly Notices of the Royal Astronomical Society: Letters, 496, L91–L95
- Elíasdóttir et al. (2007) Elíasdóttir, Á., Limousin, M., Richard, J., et al. 2007, arXiv e-prints, arXiv:0710.5636
- Emsellem et al. (1994) Emsellem, E., Monnet, G., & Bacon, R. 1994, A&A, 285, 723
- Falco et al. (1985) Falco, E. E., Gorenstein, M. V., & Shapiro, I. I. 1985, ApJ, 289, L1
- Falco et al. (1985) Falco, E. E., Gorenstein, M. V., & Shapiro, I. I. 1985, ApJ, 289, L1
- Freedman & Madore (2023) Freedman, W. L. & Madore, B. F. 2023, J. Cosmology Astropart. Phys., 2023, 050
- Freedman et al. (2024) Freedman, W. L., Madore, B. F., Jang, I. S., et al. 2024, arXiv e-prints, arXiv:2408.06153
- Gavazzi et al. (2007) Gavazzi, R., Treu, T., Rhodes, J. D., et al. 2007, ApJ, 667, 176
- Golse & Kneib (2002) Golse, G. & Kneib, J. P. 2002, A&A, 390, 821
- Gomer et al. (2022) Gomer, M. R., Sluse, D., Van de Vyvere, L., Birrer, S., & Courbin, F. 2022, A&A, 667, A86
- Gorenstein et al. (1988) Gorenstein, M. V., Falco, E. E., & Shapiro, I. I. 1988, ApJ, 327, 693
- Greene et al. (2013) Greene, Z. S., Suyu, S. H., Treu, T., et al. 2013, ApJ, 768, 39
- Huang et al. (2025) Huang, X.-Y., Birrer, S., Cappellari, M., et al. 2025, arXiv e-prints, arXiv:2503.00235
- Jakobsen et al. (2022) Jakobsen, P., Ferruit, P., Alves de Oliveira, C., et al. 2022, A&A, 661, A80
- Jee et al. (2015) Jee, I., Komatsu, E., & Suyu, S. H. 2015, J. Cosmology Astropart. Phys., 2015, 033
- Khadka et al. (2024) Khadka, N., Birrer, S., Leauthaud, A., & Nix, H. 2024, MNRAS, 533, 795
- Knabel et al. (2025) Knabel, S., Mozumdar, P., Shajib, A. J., et al. 2025, arXiv e-prints, arXiv:2502.16034
- Knabel et al. (2024) Knabel, S., Treu, T., Cappellari, M., et al. 2024, arXiv e-prints, arXiv:2409.10631
- Kormendy & Ho (2013) Kormendy, J. & Ho, L. C. 2013, ARA&A, 51, 511
- Liao et al. (2022) Liao, K., Biesiada, M., & Zhu, Z.-H. 2022, Chinese Physics Letters, 39, 119801
- Liao et al. (2015) Liao, K., Treu, T., Marshall, P., et al. 2015, ApJ, 800, 11
- McConnell & Ma (2013) McConnell, N. J. & Ma, C.-P. 2013, ApJ, 764, 184
- Melo-Carneiro et al. (2025) Melo-Carneiro, C. R., Collett, T. E., Oldham, L. J., & Enzi, W. J. R. 2025, arXiv e-prints, arXiv:2502.13788
- Meylan et al. (2006) Meylan, G., Jetzer, P., North, P., et al., eds. 2006, Gravitational Lensing: Strong, Weak and Micro
- Millon et al. (2020) Millon, M., Galan, A., Courbin, F., et al. 2020, A&A, 639, A101
- Morrissey et al. (2018) Morrissey, P., Matuszewski, M., Martin, D. C., et al. 2018, ApJ, 864, 93
- Nightingale et al. (2023) Nightingale, J. W., Smith, R. J., He, Q., et al. 2023, MNRAS, 521, 3298
- Oguri (2019) Oguri, M. 2019, Reports on Progress in Physics, 82, 126901
- Oguri (2021) Oguri, M. 2021, PASP, 133, 074504
- Planck Collaboration et al. (2020) Planck Collaboration, Aghanim, N., Akrami, Y., et al. 2020, A&A, 641, A6
- Refsdal (1964) Refsdal, S. 1964, MNRAS, 128, 307
- Riess et al. (2024) Riess, A. G., Anand, G. S., Yuan, W., et al. 2024, JWST Observations Reject Unrecognized Crowding of Cepheid Photometry as an Explanation for the Hubble Tension at 8 sigma Confidence
- Riess et al. (2022) Riess, A. G., Yuan, W., Macri, L. M., et al. 2022, ApJ, 934, L7
- Rusu et al. (2017) Rusu, C. E., Fassnacht, C. D., Sluse, D., et al. 2017, MNRAS, 467, 4220
- Sahu et al. (2024) Sahu, N., Tran, K.-V., Suyu, S. H., et al. 2024, ApJ, 970, 86
- Schneider & Sluse (2013) Schneider, P. & Sluse, D. 2013, A&A, 559, A37
- Shajib (2019) Shajib, A. J. 2019, MNRAS, 488, 1387
- Shajib et al. (2020) Shajib, A. J., Birrer, S., Treu, T., et al. 2020, Monthly Notices of the Royal Astronomical Society, 494, 6072–6102
- Shajib et al. (2023) Shajib, A. J., Mozumdar, P., Chen, G. C. F., et al. 2023, A&A, 673, A9
- Shajib et al. (2021) Shajib, A. J., Treu, T., Birrer, S., & Sonnenfeld, A. 2021, MNRAS, 503, 2380
- Sheu et al. (2024) Sheu, W., Shajib, A. J., Treu, T., et al. 2024, arXiv e-prints, arXiv:2408.10316
- Sluse et al. (2007) Sluse, D., Claeskens, J. F., Hutsemékers, D., & Surdej, J. 2007, A&A, 468, 885
- Sluse et al. (2003) Sluse, D., Surdej, J., Claeskens, J. F., et al. 2003, A&A, 406, L43
- Suyu et al. (2024) Suyu, S. H., Goobar, A., Collett, T., More, A., & Vernardos, G. 2024, Space Sci. Rev., 220, 13
- Suyu & Halkola (2010) Suyu, S. H. & Halkola, A. 2010, A&A, 524, A94
- Suyu et al. (2012) Suyu, S. H., Hensel, S. W., McKean, J. P., et al. 2012, ApJ, 750, 10
- Suyu et al. (2010) Suyu, S. H., Marshall, P. J., Auger, M. W., et al. 2010, ApJ, 711, 201
- Suyu et al. (2006) Suyu, S. H., Marshall, P. J., Hobson, M. P., & Blandford, R. D. 2006, MNRAS, 371, 983
- Suyu et al. (2014) Suyu, S. H., Treu, T., Hilbert, S., et al. 2014, ApJ, 788, L35
- Tan et al. (2024) Tan, C. Y., Shajib, A. J., Birrer, S., et al. 2024, MNRAS, 530, 1474
- Tessore & Metcalf (2015) Tessore, N. & Metcalf, R. B. 2015, A&A, 580, A79
- Tewes et al. (2013) Tewes, M., Courbin, F., Meylan, G., et al. 2013, A&A, 556, A22
- Tie & Kochanek (2018) Tie, S. S. & Kochanek, C. S. 2018, MNRAS, 473, 80
- Treu & Koopmans (2002) Treu, T. & Koopmans, L. V. E. 2002, The Astrophysical Journal, 575, 87–94
- Treu & Marshall (2016) Treu, T. & Marshall, P. J. 2016, A&A Rev., 24, 11
- Treu & Shajib (2023) Treu, T. & Shajib, A. J. 2023, arXiv e-prints, arXiv:2307.05714
- Treu et al. (2022) Treu, T., Suyu, S. H., & Marshall, P. J. 2022, A&A Rev., 30, 8
- Valdes et al. (2004) Valdes, F., Gupta, R., Rose, J. A., Singh, H. P., & Bell, D. J. 2004, ApJS, 152, 251
- Van de Vyvere et al. (2022) Van de Vyvere, L., Gomer, M. R., Sluse, D., et al. 2022, A&A, 659, A127
- Vazdekis et al. (2016) Vazdekis, A., Koleva, M., Ricciardelli, E., Röck, B., & Falcón-Barroso, J. 2016, MNRAS, 463, 3409
- Verro et al. (2022a) Verro, K., Trager, S. C., Peletier, R. F., et al. 2022a, A&A, 661, A50
- Verro et al. (2022b) Verro, K., Trager, S. C., Peletier, R. F., et al. 2022b, A&A, 660, A34
- Wells et al. (2024) Wells, P. R., Fassnacht, C. D., Birrer, S., & Williams, D. 2024, A&A, 689, A87
- Wong et al. (2020) Wong, K. C., Suyu, S. H., Chen, G. C. F., et al. 2020, MNRAS, 498, 1420
- Yeung & Chu (2022) Yeung, S. & Chu, M.-C. 2022, Physical Review D, 105
- Yıldırım et al. (2023) Yıldırım, A., Suyu, S. H., Chen, G. C. F., & Komatsu, E. 2023, A&A, 675, A21
- Yıldırım et al. (2020) Yıldırım, A., Suyu, S. H., & Halkola, A. 2020, MNRAS, 493, 4783
Appendix A Implementation of the enfw profile
In many cases, we use the Navarro-Frenk-White (NFW) profile, derived from cosmological simulations, to model the mass density of dark matter in the lens galaxies. The classical NFW profile for lensing analyses often assumes spherical symmetry in the mass distribution, since analytical expressions for gravitational lensing properties are not available for mass distributions with ellipticity. However, observed galaxies and dark matter halos are typically not spherically symmetric but appear more elliptical when projected onto the sky. To address this challenge, one solution is to introduce ellipticity in the potential and then use Eq. 7 to derive the corresponding mass density profile (e.g., Golse & Kneib 2002). However, this approach can lead to unphysical mass density distributions, such as dumbbell-shaped isodensity contours, especially when the ellipticity is high (), as shown in Fig. 12. To avoid this issue, we adopt a method based on Oguri (2021), implementing a fast calculation approach that directly introduces ellipticity into . We define
(62) |
with
(63) |
where is the scale radius and is the characteristic density. In general, Eq. 62 does not yield an analytical expressions for lensing properties. Instead, computationally demanding numerical integration has to be performed. The idea in Oguri (2021) is to decompose the Eq. 62 into a series of basis functions, i.e., core steep ellipsoids (CSEs) which has simple analytical expressions of SL properties such as deflection angles and the lensing potential .
(64) |
with
(65) |
In Oguri (2021), they used 44 CSEs to fit (see Eq. 62). By minimizing
(66) |
they achieved an accuracy of in recovering using CSEs, with spanning a wide range from to . The amplitude and core radius are predetermined before evaluating the lensing properties of for any given values of , , and .141414Note that is omitted in Eq. 66 because it acts as a constant scaling factor and does not affect the decomposition process. The corresponding lens potential of individual CSE is
(67) |
where the expression of does not include any complex functions. We refer readers to Oguri (2021) for details. From the potential, we infer the deflection angle by calculating its gradient (see Eq. 33) and obtain an analytical expression,
(68) |

Appendix B Implementation of the EPL profile
We implemented the surface mass density following Tessore & Metcalf (2015). We define:
(69) |
with
(70) |
where represents the density slope, and is the softening radius introduced to prevent divergence at the central pixel. The parameter is a normalization factor, proportional to the Einstein radius , given by
(71) |
Appendix C Joint modeling with ideal kinematic data across varying source grid resolutions
To determine the resolution at which mass model parameter constraints become stable with respect to source grid resolutions, we perform joint modeling assuming . The source grid resolution varies from to , corresponding to source pixel sizes of approximately per pixel. We observe that all parameter contours stabilize when modeling with source grid resolutions beyond (see Fig. 13). Considering the computational time, we conduct joint modeling within the range of to , excluding and .


Appendix D Joint modeling using kinematics data exclude the central bins


Appendix E The BIC weight factor to joint models
Data | Model | Source Resolution | ||
---|---|---|---|---|
FoV | ||||
COMPOSITE | 68 | 54.11 | 0.1272 | |
66 | 55.08 | 0.0785 | ||
64 | 54.61 | 0.0991 | ||
62 | 54.21 | 0.1213 | ||
60 | 54.30 | 0.1160 | ||
Lensing & Dynamics IDEAL | 68 | 50.61 | 0.7204 | |
66 | 50.36 | 0.8171 | ||
64 | 50.37 | 0.8129 | ||
62 | 50.48 | 0.7712 | ||
60 | 50.45 | 0.7805 | ||
68 | 50.26 | 0.8612 | ||
66 | 49.96 | 0.9799 | ||
64 | 50.00 | 0.9672 | ||
62 | 50.06 | 0.9482 | ||
60 | 50.03 | 0.9567 | ||
68 | 50.34 | 0.8327 | ||
66 | 50.10 | 0.9325 | ||
64 | 50.15 | 0.9065 | ||
62 | 50.20 | 0.8866 | ||
60 | 50.16 | 0.9050 | ||
68 | 50.87 | 0.6350 | ||
66 | 50.79 | 0.6581 | ||
64 | 50.73 | 0.6790 | ||
62 | 50.65 | 0.7080 | ||
60 | 50.75 | 0.6723 | ||
68 | 51.71 | 0.4162 | ||
66 | 51.86 | 0.3865 | ||
64 | 51.81 | 0.3965 | ||
62 | 51.74 | 0.4094 | ||
60 | 51.67 | 0.4238 |
Data | Model | Source Resolution | ||
---|---|---|---|---|
FoV | ||||
COMPOSITE | 68 | 52.98 | 0.2219 | |
66 | 53.55 | 0.1667 | ||
64 | 53.28 | 0.1904 | ||
62 | 53.24 | 0.1949 | ||
60 | 53.36 | 0.1835 | ||
Lensing & Dynamics IDEAL | 68 | 54.85 | 0.0870 | |
66 | 55.49 | 0.0633 | ||
64 | 55.11 | 0.0763 | ||
62 | 55.05 | 0.0787 | ||
60 | 55.13 | 0.0758 | ||
68 | 56.95 | 0.0307 | ||
66 | 57.94 | 0.0187 | ||
64 | 57.21 | 0.0269 | ||
62 | 57.22 | 0.0268 | ||
60 | 57.53 | 0.0230 | ||
68 | 60.93 | 0.0042 | ||
66 | 60.67 | 0.0047 | ||
64 | 60.73 | 0.0040 | ||
62 | 60.12 | 0.0052 | ||
60 | 60.45 | 0.0052 | ||
EPL Model | 68 | 58.15 | 0.1338 | |
66 | 58.12 | 0.1356 | ||
64 | 58.33 | 0.1227 | ||
62 | 60.56 | 0.0400 | ||
60 | 58.29 | 0.1247 |