hifi-kpi-eval
HiFi-KPI: A Dataset for Hierarchical KPI Extraction from Earnings Filings — Aavang et al. (2025) (arXiv:2502.15411, 2025)
What this evaluates
Evaluates models on hierarchical key performance indicator (KPI) extraction from SEC earnings filings, testing their ability to classify paragraph-level labels, perform token-level sequence labeling, and extract structured financial entities (tags, dates, currency, values) at varying granularities.
Datasets
Metrics
aggregated macro F1 (primary) — range: percent
- Macro-averaged F1 score computed over all tags, aggregated across cumulative support (total count of included ground truth tags) to measure encapsulation at a given granularity.
micro F1 — range: percent
- Micro-averaged F1 score computed per entity label (e.g., Start Date, Currency, Value) by aggregating true positives, false positives, and false negatives across all instances before calculating precision and recall.
Exact Match (EM) — range: percent
- Percentage of instances where all predicted entity labels exactly match the gold labels for that instance.
Input / output format
Input: Paragraphs from SEC earnings filings (iXBRL format), optionally accompanied by hierarchical taxonomy context for granularity selection.
Output: For text classification: a single paragraph-level label. For sequence labeling: token-level entity tags. For LLM extraction: structured JSON containing tags, dates, currency, and numeric values.
Scoring recipe
def compute_metrics(predictions, golds):
tp, fp, fn = 0, 0, 0
for pred, gold in zip(predictions, golds):
for p, g in zip(pred, gold):
if p == g:
tp += 1
elif p != g:
fp += 1
fn += 1
prec = tp / (tp + fp) if (tp + fp) > 0 else 0
rec = tp / (tp + fn) if (tp + fn) > 0 else 0
f1 = 2 * prec * rec / (prec + rec) if (prec + rec) > 0 else 0
em = sum(1 for p, g in zip(predictions, golds) if p == g) / len(predictions)
return f1, em
Common pitfalls
- Cumulative support is defined as the total count of included ground truth tags, meaning macro F1 aggregation changes depending on the granularity level evaluated.
- Out-of-scope (OOS) tags are mapped to a single label during sequence labeling, which can artificially inflate precision/recall if the evaluation script does not treat OOS consistently with the training setup.
- Exact Match (EM) requires all entity types (tags, dates, currency, values) to be perfectly predicted per instance, making it significantly stricter than per-label micro F1.
Evidence (verbatim from paper)
We report the aggregated macro F1 over the cumulative support. Cumulative support defined as the total count of included ground truth tags. This is to showcase how good the model is at encapsulating a given amount of the dataset, at a given granularity.
Citation
@misc{aavang2025hifikpi,
title={HiFi-KPI: A Dataset for Hierarchical KPI Extraction from Earnings Filings},
author={Aavang et al. (2025)},
year={2025},
note={arXiv:2502.15411}
}
1---2name: hifi-kpi-eval3description: Evaluates models on hierarchical key performance indicator (KPI) extraction from SEC earnings filings, testing their ability to classify paragraph-level labels, perform token-level sequence labeling, and extract structured financial entities (tags, dates, currency, values) at varying granularities. Use when the user wants to benchmark on HiFi-KPI, HiFi-KPI Lite, or asks about evaluating this task. Reports aggregated macro F1.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/hifi-kpi-eval6 skill_kind: dataset_eval7 source_arxiv: 2502.154118 bibtex_key: aavang2025hifikpi9 confidence: high10---1112# hifi-kpi-eval1314> HiFi-KPI: A Dataset for Hierarchical KPI Extraction from Earnings Filings — Aavang et al. (2025) (arXiv:2502.15411, 2025)1516## What this evaluates1718Evaluates models on hierarchical key performance indicator (KPI) extraction from SEC earnings filings, testing their ability to classify paragraph-level labels, perform token-level sequence labeling, and extract structured financial entities (tags, dates, currency, values) at varying granularities.1920## Datasets2122- **HiFi-KPI** — total ?; splits: (unstated); repo https://github.com/aaunlp/HiFi-KPI23- **HiFi-KPI Lite** — total ?; splits: (unstated); repo https://github.com/aaunlp/HiFi-KPI2425## Metrics2627- `aggregated macro F1` **(primary)** — range: percent28 - Macro-averaged F1 score computed over all tags, aggregated across cumulative support (total count of included ground truth tags) to measure encapsulation at a given granularity.29- `micro F1` — range: percent30 - Micro-averaged F1 score computed per entity label (e.g., Start Date, Currency, Value) by aggregating true positives, false positives, and false negatives across all instances before calculating precision and recall.31- `Exact Match (EM)` — range: percent32 - Percentage of instances where all predicted entity labels exactly match the gold labels for that instance.3334## Input / output format3536**Input**: Paragraphs from SEC earnings filings (iXBRL format), optionally accompanied by hierarchical taxonomy context for granularity selection.3738**Output**: For text classification: a single paragraph-level label. For sequence labeling: token-level entity tags. For LLM extraction: structured JSON containing tags, dates, currency, and numeric values.3940## Scoring recipe4142```python43def compute_metrics(predictions, golds):44 tp, fp, fn = 0, 0, 045 for pred, gold in zip(predictions, golds):46 for p, g in zip(pred, gold):47 if p == g:48 tp += 149 elif p != g:50 fp += 151 fn += 152 prec = tp / (tp + fp) if (tp + fp) > 0 else 053 rec = tp / (tp + fn) if (tp + fn) > 0 else 054 f1 = 2 * prec * rec / (prec + rec) if (prec + rec) > 0 else 055 em = sum(1 for p, g in zip(predictions, golds) if p == g) / len(predictions)56 return f1, em57```5859## Common pitfalls6061- Cumulative support is defined as the total count of included ground truth tags, meaning macro F1 aggregation changes depending on the granularity level evaluated.62- Out-of-scope (OOS) tags are mapped to a single label during sequence labeling, which can artificially inflate precision/recall if the evaluation script does not treat OOS consistently with the training setup.63- Exact Match (EM) requires all entity types (tags, dates, currency, values) to be perfectly predicted per instance, making it significantly stricter than per-label micro F1.6465## Evidence (verbatim from paper)6667> We report the aggregated macro F1 over the cumulative support. Cumulative support defined as the total count of included ground truth tags. This is to showcase how good the model is at encapsulating a given amount of the dataset, at a given granularity.6869## Citation7071```bibtex72@misc{aavang2025hifikpi,73 title={HiFi-KPI: A Dataset for Hierarchical KPI Extraction from Earnings Filings},74 author={Aavang et al. (2025)},75 year={2025},76 note={arXiv:2502.15411}77}78```7980- arXiv: 2502.15411