flare-es-eval
D'olares or Dollars? Unraveling the Bilingual Prowess of Financial LLMs Between Spanish and English — Xiao Zhang et al. (2024) (arXiv:2402.07405, 2024)
What this evaluates
Evaluates bilingual (Spanish-English) financial understanding, prediction, and generation capabilities of LLMs. Probes cross-lingual transfer, domain-specific instruction following, and performance disparity between high-resource and low-resource financial tasks.
Datasets
Metrics
Acc (primary) — range: [0, 1]
- Accuracy: proportion of correctly predicted labels out of total instances.
F1 (primary) — range: [0, 1]
- F1 Score: harmonic mean of precision and recall, typically macro-averaged across classes.
rouge1 — range: [0, 1]
- ROUGE-1: unigram overlap between generated and reference text.
rouge2 — range: [0, 1]
- ROUGE-2: bigram overlap between generated and reference text.
rougeL — range: [0, 1]
- ROUGE-L: longest common subsequence overlap between generated and reference text.
EntityF1 — range: [0, 1]
- Entity F1: F1 score computed over extracted named entities.
EmAcc — range: [0, 1]
- Exact Match Accuracy: proportion of instances where the generated output exactly matches the reference.
MCC — range: [-1, 1]
- Matthews Correlation Coefficient: correlation coefficient between predicted and actual binary classifications.
AvgF1 — range: [0, 1]
- Average F1 score across multiple classes or tasks.
Input / output format
Input: Instruction prompts in Spanish or English containing financial domain questions, tasks, or text requiring model generation or classification.
Output: Model-generated text, class labels, or numerical answers depending on the specific task (e.g., classification labels, extracted entities, generated summaries, or predicted values).
Scoring recipe
def compute_metrics(predictions, references):
acc = sum(p == r for p, r in zip(predictions, references)) / len(references)
f1 = f1_score(references, predictions, average='macro')
rouge = rouge_score(references, predictions, use_stemmer=True)
em_acc = sum(p == r for p, r in zip(predictions, references)) / len(references)
mcc = matthews_corrcoef(references, predictions)
return {'Acc': acc, 'F1': f1, 'rouge1': rouge['rouge1'], 'rouge2': rouge['rouge2'], 'rougeL': rouge['rougeL'], 'EmAcc': em_acc, 'MCC': mcc}
Common pitfalls
- Models show significant performance drops on Spanish financial tasks compared to English due to data scarcity.
- Summarization tasks (e.g., FNS-2023, ECTSum) are highly challenging, often yielding near-zero scores across most models.
- Cross-lingual transfer does not automatically guarantee parity; specialized instruction tuning in the target language is required.
Evidence (verbatim from paper)
Table 3 presents a detailed comparative performance analysis of our FinMA-ES models against other leading large language models (LLMs) on the FLARE-ES benchmark. | Dataset | Metrics | ChatGPT | GPT4 | LLaMA2-7B | ... | MultiFin | Acc | F1 | ...
Citation
@misc{zhang2024dolares,
title={D'olares or Dollars? Unraveling the Bilingual Prowess of Financial LLMs Between Spanish and English},
author={Xiao Zhang et al. (2024)},
year={2024},
note={arXiv:2402.07405}
}
1---2name: flare-es-eval3description: Evaluates bilingual (Spanish-English) financial understanding, prediction, and generation capabilities of LLMs. Probes cross-lingual transfer, domain-specific instruction following, and performance disparity between high-resource and low-resource financial tasks. Use when the user wants to benchmark on FLARE-ES, or asks about evaluating this task. Reports Acc, F1.4---56# flare-es-eval78> D'olares or Dollars? Unraveling the Bilingual Prowess of Financial LLMs Between Spanish and English — Xiao Zhang et al. (2024) (arXiv:2402.07405, 2024)910## What this evaluates1112Evaluates bilingual (Spanish-English) financial understanding, prediction, and generation capabilities of LLMs. Probes cross-lingual transfer, domain-specific instruction following, and performance disparity between high-resource and low-resource financial tasks.1314## Datasets1516- **FLARE-ES** — total ?; splits: test (-1); repo https://github.com/chancefocus/PIXIU1718## Metrics1920- `Acc` **(primary)** — range: [0, 1]21 - Accuracy: proportion of correctly predicted labels out of total instances.22- `F1` **(primary)** — range: [0, 1]23 - F1 Score: harmonic mean of precision and recall, typically macro-averaged across classes.24- `rouge1` — range: [0, 1]25 - ROUGE-1: unigram overlap between generated and reference text.26- `rouge2` — range: [0, 1]27 - ROUGE-2: bigram overlap between generated and reference text.28- `rougeL` — range: [0, 1]29 - ROUGE-L: longest common subsequence overlap between generated and reference text.30- `EntityF1` — range: [0, 1]31 - Entity F1: F1 score computed over extracted named entities.32- `EmAcc` — range: [0, 1]33 - Exact Match Accuracy: proportion of instances where the generated output exactly matches the reference.34- `MCC` — range: [-1, 1]35 - Matthews Correlation Coefficient: correlation coefficient between predicted and actual binary classifications.36- `AvgF1` — range: [0, 1]37 - Average F1 score across multiple classes or tasks.3839## Input / output format4041**Input**: Instruction prompts in Spanish or English containing financial domain questions, tasks, or text requiring model generation or classification.4243**Output**: Model-generated text, class labels, or numerical answers depending on the specific task (e.g., classification labels, extracted entities, generated summaries, or predicted values).4445## Scoring recipe4647```python48def compute_metrics(predictions, references):49 acc = sum(p == r for p, r in zip(predictions, references)) / len(references)50 f1 = f1_score(references, predictions, average='macro')51 rouge = rouge_score(references, predictions, use_stemmer=True)52 em_acc = sum(p == r for p, r in zip(predictions, references)) / len(references)53 mcc = matthews_corrcoef(references, predictions)54 return {'Acc': acc, 'F1': f1, 'rouge1': rouge['rouge1'], 'rouge2': rouge['rouge2'], 'rougeL': rouge['rougeL'], 'EmAcc': em_acc, 'MCC': mcc}55```5657## Common pitfalls5859- Models show significant performance drops on Spanish financial tasks compared to English due to data scarcity.60- Summarization tasks (e.g., FNS-2023, ECTSum) are highly challenging, often yielding near-zero scores across most models.61- Cross-lingual transfer does not automatically guarantee parity; specialized instruction tuning in the target language is required.6263## Evidence (verbatim from paper)6465> Table 3 presents a detailed comparative performance analysis of our FinMA-ES models against other leading large language models (LLMs) on the FLARE-ES benchmark. | Dataset | Metrics | ChatGPT | GPT4 | LLaMA2-7B | ... | MultiFin | Acc | F1 | ...6667## Citation6869```bibtex70@misc{zhang2024dolares,71 title={D'olares or Dollars? Unraveling the Bilingual Prowess of Financial LLMs Between Spanish and English},72 author={Xiao Zhang et al. (2024)},73 year={2024},74 note={arXiv:2402.07405}75}76```7778- arXiv: 2402.07405