Khaos 10-K Entity Extraction
A DistilBERT token classifier that finds amounts, rates, dates, share counts, debt instruments and going-concern language in the text of SEC annual reports, with 17 entity types.
sec_10k_core v1, from Khaos (a local-first library of pre-trained models for domain-specific tasks). This is the first release of the artifact.
Model
- Architecture: FilingNER: distilbert-base-uncased encoder with a BIO token-classification head and a mean-pooled embedding output
- Parameters: 66,389,795
- Format: ONNX (
model.onnx) plus PyTorch weights (model.pt) andmanifest.json - Training data: fletxcher/khaos-sec_10k_core
Results
Measured on the held-out test split of the training dataset.
| Metric | Value |
|---|---|
| test_entity_f1 | 0.8229 |
| test_entity_precision | 0.7871 |
| test_entity_recall | 0.8621 |
| n_test_examples | 2001 |
| test_entity_f1_gold | 0.8228 |
| test_entity_f1_silver | 1.0000 |
Test results by label quality
Entity-level exact match (type and token boundaries).
| Label quality | Examples | Precision | Recall | F1 |
|---|---|---|---|---|
| gold | 2,000 | 0.787 | 0.862 | 0.823 |
| silver | 1 | 1.000 | 1.000 | 1.000 |
Test results by entity type
| Entity type | Precision | Recall | F1 | Support |
|---|---|---|---|---|
| ACQUISITION | 0.688 | 0.688 | 0.688 | 96 |
| ASSET_OR_EQUITY | 0.817 | 0.931 | 0.870 | 72 |
| COUNT_OR_AREA | 0.810 | 0.907 | 0.855 | 75 |
| DEBT | 0.804 | 0.884 | 0.842 | 455 |
| GOING_CONCERN | 1.000 | 1.000 | 1.000 | 1 |
| INCOME_EXPENSE | 0.778 | 0.875 | 0.824 | 368 |
| INTEREST_RATE | 0.828 | 0.965 | 0.891 | 285 |
| LEGAL_CONTINGENCY | 0.742 | 0.817 | 0.778 | 60 |
| MATURITY_DATE | 0.167 | 0.154 | 0.160 | 13 |
| OTHER_AMOUNT | 0.767 | 0.792 | 0.780 | 154 |
| PERCENTAGE_OTHER | 0.762 | 0.828 | 0.794 | 93 |
| PRICE_PER_SHARE | 0.781 | 0.855 | 0.817 | 138 |
| REVENUE | 0.892 | 0.805 | 0.846 | 82 |
| SHARE_COUNT | 0.769 | 0.820 | 0.794 | 150 |
| STOCK_COMPENSATION | 0.799 | 0.871 | 0.833 | 287 |
| TIME_PERIOD | 0.737 | 0.859 | 0.793 | 85 |
Training
{
"epochs": 4,
"batch": 16,
"lr": 5e-05,
"base_model": "distilbert-base-uncased",
"max_len": 256,
"labels": [
"O",
"B-REVENUE",
"I-REVENUE",
"B-INCOME_EXPENSE",
"I-INCOME_EXPENSE",
"B-DEBT",
"I-DEBT",
"B-INTEREST_RATE",
"I-INTEREST_RATE",
"B-MATURITY_DATE",
"I-MATURITY_DATE",
"B-SHARE_COUNT",
"I-SHARE_COUNT",
"B-PRICE_PER_SHARE",
"I-PRICE_PER_SHARE",
"B-ACQUISITION",
"I-ACQUISITION",
"B-STOCK_COMPENSATION",
"I-STOCK_COMPENSATION",
"B-LEGAL_CONTINGENCY",
"I-LEGAL_CONTINGENCY",
"B-TIME_PERIOD",
"I-TIME_PERIOD",
"B-ASSET_OR_EQUITY",
"I-ASSET_OR_EQUITY",
"B-PERCENTAGE_OTHER",
"I-PERCENTAGE_OTHER",
"B-COUNT_OR_AREA",
"I-COUNT_OR_AREA",
"B-OTHER_AMOUNT",
"I-OTHER_AMOUNT",
"B-DEBT_INSTRUMENT_NAME",
"I-DEBT_INSTRUMENT_NAME",
"B-GOING_CONCERN",
"I-GOING_CONCERN"
]
}
Best epoch 4, trained in 6.7 minutes on a single consumer GPU (RTX 3050 8 GB).
Intended use
Extracting structured facts from 10-K text. Feed chunks of at most 256 tokens (khaos.finance.models.chunk_ids splits longer documents).
Limitations
- Most gold training labels mark numbers only (from XBRL tags); surrounding words are unlabeled.
- Silver labels for debt names and going-concern language follow patterns.
- 256-token window: long documents must be chunked.
Usage
pip install khaos
khaos serve ./sec_10k_core
License
Trained on FiNER-139, which is CC BY-SA 4.0, so this model is released under the same license.