Augmenting representations with scientific papers
Organizations: Department of Electronics, Information and Bioengineering, Politecnico di Milano, Via Giuseppe Ponzio, 34, Milan, 20133, MI, Italy · Osservatorio Astronomico di Roma, INAF, Via Frascati 33, Monte Porzio Catone, 00078, RM, Italy · AstroAI, Center for Astrophysics | Harvard & Smithsonian, 60 Garden Street, Cambridge, 02138, MA, United States of America · Center for Computational Astrophysics, Institute for Advanced Study/The Flatiron Institute, 162 5th Ave 9th floor, New York, 10010, NY, United States of America
Abstract
Astronomers have acquired vast repositories of multimodal data, including images, spectra, and time series, complemented by decades of literature that analyzes astrophysical sources. Still, these data sources are rarely systematically integrated. This work introduces a contrastive learning framework designed to align X-ray spectra with domain knowledge extracted from scientific literature, facilitating the development of shared multimodal representations. Establishing this connection is inherently complex, as scientific texts encompass a broader and more diverse physical context than spectra. We propose a contrastive pipeline that achieves a 20% Recall@1% when retrieving texts from spectra, proving that a meaningful alignment between these modalities is not only possible but capable of accelerating the interpretation of rare or poorly understood sources. Furthermore, the resulting shared latent space effectively encodes physically significant information. By fusing spectral and textual data, we improve the estimation of 20 physical variables by 16-18% over unimodal spectral baselines. Our results indicate that a Mixture of Experts (MoE) strategy, which leverages both unimodal and shared representations, yields superior performance. Finally, outlier analysis within the multimodal latent space identifies high-priority targets for follow-up investigation, including a candidate pulsating ULX (PULX) and a gravitational lens system. Importantly, this framework can be extended to other scientific domains where aligning observational data with existing literature is possible.
Figures & tables
| Variable | Description |
|---|---|
| hard_hs | Hardness ratio between hard (2.0–7.0 keV) and soft (0.5–1.2 keV) bands |
| hard_ms | Hardness ratio between medium (1.2–2.0 keV) and soft (0.5–1.2 keV) bands |
| hard_hm | Hardness ratio between hard (2.0–7.0 keV) and medium (1.2–2.0 keV) bands |
| var_prob_b | Gregory–Loredo variability probability |
| var_index_b | Intra-observation Gregory-Loredo variability index |
| powlaw_gamma | Photon index from power-law spectral fit |
| Latent Dim. | Variable | Correlation |
|---|---|---|
| hard_hs | 0.82 | |
| hard_hs | 0.82 | |
| hard_hs | 0.77 | |
| hard_hs | 0.76 | |
| apec_kt | 0.74 | |
| hard_hs | 0.74 |
| Variable | Mean baseline | Pre-alignment | Post-alignment | MoE | Uncertainty | Improvement | |||
| Spectra | Text | Spectra | Text | Both | |||||
| hard_hs | 0.40 | 0.20 | 0.27 | 0.16 | 0.17 | 0.12 | 0.12 | 0.01 | 40% |
| hard_ms | 0.28 | 0.17 | 0.22 | 0.14 | 0.17 | 0.12 | 0.12 | 0.01 | 28% |
| hard_hm | 0.23 | 0.15 | 0.18 | 0.11 | 0.15 | 0.10 | 0.10 | 0.01 | 33% |
| var_prob_b | 0.26 | 0.27 | 0.18 | 0.26 | 0 .20 | 0.23 | 0.23 | 0.02 | % |
| var_index_b | 1.77 | 1.79 | 1.00 | 1.70 | 1.19 | 1.45 | 1.00 | 0.10 | 0% |
Cross-Modal Alignment
Cross-modal alignment maps representations from different data types into compatible spaces so models can compare, transfer, and combine information.
See all 440 papers