Searcharxiv⌕ Search

arXiv subjects

Valéria Carvalho

Publications and source records attributed to Valéria Carvalho.

10 recordsLinked to original sources

Set Transformer inference of the neutron star equation of state from stellar observations

We develop a permutation-invariant Set Transformer to reconstruct the equation of state (EoS) of dense matter from variable-size, unordered sets of neutron star (NS) observations. The model takes stellar masses together with radii, tidal deformabilities, or both, and predicts either the pressure $P(n)$ or the sound speed $c_s^2(n)$ on a fixed density grid, along with density-dependent uncertainties. Nothing in the architecture prescribes which star informs which density: self-attention couples all observations nonlinearly, and each density point reads the full set through its own learnable query, so the star-to-density mapping is learned from the data. Trained on independent piecewise-polytropic and Gaussian-process EoS ensembles, the model provides well-calibrated predictions whose uncertainty increases in density regions that stable stars cannot probe. Reconstruction errors decrease with the number of observations, while tidal deformability generally improves accuracy at a fixed observation count, even when it carries its own measurement noise. Sensitivity analysis reveals a density-local mapping: in the pressure models, predictions at density $n$ depend most strongly on stars whose central densities are near $n$. We also show that the sensitivity of the model to the inferred stellar compactness provides information on the minimum central density. These results demonstrate that set-based neural inference, in which the star-to-density mapping is learned rather than assumed, can extract physically interpretable EoS information with calibrated uncertainties.

nucl-th↗

NS-UNO: Neutron Star EoS Inference from an Unconstrained Number of Observations

Future multimessenger observations of neutron stars (NS) are expected to substantially increase both the number and precision of astrophysical constraints on the equation of state (EoS) of dense matter. This motivates inference frameworks capable of accommodating a variable, non fixed number of observations while preserving the posterior information associated with each measurement. In this work, we introduce NS-UNO, a Neural Posterior Estimation framework for NS EoS inference designed to accommodate an Unconstrained Number of Observations (UNO). NS-UNO combines a hierarchical DeepSets model with a conditional normalising flow, enabling a single trained model to perform inference from mass-radius observation sets of varying size, with each observation represented by a set of posterior samples. We demonstrate accurate and well calibrated posterior reconstructions using a model trained jointly on piecewise polytropic and non-parametric Gaussian process EoS ensembles. The reconstruction improves as observations probe a broader range of NS masses, while remaining robust to variations in the number and precision of the observations. The model also generalises to EoSs outside the families used during training. Finally, we qualitatively demonstrate the framework on current multimessenger constraints from NICER and GW170817. NS-UNO provides a flexible and scalable approach to NS EoS inference, naturally suited to the increasingly diverse observational datasets expected from next generation multimessenger astronomy.

nucl-th↗

Neural Posterior Estimation of Neutron Star Equations of State

We present a simulation-based inference (SBI) framework to constrain the neutron star (NS) equation of state (EoS) from astrophysical observations of masses, radii and tidal deformabilities, using Neural posterior estimation (NPE) with Conditional Normalising Flows (CNF). To ensure that the model conforms with reality, physics-informed constraints are embedded directly into the training loss. This enables efficient, likelihood-free inference of full posterior distributions for key thermodynamic quantities-including pressure, squared speed of sound, and the trace anomaly-conditioned on observational data. Our models are trained on synthetic datasets generated from two agnostic EoS priors: polytropic parametrizations (PT) and gaussian process (GP) reconstructions. These datasets span various scenarios, including the presence or absence of tidal deformability information and observational noise. Across all settings, the method produces accurate and well-calibrated posteriors, with uncertainties reduced when tidal deformability constraints are included. Furthermore, we find that the behavior of normalized predictive dispersions is strongly correlated with the maximum central density inside NSs, suggesting that the model can indirectly infer this physically meaningful quantity. The approach generalizes well across EoS families and accurately reconstructs derivative quantities such as the polytropic index, demonstrating its robustness and potential for probing dense matter in NS cores.

nucl-th↗

MOPrompt: Multi-objective Semantic Evolution for Prompt Optimization

Prompt engineering is crucial for unlocking the potential of Large Language Models (LLMs). Still, since manual prompt design is often complex, non-intuitive, and time-consuming, automatic prompt optimization has emerged as a research area. However, a significant challenge in prompt optimization is managing the inherent trade-off between task performance, such as accuracy, and context size. Most existing automated methods focus on a single objective, typically performance, thereby failing to explore the critical spectrum of efficiency and effectiveness. This paper introduces the MOPrompt, a novel Multi-objective Evolutionary Optimization (EMO) framework designed to optimize prompts for both accuracy and context size (measured in tokens) simultaneously. Our framework maps the Pareto front of prompt solutions, presenting practitioners with a set of trade-offs between context size and performance, a crucial tool for deploying Large Language Models (LLMs) in real-world applications. We evaluate MOPrompt on a sentiment analysis task in Portuguese, using Gemma-2B and Sabiazinho-3 as evaluation models. Our findings show that MOPrompt substantially outperforms the baseline framework. For the Sabiazinho model, MOPrompt identifies a prompt that achieves the same peak accuracy (0.97) as the best baseline solution, but with a 31% reduction in token length.

cs.CL↗

Detecting Hyperons in neutron stars -- a machine learning approach

We present a neural network classification model for detecting the presence of hyperonic degrees of freedom in neutron stars. The models take radii and/or tidal deformabilities as input and give the probability for the presence of hyperons in the neutron star composition. Different numbers of observations and different levels of uncertainty in the neutron star properties are tested. The models have been trained on a dataset of well-calibrated microscopic equations of state of neutron star matter based on a relativistic mean-field formalism. Real data and data generated from a different description of hyperonic matter are used to test the performance of the models.

nucl-th↗

Assessing the joint effect of temperature and magnetic field on the neutron star equation of state

In this work, we study the effect of strong magnetic fields on the equation of state (EoS) of warm, homogeneous, Neutron Star (NS) matter in beta equilibrium. NS matter is described within a relativistic mean field (RMF) approximation, including both models with non-linear meson terms or with density dependent nucleon-meson couplings. We first study the effect of magnetic fields and finite temperature on the EoS separately, finding that the effect of the latter to be significantly stronger than the one of the former. We then study the combined effect of magnetic fields and temperature on the internal composition. We show how both factors cause an increase in the proton fraction at low density and that, as long as the temperatures considered are not higher than 10 MeV, the effect of the magnetic field on the proton fraction is not small enough to be neglected.

nucl-th↗

Detecting the third family of compact stars with normalizing flows

We explore the anomaly detection framework based on Normalizing Flows (NF) models introduced in \cite{PhysRevC.106.065802} to detect the presence of a large (destabilising) dense matter phase transition in neutron star (NS) observations of masses and radii, and relate the feasibility of detection with parameters of the underlying mass-radius sequence, which is a functional of the dense matter equation of state. Once trained on simulated data featuring continuous $M(R)$ solutions (i.e., no phase transitions), NF is used to determine the likelihood of a first-order phase transition in a given set of $M(R)$ observations featuring a discontinuity, i.e., perform the anomaly detection. Different mock test sets, featuring two branch solutions in the $M(R)$ diagram, were parameterized by the NS mass at which the phase transition occurs, $M_c$, and the radius difference between the heaviest hadronic star and lightest hybrid star, $ΔR$. We analyze the impact of these parameters on the NF performance in detecting the presence of a first-order phase transition. Among the results, we report that given a set of 15 stars with radius uncertainty of $0.2$ km, a detection of a two-branch solution is possible with 95\% accuracy if $ΔR > 0.4$ km.

nucl-th↗

From NS observations to nuclear matter properties: a machine learning approach

This study is devoted to the inference problem of extracting the nuclear matter properties directly from a set of mass-radius observations. We employ Bayesian neural networks (BNNs), which is a probabilistic model capable of estimating the uncertainties associated with its predictions. To simulate different noise levels on the $M(R)$ observations, we create three different sets of mock data. Our results show BNNs as an accurate and reliable tool for predicting the nuclear matter properties whenever the true values are not completely outside the training dataset statistics, i.e., if the model is not heavily dependent on its extrapolating capacities. Using real mass-radius pulsar data, the model predicted, for instance, $L_{\text{sym}}=39.80\pm17.52 $ MeV and $K_{\text{sym}}=-101.67\pm62.86 $ MeV ($2σ$ interval). Our study provides a valuable inference framework when new NS data becomes available.

nucl-th↗

Decoding Neutron Star Observations: Revealing Composition through Bayesian Neural Networks

We exploit the great potential offered by Bayesian Neural Networks (BNNs) to directly decipher the internal composition of neutron stars (NSs) based on their macroscopic properties. By analyzing a set of simulated observations, namely NS radius and tidal deformability, we leverage BNNs as effective tools for inferring the proton fraction and sound speed within NS interiors. To achieve this, several BNNs models were developed upon a dataset of $\sim$ 25K nuclear EoS within a relativistic mean-field framework, obtained through Bayesian inference that adheres to minimal low-density constraints. Unlike conventional neural networks, BNNs possess an exceptional quality: they provide a prediction uncertainty measure. To simulate the inherent imperfections present in real-world observations, we have generated four distinct training and testing datasets that replicate specific observational uncertainties. Our initial results demonstrate that BNNs successfully recover the composition with reasonable levels of uncertainty. Furthermore, using mock data prepared with the DD2, a different class of relativistic mean-field model utilized during training, the BNN model effectively retrieves the proton fraction and speed of sound for neutron star matter.

nucl-th↗

Extracting nuclear matter properties from the neutron star matter equation of state using deep neural networks

The extraction of the nuclear matter properties from neutron star (NS) observations is nowadays an important issue, in particular, the properties that characterize the symmetry energy which are essential to describe correctly asymmetric nuclear matter. We use deep neural networks (DNNs) to map the relation between cold $β$-equilibrium NS matter and the nuclear matter properties. Assuming a quadratic dependence on the isospin asymmetry for the energy per particle of homogeneous nuclear matter and using a Taylor expansion up to fourth order in the iso-scalar and iso-vector contributions, we generate a dataset of different realizations of $β$-equilibrium NS matter and the corresponding nuclear matter properties. The DNN model was successfully trained, attaining great accuracy in the test set. Finally, a real case scenario was used to test the DNN model, where a set of 33 nuclear models, obtained within a relativistic mean field approach or a Skyrme force description, were fed into the DNN model and the corresponding nuclear matter parameters recovered with considerable accuracy, in particular, the standard deviations $σ(L_{\text{sym}})= 12.85$ MeV and $σ(K_{\text{sat}})= 41.02$ MeV were obtained, respectively, for the slope of the symmetry energy and the nuclear matter incompressibility at saturation.

nucl-th↗