Adapting a Pretrained LLM to Rapidly Recover Earthquake Magnitude and Location
Abstract Determining earthquake magnitude and location through fast, automated methods is fundamental for seismic monitoring. Recent studies have shown that Large Language Models (LLMs) can operate as pattern‐recognition systems capable of handling novel domains and purely numerical tasks. Here, we assess the utility of LLMs for earthquake characterization and propose a novel approach based on a small LLM called TinyLlama. We adapt the LLM for seismology through fine‐tuning on a subset of Italian earthquakes using the LoRA technique, which involves retraining only about of the model parameters. Our method takes station coordinates, P‐wave arrival times, and peak ground velocities in a small window (0.2 s) around the P‐wave and accurately estimates earthquake magnitude, location, and origin time without using a seismic velocity model. To explore the potential for rapid characterization, we consider only stations where the P‐wave arrives within 5 s of the first triggered station. Compared to standard automatic methods currently used by INGV in Italy our model achieves comparable performance in magnitude estimation and superior accuracy in epicenter, hypocenter and origin time estimation. Validation using both P‐ and S‐waves shows only a slight performance improvement that does not justify the additional latency. We explored a range of data splitting strategies and found that the LLM‐based seismic method is robust. Our results highlight the ability of LLMs to function as effective tools in seismology and suggest their potential for advancing data‐driven approaches to rapid earthquake characterization.
Authors
- Fabio Galasso (ORCID: https://orcid.org/0000-0003-1875-7813)
- Elisa Tinti (ORCID: https://orcid.org/0000-0002-6942-3592)
- Giulio Poggiali (ORCID: https://orcid.org/0009-0008-4723-5954)
- Chris J. Marone (ORCID: https://orcid.org/0000-0002-4515-4500)
- Daniele Trappolini (ORCID: https://orcid.org/0000-0002-3252-3565)
- Alberto Michelini (ORCID: https://orcid.org/0000-0001-6716-8551)
- Aurora Bassani (ORCID: https://orcid.org/0009-0004-1760-2638)
Institutions
- Istituto Nazionale di Geofisica e Vulcanologia (IT)
- Sapienza University of Rome (IT)
Publication Details
- Journal
- Journal of Geophysical Research Machine Learning and Computation
- Published
- 2026-09-21
- DOI
- https://doi.org/10.1029/2026jh001578
- Primary Topic
- Seismology and Earthquake Studies
- Type
- article
- Field-Weighted Citation Impact
- 0.00