LLMCPNER

Final model and three confidence voters for LLMCPNER: Integrating Large Language Models and Curriculum Learning for Paleontological Named Entity Recognition.

Files

Path Contents
final_model/model.pt Selected full-method state dict, including SciBERT encoder and span classifier
voters/voter_0.pt to voters/voter_2.pt Three separately trained voter state dicts
encoder/ Exact encoder configuration and tokenizer files used by these checkpoints
training_config.json Shared training defaults
stage_summary.json Recorded stage lengths and best epochs
metrics.json Recorded strict/partial micro metrics
checkpoint_verification.json Fresh checkpoint evaluation compared with recorded metrics
manifest.json File sizes and SHA-256 values

These are custom PyTorch span-model state dictionaries, not standalone Transformers AutoModel.from_pretrained() repositories. The full model already contains its encoder parameters; the provided configuration/tokenizer is sufficient for the code's checkpoint-evaluation command. Training fresh voters or a fresh main model still requires the pretrained SciBERT weights.

Download and evaluate

From a clone of the linked GitHub repository with its requirements installed:

hf download xhd521/LLMCPNER --local-dir checkpoints/LLMCPNER
hf download xhd521/LLMCPNER-data --repo-type dataset --local-dir released_data

python src/evaluate.py \
  --checkpoint checkpoints/LLMCPNER/final_model/model.pt \
  --encoder checkpoints/LLMCPNER/encoder \
  --input released_data/data/corrected_test_gold.json \
  --output-dir outputs/released_model_evaluation \
  --device cuda:0

Use --device cpu for CPU evaluation. For unlabeled extraction, supply a JSON list of objects containing text, and add --unlabeled. The model supports at most 512 input tokens per instance; longer documents require segmentation.

Recorded results

Strict precision Strict recall Strict F1 Partial F1
83.08 86.26 84.64 89.54

Scores are percentages on the 188-text, 1,281-entity manual reference. These texts were also used for early stopping and model selection; the scores are not an independent held-out estimate. Strict matching requires exact character boundaries and type; partial matching requires the same type and character-span IoU >= 0.5, with one-to-one matching.

Architecture and selection

The SciBERT encoder represents candidate spans using their start-token representation, end-token representation, and width embedding, followed by a feed-forward classifier. Maximum span width is 12 tokens. Label IDs are O=0, taxa=1, location=2, section=3, strata=4, lithology=5, facies=6, age=7. Internal strata denotes the manuscript's Stratigraphic unit category.

Three voters were trained for two epochs each on 60%-bootstrap samples of the initial weakly annotated corpus. Their scoring uses evaluation mode without MC dropout. The final model uses type-wise confidence curricula with fixed positive confidence weights, always-active sampled negatives, and masking of unadmitted positive spans. Each stage has a minimum of two epochs and patience of three non-improving development evaluations. The selected checkpoint is stage 3, epoch 5; actual stage lengths were 5, 4, and 8 epochs.

Voters can share errors learned from the same weak-label source. Confidence is a relative reliability signal, not a calibrated correctness probability. Training data and this reference cover seven entity types in English paleontological texts.

Rights and provenance

The linked implementation is MIT-licensed. This does not automatically license external source texts or pretrained components. The checkpoints derive from allenai/scibert_scivocab_uncased; consult that model's applicable terms. No additional blanket license for source publications is granted here.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for xhd521/LLMCPNER

Finetuned
(140)
this model

Dataset used to train xhd521/LLMCPNER