SciBERT Space Science Abstract Classifier
SciBERT fine-tuned to classify arXiv titles and abstracts into four space-science categories.
Labels
| ID |
Label |
arXiv category queried |
| 0 |
Earth Planetary |
astro-ph.EP |
| 1 |
Geophysics |
physics.geo-ph |
| 2 |
Solar Stellar |
astro-ph.SR |
| 3 |
Space Physics |
physics.space-ph |
Quick start
from transformers import pipeline
clf = pipeline("text-classification", model="prsubedi/solar-nlp-classifier")
clf("We present a model for predicting CME arrival time from coronagraph data.",
top_k=None, truncation=True, max_length=512)
Training data
- Collected with the arXiv API on 2026-10-02: the 300 most recent papers (newest first) for each of four categories, 1,200 records in total. Text is title + abstract.
- Exact-text deduplication removed 109 records, leaving 1,091. The first-fetched copy was kept (fetch order: Space Physics, Solar Stellar, Earth Planetary, Geophysics). The cause was not checked; cross-listing across categories is the likely explanation.
- Records kept per class: Space Physics 300, Solar Stellar 286, Geophysics 285, Earth Planetary 220.
- Stratified split (seed 42): 784 train / 88 validation / 219 test.
Training procedure
| Setting |
Value |
| Base model |
allenai/scibert_scivocab_uncased |
| Epochs |
5 |
| Batch size |
16 |
| Learning rate |
2e-5 |
| Warmup steps / weight decay |
50 / 0.01 |
| Max sequence length |
512 |
| Precision / hardware |
fp16 on a single T4 GPU |
| Checkpoint selection |
lowest validation loss (epoch 5) |
Evaluation (219 held-out abstracts)
| Metric |
Score |
| Accuracy |
0.86 |
| Macro F1 |
0.86 |
| Class |
Precision |
Recall |
F1 |
Support |
| Earth Planetary |
0.86 |
0.68 |
0.76 |
44 |
| Geophysics |
0.94 |
0.89 |
0.92 |
57 |
| Solar Stellar |
0.88 |
0.88 |
0.88 |
58 |
| Space Physics |
0.79 |
0.95 |
0.86 |
60 |
Earth Planetary: 30 of 44 correct; 6 predicted as Solar Stellar, 6 as Space Physics, 2 as Geophysics. Space Physics is over-predicted (72 predictions for 60 true examples).
Limitations
- Labels are the arXiv category each paper was retrieved under, not hand-annotated. For cross-listed papers the label depends on fetch order, not content. Earth Planetary lost 80 of its 300 records to deduplication, so its label set is shaped by query order. Whether this explains its lower recall was not tested.
- The data is a snapshot of the most recent papers per category at collection time, so it skews toward current topics.
- Trained on title + abstract text. Short event reports, tweets, or full-text passages are out of distribution and will score worse.
- Small dataset (1,091 examples) and one random split: expect variance of a few points on a different split.
- Not intended for any decision-making use. It is a portfolio and research demonstration.
Author
Pramod Raj Subedi. GitHub