[Paper Review] WHEN FLUE MEETS FLANG: Benchmarks and Large Pre-trained Language Model for Financial Domain
This paper introduces FLANG, a domain-specific pre-trained language model for finance that uses financial keyword and phrase masking with a span boundary objective to improve multi-word representation learning. It also proposes FLUE, a comprehensive benchmark suite of five financial NLP tasks. FLANG-BERT and FLANG-ELECTRA achieve state-of-the-art performance across all benchmarks, outperforming prior models like FinBERT and BERT on sentiment analysis, classification, and question answering.
Pre-trained language models have shown impressive performance on a variety of tasks and domains. Previous research on financial language models usually employs a generic training scheme to train standard model architectures, without completely leveraging the richness of the financial data. We propose a novel domain specific Financial LANGuage model (FLANG) which uses financial keywords and phrases for better masking, together with span boundary objective and in-filing objective. Additionally, the evaluation benchmarks in the field have been limited. To this end, we contribute the Financial Language Understanding Evaluation (FLUE), an open-source comprehensive suite of benchmarks for the financial domain. These include new benchmarks across 5 NLP tasks in financial domain as well as common benchmarks used in the previous research. Experiments on these benchmarks suggest that our model outperforms those in prior literature on a variety of NLP tasks. Our models, code and benchmark data are publicly available on Github and Huggingface.
Motivation & Objective
- To address the lack of domain-specific pre-training techniques in financial NLP that leverage financial terminology and multi-word phrases.
- To overcome the limitations of generic pre-training by incorporating financial vocabulary and phrase-level masking during pre-training.
- To develop a comprehensive, open-source benchmark suite (FLUE) for evaluating financial NLP models across multiple tasks.
- To improve performance on finance-specific NLP tasks such as sentiment analysis, named entity recognition, and question answering.
- To provide publicly available models and code to accelerate research in financial NLP.
Proposed method
- Pre-train the model using a combination of standard masked language modeling and a span boundary objective, where the generator predicts masked spans and the discriminator determines if tokens are real or replaced.
- Use financial vocabulary to preferentially mask individual words and multi-word phrases (e.g., 'margin call', 'break-even analysis') during pre-training.
- Train the model on a mix of general English data (Wikipedia, BooksCorpus) and domain-specific financial corpora to enhance domain adaptation.
- Introduce a multi-stage masking strategy: first, use financial vocabulary (FV); then, apply phrase-level masking (PFV); and finally, add the span boundary objective (SBO).
- Fine-tune the final discriminator head on downstream tasks using the FLUE benchmark suite.
- Adapt the method to both BERT and ELECTRA architectures, resulting in FLANG-BERT and FLANG-ELECTRA models.
Experimental results
Research questions
- RQ1Can preferential masking of financial terms and phrases improve the performance of pre-trained language models on financial NLP tasks?
- RQ2Does incorporating a span boundary objective during pre-training enhance the model's ability to learn robust financial multi-word representations?
- RQ3Can a domain-specific pre-training strategy significantly outperform generic pre-training on financial benchmark tasks?
- RQ4To what extent does the FLUE benchmark suite enable reliable and standardized evaluation of financial language models?
- RQ5How does the performance of FLANG compare to existing models like FinBERT and BERT across diverse financial NLP tasks?
Key findings
- FLANG-BERT achieves a perplexity of 19.53 on the validation set, significantly lower than BERT-base (23.66) and FinBERT (21.11), indicating better language modeling on financial text.
- FLANG-ELECTRA with all components (AD + PFV + SBO) achieves a perplexity of 17.34, outperforming the base ELECTRA model (20.10) and all other baselines.
- FLANG-BERT outperforms FinBERT across all FLUE benchmark tasks, including financial sentiment analysis, news classification, and question answering, despite having the same number of parameters.
- The performance gain is most pronounced in finance-specific tasks like sentiment analysis and question answering, while improvements on general tasks like named entity recognition are more muted.
- The span boundary objective and phrase-level masking contribute significantly to performance, as shown by the incremental improvement in perplexity across training stages (e.g., from 19.20 to 17.34 with SBO).
- FLANG models achieve state-of-the-art results on all five FLUE benchmark tasks, demonstrating the effectiveness of the proposed pre-training methodology.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.