Dólares or Dollars? Unraveling the Bilingual Prowess of Financial LLMs Between Spanish and English

Xiao Zhang, Ruoyu Xiang, Chenhan Yuan, Duanyu Feng, Weiguang Han, Alejandro Lopez-Lira, Xiao-Yang Liu, Sophia Ananiadou, Min Peng, Jimin Huang, Qianqian Xie · DOI

Abstract

Despite Spanish's pivotal role in the global finance industry, a pronounced gap exists in Spanish financial natural language processing (NLP) compared to English. To bridge this gap, we introduce Toisón de Oro, the first bilingual framework establishing instruction datasets, fine-tuned LLMs, and an evaluation benchmark for financial LLMs in Spanish and English. We construct a curated bilingual instruction dataset, FIT-ES, containing over 151,000 samples. Leveraging this, we introduce FinMA-ES, a model designed for bilingual financial applications. Evaluation via the FLARE-ES benchmark reveals that FinMA-ES surpasses state-of-the-art models like GPT-4 in Spanish financial tasks, highlighting the positive impact of strategic instruction tuning and cross-linguistic transfer.

Introduction: The Spanish Financial NLP Gap

While Spanish is the fourth most spoken language globally and a cornerstone of international finance, financial NLP research has remained stubbornly "English-centric." Models like BloombergGPT or FinGPT have advanced the field in English, but a massive performance gap persists for Spanish-speaking markets.

Existing general-purpose Large Language Models (LLMs) often exhibit linguistic bias, performing significantly worse on financial tasks when prompted in Spanish versus English. To address this, the Toisón de Oro framework was created to provide a dedicated ecosystem for bilingual financial AI, capable of handling tasks ranging from sentiment analysis of Madrid-based news to predicting stock movements on Wall Street.

The Toisón de Oro Framework

The researchers developed the Toisón de Oro framework using a three-pronged approach:

  1. Instruction Tuning: The LLaMA2-7B base model was fine-tuned using the new FIT-ES dataset. Two versions were created: FinMA-ES-Bilingual (trained on both languages) and FinMA-ES-Spanish (for ablation studies).
  2. Strategic Prompting: Human-designed templates were used to transform raw financial data into instruction-following samples, ensuring the model understands how to execute specific tasks like summarizing reports or classifying sentiment.
  3. Cross-Linguistic Transfer: A key focus was investigating whether training on Spanish (a "lower-resource" language in finance) would benefit performance in English (the "high-resource" language).

Datasets and Benchmarks

The framework introduces two major resources:

  • FIT-ES (Financial Instruction Tuning - Spanish/English): A curated dataset of approximately 151,000 samples derived from 15 sources, covering seven core tasks including classification, QA, and sentiment analysis.
  • FLARE-ES (Financial Evaluation Benchmark): A comprehensive evaluation suite consisting of 21 datasets across 9 tasks. It includes "unseen" tasks like credit scoring and hawkish-dovish classification to test model generalization.
Overview of the Toisón de Oro framework datasets and tasks.

Key Results and Insights

The evaluation results on the FLARE-ES benchmark yielded several striking findings:

  • Spanish Dominance: FinMA-ES-Bilingual significantly outperformed GPT-4 on Spanish tasks. For instance, it achieved an Accuracy/F1 of 0.99 on the MultiFin (classification) and EFPA (QA) datasets, compared to GPT-4’s 0.60 and 0.34/0.27, respectively.
  • The "Bilingual Boost": Fine-tuning on Spanish data didn't just improve Spanish performance; it also boosted performance on English tasks compared to models trained only on English. This suggests a "cross-linguistic transfer" where the model learns underlying financial logic that transcends language.
  • Size vs. Specialization: The 7B parameter FinMA-ES model outperformed the much larger GPT-4 in several domains, proving that high-quality, task-specific instruction tuning can be more effective than raw scale for specialized applications.
  • The Spanish Gap: Benchmark results confirmed that SOTA models like GPT-4 and ChatGPT have a pronounced performance gap when switching from English to Spanish financial tasks, highlighting the need for specialized bilingual models.
Detailed performance comparison of FinMA-ES against SOTA models on the FLARE-ES benchmark.

Discussion and Limitations

While FinMA-ES represents a breakthrough, several challenges remain:

  • The Summarization Hurdle: Like many LLMs, FinMA-ES struggled with complex text summarization (e.g., the FNS-2023 dataset), where GPT-4 maintains a lead. This suggests a need for specialized architectures or longer-context training for financial reporting.
  • Scaling Potential: Due to hardware constraints, the model was capped at 7B parameters. Scaling to 13B or 30B could potentially yield deeper reasoning capabilities.
  • Ethical Considerations: The authors emphasize that while the model is a research milestone, it should be used cautiously in real-world trading to avoid disseminating inaccurate information or causing unintended market influence.

Future work will focus on refining these models for broader bilingual applications and exploring more complex financial reasoning tasks.

Summary updated

BibTeX
@inproceedings{zhang2024dolares,
  author = {Xiao Zhang and Ruoyu Xiang and Chenhan Yuan and Duanyu Feng and Weiguang Han and Alejandro Lopez-Lira and Xiao-Yang Liu and Sophia Ananiadou and Min Peng and Jimin Huang and Qianqian Xie},
  title = {{Dólares or Dollars? Unraveling the Bilingual Prowess of Financial LLMs Between Spanish and English}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3637528.3671554},
}
Figure